Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Error in FindLLVM.cmake #148

Closed
SiegeLord opened this Issue · 4 comments

2 participants

@SiegeLord

Configuring 8d06145 with CMake 2.8.2 and LLVM 3.0 yields the following error:

llvm-config: unknown component name: x86 sparc powerpc alpha arm mips cellspu xcore msp430 systemz blackfin cbackend cppbackend mblaze ptx
CMake Error at cmake/Modules/FindLLVM.cmake:77 (string):
  string sub-command REGEX, mode MATCHALL needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  cmake/Modules/FindLLVM.cmake:95 (llvm_set_libs)
  CMakeLists.txt:12 (find_package)


CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
  REQUIRED_VARS (missing: VERSION_VAR)
Call Stack (most recent call first):
  cmake/Modules/FindLLVM.cmake:104 (find_package_handle_standard_args)
  CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!
@redstar redstar was assigned
@redstar
Owner

It looks like the variable tmplibs is empty because of a failure of llvm-config.

Please, could you provide me the output of following commands:

  • llvm-config --libdir
  • llvm-config --targets-built
  • llvm-config --libfiles
  • llvm-config --components

I will try to figure out what's going wrong. Thank you.

@SiegeLord
$ llvm-config --libdir
/usr/local/lib
$ llvm-config --targets-built
x86 sparc powerpc alpha arm mips cellspu xcore msp430 systemz blackfin cbackend cppbackend mblaze ptx
$ llvm-config --libfiles
/usr/local/lib/libLLVMXCoreCodeGen.a /usr/local/lib/libLLVMTableGen.a /usr/local/lib/libLLVMSystemZCodeGen.a /usr/local/lib/libLLVMSparcCodeGen.a /usr/local/lib/libLLVMPTXCodeGen.a /usr/local/lib/libLLVMPowerPCCodeGen.a /usr/local/lib/libLLVMPowerPCAsmPrinter.a /usr/local/lib/libLLVMMSP430CodeGen.a /usr/local/lib/libLLVMMSP430AsmPrinter.a /usr/local/lib/libLLVMMipsCodeGen.a /usr/local/lib/libLLVMMipsAsmPrinter.a /usr/local/lib/libLLVMMCJIT.a /usr/local/lib/libLLVMRuntimeDyld.a /usr/local/lib/libLLVMObject.a /usr/local/lib/libLLVMMCDisassembler.a /usr/local/lib/libLLVMXCoreDesc.a /usr/local/lib/libLLVMXCoreInfo.a /usr/local/lib/libLLVMSystemZDesc.a /usr/local/lib/libLLVMSystemZInfo.a /usr/local/lib/libLLVMSparcDesc.a /usr/local/lib/libLLVMSparcInfo.a /usr/local/lib/libLLVMPowerPCDesc.a /usr/local/lib/libLLVMPowerPCInfo.a /usr/local/lib/libLLVMPTXDesc.a /usr/local/lib/libLLVMPTXInfo.a /usr/local/lib/libLLVMPTXAsmPrinter.a /usr/local/lib/libLLVMMipsDesc.a /usr/local/lib/libLLVMMipsInfo.a /usr/local/lib/libLLVMMSP430Desc.a /usr/local/lib/libLLVMMSP430Info.a /usr/local/lib/libLLVMMBlazeDisassembler.a /usr/local/lib/libLLVMMBlazeAsmParser.a /usr/local/lib/libLLVMMBlazeCodeGen.a /usr/local/lib/libLLVMMBlazeDesc.a /usr/local/lib/libLLVMMBlazeAsmPrinter.a /usr/local/lib/libLLVMMBlazeInfo.a /usr/local/lib/libLLVMLinker.a /usr/local/lib/libLLVMipo.a /usr/local/lib/libLLVMInterpreter.a /usr/local/lib/libLLVMInstrumentation.a /usr/local/lib/libLLVMJIT.a /usr/local/lib/libLLVMExecutionEngine.a /usr/local/lib/libLLVMDebugInfo.a /usr/local/lib/libLLVMCppBackend.a /usr/local/lib/libLLVMCppBackendInfo.a /usr/local/lib/libLLVMCellSPUCodeGen.a /usr/local/lib/libLLVMCellSPUDesc.a /usr/local/lib/libLLVMCellSPUInfo.a /usr/local/lib/libLLVMCBackend.a /usr/local/lib/libLLVMCBackendInfo.a /usr/local/lib/libLLVMBlackfinCodeGen.a /usr/local/lib/libLLVMBlackfinDesc.a /usr/local/lib/libLLVMBlackfinInfo.a /usr/local/lib/libLLVMBitWriter.a /usr/local/lib/libLLVMX86Disassembler.a /usr/local/lib/libLLVMX86AsmParser.a /usr/local/lib/libLLVMX86CodeGen.a /usr/local/lib/libLLVMX86Desc.a /usr/local/lib/libLLVMX86AsmPrinter.a /usr/local/lib/libLLVMX86Utils.a /usr/local/lib/libLLVMX86Info.a /usr/local/lib/libLLVMAsmParser.a /usr/local/lib/libLLVMARMDisassembler.a /usr/local/lib/libLLVMARMAsmParser.a /usr/local/lib/libLLVMARMCodeGen.a /usr/local/lib/libLLVMARMDesc.a /usr/local/lib/libLLVMARMAsmPrinter.a /usr/local/lib/libLLVMARMInfo.a /usr/local/lib/libLLVMArchive.a /usr/local/lib/libLLVMBitReader.a /usr/local/lib/libLLVMAlphaCodeGen.a /usr/local/lib/libLLVMSelectionDAG.a /usr/local/lib/libLLVMAsmPrinter.a /usr/local/lib/libLLVMMCParser.a /usr/local/lib/libLLVMCodeGen.a /usr/local/lib/libLLVMScalarOpts.a /usr/local/lib/libLLVMInstCombine.a /usr/local/lib/libLLVMTransformUtils.a /usr/local/lib/libLLVMipa.a /usr/local/lib/libLLVMAnalysis.a /usr/local/lib/libLLVMTarget.a /usr/local/lib/libLLVMCore.a /usr/local/lib/libLLVMAlphaDesc.a /usr/local/lib/libLLVMAlphaInfo.a /usr/local/lib/libLLVMMC.a /usr/local/lib/libLLVMSupport.a
$ llvm-config --components                                                                                                                  
all alpha alphacodegen alphadesc alphainfo analysis archive arm armasmparser armasmprinter armcodegen armdesc armdisassembler arminfo asmparser asmprinter backend bitreader bitwriter blackfin blackfincodegen blackfindesc blackfininfo cbackend cbackendinfo cellspu cellspucodegen cellspudesc cellspuinfo codegen core cppbackend cppbackendinfo debuginfo engine executionengine instcombine instrumentation interpreter ipa ipo jit linker mblaze mblazeasmparser mblazeasmprinter mblazecodegen mblazedesc mblazedisassembler mblazeinfo mc mcdisassembler mcjit mcparser mips mipsasmprinter mipscodegen mipsdesc mipsinfo msp430 msp430asmprinter msp430codegen msp430desc msp430info native nativecodegen object powerpc powerpcasmprinter powerpccodegen powerpcdesc powerpcinfo ptx ptxasmprinter ptxcodegen ptxdesc ptxinfo runtimedyld scalaropts selectiondag sparc sparccodegen sparcdesc sparcinfo support systemz systemzcodegen systemzdesc systemzinfo tablegen target transformutils x86 x86asmparser x86asmprinter x86codegen x86desc x86disassembler x86info x86utils xcore xcorecodegen xcoredesc xcoreinfo

Oh yeah, and this is on a 64 bit system.

@redstar
Owner

I can reproduce this error. Thanks for the output.

@redstar redstar closed this in 9dad0a6
@redstar
Owner

The error did not occur in my build environment because I used a wrapper script to execute llvm-config. I need this to switch between 3.0, 3.1 and trunk versions of LLVM. But this additional wrapper script performed the string-to-list conversion which I now added to the cmake file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.