Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Olivain via buildroot <buildroot@buildroot.org>
To: David Luca <davidluca3000@yahoo.com>
Cc: Julien Olivain via Buildroot <buildroot@buildroot.org>
Subject: Re: [Buildroot] Fail to compile Linux kernel 5.14 with GCC15
Date: Fri, 13 Nov 2026 11:54:49 +0100	[thread overview]
Message-ID: <a22a7aab9348cba875acdd68ffa30efa@free.fr> (raw)
In-Reply-To: <813093532.2289630.1794564858648@mail.yahoo.com>

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

      reply	other threads:[~2026-11-13 10:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a22a7aab9348cba875acdd68ffa30efa@free.fr \
    --to=buildroot@buildroot.org \
    --cc=davidluca3000@yahoo.com \
    --cc=ju.o@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox