* [Buildroot] [PATCH 1/1] boot/syslinux: fix build with gcc-15.x
@ 2025-07-30 19:01 Bernd Kuhls
2025-07-31 14:11 ` Julien Olivain via buildroot
2025-08-15 10:18 ` Thomas Petazzoni via buildroot
0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2025-07-30 19:01 UTC (permalink / raw)
To: buildroot
Fixes build error with gcc-15.x:
drivers/net/3c509-eisa.c:39:26: error: initialization of 'void (*)(void)'
from incompatible pointer type 'void (*)(struct nic *, struct eisa_device *)'
[-Wincompatible-pointer-types]
For a similar fix see https://bugzilla.suse.com/show_bug.cgi?id=1243225
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
boot/syslinux/syslinux.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boot/syslinux/syslinux.mk b/boot/syslinux/syslinux.mk
index 127f6b3cc1..b8f022b189 100644
--- a/boot/syslinux/syslinux.mk
+++ b/boot/syslinux/syslinux.mk
@@ -65,7 +65,7 @@ define SYSLINUX_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE1) \
ASCIIDOC_OK=-1 \
A2X_XML_OK=-1 \
- CC="$(TARGET_CC)" \
+ CC="$(TARGET_CC) -std=gnu17" \
LD="$(TARGET_LD)" \
OBJCOPY="$(TARGET_OBJCOPY)" \
AS="$(TARGET_AS)" \
--
2.39.5
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] boot/syslinux: fix build with gcc-15.x
2025-07-30 19:01 [Buildroot] [PATCH 1/1] boot/syslinux: fix build with gcc-15.x Bernd Kuhls
@ 2025-07-31 14:11 ` Julien Olivain via buildroot
2025-08-15 10:18 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Julien Olivain via buildroot @ 2025-07-31 14:11 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot
On 30/07/2025 21:01, Bernd Kuhls wrote:
> Fixes build error with gcc-15.x:
>
> drivers/net/3c509-eisa.c:39:26: error: initialization of 'void
> (*)(void)'
> from incompatible pointer type 'void (*)(struct nic *, struct
> eisa_device *)'
> [-Wincompatible-pointer-types]
>
> For a similar fix see https://bugzilla.suse.com/show_bug.cgi?id=1243225
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] boot/syslinux: fix build with gcc-15.x
2025-07-30 19:01 [Buildroot] [PATCH 1/1] boot/syslinux: fix build with gcc-15.x Bernd Kuhls
2025-07-31 14:11 ` Julien Olivain via buildroot
@ 2025-08-15 10:18 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-08-15 10:18 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: buildroot, Julien Olivain
Hello,
On Wed, 30 Jul 2025 21:01:18 +0200
Bernd Kuhls <bernd@kuhls.net> wrote:
> Fixes build error with gcc-15.x:
>
> drivers/net/3c509-eisa.c:39:26: error: initialization of 'void (*)(void)'
> from incompatible pointer type 'void (*)(struct nic *, struct eisa_device *)'
> [-Wincompatible-pointer-types]
>
> For a similar fix see https://bugzilla.suse.com/show_bug.cgi?id=1243225
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
This change breaks the build with older compilers:
https://gitlab.com/buildroot.org/buildroot/-/jobs/10975828975
I'm about to send a patch that will update the toolchain used in those
tests, papering over this issue, but I believe it is not normal to
break the build of syslinux with older compilers, such as:
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-i386-pentium4-full-2017.05-1078-g95b1dae.tar.bz2"
BR2_TOOLCHAIN_EXTERNAL_GCC_6=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_2=y
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
BR2_TOOLCHAIN_EXTERNAL_CXX=y
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-08-15 10:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-30 19:01 [Buildroot] [PATCH 1/1] boot/syslinux: fix build with gcc-15.x Bernd Kuhls
2025-07-31 14:11 ` Julien Olivain via buildroot
2025-08-15 10:18 ` Thomas Petazzoni via buildroot
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.