From: "Joseph Zikusooka (ZIK)" <josephzik@gmail.com>
To: buildroot@buildroot.org
Cc: luca.ceresoli@bootlin.com, "Joseph Zikusooka (ZIK)" <zik@jambula.net>
Subject: [Buildroot] [PATCH v2] package/m4: fix build failure with gcc 15
Date: Sat, 3 May 2025 16:52:09 +0300 [thread overview]
Message-ID: <20250503135217.490404-2-zik@jambula.net> (raw)
In-Reply-To: <20250503135217.490404-1-zik@jambula.net>
This is a temporary workaround to address build issues with host-m4 when using GCC 15, as encountered on
the recently released Fedora 42. The issue stems from stricter compiler behavior introduced in recent
versions of GCC.
A proper fix has already been committed upstream and will be included in the next release of GNU m4:
https://git.savannah.gnu.org/cgit/m4.git/commit/?h=branch-1.4&id=a22c9802dd7e724eaefb21dc21d84ac2d3a49c89
Until that version is available in buildroot, this patch ensures continued compatibility and successful
builds.
More context:
https://lists.buildroot.org/pipermail/buildroot/2025-April/776922.html
Signed-off-by: Joseph Zikusooka (ZIK) <zik@jambula.net>
Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
[Tested v1, but v2 has the same diff]
---
Changes v1 -> v2:
- reworded commit message (no diff changes)
package/m4/m4.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/m4/m4.mk b/package/m4/m4.mk
index 39ad898b10..ab8e194b06 100644
--- a/package/m4/m4.mk
+++ b/package/m4/m4.mk
@@ -10,4 +10,6 @@ M4_SITE = $(BR2_GNU_MIRROR)/m4
M4_LICENSE = GPL-3.0+
M4_LICENSE_FILES = COPYING
+HOST_M4_CONF_ENV = CFLAGS="$(HOST_CFLAGS) -std=gnu17"
+
$(eval $(host-autotools-package))
--
2.49.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2025-05-03 13:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-03 13:52 [Buildroot] (no subject) Joseph Zikusooka (ZIK)
2025-05-03 13:52 ` Joseph Zikusooka (ZIK) [this message]
2025-05-04 17:45 ` [Buildroot] [PATCH v2] package/m4: fix build failure with gcc 15 Julien Olivain
2025-05-04 18:57 ` Joseph Zikusooka
2025-05-16 11:03 ` Arnout Vandecappelle via buildroot
-- strict thread matches above, loose matches on Subject: below --
2025-05-03 11:43 Joseph Zikusooka (ZIK)
2025-05-03 12:41 ` Luca Ceresoli via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250503135217.490404-2-zik@jambula.net \
--to=josephzik@gmail.com \
--cc=buildroot@buildroot.org \
--cc=luca.ceresoli@bootlin.com \
--cc=zik@jambula.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox