[cfe-users] Problem building llvm from source

David Blaikie via cfe-users cfe-users at lists.llvm.org
Sat Mar 7 11:39:49 PST 2020


What make command did you run?

On Sat, Mar 7, 2020 at 8:09 AM Mahmood Naderan via cfe-users <
cfe-users at lists.llvm.org> wrote:

> 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?
>
> Regards,
> Mahmood
>
>
> _______________________________________________
> cfe-users mailing list
> cfe-users at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20200307/f10c78de/attachment-0001.html>


More information about the cfe-users mailing list