Please read tips for efficient and successful posting and posting code
ROOT Version: 6.24.00
Platform: x86_64-linux
Compiler: gcc 10.3
Dear experts,
I’m trying to build ROOT
6.24.00 with external llvm
library. Naively I disable the built-in llvm
with:
-Dbuiltin_llvm=OFF
But I got the following error:
-- Using LLVM external library - 9.0.1
-- Clang version: 9.0.1
CMake Error at /nix/store/i2als7skhvbyjw9i79p9mfqkjypd56ck-llvm-9.0.1-dev/lib/cmake/llvm/AddLLVM.cmake:637 (add_custom_target):
add_custom_target cannot create target "install-clang-cpp" because another
target with the same name already exists. The existing target is a custom
target created in source directory
"/build/root-6.24.00/interpreter/llvm/src/tools/clang/tools/driver". See
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
interpreter/llvm/src/tools/clang/cmake/modules/AddClang.cmake:117 (add_llvm_install_targets)
interpreter/llvm/src/tools/clang/tools/clang-shlib/CMakeLists.txt:18 (add_clang_library)
CMake Error at interpreter/CMakeLists.txt:452 (get_directory_property):
get_directory_property DIRECTORY argument provided but requested directory
not found. This could be because the directory argument was invalid or, it
is valid but has not been processed yet.
CMake log and errors are attached:
CMakeError.txt (18.1 KB)
CMakeOutput.txt (371.7 KB)
The full std output of CMake is also attached (with minor nix
build system info/pollution):
cmake_std_out.txt (15.5 KB)