You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone, when I clone the project and compile, I encountered some error, Is there any wrong in my configure? Which library that I need to link?
error message
[ 93%] Linking CXX executable assemble
CMakeFiles/assemble.dir/assemble.cpp.o: In function`AssemblerExample::RunAssemble()':
assemble.cpp:(.text._ZN16AssemblerExample11RunAssembleEv[_ZN16AssemblerExample11RunAssembleEv]+0xca): undefined reference to `llvm::Triple::normalize[abi:cxx11](llvm::StringRef)'assemble.cpp:(.text._ZN16AssemblerExample11RunAssembleEv[_ZN16AssemblerExample11RunAssembleEv]+0x164): undefined reference to `llvm::TargetRegistry::lookupTarget(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, llvm::Triple&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'collect2: error: ld returned 1 exit statusexamples/api/assemble/CMakeFiles/assemble.dir/build.make:197: recipe for target 'examples/api/assemble/assemble' failedmake[2]: *** [examples/api/assemble/assemble] Error 1CMakeFiles/Makefile2:957: recipe for target 'examples/api/assemble/CMakeFiles/assemble.dir/all' failedmake[1]: *** [examples/api/assemble/CMakeFiles/assemble.dir/all] Error 2Makefile:138: recipe for target 'all' failedmake: *** [all] Error 2
cmake message
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- 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
-- Found Perl: /usr/bin/perl (found version "5.22.1")
-- Found LLVM 4.0.1
-- Using LLVMConfig.cmake in: /home/yxz/tools/LLVM/lib/cmake/llvm
-- Found Clang: /home/yxz/tools/LLVM/bin/clang
-- Found HSA library: /opt/rocm/lib/libhsa-runtime64.so
-- Found LibElf: /usr/lib/x86_64-linux-gnu/libelf.so
-- Performing Test ELF_GETSHDRSTRNDX
-- Performing Test ELF_GETSHDRSTRNDX - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yxz/tools/LLVM-AMDGPU-Assembler-Extra/build
Hello everyone, when I clone the project and compile, I encountered some error, Is there any wrong in my configure? Which library that I need to link?
error message
cmake message