https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sci-mathematics/octave-6.4.0 fails to link with LLD because of /usr/lib in the link command line. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses CLANG as a compiler and LLD as a linker This PR gives an idea about a fix: https://github.com/PhotoFlare/photoflare/pull/248/files.
Created attachment 763315 [details] build.log.xz build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Error(s) that match a know pattern: ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../lib64/crti.o is incompatible with elf32-i386
-L/usr/lib is getting added to the linker flags somewhere, but it's not obvious how. It could be from the bundled gnulib macros, or from some pkg-config --libs. If you can dig into the logs for this and find out exactly where -L/usr/lib (and even -L/lib !) is coming from, I'll try to fix it.
We're two major versions beyond 6.4.0 now, so (if this bug still exists) it would be better to have a report against octave-8.x.