https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sci-astronomy/wcslib-7.4 fails to compile. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses CLANG as a compiler and LLD as a linker
Created attachment 762536 [details] build.log build log and emerge --info
Created attachment 762537 [details] 1-config.log 1-config.log
Seems that the problem comes from the order of the library paths. The order is the next: -L/lib64 -L/usr/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1 -L/usr/lib64 -L/usr/x86_64-pc-linux-gnu/lib bfd it finds the 32 bit version of the libraries and prints a warning (eg: "skipping incompatible /usr/lib/libm.a when searching for -lm"), but lld directly prints an error. Moving /usr/lib64 before /usr/lib solves this issue, although I don't know how to accomplish that with econf.
*** Bug 874735 has been marked as a duplicate of this bug. ***