[llvm-dev] Hi everyone

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[llvm-dev] Hi everyone

Tsur Herman via llvm-dev
I try to compile llvm with ExternalProject_Add like the following:


set(LLVM_EXTRA_ARGS
     -DLLVM_INCLUDE_TESTS=OFF
     -DLLVM_INCLUDE_EXAMPLES=OFF
     -DLLVM_ENABLE_TERMINFO=OFF
     -DLLVM_BUILD_EXAMPLES=ON
     -DLLVM_ENABLE_DOXYGEN=ON
)
set(LLVM_GENERATOR "Unix Makefiles")

ExternalProject_Add(external_llvm
     URL ${LLVM_URL}
     DOWNLOAD_DIR download/llvm
     URL_HASH MD5=${LLVM_HASH}
     CMAKE_GENERATOR ${LLVM_GENERATOR}
     PREFIX ${OUTPUT_PATH}/llvm
     CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${OUTPUT_PATH}/llvm
${DEFAULT_CMAKE_FLAGS} ${LLVM_EXTRA_ARGS}
     INSTALL_DIR ${OUTPUT_PATH}/llvm
     LOG_INSTALL 1
)

The error message i get is:

stuv@workstation:/media/stuv/linux-projects/programming/bsEdit/build$
make -j4
-- Creating a Linux Release build.
-- WITH_LIB_LLVM
-- Configuring done
-- Generating done
-- Build files have been written to:
/media/stuv/linux-projects/programming/bsEdit/build
[ 12%] Performing configure step for 'external_llvm'
CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy):
   The OLD behavior for policy CMP0051 will be removed from a future version
   of CMake.

   The cmake-policies(7) manual explains that the OLD behaviors of all
   policies are deprecated and that a policy should be set to OLD only under
   specific short-term circumstances.  Projects should be ported to the NEW
   behavior and not rely on setting a policy to OLD.


-- Native target architecture is X86
-- Threads enabled.
-- Doxygen enabled.
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") found
components:  doxygen dot
-- Go bindings disabled.
-- OCaml bindings enabled.
-- Found Python module pygments
-- Found Python module pygments.lexers.c_cpp
-- Found Python module yaml
-- LLVM host triple: x86_64-unknown-linux-gnu
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Linker detection: GNU ld
-- Targeting X86
-- Configuring done
-- Generating done
-- Build files have been written to:
/media/stuv/linux-projects/programming/bsEdit/build_files/Release/llvm/src/external_llvm-build
[ 25%] Performing build step for 'external_llvm'
[  0%] Built target LLVMDemangle
[  1%] Built target LLVMTableGen
[  1%] Built target LLVMBinaryFormat
[  1%] Built target LLVMHello_exports
[  4%] Built target obj.llvm-tblgen
[  4%] Built target llvm_vcsrevision_h
[ 11%] Built target LLVMSupport
[ 11%] Built target LLVMMCParser
[ 12%] Built target LLVMMCDisassembler
[ 13%] Built target LLVMObjectYAML
[ 13%] Built target LLVMOption
[ 16%] Built target LLVMMC
[ 16%] Built target LLVMDebugInfoMSF
[ 17%] Built target LLVMDebugInfoDWARF
[ 17%] Built target LLVMSymbolize
[ 20%] Built target LLVMDebugInfoCodeView
[ 20%] Built target LLVMLineEditor
[ 20%] Built target LLVMTestingSupport
[ 21%] Built target LLVMWindowsManifest
[ 21%] Built target llvm-PerfectShuffle
[ 21%] Built target FileCheck
[ 26%] Built target LLVMDebugInfoPDB
[ 26%] Built target yaml-bench
[ 26%] Built target count
[ 26%] Built target not
[ 26%] Built target ocaml_make_directory
[ 26%] Built target BugpointPasses_exports
[ 26%] Built target LTO_exports
[ 26%] Built target llvm-config
[ 26%] Built target llvm-tblgen
[ 26%] Built target llvm-mcmarkup
[ 26%] Built target llvm-cxxfilt
[ 26%] Built target AttributeCompatFuncTableGen
[ 27%] Built target intrinsics_gen
[ 26%] Built target DllOptionsTableGen
[ 27%] Built target LibOptionsTableGen
[ 28%] Built target CvtResTableGen
[ 28%] Built target MtTableGen
[ 28%] Built target RcTableGen
[ 29%] Built target LLVMIRReader
[ 29%] Built target LLVMFuzzMutate
[ 32%] Built target LLVMCore
[ 33%] Built target LLVMMIRParser
[ 35%] Built target LLVMAsmPrinter
[ 37%] Built target LLVMSelectionDAG
[ 37%] Built target LLVMBitReader
[ 38%] Built target LLVMGlobalISel
[ 39%] Built target LLVMBitWriter
[ 40%] Built target LLVMInstrumentation
[ 40%] Built target LLVMInstCombine
[ 44%] Built target LLVMTransformUtils
[ 46%] Built target LLVMipo
[ 46%] Built target LLVMVectorize
[ 46%] Built target LLVMHello
[ 46%] Built target LLVMObjCARCOpts
[ 49%] Built target LLVMCoroutines
[ 51%] Built target LLVMScalarOpts
[ 52%] Built target LLVMLinker
[ 62%] Built target LLVMCodeGen
[ 62%] Built target LLVMLTO
[ 63%] Built target LLVMExecutionEngine
[ 65%] Built target LLVMObject
[ 65%] Built target LLVMMCJIT
[ 66%] Built target LLVMInterpreter
[ 67%] Built target LLVMOrcJIT
[ 68%] Built target LLVMRuntimeDyld
[ 68%] Built target LLVMTarget
[ 69%] Built target X86CommonTableGen
[ 69%] Built target LLVMAsmParser
[ 69%] Built target LLVMProfileData
[ 70%] Built target LLVMCoverage
[ 75%] Built target LLVMAnalysis
[ 75%] Built target LLVMPasses
[ 75%] Built target LLVMDlltoolDriver
[ 75%] Built target LLVMLibDriver
[ 75%] Built target LLVMXRay
Copying OCaml library component llvm.mli to intermediate area
Copying OCaml library component llvm.cma to intermediate area
[ 75%] Built target llvm-profdata
[ 75%] Built target llvm-as
[ 75%] Built target lli-child-target
Copying OCaml library component libllvm.a to intermediate area
[ 76%] Built target llvm-bcanalyzer
Copying OCaml library component llvm.cmxa to intermediate area
[ 77%] Built target llvm-cat
[ 77%] Built target LLVMCFIVerify
Copying OCaml library component llvm.a to intermediate area
[ 78%] Built target llvm-cov
Copying OCaml library component llvm.cmi to intermediate area
[ 78%] Built target llvm-cvtres
[ 78%] Built target llvm-demangle-fuzzer
Copying OCaml library component llvm.cmx to intermediate area
[ 79%] Built target llvm-diff
[ 80%] Built target llvm-dis
[ 80%] Built target ocaml_llvm
[ 80%] Built target llvm-extract
[ 80%] Built target llvm-link
[ 80%] Built target llvm-mt
[ 80%] Built target llvm-modextract
[ 80%] Built target llvm-objcopy
[ 80%] Built target llvm-opt-report
[ 80%] Built target llvm-rc
[ 80%] Built target llvm-size
[ 81%] Built target llvm-readobj
[ 82%] Built target llvm-special-case-list-fuzzer
[ 82%] Built target llvm-split
[ 82%] Built target llvm-stress
[ 84%] Built target llvm-pdbutil
[ 84%] Built target llvm-strings
[ 84%] Built target sanstats
[ 84%] Built target verify-uselistorder
[ 84%] Built target llvm-symbolizer
[ 84%] Built target obj2yaml
[ 85%] Built target LLVMX86AsmParser
[ 85%] Built target yaml2obj
[ 86%] Built target LLVMX86Disassembler
[ 86%] Built target LLVMX86Info
[ 86%] Built target LLVMX86AsmPrinter
[ 86%] Built target LLVMX86Desc
[ 86%] Built target LLVMX86Utils
Copying OCaml library component llvm_analysis.mli to intermediate area
Copying OCaml library component llvm_bitreader.mli to intermediate area
Copying OCaml library component llvm_bitwriter.mli to intermediate area
Copying OCaml library component llvm_analysis.cma to intermediate area
Copying OCaml library component llvm_bitreader.cma to intermediate area
Copying OCaml library component llvm_bitwriter.cma to intermediate area
Copying OCaml library component libllvm_analysis.a to intermediate area
Copying OCaml library component libllvm_bitwriter.a to intermediate area
Copying OCaml library component llvm_analysis.cmxa to intermediate area
[ 89%] Built target LLVMX86CodeGen
Copying OCaml library component libllvm_bitreader.a to intermediate area
Copying OCaml library component llvm_bitwriter.cmxa to intermediate area
Copying OCaml library component llvm_analysis.a to intermediate area
Copying OCaml library component llvm_bitwriter.a to intermediate area
Copying OCaml library component llvm_bitreader.cmxa to intermediate area
Copying OCaml library component llvm_irreader.mli to intermediate area
Copying OCaml library component llvm_analysis.cmi to intermediate area
Copying OCaml library component llvm_bitwriter.cmi to intermediate area
Copying OCaml library component llvm_bitreader.a to intermediate area
Copying OCaml library component llvm_analysis.cmx to intermediate area
Copying OCaml library component llvm_bitwriter.cmx to intermediate area
Copying OCaml library component llvm_irreader.cma to intermediate area
Copying OCaml library component llvm_bitreader.cmi to intermediate area
[ 90%] Built target ocaml_llvm_analysis
Copying OCaml library component libllvm_irreader.a to intermediate area
[ 91%] Built target ocaml_llvm_bitwriter
Copying OCaml library component llvm_bitreader.cmx to intermediate area
Copying OCaml library component llvm_irreader.cmxa to intermediate area
Copying OCaml library component llvm_linker.mli to intermediate area
[ 91%] Built target ocaml_llvm_bitreader
Copying OCaml library component llvm_target.mli to intermediate area
Copying OCaml library component llvm_irreader.a to intermediate area
Copying OCaml library component llvm_linker.cma to intermediate area
Copying OCaml library component llvm_target.cma to intermediate area
Copying OCaml library component llvm_irreader.cmi to intermediate area
Copying OCaml library component llvm_ipo.mli to intermediate area
Copying OCaml library component libllvm_linker.a to intermediate area
Copying OCaml library component llvm_ipo.cma to intermediate area
Copying OCaml library component llvm_irreader.cmx to intermediate area
Copying OCaml library component llvm_linker.cmxa to intermediate area
Copying OCaml library component libllvm_ipo.a to intermediate area
[ 92%] Built target ocaml_llvm_irreader
Copying OCaml library component libllvm_target.a to intermediate area
Copying OCaml library component llvm_linker.a to intermediate area
Copying OCaml library component llvm_ipo.cmxa to intermediate area
Copying OCaml library component llvm_target.cmxa to intermediate area
Copying OCaml library component llvm_linker.cmi to intermediate area
Copying OCaml library component llvm_passmgr_builder.mli to intermediate
area
Copying OCaml library component llvm_ipo.a to intermediate area
Copying OCaml library component llvm_target.a to intermediate area
Copying OCaml library component llvm_linker.cmx to intermediate area
Copying OCaml library component llvm_passmgr_builder.cma to intermediate
area
Copying OCaml library component llvm_ipo.cmi to intermediate area
Copying OCaml library component llvm_target.cmi to intermediate area
[ 92%] Built target ocaml_llvm_linker
Copying OCaml library component libllvm_passmgr_builder.a to
intermediate area
Copying OCaml library component llvm_ipo.cmx to intermediate area
Copying OCaml library component llvm_passmgr_builder.cmxa to
intermediate area
Copying OCaml library component llvm_scalar_opts.mli to intermediate area
Copying OCaml library component llvm_passmgr_builder.a to intermediate area
Copying OCaml library component llvm_scalar_opts.cma to intermediate area
[ 92%] Built target ocaml_llvm_ipo
Copying OCaml library component llvm_target.cmx to intermediate area
Copying OCaml library component llvm_passmgr_builder.cmi to intermediate
area
Copying OCaml library component libllvm_scalar_opts.a to intermediate area
[ 92%] Built target ocaml_llvm_target
Copying OCaml library component llvm_transform_utils.mli to intermediate
area
Copying OCaml library component llvm_passmgr_builder.cmx to intermediate
area
Copying OCaml library component llvm_scalar_opts.cmxa to intermediate area
Copying OCaml library component llvm_transform_utils.cma to intermediate
area
[ 92%] Built target ocaml_llvm_passmgr_builder
Copying OCaml library component llvm_scalar_opts.a to intermediate area
Copying OCaml library component libllvm_transform_utils.a to
intermediate area
Copying OCaml library component llvm_scalar_opts.cmi to intermediate area
Copying OCaml library component llvm_vectorize.mli to intermediate area
Copying OCaml library component llvm_executionengine.mli to intermediate
area
Copying OCaml library component llvm_transform_utils.cmxa to
intermediate area
Copying OCaml library component llvm_scalar_opts.cmx to intermediate area
Copying OCaml library component llvm_vectorize.cma to intermediate area
Copying OCaml library component llvm_executionengine.cma to intermediate
area
Copying OCaml library component llvm_transform_utils.a to intermediate area
[ 93%] Built target ocaml_llvm_scalar_opts
Copying OCaml library component libllvm_vectorize.a to intermediate area
Copying OCaml library component libllvm_executionengine.a to
intermediate area
Copying OCaml library component llvm_transform_utils.cmi to intermediate
area
Copying OCaml library component llvm_executionengine.cmxa to
intermediate area
Copying OCaml library component llvm_vectorize.cmxa to intermediate area
Copying OCaml library component llvm_transform_utils.cmx to intermediate
area
[ 93%] Built target LTO
Copying OCaml library component llvm_executionengine.a to intermediate area
[ 94%] Built target ocaml_llvm_transform_utils
Copying OCaml library component llvm_executionengine.cmi to intermediate
area
[ 94%] Built target llvm-ar
Copying OCaml library component llvm_vectorize.a to intermediate area
Copying OCaml library component llvm_executionengine.cmx to intermediate
area
[ 94%] Built target llvm-lto
Copying OCaml library component llvm_vectorize.cmi to intermediate area
[ 94%] Built target ocaml_llvm_executionengine
Copying OCaml library component llvm_vectorize.cmx to intermediate area
[ 95%] Built target bugpoint
[ 95%] Built target ocaml_llvm_vectorize
[ 95%] Built target llc
[ 95%] Built target llvm-dsymutil
[ 95%] Built target lli
[ 95%] Built target llvm-cxxdump
[ 95%] Built target llvm-cfi-verify
[ 95%] Built target llvm-dwarfdump
[ 95%] Built target llvm-c-test
[ 96%] Built target llvm-dwp
[ 96%] Built target llvm-isel-fuzzer
[ 97%] Built target llvm-mc
[ 97%] Built target llvm-lto2
[ 97%] Built target llvm-nm
[ 97%] Built target llvm-readelf
[ 97%] Built target llvm-opt-fuzzer
[ 97%] Built target llvm-rtdyld
[ 98%] Built target llvm-objdump
[ 99%] Built target llvm-xray
Copying OCaml library component llvm_all_backends.mli to intermediate area
[ 99%] Built target sancov
[100%] Built target opt
Copying OCaml library component llvm_X86.mli to intermediate area
Copying OCaml library component llvm_all_backends.cma to intermediate area
[100%] Built target llvm-dlltool
[100%] Built target llvm-ranlib
Copying OCaml library component libllvm_all_backends.a to intermediate area
[100%] Built target llvm-lib
Copying OCaml library component llvm_X86.cma to intermediate area
Copying OCaml library component llvm_all_backends.cmxa to intermediate area
[100%] Built target BugpointPasses
Copying OCaml library component libllvm_X86.a to intermediate area
Copying OCaml library component llvm_all_backends.a to intermediate area
Copying OCaml library component llvm_all_backends.cmi to intermediate area
Copying OCaml library component llvm_X86.cmxa to intermediate area
Copying OCaml library component llvm_X86.a to intermediate area
Copying OCaml library component llvm_all_backends.cmx to intermediate area
Copying OCaml library component llvm_X86.cmi to intermediate area
[100%] Built target ocaml_llvm_all_backends
Copying OCaml library component llvm_X86.cmx to intermediate area
[100%] Built target ocaml_llvm_X86
[ 37%] Performing install step for 'external_llvm'
CMake Error at
/media/stuv/linux-projects/programming/bsEdit/build_files/Release/llvm/src/external_llvm-stamp/external_llvm-install-Release.cmake:49
(message):
   Command failed: 2

    'make' 'install'

   See also

/media/stuv/linux-projects/programming/bsEdit/build_files/Release/llvm/src/external_llvm-stamp/external_llvm-install-*.log


CMakeFiles/external_llvm.dir/build.make:73: die Regel für Ziel
„../build_files/Release/llvm/src/external_llvm-stamp/external_llvm-install“
scheiterte
make[2]: ***
[../build_files/Release/llvm/src/external_llvm-stamp/external_llvm-install]
Fehler 1
CMakeFiles/Makefile2:72: die Regel für Ziel
„CMakeFiles/external_llvm.dir/all“ scheiterte
make[1]: *** [CMakeFiles/external_llvm.dir/all] Fehler 2
Makefile:83: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2


The strange thing is that when i compile it on my own it works normaly,
it only doesn't work with ExternalProject_Add..


best reagards

_______________________________________________
LLVM Developers mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev