[LLVMbugs] [Bug 1100] NEW: Could not resolve external global address: __dso_handle
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Jan 9 02:57:17 PST 2007
http://llvm.org/bugs/show_bug.cgi?id=1100
Summary: Could not resolve external global address: __dso_handle
Product: libraries
Version: 1.9
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: Linker
AssignedTo: unassignedbugs at nondot.org
ReportedBy: hp48gx at gmail.com
I just compiled llvm1.9 using pre-packaged llvm-gcc4 (I simply fixed the symbolic links in /bin).
llvm-gcc works fine on C files, but does not work on c++
Native output is fine, but bytecode does not run, for example
powerbookg4:/llvm/test mycroft$ cat hello.cpp
#include <iostream>
int main()
{
std::cout << "hello world\n";
return 0;
}
powerbookg4:/llvm/test mycroft$ llvm-g++ hello.cpp -emit-llvm -c -o hello.bc
powerbookg4:/llvm/test mycroft$ lli hello.bc
Could not resolve external global address: __dso_handle
Abort trap
The bytecode itself seems fine (llvm-dis produces a nice output)
I remember I already had this problem once... I vaguely remember llvm-g++ is linking against the
wrong libraries, but I don't remember how I fixed it...
Can anybody help?
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list