Building ldc without root access, cannot find llvm
Andrew Brown via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Tue May 26 05:50:14 PDT 2015
Hi,
I'm trying to build ldc on a cluster, so I have no root access to
install llvm or the required libraries in the usual places. I've
installed both in my home directory, and I think llvm-config is
working OK, the following commands give the following output:
/home/abrown/software/ldc/llvm/bin/llvm-config --version
3.5.0
/home/abrown/software/ldc/llvm/bin/llvm-config --components
all all-targets analysis asmparser asmprinter bitreader
bitwriter codegen core debuginfo engine executionengine
instcombine instrumentation interpreter ipa ipo irreader jit
lineeditor linker lto mc mcanalysis mcdisassembler mcjit mcparser
native nativecodegen objcarcopts object option profiledata
runtimedyld scalaropts selectiondag support tablegen target
transformutils vectorize x86 x86asmparser x86asmprinter
x86codegen x86desc x86disassembler x86info x86utils
But when it comes to running cmake, I don't think it's finding
llvm:
cmake -L -DLLVM_ROOT_DIR="/home/abrown/software/ldc/llvm/"
-DLLVM_CONFIG="/home/abrown/software/ldc/llvm/bin"
-DLIBCONFIG_LIBRARY="/home/abrown/software/ldc/lib"
-DLIBCONFIG_INCLUDE_DIR="/home/abrown/software/ldc/lib" ..
CMake Error at cmake/Modules/FindLLVM.cmake:141 (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:175 (llvm_set_libs)
CMakeLists.txt:18 (find_package)
CMake Error at
/software/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:136
(message):
Could NOT find LLVM (missing: LLVM_ROOT_DIR LLVM_HOST_TARGET)
(Required is
at least version "3.1")
Call Stack (most recent call first):
/software/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:343
(_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindLLVM.cmake:197
(find_package_handle_standard_args)
CMakeLists.txt:18 (find_package)
-- Configuring incomplete, errors occurred!
See also
"/home/abrown/software/ldc/ldc/build/CMakeFiles/CMakeOutput.log".
-- Cache values
CMAKE_BUILD_TYPE:STRING=
CMAKE_INSTALL_PREFIX:PATH=/usr/local
LLVM_CONFIG:FILEPATH=/home/abrown/software/ldc/llvm/bin
I've also tried setting LLVM_ROOT_DIR and LLVM_CONFIG as
environment variables, but that doesn't work.
Could anyone help me out with where I'm going wrong?
Thanks very much
Andrew Brown
More information about the digitalmars-d-ldc
mailing list