[LLVMdev] compile error with HowToUseJIT

ultrasparc at gmx.de ultrasparc at gmx.de
Thu Mar 29 01:23:48 PDT 2007


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



More information about the llvm-dev mailing list