Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Perale via buildroot <buildroot@buildroot.org>
To: Daniel Houck <Software@DRHouck.me>
Cc: Thomas Perale <thomas.perale@mind.be>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/make: fix build with musl and gcc-15.x
Date: Fri, 15 May 2026 19:45:57 +0200	[thread overview]
Message-ID: <20260515174557.529246-1-thomas.perale@mind.be> (raw)
In-Reply-To: <20260503235637.637991-1-Software@DRHouck.me>

In reply of:
> It builds fine with glibc and gcc-15.x but conditionally includes code
> with musl that fails.  See eg. commit 999fb19d4b.
> 
> Fixes #176.  See also https://savannah.gnu.org/bugs/index.php?68302
> 
> Signed-off-by: Daniel Houck <Software@DRHouck.me>

Applied to 2026.02.x. Thanks

> ---
>  package/make/make.mk | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/package/make/make.mk b/package/make/make.mk
> index 1d1a976eb4..7120548bcc 100644
> --- a/package/make/make.mk
> +++ b/package/make/make.mk
> @@ -14,6 +14,14 @@ MAKE_CPE_ID_VENDOR = gnu
>  
>  MAKE_CONF_OPTS = --without-guile
>  
> +# Make doesn't build with C23 in some configurations; see upstream #68302
> +# gcc-15 defaults to -std=gnu23, so we force "-std=gnu17" for gcc version
> +# supporting it. Earlier gcc versions will work, since they are using the
> +# older standard.
> +ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y)
> +MAKE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu17"
> +endif
> +
>  # Disable the 'load' operation for static builds since it needs dlopen
>  ifeq ($(BR2_STATIC_LIBS),y)
>  MAKE_CONF_OPTS += --disable-load
> -- 
> 2.54.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2026-05-15 17:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-03 23:56 [Buildroot] [PATCH 1/1] package/make: fix build with musl and gcc-15.x Daniel Houck
2026-05-04 13:17 ` Marcus Hoffmann via buildroot
2026-05-04 19:59   ` Daniel Houck
2026-05-04 23:06 ` [Buildroot] [PATCH v2] " Daniel Houck
2026-05-05  1:11   ` [Buildroot] [PATCH v3] " Daniel Houck
2026-05-05  8:59     ` Marcus Hoffmann via buildroot
2026-05-15 17:45 ` Thomas Perale 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=20260515174557.529246-1-thomas.perale@mind.be \
    --to=buildroot@buildroot.org \
    --cc=Software@DRHouck.me \
    --cc=thomas.perale@mind.be \
    /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