From: dash-shell-80d677ffb5cf@mekboy.ru
To: dash@vger.kernel.org
Subject: Can't build with GCC 16.1.0 - libatomic problem
Date: Sun, 10 May 2026 15:07:01 +0300 [thread overview]
Message-ID: <agBwF7x-EtgAZMXy@micropc> (raw)
Hi,
Doing a static build on a system where static version of libatomic is
not available system-wide.
Attempt 1:
export CC="musl-gcc"
./configure --enable-static
# FAIL, from config.log:
configure:4037: checking whether the C compiler works
configure:4059: musl-gcc conftest.c >&5
/usr/bin/ld: cannot find -latomic_asneeded: No such file or directory
collect2: error: ld returned 1 exit status
Attempt 2 (telling build system not to use libatomic):
export CC="musl-gcc"
export LDFLAGS="-fno-link-libatomic"
./configure --enable-static
# OK, but:
make all-recursive
make[1]: Entering directory '/home/me/media/930_GiB/dash-0.5.13.4'
Making all in src
make[2]: Entering directory '/home/me/media/930_GiB/dash-0.5.13.4/src'
CC builtins.def
GEN builtins.h
CC mknodes
/usr/bin/ld: cannot find -latomic_asneeded: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:831: mknodes] Error 1
make[2]: Leaving directory '/home/me/media/930_GiB/dash-0.5.13.4/src'
make[1]: *** [Makefile:357: all-recursive] Error 1
make[1]: Leaving directory '/home/me/media/930_GiB/dash-0.5.13.4'
make: *** [Makefile:298: all] Error 2
Attempt 3 (built libatomic.a separately, trying to use it):
export CC="musl-gcc"
export CFLAGS="-Os -I/home/me/media/930_GiB/gcc-build/gcc/include"
export LDFLAGS="-L/home/me/media/930_GiB/gcc-build/gcc"
./configure --enable-static
# OK, but:
make
make all-recursive
make[1]: Entering directory '/home/me/media/930_GiB/dash-0.5.13.4'
Making all in src
make[2]: Entering directory '/home/me/media/930_GiB/dash-0.5.13.4/src'
CC builtins.def
GEN builtins.h
CC mknodes
/usr/bin/ld: cannot find -latomic_asneeded: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:831: mknodes] Error 1
make[2]: Leaving directory '/home/me/media/930_GiB/dash-0.5.13.4/src'
make[1]: *** [Makefile:357: all-recursive] Error 1
make[1]: Leaving directory '/home/me/media/930_GiB/dash-0.5.13.4'
make: *** [Makefile:298: all] Error 2
Looks like "mknodes" step ignores CFLAGS/LDFLAGS.
/Regards, Aleksej
next reply other threads:[~2026-05-10 12:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-10 12:07 dash-shell-80d677ffb5cf [this message]
2026-05-10 12:18 ` Can't build with GCC 16.1.0 - libatomic problem Sam James
2026-05-10 12:37 ` dash-shell-80d677ffb5cf
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=agBwF7x-EtgAZMXy@micropc \
--to=dash-shell-80d677ffb5cf@mekboy.ru \
--cc=dash@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.