libc-test builds its tests on the target with the compiler from packagegroup-core-buildessential, which is always gcc. The toolchain used to build the recipe itself does not matter, since do_compile does nothing.
GCC 16 links -latomic_asneeded by default, so with the dependency limited to the gcc toolchain every static test fails to link when the distro builds with clang: ld: cannot find -latomic_asneeded: Invalid argument ld: have you installed the static version of the atomic_asneeded library ? Add libatomic-staticdev unconditionally again. Signed-off-by: Khem Raj <[email protected]> --- meta/recipes-core/musl/libc-test_git.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta/recipes-core/musl/libc-test_git.bb b/meta/recipes-core/musl/libc-test_git.bb index 15a2ce42f7..d9999ec377 100644 --- a/meta/recipes-core/musl/libc-test_git.bb +++ b/meta/recipes-core/musl/libc-test_git.bb @@ -36,14 +36,13 @@ RDEPENDS:${PN} = " \ RDEPENDS:${PN}-ptest = " \ ${PN} \ + libatomic-staticdev \ locale-base-en-us \ musl-staticdev \ sed \ tzdata \ " -RDEPENDS:${PN}-ptest:append:toolchain-gcc = " libatomic-staticdev" - install_path = "/opt/${PN}" FILES:${PN} += "${install_path}/*"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#246724): https://lists.openembedded.org/g/openembedded-core/message/246724 Mute This Topic: https://lists.openembedded.org/mt/121466867/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
