我想在使用Ubuntu 16.04的虚拟机上构建LLVM 3.9。使用此cmake命令
cmake ~/codestitcher/source/llvm-3.9 -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=host -DLLVM_ENABLE_CXX1Y=ON \
-DLLVM_BUILD_TESTS=OFF -DLLVM_BINUTILS_INCDIR=~/codestitcher/source/binutils-2.30/include -DLLVM_BUILD_TOOLS=OFF \
-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
我收到make
命令的错误
[ 43%] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CFGPrinter.cpp.o
[ 43%] Linking CXX static library ../../libLLVMScalarOpts.a
[ 43%] Built target LLVMScalarOpts
[ 43%] Generating LLVMLTORevision.h
-- Found Subversion: /bin/svn (found version "1.7.14")
CMake Error at ~/tools/cmake-3.15.4/share/cmake-3.15/Modules/FindSubversion.cmake:124 (message):
Command "/bin/svn info
~/codestitcher/source/llvm-3.9" failed with output:
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: Working copy
'~/codestitcher/source/llvm-3.9' is too old (format
10, created by Subversion 1.6)
Call Stack (most recent call first):
~/codestitcher/source/llvm-3.9/cmake/modules/VersionFromVCS.cmake:19 (subversion_wc_info)
~/codestitcher/source/llvm-3.9/cmake/modules/GenerateVersionFromCVS.cmake:27 (add_version_info_from_vcs)
~/codestitcher/source/llvm-3.9/cmake/modules/GenerateVersionFromCVS.cmake:33 (append_info)
make[2]: *** [lib/LTO/LLVMLTORevision.h] Error 1
make[2]: *** Deleting file `lib/LTO/LLVMLTORevision.h'
make[1]: *** [lib/LTO/CMakeFiles/LLVMLTO.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 43%] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CFLAndersAliasAnalysis.cpp.o
[ 43%] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CFLSteensAliasAnalysis.cpp.o
[ 43%] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CGSCCPassManager.cpp.o
[ 43%] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CallGraph.cpp.o
[ 43%] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CallGraphSCCPass.cpp.o
我想知道在构建过程中是否有任何方法可以停止检查较新的版本。我没有找到任何东西。有什么解决方法吗?