Comments (3)
I had similar error when loading the plugin.
error: unable to load plugin 'skeleton/libSkeletonPass.so': 'skeleton/libSkeletonPass.so: undefined symbol: _ZNK4llvm12FunctionPass17createPrinterPassERNS_11raw_ostreamERKSs'
I found this thread https://stackoverflow.com/questions/37366291/undefined-symbol-for-self-built-llvm-opt. It works for me by adding compiler flag in llvm-pass-skeleton/skeleton/CMakeLists.txt:
set_target_properties(SkeletonPass PROPERTIES COMPILE_FLAGS "-D__GLIBCXX_USE_CXX11_ABI=0 -fno-rtti" )
Hope it helps.
from llvm-pass-skeleton.
add set(CMAKE_CXX_COMPILER "clang-9")
into skeleton/CMakeList.txt solved my problem.
If remove this line, then default compiler is g++ in my case, which will cause this problem.
Hope it helps.
from llvm-pass-skeleton.
Indeed, as in #11, we haven't tested this with more recent versions of LLVM. As I recommended there, please look into using the LLVM version that was current when the code was written. Or, if you find the necessary changes to work with 4.0, please submit a pull request!
from llvm-pass-skeleton.
Related Issues (20)
- Running annotation module HOT 1
- Fatal Error For Attributes.gen HOT 6
- Compile error in the rtlib branch HOT 1
- Error while running the program HOT 7
- Error while making rtlib example HOT 6
- Error while compiling HOT 1
- Support for iOS in XCODE HOT 2
- Getting error : undefined symbol: _ZN4llvm23EnableABIBreakingChecksE HOT 1
- llvm instrumentation HOT 3
- pass has no effect HOT 1
- instrumentation: Linking With a Runtime Library HOT 1
- error: clang frontend command failed due to signal (use -v to see invocation) HOT 1
- Cmake for the "mutate" branch needs C++ 14 support
- Clang 14.0.5 unable to execute command: Aborted HOT 1
- fixes for version 15? HOT 1
- Now Make the Pass Do Something Mildly Interesting HOT 1
- ModulePasses with Auto Registration HOT 31
- Using C++ files for rtlib HOT 11
- The imported target "LLVMSupport" references the file "/usr/lib/libLLVMSupport.a" Error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llvm-pass-skeleton.