ROCm / HIPIFY

HIPIFY: Convert CUDA to Portable C++ Code
https://rocm.docs.amd.com/projects/HIPIFY/en/latest/
MIT License
503 stars 70 forks source link

[HIPIFY][build] ld.lld: error: undefined symbol: clang::RISCV::RVVIntrinsic::*** #603

Closed emankov closed 2 years ago

emankov commented 2 years ago

Linking error occurs while linking against trunk LLVM 15.0.0git:

ld.lld: error: undefined symbol: clang::RISCV::RVVIntrinsic::computeBuiltinTypes(llvm::ArrayRef<clang::RISCV::PrototypeDescriptor>, bool, bool, bool, unsigned int)
>>> referenced by SemaRISCVVectorLookup.cpp
>>>               SemaRISCVVectorLookup.cpp.o:((anonymous namespace)::RISCVIntrinsicManagerImpl::InitIntrinsicList()) in archive /long_pathname_so_that_rpms_can_package_the_debug_info/src/out/ubuntu-20.04/20.04/llvm/lib/libclangSema.a
>>> referenced by SemaRISCVVectorLookup.cpp
>>>               SemaRISCVVectorLookup.cpp.o:((anonymous namespace)::RISCVIntrinsicManagerImpl::InitIntrinsicList()) in archive /long_pathname_so_that_rpms_can_package_the_debug_info/src/out/ubuntu-20.04/20.04/llvm/lib/libclangSema.a

ld.lld: error: undefined symbol: clang::RISCV::RVVType::computeTypes(clang::RISCV::BasicType, int, unsigned int, llvm::ArrayRef<clang::RISCV::PrototypeDescriptor>)
>>> referenced by SemaRISCVVectorLookup.cpp
>>>               SemaRISCVVectorLookup.cpp.o:((anonymous namespace)::RISCVIntrinsicManagerImpl::InitIntrinsicList()) in archive /long_pathname_so_that_rpms_can_package_the_debug_info/src/out/ubuntu-20.04/20.04/llvm/lib/libclangSema.a
>>> referenced by SemaRISCVVectorLookup.cpp
>>>               SemaRISCVVectorLookup.cpp.o:((anonymous namespace)::RISCVIntrinsicManagerImpl::InitIntrinsicList()) in archive /long_pathname_so_that_rpms_can_package_the_debug_info/src/out/ubuntu-20.04/20.04/llvm/lib/libclangSema.a

ld.lld: error: undefined symbol: clang::RISCV::RVVIntrinsic::getSuffixStr[abi:cxx11](clang::RISCV::BasicType, int, llvm::ArrayRef<clang::RISCV::PrototypeDescriptor>)
>>> referenced by SemaRISCVVectorLookup.cpp
>>>               SemaRISCVVectorLookup.cpp.o:((anonymous namespace)::RISCVIntrinsicManagerImpl::InitIntrinsicList()) in archive /long_pathname_so_that_rpms_can_package_the_debug_info/src/out/ubuntu-20.04/20.04/llvm/lib/libclangSema.a
>>> referenced by SemaRISCVVectorLookup.cpp
>>>               SemaRISCVVectorLookup.cpp.o:((anonymous namespace)::RISCVIntrinsicManagerImpl::InitIntrinsicList()) in archive /long_pathname_so_that_rpms_can_package_the_debug_info/src/out/ubuntu-20.04/20.04/llvm/lib/libclangSema.a
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
emankov commented 2 years ago

Fixed with #604