On ubuntu 16.04, I have installed all required packages as stated in ReadMe.rst file (i.e. g++ cmake clang llvm git-core libclang-3.8-dev qtbase5-dev), and I get the following link errors: [ 21%] Linking CXX shared library lib/libclazylib.so /usr/bin/ld: cannot find -lLLVMLTO /usr/bin/ld: cannot find -lLLVMObjCARCOpts /usr/bin/ld: cannot find -lLLVMSymbolize /usr/bin/ld: cannot find -lLLVMDebugInfoPDB /usr/bin/ld: cannot find -lLLVMDebugInfoDWARF /usr/bin/ld: cannot find -lLLVMXCoreDisassembler /usr/bin/ld: cannot find -lLLVMXCoreCodeGen /usr/bin/ld: cannot find -lLLVMXCoreDesc /usr/bin/ld: cannot find -lLLVMXCoreInfo /usr/bin/ld: cannot find -lLLVMXCoreAsmPrinter /usr/bin/ld: cannot find -lLLVMSystemZDisassembler /usr/bin/ld: cannot find -lLLVMSystemZCodeGen /usr/bin/ld: cannot find -lLLVMSystemZAsmParser /usr/bin/ld: cannot find -lLLVMSystemZDesc /usr/bin/ld: cannot find -lLLVMSystemZInfo /usr/bin/ld: cannot find -lLLVMSystemZAsmPrinter /usr/bin/ld: cannot find -lLLVMSparcDisassembler /usr/bin/ld: cannot find -lLLVMSparcCodeGen /usr/bin/ld: cannot find -lLLVMSparcAsmParser /usr/bin/ld: cannot find -lLLVMSparcDesc /usr/bin/ld: cannot find -lLLVMSparcInfo /usr/bin/ld: cannot find -lLLVMSparcAsmPrinter /usr/bin/ld: cannot find -lLLVMPowerPCDisassembler /usr/bin/ld: cannot find -lLLVMPowerPCCodeGen /usr/bin/ld: cannot find -lLLVMPowerPCAsmParser /usr/bin/ld: cannot find -lLLVMPowerPCDesc /usr/bin/ld: cannot find -lLLVMPowerPCInfo /usr/bin/ld: cannot find -lLLVMPowerPCAsmPrinter /usr/bin/ld: cannot find -lLLVMNVPTXCodeGen /usr/bin/ld: cannot find -lLLVMNVPTXDesc /usr/bin/ld: cannot find -lLLVMNVPTXInfo /usr/bin/ld: cannot find -lLLVMNVPTXAsmPrinter /usr/bin/ld: cannot find -lLLVMMSP430CodeGen /usr/bin/ld: cannot find -lLLVMMSP430Desc /usr/bin/ld: cannot find -lLLVMMSP430Info /usr/bin/ld: cannot find -lLLVMMSP430AsmPrinter /usr/bin/ld: cannot find -lLLVMMipsDisassembler /usr/bin/ld: cannot find -lLLVMMipsCodeGen /usr/bin/ld: cannot find -lLLVMMipsAsmParser /usr/bin/ld: cannot find -lLLVMMipsDesc /usr/bin/ld: cannot find -lLLVMMipsInfo [...] Reproducible: Always Steps to Reproduce: 1. on ubuntu 16.04, sudo apt-get install g++ cmake clang llvm git-core libclang-3.8-dev qtbase5-dev 2. cd clazy/ && mkdir build && cd build 3. cmake -DCMAKE_BUILD_TYPE=Release .. 4. make -j8 failure
If you checkout: 9a0e32dde7f67874313583c209d9db3c2a274f00 does it work then ?
9a0e32dde7f67874313583c209d9db3c2a274f00 works fine!!! Would it be possible to create a tag for this version (for others who would experience the same issue), or fix it on the master branch, please? Thank you very much Arnaud
Git commit 8ac6f0c3ba1a9fce3617443ff46c84b2ec5f111c by Sergio Martins. Committed on 07/09/2016 at 09:48. Pushed by smartins into branch 'master'. Fix build on some distros M +1 -0 CMakeLists.txt http://commits.kde.org/clazy/8ac6f0c3ba1a9fce3617443ff46c84b2ec5f111c