Mold linker and clang 15: /usr/bin/ld: cannot find -lLLVM-14: No such file or directory

Ilmari Lauhakangas ilmari.lauhakangas at
Thu Jan 19 14:14:53 UTC 2023

After upgrading from llvm 14 to 15 today, I got this:

[GEN] compilerplugins/clang/sharedvisitor/analyzer
/usr/bin/ld: cannot find -lLLVM-14: No such file or directory
clang-15: error: linker command failed with exit code 1 (use -v to see 
make[1]: *** 
/home/user/libreoffice/compilerplugins/clang/sharedvisitor/analyzer] Error 1

The problem was solved by switching to --enable-ld=lld

So why is /usr/bin/ld giving its silly outdated opinion here? All the 
CLANG_VERSION checks failed as a result. Looking at the makefile it is 
not obvious to me.


More information about the LibreOffice mailing list