{"id":2632,"date":"2025-04-26T11:37:29","date_gmt":"2025-04-26T08:37:29","guid":{"rendered":"https:\/\/joseph.zikusooka.com\/?p=2632"},"modified":"2025-05-05T18:46:06","modified_gmt":"2025-05-05T15:46:06","slug":"buildroot-and-gcc-15-fixes-for-m4-and-other-packages","status":"publish","type":"post","link":"https:\/\/joseph.zikusooka.com\/?p=2632","title":{"rendered":"Buildroot and GCC 15: Fixes for m4 and Other Packages"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"buildroot-and-gcc-15-fixes-for-m4-and-other-packag\"><\/h2>\n\n\n\n<p>This week, I tried using Buildroot on my new Fedora 42 system, which comes with GCC 15. Right away, the build failed when compiling the package <strong>host-m4<\/strong>.<\/p>\n\n\n\n<p>After looking into it, I found that GCC 15 has stricter rules that cause some Buildroot packages to break-not just m4, but also others like gmp. This means if you are using Buildroot on a Linux system with GCC 15, you might run into similar problems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What to do?<\/h2>\n\n\n\n<p>There are patches available to fix these issues, including one I submitted for m4. You can find them here:<br><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/lists.buildroot.org\/pipermail\/buildroot\/2025-April\/777274.html\">https:\/\/lists.buildroot.org\/pipermail\/buildroot\/2025-April\/777274.html<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What\u2019s next?<\/h2>\n\n\n\n<p>Hopefully, these problems will be fixed in the official Buildroot updates soon. Until then, applying these patches will help you build successfully with GCC 15.<\/p>\n\n\n\n<p>If you use Buildroot with the latest Linux and GCC versions, keep an eye out for updates and patches like these!<\/p>\n\n\n\n<p><strong>Update [May 5, 2025]:<\/strong><\/p>\n\n\n\n<p>This patch has now been committed upstream to buildroot.<\/p>\n\n\n\n<p>It will be applied as a workaround only when host gcc 15 is detected.<\/p>\n\n\n\n<p>For more details, please check the full commit here:<\/p>\n\n\n\n<p><a href=\"https:\/\/gitlab.com\/buildroot.org\/buildroot\/-\/commit\/7a07a9d155b8f601d68f07ee0ed1dc8d48907644\">https:\/\/gitlab.com\/buildroot.org\/buildroot\/-\/commit\/7a07a9d155b8f601d68f07ee0ed1dc8d48907644<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week, I tried using Buildroot on my new Fedora 42 system, which comes with GCC 15. Right away, the build failed when compiling the package host-m4. After looking into it, I found that GCC 15 has stricter rules that cause some Buildroot packages to break-not just m4, but also others like gmp. This means [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2639,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"footnotes":""},"categories":[7,10],"tags":[],"class_list":["post-2632","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code","category-linux"],"_links":{"self":[{"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/posts\/2632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2632"}],"version-history":[{"count":2,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/posts\/2632\/revisions"}],"predecessor-version":[{"id":2643,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/posts\/2632\/revisions\/2643"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=\/wp\/v2\/media\/2639"}],"wp:attachment":[{"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joseph.zikusooka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}