Hi everyone, i'm trying to compile llvm with ExternalProject_Add and get the following error:
-- Installing: /usr/lib/ocaml/llvm/llvm.mli CMake Error at bindings/ocaml/llvm/cmake_install.cmake:49 (file): file INSTALL cannot copy file "/home/stuv/linux-projects/programming/bsEdit/build_files/Release/llvm/src/external_llvm-build/bindings/ocaml/llvm/llvm.mli" to "/usr/lib/ocaml/llvm/llvm.mli". Call Stack (most recent call first): bindings/ocaml/cmake_install.cmake:42 (include) cmake_install.cmake:64 (include) Makefile:128: die Regel für Ziel „install“ scheiterte make[3]: *** [install] Fehler 1 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 2 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 set(LLVM_EXTRA_ARGS -DLLVM_USE_CRT_RELEASE=MT -DLLVM_USE_CRT_DEBUG=MTd -DLLVM_INCLUDE_TESTS=OFF -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_ENABLE_TERMINFO=OFF -DLLVM_BUILD_EXAMPLES=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 ) I followed the instructions from llvm.org but i still get this error during installation (the build process works fine but during install i get this error). best regards! -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake