From: Hemanth Kumar M D <[email protected]> GCC 16 introduced -flink-libatomic which automatically injects -latomic_asneeded into link commands via LINK_LIBATOMIC_SPEC. When glibc is built with a GCC 16 cross-compiler, the compiler would attempt to link against libatomic which does not exist yet at this stage. (libatomic is built later as part of gcc-runtime)
Link: https://github.com/gcc-mirror/gcc/commit/e63cf4b130b86dd7dde1bf499d3d40faca10ea2e Signed-off-by: Hemanth Kumar M D <[email protected]> --- meta/recipes-core/glibc/glibc.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc index 30d93bca77..ac96e640e2 100644 --- a/meta/recipes-core/glibc/glibc.inc +++ b/meta/recipes-core/glibc/glibc.inc @@ -49,6 +49,9 @@ EXTRA_OEMAKE += "SHELL=/bin/bash" # bash but it can be configured by setting KSHELL Makefile variable EXTRA_OEMAKE += "KSHELL=/bin/sh" +TARGET_CC_ARCH += "-fno-link-libatomic" +SDK_CC_ARCH += "-fno-link-libatomic" + do_configure:prepend() { sed -e "s#/bin/bash#/bin/sh#" -i ${S}/elf/ldd.bash.in } -- 2.49.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#236608): https://lists.openembedded.org/g/openembedded-core/message/236608 Mute This Topic: https://lists.openembedded.org/mt/119201156/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
