Skip to content

clang-12: error: unknown argument: '-mepi' #27

Open
@Kuntin555

Description

@Kuntin555

when I use llvm from PLTC (https://github.com/plctlab/llvm-project) compile the RVV benchmark(https://github.com/RALC88/riscv-vectorized-benchmark-suite/tree/rvv-1.0)
it can't find argument '-mepi'.
My steps are as follows:

  1. compile and install the llvm
    export RISCV=~/opt/riscv-vector
    git clone https://github.com/plctlab/llvm-project.git
    cd llvm-project-rvv-iscas
    mkdir build
    cd build
    cmake -G "Unix Makefiles"
    -DLLVM_TARGETS_TO_BUILD="RISCV"
    -DCMAKE_INSTALL_PREFIX=$RISCV
    -DCMAKE_BUILD_TYPE=Release
    -DLLVM_USE_LINKER=gold
    -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;lld" ../llvm
    make -j12
    make install
  2. compile the rvv benchmark
    git clone https://github.com/RALC88/riscv-vectorized-benchmark-suite.git
    cd riscv-vectorized-benchmark-suite
    export LLVM=/opt/riscv-vector
    export PATH=$PATH:
    /opt/riscv-vector/bin
    make all
    clang-12: error: unknown argument: '-mepi'

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