When installing dev-libs/cyrus-sasl on a system that uses clang+lld the package fails to build with a range of errors similar to: ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../lib64/crti.o is incompatible with elf32-i386 ld.lld: error: /usr/lib/llvm/17/bin/../../../../lib/clang/17/lib/linux/clang_rt.crtbegin-x86_64.o is incompatible with elf32-i386 This appears due to the build scripts injecting flags such as -Wl,-rpath -Wl,/usr/lib and -L/usr/lib into some of the commands.
Created attachment 875307 [details] build.log
*** This bug has been marked as a duplicate of bug 887291 ***