[Buildroot] host-m4 build on Fedora 42 fails

Joseph Zikusooka josephzik at gmail.com
Fri Apr 18 14:14:02 UTC 2025


Recently upgraded to Fedora 42 and since then I am unable to compile
buildroot.  Make fails at the host-m4 package.
I looked up several sources and found this:
https://lists.gnu.org/archive/html/m4-discuss/2025-02/msg00000.html

The work around on Fedora 42 was to build m4 with the environment
flags as follows:
CFLAGS='-std=gnu17' ./configure && make

I tried to patch m4.mk as follows, but the build is still failing.  Any ideas?

--- a/m4.mk     2025-04-18 17:02:01.174923317 +0300
+++ b/m4.mk     2025-04-18 17:03:29.285694673 +0300
@@ -10,4 +10,7 @@
 M4_LICENSE = GPL-3.0+
 M4_LICENSE_FILES = COPYING

+M4_CONF_ENV = CFLAGS="-std=gnu17"
+M4_MAKE_ENV = CFLAGS="-std=gnu17"
+
 $(eval $(host-autotools-package))

-- 
Joseph Zikusooka (ZIK)


More information about the buildroot mailing list