[llvm-bugs] [Bug 26075] New: llvm-config not working with shared libs since D15033 tools/llvm-config: improve shared library support

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 8 07:31:52 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26075

            Bug ID: 26075
           Summary: llvm-config not working with shared libs since D15033
                    tools/llvm-config: improve shared library support
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: rivanvx at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

I compiled llvm with:

$ cmake -DBUILD_SHARED_LIBS=ON -DLLVM_LIBDIR_SUFFIX=64 ..
$ make
$ sudo make install

After installation I get:

$ llvm-config --libs
llvm-config: error: component libraries and shared library

llvm-config: error: missing: /usr/local/lib64/libLLVMSupport.a
llvm-config: error: missing: /usr/local/lib64/libLLVMCore.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMC.a
llvm-config: error: missing: /usr/local/lib64/libLLVMBitReader.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMCParser.a
llvm-config: error: missing: /usr/local/lib64/libLLVMObject.a
llvm-config: error: missing: /usr/local/lib64/libLLVMRuntimeDyld.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAnalysis.a
llvm-config: error: missing: /usr/local/lib64/libLLVMTarget.a
llvm-config: error: missing: /usr/local/lib64/libLLVMExecutionEngine.a
llvm-config: error: missing: /usr/local/lib64/libLLVMTransformUtils.a
llvm-config: error: missing: /usr/local/lib64/libLLVMOrcJIT.a
llvm-config: error: missing: /usr/local/lib64/libLLVMBitWriter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMProfileData.a
llvm-config: error: missing: /usr/local/lib64/libLLVMInstrumentation.a
llvm-config: error: missing: /usr/local/lib64/libLLVMInstCombine.a
llvm-config: error: missing: /usr/local/lib64/libLLVMScalarOpts.a
llvm-config: error: missing: /usr/local/lib64/libLLVMCodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMInterpreter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMDebugInfoCodeView.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAsmParser.a
llvm-config: error: missing: /usr/local/lib64/libLLVMIRReader.a
llvm-config: error: missing: /usr/local/lib64/libLLVMLinker.a
llvm-config: error: missing: /usr/local/lib64/libLLVMVectorize.a
llvm-config: error: missing: /usr/local/lib64/libLLVMipo.a
llvm-config: error: missing: /usr/local/lib64/libLLVMPasses.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMCJIT.a
llvm-config: error: missing: /usr/local/lib64/libLLVMX86Utils.a
llvm-config: error: missing: /usr/local/lib64/libLLVMX86AsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMX86Info.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMCDisassembler.a
llvm-config: error: missing: /usr/local/lib64/libLLVMX86Desc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSelectionDAG.a
llvm-config: error: missing: /usr/local/lib64/libLLVMX86CodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMX86AsmParser.a
llvm-config: error: missing: /usr/local/lib64/libLLVMX86Disassembler.a
llvm-config: error: missing: /usr/local/lib64/libLLVMLineEditor.a
llvm-config: error: missing: /usr/local/lib64/libLLVMTableGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMOption.a
llvm-config: error: missing: /usr/local/lib64/libLLVMLibDriver.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMIRParser.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAArch64Utils.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAArch64AsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAArch64Info.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAArch64Desc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAArch64AsmParser.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAArch64CodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAArch64Disassembler.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAMDGPUAsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAMDGPUInfo.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAMDGPUUtils.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAMDGPUDesc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAMDGPUAsmParser.a
llvm-config: error: missing: /usr/local/lib64/libLLVMAMDGPUCodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMARMAsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMARMInfo.a
llvm-config: error: missing: /usr/local/lib64/libLLVMARMDesc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMARMAsmParser.a
llvm-config: error: missing: /usr/local/lib64/libLLVMARMCodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMARMDisassembler.a
llvm-config: error: missing: /usr/local/lib64/libLLVMBPFAsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMBPFInfo.a
llvm-config: error: missing: /usr/local/lib64/libLLVMBPFDesc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMBPFCodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMCppBackendInfo.a
llvm-config: error: missing: /usr/local/lib64/libLLVMCppBackendCodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMHexagonInfo.a
llvm-config: error: missing: /usr/local/lib64/libLLVMHexagonDesc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMHexagonAsmParser.a
llvm-config: error: missing: /usr/local/lib64/libLLVMHexagonCodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMHexagonDisassembler.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMipsAsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMipsInfo.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMipsDesc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMipsAsmParser.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMipsCodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMipsDisassembler.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMSP430AsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMSP430Info.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMSP430Desc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMMSP430CodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMNVPTXAsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMNVPTXInfo.a
llvm-config: error: missing: /usr/local/lib64/libLLVMNVPTXDesc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMNVPTXCodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMPowerPCAsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMPowerPCInfo.a
llvm-config: error: missing: /usr/local/lib64/libLLVMPowerPCDesc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMPowerPCAsmParser.a
llvm-config: error: missing: /usr/local/lib64/libLLVMPowerPCCodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMPowerPCDisassembler.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSparcAsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSparcInfo.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSparcDesc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSparcAsmParser.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSparcCodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSparcDisassembler.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSystemZAsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSystemZInfo.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSystemZDesc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSystemZAsmParser.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSystemZCodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSystemZDisassembler.a
llvm-config: error: missing: /usr/local/lib64/libLLVMXCoreAsmPrinter.a
llvm-config: error: missing: /usr/local/lib64/libLLVMXCoreInfo.a
llvm-config: error: missing: /usr/local/lib64/libLLVMXCoreDesc.a
llvm-config: error: missing: /usr/local/lib64/libLLVMXCoreCodeGen.a
llvm-config: error: missing: /usr/local/lib64/libLLVMXCoreDisassembler.a
llvm-config: error: missing: /usr/local/lib64/libLLVMDebugInfoDWARF.a
llvm-config: error: missing: /usr/local/lib64/libLLVMDebugInfoPDB.a
llvm-config: error: missing: /usr/local/lib64/libLLVMSymbolize.a
llvm-config: error: missing: /usr/local/lib64/libLLVMObjCARCOpts.a
llvm-config: error: missing: /usr/local/lib64/libLLVMLTO.a

llvm-config should be looking for .so files, not .a files.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160108/a2df828d/attachment-0001.html>


More information about the llvm-bugs mailing list