Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Herve Codina via buildroot <buildroot@buildroot.org>
To: Giulio Benetti <giulio.benetti@benettiengineering.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH] package/libfutils: fix build with gcc >= 16
Date: Tue, 24 Nov 2026 18:45:15 +0100	[thread overview]
Message-ID: <20261124184515.55fe2395@bootlin.com> (raw)
In-Reply-To: <20261124172411.1613844-1-giulio.benetti@benettiengineering.com>

Hi Giulio,

On Tue, 24 Nov 2026 18:24:11 +0100
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.
> 
> Fixes:
> https://autobuild.buildroot.org/results/819/8195c40c826e1b85ced2aec5d1e8705542a82c93/
> 
> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
>  ...01-random-drop-ATOMIC_VAR_INIT-usage.patch | 47 +++++++++++++++++++
>  1 file changed, 47 insertions(+)
>  create mode 100644 package/libfutils/0001-random-drop-ATOMIC_VAR_INIT-usage.patch

Reviewed-by: Herve Codina <herve.codina@bootlin.com>

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

  reply	other threads:[~2026-11-24 17:45 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 [this message]
2026-11-25  9:42 ` Yegor Yefremov
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=20261124184515.55fe2395@bootlin.com \
    --to=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