{"id":2281,"date":"2018-05-02T00:25:39","date_gmt":"2018-05-02T07:25:39","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=2281"},"modified":"2018-05-02T00:25:39","modified_gmt":"2018-05-02T07:25:39","slug":"fedora-28-released-but-fails-with-gcc-8-and-kernel-4-16","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=2281","title":{"rendered":"Fedora &#8211; 28 Released, but Fails with GCC 8 and Kernel 4.16&#8230;"},"content":{"rendered":"<p><strong>Fedora 28<\/strong> has been released, but this includes GCC 8 (<strong>8.0.1<\/strong>) which &#8211; currently &#8211; is not capable of compiling Kernel 4.16 as-is (tested with <strong>4.16.6<\/strong>):<\/p>\n<pre><span style=\"font-family: courier\\ new, courier;\"><strong> ..................................<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>CC \/usr\/src\/linux-4.16.6\/tools\/objtool\/objtool.o<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> CC \/usr\/src\/linux-4.16.6\/tools\/objtool\/libstring.o<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> CC \/usr\/src\/linux-4.16.6\/tools\/objtool\/str_error_r.o<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>..\/lib\/str_error_r.c: In function \u2018str_error_r\u2019:<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>..\/lib\/str_error_r.c:25:3: error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> snprintf(buf, buflen, \"INTERNAL ERROR: strerror_r(%d, %p, %zd)=%d\", errnum, buf, buflen, err);<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> ^~~~~~~~<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> HOSTCC scripts\/mod\/file2alias.o<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>cc1: all warnings being treated as errors<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>.....................................<\/strong><\/span><\/pre>\n<p>See: <a href=\"https:\/\/gcc.gnu.org\/bugzilla\/show_bug.cgi?id=84919\" target=\"_blank\" rel=\"noopener\">https:\/\/gcc.gnu.org\/bugzilla\/show_bug.cgi?id=84919<\/a><\/p>\n<p>Kernel 4.17 (<strong>4.17-rc3<\/strong>) <span style=\"text-decoration: underline;\">does<\/span> compile, but with multiple warnings:<\/p>\n<pre><span style=\"font-family: courier\\ new, courier;\"><strong> .....................<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>CC lib\/earlycpio.o<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>drivers\/dma\/dmaengine.o: warning: objtool: dma_async_device_register()+0x22: sibling call from callable instruction with modified stack frame<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>lib\/earlycpio.o: warning: objtool: find_cpio_data()+0x218: sibling call from callable instruction with modified stack frame<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> CC lib\/extable.o<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> CC drivers\/dma\/virt-dma.o<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>fs\/nfsd\/vfs.o: warning: objtool: nfsd_lookup_dentry()+0x6d: sibling call from callable instruction with modified stack frame<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>fs\/nfsd\/vfs.o: warning: objtool: nfsd_vfs_write()+0x230: sibling call from callable instruction with modified stack frame<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>fs\/nfsd\/vfs.o: warning: objtool: nfsd_symlink()+0x92: sibling call from callable instruction with modified stack frame<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>fs\/nfsd\/vfs.o: warning: objtool: nfsd_link()+0xdd: sibling call from callable instruction with modified stack frame<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>fs\/nfsd\/vfs.o: warning: objtool: nfsd_unlink()+0x8b: sibling call from callable instruction with modified stack frame<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>fs\/nfsd\/vfs.o: warning: objtool: nfsd_setattr()+0x140: sibling call from callable instruction with modified stack frame<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>fs\/nfsd\/vfs.o: warning: objtool: do_nfsd_create()+0x114: sibling call from callable instruction with modified stack frame<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>fs\/nfsd\/vfs.o: warning: objtool: nfsd_create()+0xbf: sibling call from callable instruction with modified stack frame<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>fs\/nfsd\/vfs.o: warning: objtool: nfsd_racache_shutdown()+0xb: sibling call from callable instruction with modified stack frame<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>fs\/nfsd\/vfs.o: warning: objtool: nfsd_racache_init()+0x3e: sibling call from callable instruction with modified stack frame<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> CC [M] fs\/nfsd\/export.o<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>....................................<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> CC lib\/kobject.o<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>In function \u2018fill_kobj_path\u2019,<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> inlined from \u2018kobject_get_path\u2019 at lib\/kobject.c:155:2:<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>lib\/kobject.c:128:3: warning: \u2018strncpy\u2019 output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> strncpy(path + length, kobject_name(parent), cur);<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>lib\/kobject.c: In function \u2018kobject_get_path\u2019:<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>lib\/kobject.c:125:13: note: length computed here<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> int cur = strlen(kobject_name(parent));<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~<\/strong><\/span>\r\n<span style=\"font-family: courier\\ new, courier;\"><strong>.................................\u00a0\u00a0 etc..........<\/strong><\/span><\/pre>\n<p>Despite all this, the resulting kernel loads\/runs OK:<\/p>\n<p># uname -a<br \/>\nLinux rgup 4.17.0-rc3 #1 SMP Sun Apr 29 18:19:03 PDT 2018 x86_64 x86_64 x86_64 GNU\/Linux<\/p>\n<p>So, for the time being, I am staying with Fedora 27 on my main system..<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0 May 2, 2018.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fedora 28 has been released, but this includes GCC 8 (8.0.1) which &#8211; currently &#8211; is not capable of compiling Kernel 4.16 as-is (tested with 4.16.6): &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. CC \/usr\/src\/linux-4.16.6\/tools\/objtool\/objtool.o CC \/usr\/src\/linux-4.16.6\/tools\/objtool\/libstring.o CC \/usr\/src\/linux-4.16.6\/tools\/objtool\/str_error_r.o ..\/lib\/str_error_r.c: In function \u2018str_error_r\u2019: ..\/lib\/str_error_r.c:25:3: error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict] snprintf(buf, buflen, &#8220;INTERNAL ERROR: strerror_r(%d, %p, %zd)=%d&#8221;, <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=2281\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,10,1617,14,15,19,20],"tags":[1872,1873,1841,1871,1875,1874],"class_list":["post-2281","post","type-post","status-publish","format-standard","hentry","category-compilation","category-fedora","category-gcc","category-kernel","category-linux-2","category-opinion","category-performance-2","tag-8-0-1","tag-compile-fail-with-4-16-6","tag-fedora-28","tag-gcc-8","tag-ok-with-4-17-rc3","tag-str_error_r-c"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2281"}],"version-history":[{"count":3,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2281\/revisions"}],"predecessor-version":[{"id":2284,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2281\/revisions\/2284"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}