I'm having trouble to compile sys-devel/mold on a musl chroot, and seems this will be a problem for all packages that build and link against libtbb.so libs, if this is attempted with a musl based env: ldd /usr/lib/libtbb.so.12.5 ldd (0x7f91aa6000) libstdc++.so.6 => /usr/lib/gcc/aarch64-gentoo-linux-musl/10.3.0/libstdc++.so.6 (0x7f9187b000) libgcc_s.so.1 => /usr/lib/gcc/aarch64-gentoo-linux-musl/10.3.0/libgcc_s.so.1 (0x7f91857000) libc.so => ldd (0x7f91aa6000) Error relocating /usr/lib/libtbb.so.12.5: swapcontext: symbol not found Error relocating /usr/lib/libtbb.so.12.5: getcontext: symbol not found Error relocating /usr/lib/libtbb.so.12.5: makecontext: symbol not found the symbols are wanted in the headers: https://github.com/oneapi-src/oneTBB/blob/master/src/tbb/co_context.h#L324 I've often seen that devs stub this stuff out of the way with glibc specific ifdefs, is that an option here?
Created attachment 762634 [details] output from emerge --info
We need to force linking against libucontext.
never heard about that lib, but guess what happens when you compile it: ldd /usr/lib/libucontext_posix.so.1 ldd (0x7fbb773000) libc.so => ldd (0x7fbb773000) Error relocating /usr/lib/libucontext_posix.so.1: libucontext_getcontext: symbol not found Error relocating /usr/lib/libucontext_posix.so.1: libucontext_swapcontext: symbol not found Error relocating /usr/lib/libucontext_posix.so.1: libucontext_setcontext: symbol not found
for some more clues on the problem, read the github issue please.
Thanks for reporting that.
I'll call this a dupe of the other one as the other one got tagged with the fix commit. *** This bug has been marked as a duplicate of bug 832700 ***