<div dir="ltr">Dear all,<br><br>I'm trying to install LLVM with all the projects because I need Clang and the SPIR-V target. I am using cmake like the llvm manual says and it give me this error, could you help me to solve it?<br><br>I am following the steps from this page: <a href="https://llvm.org/docs/GettingStarted.html" rel="noreferrer" target="_blank">https://llvm.org/docs/GettingStarted.html</a><br><br>CMAKE ERROR TRACE:<br><br>enrique@enrique-VirtualBox:~/Escritorio/llvm-project/build$ cmake -DLLVM_ENABLE_PROJECTS='all' -DCMAKE_BUILD_TYPE=Release -G 'Ninja' ../llvm<br>-- clang project is enabled<br>-- clang-tools-extra project is enabled<br>-- compiler-rt project is enabled<br>-- debuginfo-tests project is enabled<br>-- libclc project is enabled<br>-- libcxx project is enabled<br>-- libcxxabi project is enabled<br>-- libunwind project is enabled<br>-- lld project is enabled<br>-- lldb project is enabled<br>-- llgo project is enabled<br>-- openmp project is enabled<br>-- parallel-libs project is enabled<br>-- polly project is enabled<br>-- pstl project is enabled<br>-- Could NOT find Z3: Found unsuitable version "0.0.0", but required is at least "4.7.1" (found Z3_LIBRARIES-NOTFOUND)<br>-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)<br>-- Native target architecture is X86<br>-- Threads enabled.<br>-- Doxygen disabled.<br>-- Go bindings disabled.<br>-- Ninja version: 1.8.2<br>-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)<br>-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)<br>-- OCaml bindings disabled.<br>-- LLVM host triple: x86_64-unknown-linux-gnu<br>-- LLVM default target triple: x86_64-unknown-linux-gnu<br>-- Building with -fPIC<br>-- Constructing LLVMBuild project information<br>-- Linker detection: GNU ld<br>-- Targeting AArch64<br>-- Targeting AMDGPU<br>-- Targeting ARM<br>-- Targeting BPF<br>-- Targeting Hexagon<br>-- Targeting Lanai<br>-- Targeting Mips<br>-- Targeting MSP430<br>-- Targeting NVPTX<br>-- Targeting PowerPC<br>-- Targeting RISCV<br>-- Targeting Sparc<br>-- Targeting SystemZ<br>-- Targeting WebAssembly<br>-- Targeting X86<br>-- Targeting XCore<br>-- Failed to locate sphinx-build executable (missing: SPHINX_EXECUTABLE)<br>-- Linker detection: GNU ld<br>-- Parallel STL uses the serial backend<br>-- Linker detection: GNU ld<br>-- Linker detection: GNU ld<br>-- gdb found: /usr/bin/gdb<br>-- Linker detection: GNU ld<br>-- Compiler-RT supported architectures: x86_64<br>-- Builtin supported architectures: x86_64<br>-- Linker detection: GNU ld<br>-- Linker detection: GNU ld<br>-- Builtin supported architectures: x86_64<br>-- Generated Sanitizer SUPPORTED_TOOLS list on "Linux" is "asan;lsan;msan;tsan;ubsan"<br>-- sanitizer_common tests on "Linux" will run against "asan;lsan;msan;tsan;ubsan"<br>-- check-shadowcallstack does nothing.<br>-- Could NOT find LIBOMPTARGET_DEP_LIBELF (missing: LIBOMPTARGET_DEP_LIBELF_LIBRARIES LIBOMPTARGET_DEP_LIBELF_INCLUDE_DIRS)<br>-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)<br>-- Could NOT find LIBOMPTARGET_DEP_CUDA_DRIVER (missing: LIBOMPTARGET_DEP_CUDA_DRIVER_LIBRARIES)<br>-- LIBOMPTARGET: Building offloading runtime library libomptarget.<br>-- LIBOMPTARGET: Not building aarch64 offloading plugin: machine not found in the system.<br>-- LIBOMPTARGET: Not building CUDA offloading plugin: libelf dependency not found.<br>-- LIBOMPTARGET: Not building PPC64 offloading plugin: machine not found in the system.<br>-- LIBOMPTARGET: Not building PPC64le offloading plugin: machine not found in the system.<br>-- LIBOMPTARGET: Not building x86_64 offloading plugin: libelf dependency not found.<br>-- LIBOMPTARGET: Not building CUDA offloading device RTL: CUDA tools not found in the system.<br>-- ISL version: isl-0.20-65-gb822a210<br>-- PPCG version: ppcg-0.07<br>-- Clang version: 10.0.0<br>CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:2759 (get_property):<br>  get_property could not find TARGET llgo.  Perhaps it has not yet been<br>  created.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-3.10/Modules/ExternalProject.cmake:3032 (_ep_add_configure_command)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:200 (externalproject_add)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:219 (add_libgo_variant)<br><br><br>CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:2759 (get_property):<br>  get_property could not find TARGET cc-wrapper.  Perhaps it has not yet been<br>  created.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-3.10/Modules/ExternalProject.cmake:3032 (_ep_add_configure_command)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:200 (externalproject_add)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:219 (add_libgo_variant)<br><br><br>CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:2759 (get_property):<br>  get_property could not find TARGET llgo.  Perhaps it has not yet been<br>  created.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-3.10/Modules/ExternalProject.cmake:3032 (_ep_add_configure_command)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:200 (externalproject_add)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:222 (add_libgo_variant)<br><br><br>CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:2759 (get_property):<br>  get_property could not find TARGET cc-wrapper.  Perhaps it has not yet been<br>  created.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-3.10/Modules/ExternalProject.cmake:3032 (_ep_add_configure_command)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:200 (externalproject_add)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:222 (add_libgo_variant)<br><br><br>CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:2759 (get_property):<br>  get_property could not find TARGET llgo.  Perhaps it has not yet been<br>  created.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-3.10/Modules/ExternalProject.cmake:3032 (_ep_add_configure_command)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:200 (externalproject_add)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:226 (add_libgo_variant)<br><br><br>CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:2759 (get_property):<br>  get_property could not find TARGET cc-wrapper.  Perhaps it has not yet been<br>  created.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-3.10/Modules/ExternalProject.cmake:3032 (_ep_add_configure_command)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:200 (externalproject_add)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:226 (add_libgo_variant)<br><br><br>CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:2759 (get_property):<br>  get_property could not find TARGET llgo.  Perhaps it has not yet been<br>  created.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-3.10/Modules/ExternalProject.cmake:3032 (_ep_add_configure_command)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:200 (externalproject_add)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:230 (add_libgo_variant)<br><br><br>CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:2759 (get_property):<br>  get_property could not find TARGET cc-wrapper.  Perhaps it has not yet been<br>  created.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-3.10/Modules/ExternalProject.cmake:3032 (_ep_add_configure_command)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:200 (externalproject_add)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:230 (add_libgo_variant)<br><br><br>CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:2759 (get_property):<br>  get_property could not find TARGET llgo.  Perhaps it has not yet been<br>  created.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-3.10/Modules/ExternalProject.cmake:3032 (_ep_add_configure_command)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:200 (externalproject_add)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:234 (add_libgo_variant)<br><br><br>CMake Error at /usr/share/cmake-3.10/Modules/ExternalProject.cmake:2759 (get_property):<br>  get_property could not find TARGET cc-wrapper.  Perhaps it has not yet been<br>  created.<br>Call Stack (most recent call first):<br>  /usr/share/cmake-3.10/Modules/ExternalProject.cmake:3032 (_ep_add_configure_command)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:200 (externalproject_add)<br>  /home/enrique/Escritorio/llvm-project/llgo/CMakeLists.txt:234 (add_libgo_variant)<br><br><br>-- LLD version: 10.0.0<br>CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):<br>  Could NOT find LibEdit (missing: libedit_INCLUDE_DIRS libedit_LIBRARIES)<br>Call Stack (most recent call first):<br>  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)<br>  /home/enrique/Escritorio/llvm-project/lldb/cmake/modules/FindLibEdit.cmake:54 (find_package_handle_standard_args)<br>  /home/enrique/Escritorio/llvm-project/lldb/cmake/modules/LLDBConfig.cmake:104 (find_package)<br>  /home/enrique/Escritorio/llvm-project/lldb/CMakeLists.txt:21 (include)<br><br><br>-- Configuring incomplete, errors occurred!<br>See also "/home/enrique/Escritorio/llvm-project/build/CMakeFiles/CMakeOutput.log".<br>See also "/home/enrique/Escritorio/llvm-project/build/CMakeFiles/CMakeError.log".  <br><div><br></div><div>Thanks in advance.</div></div>