Skip to content

[CI Problem] make error:Linking CXX shared library libtvm_runtime.so (g++: error: unrecognized command line option ‘-fuse-ld=lld’;) #12896

@tfruan2000

Description

@tfruan2000

problem

[ 17%] Linking CXX shared library libtvm_runtime.so
g++: error: unrecognized command line option ‘-fuse-ld=lld’; did you mean ‘-fuse-ld=bfd’?
make[2]: *** [libtvm_runtime.so] Error 1
make[1]: *** [CMakeFiles/tvm_runtime.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

my operation step

mkdir build
cp cmake/config.cmake build

set(USE_LLVM "/tools/cluster-software/llvm/llvm-9.0.1/bin/llvm-config --link-static")
set(HIDE_PRIVATE_SYMBOLS ON)
set(USE_RELAY_DEBUG ON)
set(USE_TARGET_ONNX ON)
set(USE_PT_TVMDSOOP ON)

cd build
cmake ..
make -j24

environment

  • CentOS7
  • llvm-9.0.1
  • gcc-7.5.0
  • cmake-3.15.7

$ gcc --version
gcc (GCC) 7.5.0

$ clang -v
clang version 9.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /tools/cluster-software/llvm/llvm-9.0.1/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.2
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
Selected GCC installation: /usr/lib/gcc/x86_64-redhat-linux/4.8.5
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64

I think I should change the llvm's Selected GCC installation
but I don't know how to change it when input the command cmake .. or make -j24

when I input cmake ..,
$ cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions