compile error with HowToUseJIT

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

compile error with HowToUseJIT

ultrasparc
Hi all!

I have installed LLVM 1.9 under FreeBSD and read the documentation.
Problem: examples/HowToUseJIT fails to compile.

I entered the following command in the directory /usr/home/x/llvm1.9/examples/HowToUseJIT :
gmake ENABLE_OPTIMIZED=0

It stops after producing object files (.o) without comment.

When I enter the following (from the documentation):
g++ `llvm-config --ldflags` -o HowToUseJIT HowToUseJIT.o `llvm-config --libs engine bcreader scalaropts`

I get:
HowToUseJIT.o(.gnu.linkonce.t._ZN44_GLOBAL__N_HowToUseJIT.cpp_DD76033A_C9DF05AB23ForceInterpreterLinkingC1Ev+0x1e):
In function `(anonymous namespace)::ForceInterpreterLinking::ForceInterpreterLinking()':
/usr/home/x/llvm1.9/include/llvm/ModuleProvider.h:71 undefined reference to
`llvm::LinkInInterpreter()'

Any help appreciated
Raphael

--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev