dev-libs/elfutils fails to build specifically on aarch64/musl with error: invalid operands to binary & (have 'long double' and 'unsigned int') WindRiver released a very small and simple patch for this 2 years ago for OpenEmbedded, which applies and fixes the build: http://cgit.openembedded.org/openembedded-core/plain/meta/recipes-devtools/elfutils/files/0006-Fix-build-on-aarch64-musl.patch
Patch has been in ::musl for a while and is now in ::gentoo: https://github.com/gentoo/gentoo/commit/b33b10eb76f88a2d41f66ddc7184cb0e783e3d45. Upstream bug is https://www.sourceware.org/bugzilla/show_bug.cgi?id=25832.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71828c9b2b7e1c8c5c90085694fe2a50b6fac602 commit 71828c9b2b7e1c8c5c90085694fe2a50b6fac602 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-11-09 02:55:39 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-09 02:55:39 +0000 dev-libs/elfutils: add bug link to arm64 musl patch Bug: https://bugs.gentoo.org/693772 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch | 3 +++ 1 file changed, 3 insertions(+)