Open sazzad114 opened 6 years ago
Thanks a lot for your attention to our project. The pre-built binary file was built in Ubuntu 12.04 with pre-built llvm-3.3 for Ubuntu-12.04. Is your question is related to this? I am not sure.
My question is what I need to do to run it in Latest Ubuntu versions (e.g., 16.04)? How can I get around the "symbol lookup error"?
Thanks a lot for your reply!
I am trying to run the pre-built binary in my Ubuntu 16.04 machine.
I built LLVM 3.3 and set LD_LIBRARY_PATH like below before running "llvm-slicing" binary.
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:~/llvm/llvm-3.3/Release+Asserts/lib
After that, I run the following command,
./llvm-slicing sum3.c
And get the following error:
./llvm-slicing: symbol lookup error: ./llvm-slicing: undefined symbol: _ZN4llvm11ParseIRFileERKSsRNS_12SMDiagnosticERNS_11LLVMContextE
If I run c++filt I get the following.
c++filt _ZN4llvm11ParseIRFileERKSsRNS_12SMDiagnosticERNS_11LLVMContextE
llvm::ParseIRFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, llvm::SMDiagnostic&, llvm::LLVMContext&)
The ldd command returns the following,
ldd llvm-slicing
Thanks in advance for your help!