* [Buildroot] [PATCH] package/brcm-patchram-plus: fix build w/ gcc-15
@ 2025-08-29 9:46 Peter Korsgaard
2025-08-31 15:00 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Peter Korsgaard @ 2025-08-29 9:46 UTC (permalink / raw)
To: buildroot; +Cc: Vadim Kochan
Fixes http://autobuild.buildroot.net/results/2058934e442c0b3f3d0bd81bd7ed080c2eaade31/
The source code uses empty argument function pointer prototypes, which
changed behaviour in C23 (default in gcc-15):
https://gcc.gnu.org/gcc-15/porting_to.html#c23-fn-decls-without-parameters
Causing build issues. Fix it by forcing gnu99 mode instead.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/brcm-patchram-plus/brcm-patchram-plus.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/brcm-patchram-plus/brcm-patchram-plus.mk b/package/brcm-patchram-plus/brcm-patchram-plus.mk
index d873330769..81ffc47aee 100644
--- a/package/brcm-patchram-plus/brcm-patchram-plus.mk
+++ b/package/brcm-patchram-plus/brcm-patchram-plus.mk
@@ -10,4 +10,8 @@ BRCM_PATCHRAM_PLUS_LICENSE = Apache-2.0
BRCM_PATCHRAM_PLUS_LICENSE_FILES = COPYING
BRCM_PATCHRAM_PLUS_AUTORECONF = YES
+# C23 changes meaning of empty argument prototypes like int (*)()
+# causing build failures, so force gnu99
+BRCM_PATCHRAM_PLUS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
+
$(eval $(autotools-package))
--
2.39.5
_______________________________________________
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/brcm-patchram-plus: fix build w/ gcc-15
2025-08-29 9:46 [Buildroot] [PATCH] package/brcm-patchram-plus: fix build w/ gcc-15 Peter Korsgaard
@ 2025-08-31 15:00 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2025-08-31 15:00 UTC (permalink / raw)
To: buildroot; +Cc: Vadim Kochan
>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:
> Fixes http://autobuild.buildroot.net/results/2058934e442c0b3f3d0bd81bd7ed080c2eaade31/
> The source code uses empty argument function pointer prototypes, which
> changed behaviour in C23 (default in gcc-15):
> https://gcc.gnu.org/gcc-15/porting_to.html#c23-fn-decls-without-parameters
> Causing build issues. Fix it by forcing gnu99 mode instead.
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Committed, thanks.
--
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:[~2025-08-31 15:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-29 9:46 [Buildroot] [PATCH] package/brcm-patchram-plus: fix build w/ gcc-15 Peter Korsgaard
2025-08-31 15:00 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.