[LLVMbugs] [Bug 11886] New: `llvm-config --libs` includes libraries for all targets, even if only some of those was built
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jan 29 23:25:13 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11886
Bug #: 11886
Summary: `llvm-config --libs` includes libraries for all
targets, even if only some of those was built
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llvm-config
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ojab at ojab.ru
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cmake ../llvm -DLLVM_TARGETS_TO_BUILD=X86 -DBUILD_SHARED_LIBS=ON && make
install
…
$ llvm-config --libs
-lLLVMAsmParser -lLLVMHexagonCodeGen -lLLVMHexagonDesc -lLLVMHexagonInfo
-lLLVMMipsAsmParser -lLLVMMipsCodeGen -lLLVMMipsDesc -lLLVMMipsInfo
-lLLVMMipsAsmPrinter -lLLVMInstrumentation -lLLVMLinker -lLLVMArchive
-lLLVMBitReader -lLLVMXCoreCodeGen -lLLVMXCoreDesc -lLLVMXCoreInfo
-lLLVMDebugInfo -lLLVMJIT -lLLVMMSP430CodeGen -lLLVMMSP430Desc -lLLVMMSP430Info
-lLLVMMSP430AsmPrinter -lLLVMipo -lLLVMBitWriter -lLLVMSparcCodeGen
-lLLVMSparcDesc -lLLVMSparcInfo -lLLVMTableGen -lLLVMPowerPCCodeGen
-lLLVMPowerPCDesc -lLLVMPowerPCInfo -lLLVMPowerPCAsmPrinter
-lLLVMCellSPUCodeGen -lLLVMCellSPUDesc -lLLVMCellSPUInfo -lLLVMCBackendCodeGen
-lLLVMCBackendInfo -lLLVMARMDisassembler -lLLVMARMAsmParser -lLLVMARMCodeGen
-lLLVMARMDesc -lLLVMARMAsmPrinter -lLLVMARMInfo -lLLVMX86AsmParser
-lLLVMX86Disassembler -lLLVMX86CodeGen -lLLVMX86Desc -lLLVMX86Info
-lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMBlazeAsmParser
-lLLVMMBlazeDisassembler -lLLVMMBlazeCodeGen -lLLVMMBlazeDesc -lLLVMMBlazeInfo
-lLLVMMBlazeAsmPrinter -lLLVMMCDisassembler -lLLVMInterpreter -lLLVMPTXCodeGen
-lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMCodeGen
-lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa
-lLLVMAnalysis -lLLVMPTXDesc -lLLVMPTXInfo -lLLVMPTXAsmPrinter
-lLLVMCppBackendCodeGen -lLLVMCppBackendInfo -lgtest_main -lgtest -lLLVMMCJIT
-lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMTarget -lLLVMMC -lLLVMObject
-lLLVMCore -lLLVMSupport
Which leads to errors like https://bugs.freedesktop.org/show_bug.cgi?id=44564
because of using `llvm-config --libs` in LDFLAGS
mklib: Making Linux shared library: r600_dri.so.tmp
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../x86_64-unknown-linux-gnu/bin/ld:
cannot find -lLLVMHexagonCodeGen
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/../../../../x86_64-unknown-linux-gnu/bin/ld:
cannot find -lLLVMHexagonDesc
I assume that this can be expected behavior and desired libs should be chosen
using fine-grained requests like `llvm-config --libs engine bitwriter`, not
sure though.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list