[LLVMdev] Compiling llvm libraries to run on iPhone

heisenbug ggreif at gmail.com
Tue Jun 10 17:09:31 PDT 2008

On 11 Jun., 01:50, Robert Grapes <robert_gra... at hotmail.com> wrote:
> Hi,
> I was wondering whether anyone has managed to compile the LLVM libraries to run on iPhone?
> After compiling and installing the iPhone toolchain on MacBook running Leopard (10.5.2).  I run configure
> In the llvm2.3 directory:
> ./configure –host=arm-apple-darwin –target=arm-apple-darwin –enable-optimized –enable-targets=arm
> I run make, including an override for TBLGEN (because I obviously can’t run the native ARM tblgen):
> make ENABLE_OPTIMIZED=1 TBLGEN=/usr/local/bin/tblgen
> All goes very well until I get the following error:
> llvm[3]: Compiling ScheduleDAGList.cpp for Release build
> llvm[3]: Compiling ScheduleDAGRRList.cpp for Release build
> llvm[3]: Compiling SelectionDAG.cpp for Release build
> llvm[3]: Compiling SelectionDAGISel.cpp for Release build
> /var/folders/Xq/XqzGACxLHWq4Af0cQbEMdE+++TI/-Tmp-//cc6xGQcn.s:unknown:immed iate value (-288) too large
> make[3]: *** [/Users/ur/llvm-2.3/lib/CodeGen/SelectionDAG/Release/SelectionDAGISel.o] Error 1
> make[2]: *** [SelectionDAG/.makeall] Error 2
> make[1]: *** [CodeGen/.makeall] Error 2
> make: *** [all] Error 1

Hmmm, you are definitely a brave soul :-)

make ENABLE_OPTIMIZED=1 TBLGEN=/usr/local/bin/tblgen VERBOSE=1

and look what the command for compiling SelectionDAGISel.o is.
Then execute it directly, adding -S --save-temps etc. to the soup.

My theory is that the assembler freaks out on illegal input.
Try to find the corresponding snippet (of the .cpp file)
and reduce it to a minimum.

File a bug report (http://llvm.org/bugs/). I am sure Evan or someone
else will love to fix it :-)



> I have also tried compiling v2.2 and get the same error.
> Any help would be really appreciated,
> Rob.
> _________________________________________________________________
> Free Windows Live software. Chat, search, share pics and morehttp://get.live.com/
> _______________________________________________
> LLVM Developers mailing list
> LLVM... at cs.uiuc.edu        http://llvm.cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

More information about the llvm-dev mailing list