Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yegor Yefremov <yegorslists@googlemail.com>
To: Giulio Benetti <giulio.benetti@benettiengineering.com>
Cc: buildroot@buildroot.org, "Hervé Codina" <herve.codina@bootlin.com>
Subject: Re: [Buildroot] [PATCH] package/libfutils: fix build with gcc >= 16
Date: Wed, 25 Nov 2026 10:42:55 +0100	[thread overview]
Message-ID: <20261125094255.199095-1-yegorslists@googlemail.com> (raw)
In-Reply-To: <20261124172411.1613844-1-giulio.benetti@benettiengineering.com>

Hi Giulio,

On Tue, Nov 24, 2026 at 6:24 PM Giulio Benetti
<giulio.benetti@benettiengineering.com> wrote:
>
> ATOMIC_VAR_INIT() has been removed in C23, so with gcc >= 16 the build
> fails with:
>
> src/random.c:338:31: error: implicit declaration of function 'ATOMIC_VAR_INIT'; did you mean 'ATOMIC_FLAG_INIT'? [-Wimplicit-function-declaration]
>
> So let's add a local patch that initializes the atomic variable
> directly.

Built libfutils and libshdata on x86_64 with the Bootlin glibc
bleeding-edge toolchain (gcc 16.2). Without the patch, libfutils fails
with the error above; with it, both build fine.

Note that with BR2_ROOTFS_MERGED_USR=y, this also needs "package/alchemy:
don't copy the C library into the Alchemy staging" [1], otherwise ulog
fails to link first.

Tested-by: Yegor Yefremov <yegorslists@googlemail.com>

[1] https://lore.kernel.org/buildroot/20261125093330.194145-1-yegorslists@googlemail.com/

Best regards,
Yegor
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2026-11-25  9:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 17:24 [Buildroot] [PATCH] package/libfutils: fix build with gcc >= 16 Giulio Benetti
2026-11-24 17:45 ` Herve Codina via buildroot
2026-11-25  9:42 ` Yegor Yefremov [this message]
2026-11-25 19:49 ` Julien Olivain via buildroot

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=20261125094255.199095-1-yegorslists@googlemail.com \
    --to=yegorslists@googlemail.com \
    --cc=buildroot@buildroot.org \
    --cc=giulio.benetti@benettiengineering.com \
    --cc=herve.codina@bootlin.com \
    /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