http://llvm.org/bugs/show_bug.cgi?id=2771
Summary: opt loads LLVMHello only when called from build
directory, fails from installed
Product: libraries
Version: 2.3
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: Transformation Utilities
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
Once llvm is build, opt can only be called from Release/bin/opt to load
LLVMHello. If called from directory where llvm is installed, it fails. Works
fine on Linux.
make -C lib/Transforms/Hello
Works:
Release/bin/opt -load=Release/lib/LLVMHello.dylib -help|grep hello
-hello - Hello World Pass
-hello2 - Hello World Pass (with
getAnalysisUsage implemented)
Fails:
/opt/llvm/bin/opt -load=Release/lib/LLVMHello.dylib -help|grep hello
Error opening '/opt/llvm/lib/LLVMHello.dylib':
dlopen(/opt/llvm/lib/LLVMHello.dylib, 9): Symbol not found:
__ZN4llvm12FunctionPass11runOnModuleERNS_6ModuleE
Referenced from: /opt/llvm/lib/LLVMHello.dylib
Expected in: dynamic lookup
-load request ignored.
Also fails:
/opt/llvm/bin/opt -load=/opt/llvm/lib/LLVMHello.dylib -help|grep hello
Error opening '/opt/llvm/lib/LLVMHello.dylib':
dlopen(/opt/llvm/lib/LLVMHello.dylib, 9): Symbol not found:
__ZN4llvm12FunctionPass11runOnModuleERNS_6ModuleE
Referenced from: /opt/llvm/lib/LLVMHello.dylib
Expected in: dynamic lookup
-load request ignored.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs