You are not logged in.

#1 2023-01-19 09:25:08

buovjaga
Member
Registered: 2016-04-16
Posts: 17

[SOLVED] Mold linker looking for llvm 14 after upgrade to 15

After upgrading from llvm 14.0.6 to 15.0.7 today, mold got confused. I got this when trying to build LibreOffice master:

[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

After switching the linker to lld with --enable-ld=lld the build went fine.

Is this a mold packaging issue or something I can fix myself?

Last edited by buovjaga (2023-01-19 17:09:42)

Offline

#2 2023-01-19 09:27:55

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: [SOLVED] Mold linker looking for llvm 14 after upgrade to 15

/usr/bin/ld: cannot find -lLLVM-14: No such file or directory

That is not mold.

Offline

#3 2023-01-19 17:10:10

buovjaga
Member
Registered: 2016-04-16
Posts: 17

Re: [SOLVED] Mold linker looking for llvm 14 after upgrade to 15

Sorry for the noise, this was LibreOffice's build system deceiving me. Running 'make distclean' helped.

Offline

Board footer

Powered by FluxBB