You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/09/25 08:58:18 UTC

[GitHub] [tvm] isolateFeng opened a new issue, #12896: [Bug] make error: Linking CXX shared library libtvm_runtime.so

isolateFeng opened a new issue, #12896:
URL: https://github.com/apache/tvm/issues/12896

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

Posted by GitBox <gi...@apache.org>.
isolateFeng closed issue #12896: [CI Problem] make error:Linking CXX shared library libtvm_runtime.so (g++: error: unrecognized command line option ‘-fuse-ld=lld’;)
URL: https://github.com/apache/tvm/issues/12896


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

Posted by GitBox <gi...@apache.org>.
isolateFeng commented on issue #12896:
URL: https://github.com/apache/tvm/issues/12896#issuecomment-1257176177

   I fix it!
   use gcc-9.3 and llvm-8.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org