On 23-05-2026 07:02 am, Khem Raj wrote:
**
*CAUTION: This email comes from a non Wind River email account!*
Do not click links or open attachments unless you recognize the sender
and know the content is safe.
On Tue, May 19, 2026 at 12:25 AM Hemanth Kumar M D via
lists.openembedded.org
<https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!ep_WpaZmir4Aw1K_c2XMB01Y8AuFDouyrw1F8TpQr78EckKFe8ujYgJ9slTPRbu3p6yeUrHqulvlTck6iGu8T68$>
<[email protected]> wrote:
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
<https://urldefense.com/v3/__https://github.com/gcc-mirror/gcc/commit/e63cf4b130b86dd7dde1bf499d3d40faca10ea2e__;!!AjveYdw8EvQ!ep_WpaZmir4Aw1K_c2XMB01Y8AuFDouyrw1F8TpQr78EckKFe8ujYgJ9slTPRbu3p6yeUrHqulvlTck690KqPGs$>
Signed-off-by: Hemanth Kumar M D <[email protected]>
---
meta/recipes-core/glibc/glibc.inc
<https://urldefense.com/v3/__http://glibc.inc__;!!AjveYdw8EvQ!ep_WpaZmir4Aw1K_c2XMB01Y8AuFDouyrw1F8TpQr78EckKFe8ujYgJ9slTPRbu3p6yeUrHqulvlTck6_ujwH0A$>
| 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/recipes-core/glibc/glibc.inc
<https://urldefense.com/v3/__http://glibc.inc__;!!AjveYdw8EvQ!ep_WpaZmir4Aw1K_c2XMB01Y8AuFDouyrw1F8TpQr78EckKFe8ujYgJ9slTPRbu3p6yeUrHqulvlTck6_ujwH0A$>
b/meta/recipes-core/glibc/glibc.inc
<https://urldefense.com/v3/__http://glibc.inc__;!!AjveYdw8EvQ!ep_WpaZmir4Aw1K_c2XMB01Y8AuFDouyrw1F8TpQr78EckKFe8ujYgJ9slTPRbu3p6yeUrHqulvlTck6_ujwH0A$>
index dae087d53f..751cc0c572 100644
--- a/meta/recipes-core/glibc/glibc.inc
<https://urldefense.com/v3/__http://glibc.inc__;!!AjveYdw8EvQ!ep_WpaZmir4Aw1K_c2XMB01Y8AuFDouyrw1F8TpQr78EckKFe8ujYgJ9slTPRbu3p6yeUrHqulvlTck6_ujwH0A$>
+++ b/meta/recipes-core/glibc/glibc.inc
<https://urldefense.com/v3/__http://glibc.inc__;!!AjveYdw8EvQ!ep_WpaZmir4Aw1K_c2XMB01Y8AuFDouyrw1F8TpQr78EckKFe8ujYgJ9slTPRbu3p6yeUrHqulvlTck6_ujwH0A$>
@@ -46,6 +46,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"
This might be better controlled with toolchain-gcc override.
Hi Khem,
Updated this to use the toolchain-gcc override:
TARGET_CC_ARCH:toolchain-gcc += "-fno-link-libatomic"
SDK_CC_ARCH:toolchain-gcc += "-fno-link-libatomic"
Will be sending the fix in the coming series.
+
do_configure:prepend() {
sed -e "s#/bin/bash#/bin/sh#" -i ${S}/elf/ldd.bash.in
<https://urldefense.com/v3/__http://ldd.bash.in__;!!AjveYdw8EvQ!ep_WpaZmir4Aw1K_c2XMB01Y8AuFDouyrw1F8TpQr78EckKFe8ujYgJ9slTPRbu3p6yeUrHqulvlTck6yiEC9_0$>
}
--
2.49.0
--
Regards,
Hemanth Kumar M D
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#237637):
https://lists.openembedded.org/g/openembedded-core/message/237637
Mute This Topic: https://lists.openembedded.org/mt/119387074/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-