Problem building llvm from source

Hi,
I want to use a specific revision number and for the cmake command below

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++

I get this error for make command

[ 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

Is there any workaround for that?

What make command did you run?

What make command did you run?

make -j2

I am looking for a way to stop LLVM of SVN from version checking.
I haven’t found that. I hope there is a way to that.
Even using -DLLVM_APPEND_VC_REV=OFF doesn’t fix the problem.