Skip to content

Build fails immediately  #36

Description

@vanjoe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions