Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/m4: fix build failure with gcc 15
@ 2025-04-23 13:57 Joseph Zikusooka
  2025-05-02 19:39 ` Luca Ceresoli via buildroot
  0 siblings, 1 reply; 4+ messages in thread
From: Joseph Zikusooka @ 2025-04-23 13:57 UTC (permalink / raw)
  To: buildroot

From 08d03e3ac14325a05942a632c8cf7b2a7c06d880 Mon Sep 17 00:00:00 2001
From: "Joseph Zikusooka (ZIK)" <zik@jambula.net>
Date: Wed, 23 Apr 2025 15:53:56 +0300
Subject: [PATCH] package/m4: fix build failure with gcc 15

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
bersions 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>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] package/m4: fix build failure with gcc 15
@ 2025-04-30 15:00 François Foltête via buildroot
  2025-04-30 17:21 ` Joseph Zikusooka
  0 siblings, 1 reply; 4+ messages in thread
From: François Foltête via buildroot @ 2025-04-30 15:00 UTC (permalink / raw)
  To: Joseph Zikusooka; +Cc: buildroot, thomas.petazzoni

Hello Joseph,

thanks for the patch, it worked for me.

Tested-by: Francois Foltete <francois.foltete@bootlin.com>

-- 
François Foltête, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-02 19:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-23 13:57 [Buildroot] [PATCH] package/m4: fix build failure with gcc 15 Joseph Zikusooka
2025-05-02 19:39 ` Luca Ceresoli via buildroot
  -- strict thread matches above, loose matches on Subject: below --
2025-04-30 15:00 François Foltête via buildroot
2025-04-30 17:21 ` Joseph Zikusooka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox