Open vanjoe opened 7 years ago
I had the same problem. It appears that the commands in the README are wrong. The git clone command points to the RISCV branch, whereas the README is for the riscv-trunk branch. Use this instead:
git clone -b riscv-trunk https://github.com/riscv/riscv-llvm.git
Yes the only supported branch is currently riscv-trunk.
riscv-trunk does not work either! There is something wrong with the content and/or location of CMakeLists.txt
Here is the result: CMake Error at CMakeLists.txt:116 (include): include could not find load file:
VersionFromVCS
CMake Error at /usr/share/cmake-3.5/Modules/CPack.cmake:423 (message): CPack license resource file: "/home/llvm/FPGA/Original/riscv-llvm/install/LICENSE.TXT" could not be found. Call Stack (most recent call first): /usr/share/cmake-3.5/Modules/CPack.cmake:428 (cpack_check_file_exists) CMakeLists.txt:156 (include)
CMake Error at CMakeLists.txt:282 (include): include could not find load file:
AddLLVMDefinitions
CMake Error at CMakeLists.txt:466 (include): include could not find load file:
config-ix
CMake Error at CMakeLists.txt:468 (string): string sub-command REPLACE requires at least four arguments.
CMake Error at CMakeLists.txt:478 (include): include could not find load file:
HandleLLVMOptions
CMake Error at CMakeLists.txt:544 (message): Unexpected failure executing llvm-build: /usr/bin/python2.7: can't open file '/home/llvm/FPGA/Original/riscv-llvm/install/utils/llvm-build/llvm-build': [Errno 2] No such file or directory -- Constructing LLVMBuild project information -- Configuring incomplete, errors occurred! See also "/home/llvm/FPGA/Original/riscv-llvm/CMakeFiles/CMakeOutput.log".
It looks like you don't have python installed
"Unexpected failure executing llvm-build: /usr/bin/python2.7: can't open file"
Hi, I tried to follow the instructions in the readme, and I got the frollowing error: