https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-libs/simde-0.7.6 fails to compile. Discovered on: amd64 (internal ref: tinderbox_musl) System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Created attachment 887008 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: /usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x1e5dc): undefined reference to `roundevenf' /usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x1ec46): undefined reference to `roundevenf' /usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x1f0d5): undefined reference to `roundevenf' /usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x1fbce): undefined reference to `roundevenf' /usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x203f0): undefined reference to `roundevenf' /usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x214b6): undefined reference to `roundeven' /usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x21b9a): undefined reference to `roundevenf' /usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x21fe7): undefined reference to `roundeven' /usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x22b18): undefined reference to `roundeven' /usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x24de1): undefined reference to `roundeven' /usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x265bc): undefined reference to `roundeven' /usr/lib/gcc/x86_64-gentoo-linux-musl/13/../../../../x86_64-gentoo-linux-musl/bin/ld: round.c:(.text+0x27d97): undefined reference to `roundeven' FAILED: test/x86/avx512/round-emul-c FAILED: test/x86/avx512/round-native-c round.c:(.text+0x1d49c): undefined reference to `roundevenf' round.c:(.text+0x1dae3): undefined reference to `roundevenf' round.c:(.text+0x20985): undefined reference to `roundeven' round.c:(.text+0x23606): undefined reference to `roundeven' collect2: error: ld returned 1 exit status
Hm, apparently this is a new C23 function and musl does not define it "yet". There was a workaround for emscripten wrt $URL which lacks it as well but I don't think it takes musl into consideration. In theory it'll be fixed by a future musl version, but maybe could do a similar workaround meanwhile.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44d553ed0237c6542f39ebf6a5e84c373cf7e176 commit 44d553ed0237c6542f39ebf6a5e84c373cf7e176 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2024-03-08 12:17:06 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2024-03-08 12:28:17 +0000 dev-libs/simde: fix building tests with musl Needs a revbump given this modifies an installed header which otherwise could lead to revdeps failing to build with musl rather than tests. On top of now building, the tests passes fine (llvm-musl). Closes: https://bugs.gentoo.org/926488 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> dev-libs/simde/files/simde-0.7.6-musl.patch | 18 ++++++++++++++++++ .../{simde-0.7.6.ebuild => simde-0.7.6-r1.ebuild} | 4 ++++ 2 files changed, 22 insertions(+)