Closed Ghy0202 closed 1 year ago
undefined reference to 'typeinfo for clang::tooling::FrontendActionFactory'
your LLVM is build without RTTI and callchain_checker
needs it.
I haven't checked but maybe callchain_checker
works without RTTI/Exceptions. You can try adding -fno-rtti -fno-exceptions
in https://github.com/DeadCodeProductions/dead/blob/main/callchain_checker/CMakeLists.txt#L20
Alternatively you can enable RTTI/Exceptions when building LLVM with -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_EN=ON
.
(We are currently in the process of refactoring/rewriting large parts of dead
so hopefully such issues will go away)
Thank you very much for your reply. I will try these parameters.😁
At 2023-03-15 18:24:40, "Theodoros Theodoridis" @.***> wrote:
undefined reference to 'typeinfo for clang::tooling::FrontendActionFactory' your LLVM is build without RTTI and callchain_checker needs it.
I haven't checked but maybe callchain_checker works without RTTI/Exceptions. You can try adding -fno-rtti -fno-exceptions in https://github.com/DeadCodeProductions/dead/blob/main/callchain_checker/CMakeLists.txt#L20
Alternatively you can enable RTTI/Exceptions when building LLVM with -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_EN=ON.
(We are currently in the process of refactoring/rewriting large parts of dead so hopefully such issues will go away)
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Succeed! rebuild LLVM by cmd like :
cmake -G Ninja -DCMAKE_BUILD_TYPE="Release" -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;compiler-rt" -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_EN=ON -DCMAKE_INSTALL_PREFIX="/usr" ../llvm
thank you!😊💕
Hi~~ When I try to build this project locally, I encountered usr/bin/ld can not find -lLLVM . And I tried to solve this problem By solving the symbolic link
after that ,./init.py is still failed like below:
I suspect there is a problem with the configuration of installing LLVM. If so, can you disclose the relevant commands for installing LLVM? when installing LLVM,I used the following command(Ubuntu22.04,llvm-as 14.0.6):
Is there a problem with the configuration of my installation of LLVM or some other reasons that I have not noticed caused this bug?