Re: Mold linker and clang 15: /usr/bin/ld: cannot find -lLLVM-14: No such file or directory
On 19.1.2023 16.24, Christian Lohmaier wrote: On Thu, Jan 19, 2023 at 3:15 PM Ilmari Lauhakangas wrote: 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 FYI: compilerplugins stuff doesn't get wiped with regular make clean, use make compilerplugins-clean or make distclean Indeed, make distclean helped, thanks. Ilmari
Re: Mold linker and clang 15: /usr/bin/ld: cannot find -lLLVM-14: No such file or directory
On Thu, Jan 19, 2023 at 3:15 PM Ilmari Lauhakangas wrote: > > 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 FYI: compilerplugins stuff doesn't get wiped with regular make clean, use make compilerplugins-clean or make distclean ciao Christian
Mold linker and clang 15: /usr/bin/ld: cannot find -lLLVM-14: No such file or directory
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 invocation) make[1]: *** [/home/user/libreoffice/compilerplugins/Makefile-clang.mk:274: /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. Ilmari