Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With llvm15, bcc failed the compilation with the following errors: [100%] Building CXX object tests/cc/CMakeFiles/test_libbcc.dir/test_shared_table.cc.o /home/yhs/work/llvm-project/llvm/build/install/lib/libclangSema.a(SemaRISCVVectorLookup.cpp.o): In function `(anonymous namespace)::RISCVIntrinsicManagerImpl::InitIntrinsicList()': SemaRISCVVectorLookup.cpp: (.text._ZN12_GLOBAL__N_125RISCVIntrinsicManagerImpl17InitIntrinsicListEv+0x14b): undefined reference to `clang::RISCV::RVVIntrinsic::computeBuiltinTypes( llvm::ArrayRef<clang::RISCV::PrototypeDescriptor>, bool, bool, bool, unsigned int)' SemaRISCVVectorLookup.cpp:(.text._ZN12_GLOBAL__N_125RISCVIntrinsicManagerImpl17InitIntrinsicListEv+0x182): undefined reference to `clang::RISCV::RVVIntrinsic::computeBuiltinTypes( llvm::ArrayRef<clang::RISCV::PrototypeDescriptor>, bool, bool, bool, unsigned int)' ... make[1]: *** [CMakeFiles/Makefile2:1110: examples/cpp/CMakeFiles/CGroupTest.dir/all] Error 2 ... The failure is due to llvm upstream patch https://reviews.llvm.org/D111617 which introduced another dependency on libclangSupport.a for bcc. To fix the issue, I added libclangSupport in cmake file. Signed-off-by: Yonghong Song <[email protected]>
- Loading branch information