[LLVMbugs] [Bug 2771] New: opt loads LLVMHello only when called from build directory, fails from installed
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Sep 5 07:41:06 PDT 2008
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: unassignedbugs at nondot.org
ReportedBy: israfel33 at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list