Anatol Pomozov
2010-Nov-18 23:38 UTC
[LLVMdev] LLVMHello example fails with "undefined symbol"
Hi, I am trying to learn LLVM by following this article http://llvm.org/docs/WritingAnLLVMPass.html I checked 2.8 version from svn, built it and now I am trying to run Hello world example as $ opt -load ./Release/lib/LLVMHello.so -analyze but unfortunately it fails: Error opening './Release/lib/LLVMHello.so': ./Release/lib/LLVMHello.so: undefined symbol: _ZNK4llvm12FunctionPass17createPrinterPassERNS_11raw_ostreamERKSs -load request ignored. Is it a known problem? How I should fix it?
Same issue here. Did you find any solution to this? Did I miss something? Jan
Duncan Sands
2011-Feb-02 07:57 UTC
[LLVMdev] LLVMHello example fails with "undefined symbol"
Hi Anatol, does the hello plugin in llvm-2.8/lib/Transforms/Hello work? The online docs refer to the upcoming 2.9 release of LLVM, so may not work correctly with LLVM 2.8. Ciao, Duncan.> I am trying to learn LLVM by following this article > http://llvm.org/docs/WritingAnLLVMPass.html > > I checked 2.8 version from svn, built it and now I am trying to run > Hello world example as > > $ opt -load ./Release/lib/LLVMHello.so -analyze > > but unfortunately it fails: > > Error opening './Release/lib/LLVMHello.so': > ./Release/lib/LLVMHello.so: undefined symbol: > _ZNK4llvm12FunctionPass17createPrinterPassERNS_11raw_ostreamERKSs > -load request ignored. > > Is it a known problem? How I should fix it? > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Maybe Matching Threads
- [LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
- [LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
- [LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
- [LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
- [LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()