rlavaee / codestitcher

Interprocedural Basic Block Code Layout Optimization
http://cs.rochester.edu/u/rlavaee/
Other
18 stars 2 forks source link

Working copy of llvm is too old (build error) #3

Closed mahmoodn closed 4 years ago

mahmoodn commented 4 years ago

Hi Is that llvm-3.9 revision 301135 mandatory? I receive this error for llvm build section.

[ 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
rlavaee commented 4 years ago

I know. That project is kind of stale. Please consider https://github.com/google/llvm-propeller

Sent from my iPhone

On Mar 7, 2020, at 8:19 AM, Mahmood Naderan notifications@github.com wrote:

 Hi Is that llvm-3.9 revision 301135 mandatory? I receive this error for llvm build section.

[ 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 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mahmoodn commented 4 years ago

So what about patches that are written for that revision? Is codestitcher working with all LLVM versions? or it need some specific features?

mahmoodn commented 4 years ago

OK. I was able to fix the problem by removing .svn/. That disables svn to check for upgrades. I removes sources/llvm-3.9/,svn and sources/llvm-3.9/tools/clang/,svn.