Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

error in compile #18

Description

@yuxianzhi

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 status
examples/api/assemble/CMakeFiles/assemble.dir/build.make:197: recipe for target 'examples/api/assemble/assemble' failed
make[2]: *** [examples/api/assemble/assemble] Error 1
CMakeFiles/Makefile2:957: recipe for target 'examples/api/assemble/CMakeFiles/assemble.dir/all' failed
make[1]: *** [examples/api/assemble/CMakeFiles/assemble.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [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

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