* [Buildroot] [PATCH] package/prboom: fix build with GCC 14
@ 2026-11-12 10:08 Yegor Yefremov via buildroot
2026-11-14 9:40 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Yegor Yefremov via buildroot @ 2026-11-12 10:08 UTC (permalink / raw)
To: buildroot; +Cc: Bernd Kuhls, Thomas Perale
Since autoconf 2.73, AC_PROG_CC enables C23 with -std=gnu23 when the
compiler accepts it, which GCC 14 does. As prboom is autoreconfigured,
it is then built in C23 mode, where false and true are keywords:
../../src/doomtype.h:48:15: error: expected identifier before 'false'
48 | typedef enum {false, true} boolean;
| ^~~~~
Commit 2eb72e7666 ("package/prboom: fix build w/ gcc-15") already
forces -std=gnu18 to avoid this, but only for GCC >= 15, where C23 is
the default. Apply it from GCC 14 on. With -std=gnu18 in CFLAGS, the
configure C23 check fails and -std=gnu23 is no longer added.
This issue has been present since commit a6e8c07a330a
("package/autoconf: bump version to 2.73"), as autoconf 2.72 never
selected C23. It therefore affects 2026.08 and later. The 2026.05.x and
older maintenance branches still use autoconf 2.72 and are not
affected.
Fixes:
https://autobuild.buildroot.org/results/7d5050c54ba8319f0fd58336851121f5e127b1aa
Fixes: a6e8c07a330a389e9578d8f1110e41becac264d2 ("package/autoconf: bump version to 2.73")
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
package/prboom/prboom.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/prboom/prboom.mk b/package/prboom/prboom.mk
index ab9ab09913..28a55badf6 100644
--- a/package/prboom/prboom.mk
+++ b/package/prboom/prboom.mk
@@ -18,7 +18,7 @@ ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
PRBOOM_CFLAGS += -O0
endif
-ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_15),y)
+ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_14),y)
PRBOOM_CFLAGS += -std=gnu18
endif
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] package/prboom: fix build with GCC 14
2026-11-12 10:08 [Buildroot] [PATCH] package/prboom: fix build with GCC 14 Yegor Yefremov via buildroot
@ 2026-11-14 9:40 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2026-11-14 9:40 UTC (permalink / raw)
To: Yegor Yefremov via buildroot; +Cc: Bernd Kuhls, Thomas Perale
>>>>> "Yegor" == Yegor Yefremov via buildroot <buildroot@buildroot.org> writes:
> Since autoconf 2.73, AC_PROG_CC enables C23 with -std=gnu23 when the
> compiler accepts it, which GCC 14 does. As prboom is autoreconfigured,
> it is then built in C23 mode, where false and true are keywords:
> ../../src/doomtype.h:48:15: error: expected identifier before 'false'
> 48 | typedef enum {false, true} boolean;
> | ^~~~~
> Commit 2eb72e7666 ("package/prboom: fix build w/ gcc-15") already
> forces -std=gnu18 to avoid this, but only for GCC >= 15, where C23 is
> the default. Apply it from GCC 14 on. With -std=gnu18 in CFLAGS, the
> configure C23 check fails and -std=gnu23 is no longer added.
> This issue has been present since commit a6e8c07a330a
> ("package/autoconf: bump version to 2.73"), as autoconf 2.72 never
> selected C23. It therefore affects 2026.08 and later. The 2026.05.x and
> older maintenance branches still use autoconf 2.72 and are not
> affected.
> Fixes:
> https://autobuild.buildroot.org/results/7d5050c54ba8319f0fd58336851121f5e127b1aa
> Fixes: a6e8c07a330a389e9578d8f1110e41becac264d2 ("package/autoconf: bump version to 2.73")
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Committed, thanks.
Maybe the time has come to drop prboom? It is ancient and is also one of
the few packages using the old SDL (1.2.x) version.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-14 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12 10:08 [Buildroot] [PATCH] package/prboom: fix build with GCC 14 Yegor Yefremov via buildroot
2026-11-14 9:40 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox