* [Buildroot] Fail to compile Linux kernel 5.14 with GCC15
[not found] <813093532.2289630.1794564858648.ref@mail.yahoo.com>
@ 2026-11-13 10:14 ` David Luca via buildroot
2026-11-13 10:54 ` Julien Olivain via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: David Luca via buildroot @ 2026-11-13 10:14 UTC (permalink / raw)
To: Julien Olivain via Buildroot
[-- Attachment #1.1: Type: text/plain, Size: 508 bytes --]
Hello,
As mentioned in the title, I receive a compile error for arch/x86/realmode/rm/wakemain.c:
./include/linux/stddef:11:9: error: cannot use keyword 'false' as enumeration constant
Note: 'false'is a keyword with' '-std=c23' onwards.
So I patched my buildroot linux/linux.mk to add:
ifeq ($(BR_TOOLCHAIN_GCC_AT_LEAST_15),y)
LINUX_CFLAGS += -std=gnu17
endif
However the compiler error is still happening, any idea how to fix?
Best regards,
David.
Yahoo Mail: Search, organise, conquer
[-- Attachment #1.2: Type: text/html, Size: 1063 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Buildroot] Fail to compile Linux kernel 5.14 with GCC15
2026-11-13 10:14 ` [Buildroot] Fail to compile Linux kernel 5.14 with GCC15 David Luca via buildroot
@ 2026-11-13 10:54 ` Julien Olivain via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Julien Olivain via buildroot @ 2026-11-13 10:54 UTC (permalink / raw)
To: David Luca; +Cc: Julien Olivain via Buildroot
Hi David,
On 13/11/2026 11:14, David Luca via buildroot wrote:
> Hello,
> As mentioned in the title, I receive a compile error for
> arch/x86/realmode/rm/wakemain.c:
> ./include/linux/stddef:11:9: error: cannot use keyword 'false' as
> enumeration constant
> Note: 'false'is a keyword with' '-std=c23' onwards.
> So I patched my buildroot linux/linux.mk to add:
> ifeq ($(BR_TOOLCHAIN_GCC_AT_LEAST_15),y)
> LINUX_CFLAGS += -std=gnu17
> endif
> However the compiler error is still happening, any idea how to fix?
Kernel 5.14 was not a LTS, you should consider updating
your kernel. If not possible, you could probably backport
fixes from 5.15, such as:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f28b14d235a810e4f6634832062b6e0ffc482b5a
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=518eadd15f7ecde6d301974388c6be03d5c57a0c
...
You can probably search relevant commits with:
git log -S std= linux-5.15.y
> Best regards,
> David.
Best regards,
Julien.
_______________________________________________
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-13 10:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <813093532.2289630.1794564858648.ref@mail.yahoo.com>
2026-11-13 10:14 ` [Buildroot] Fail to compile Linux kernel 5.14 with GCC15 David Luca via buildroot
2026-11-13 10:54 ` Julien Olivain via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox