Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails immediately #36

Open
vanjoe opened this issue Aug 30, 2016 · 5 comments
Open

Build fails immediately #36

vanjoe opened this issue Aug 30, 2016 · 5 comments

Comments

@vanjoe
Copy link

vanjoe commented Aug 30, 2016

Hi, I tried to follow the instructions in the readme, and I got the frollowing error:

joel:/nfs/scratch/joel 
 $ git clone -b RISCV https://github.com/riscv/riscv-llvm.git
Cloning into 'riscv-llvm'...
remote: Counting objects: 1057149, done.
remote: Total 1057149 (delta 0), reused 0 (delta 0), pack-reused 1057149
Receiving objects: 100% (1057149/1057149), 206.89 MiB | 1.41 MiB/s, done.
Resolving deltas: 100% (866268/866268), done.
Checking connectivity... done.
Checking out files: 100% (11855/11855), done.
joel:/nfs/scratch/joel 
 $ cd riscv-llvm/
joel:/nfs/scratch/joel/riscv-llvm (RISCV)
 $ git submodule update --init --recursive 
Submodule 'riscv-clang' (https://github.com/riscv/riscv-clang.git) registered for path 'riscv-clang'
Cloning into 'riscv-clang'...
remote: Counting objects: 543424, done.
remote: Total 543424 (delta 0), reused 0 (delta 0), pack-reused 543424
Receiving objects: 100% (543424/543424), 102.46 MiB | 1.52 MiB/s, done.
Resolving deltas: 100% (456062/456062), done.
Checking connectivity... done.
Submodule path 'riscv-clang': checked out '5ca597d912b945857b457674db7ca80370eb9a7c'
joel:/nfs/scratch/joel/riscv-llvm (RISCV)
 $ mkdir build
joel:/nfs/scratch/joel/riscv-llvm (RISCV)
 $ cd build
joel:/nfs/scratch/joel/riscv-llvm/build (RISCV)
 $ cmake -DCMAKE_INSTALL_PREFIX=/nfs/scratch/joel/riscv-llvm/install -DLLVM_TARGETS_TO_BUILD="RISCV" ../
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:143 (message):
  The target `RISCV' does not exist.

      It should be one of


  AArch64;ARM;CppBackend;Hexagon;Mips;MBlaze;MSP430;NVPTX;PowerPC;Sparc;SystemZ;X86;XCore


-- Configuring incomplete, errors occurred!
See also "/nfs/scratch/joel/riscv-llvm/build/CMakeFiles/CMakeOutput.log".

@comododragon
Copy link

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

@colinschmidt
Copy link
Contributor

Yes the only supported branch is currently riscv-trunk.

@Git-Hub-2016
Copy link

riscv-trunk does not work either! There is something wrong with the content and/or location of CMakeLists.txt

@Git-Hub-2016
Copy link

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".

@colinschmidt
Copy link
Contributor

It looks like you don't have python installed

"Unexpected failure executing llvm-build: /usr/bin/python2.7: can't open
file"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants