The package fails to compile because of relocations, i.e. ld.lld: error: relocation R_X86_64_PC32 cannot be used against symbol '__cxa_unexpected_handler'; recompile with -fPIC >>> defined in /usr/lib/libc++abi.a(cxa_default_handlers.cpp.o) >>> referenced by cxa_default_handlers.cpp.o:(std::set_unexpected(void (*)())) in archive /usr/lib/libc++abi.a Happy to test and provide information for whatever is needed Reproducible: Always Steps to Reproduce: 1. Have a musl+Clang system 2. Try to compile openjdk 3. Wait Actual Results: Build failure Expected Results: Compiled and installed succesfully I tried to compile it myself after -bin version failed to run a program that I needed Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: /opt/openjdk-bin-17.0.8.1_p1/lib/libawt_xawt.so: Error relocating /opt/openjdk-bin-17.0.8.1_p1/lib/libawt_xawt.so: __strdup: symbol not found [in thread "main"] Again, happy to test and provide any information
Recompiled with GCC and there were no errors, should this be added to the Clang tracker perhaps?
Please always attach the full build.log (compressed if necessary) and emerge --info.
Created attachment 881199 [details] emerge --info
Created attachment 881201 [details] Build log
This also happens in a glibc + llvm profile for dev-java/openjdk-21.0.4_p7 with sys-devel/clang-18.1.8