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:immediate 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 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 more http://get.live.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080610/6ed8faa8/attachment.html>
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 1Hmmm, you are definitely a brave soul :-) Try 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 :-) Cheers, Gabor> > 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
On Tue, Jun 10, 2008 at 4:50 PM, Robert Grapes <robert_grapes at hotmail.com> wrote:> llvm[3]: Compiling SelectionDAGISel.cpp for Release build > > /var/folders/Xq/XqzGACxLHWq4Af0cQbEMdE+++TI/-Tmp-//cc6xGQcn.s:unknown:immediate > value (-288) too large > > Any help would be really appreciated,That looks like an internal compiler error. Use delta (http://delta.tigris.org/) to reduce the issue if possible, then send a bug-report to whoever distributes your ARM compiler. (For an iPhone, I'm guessing that's Apple.) -Eli
> > File a bug report (http://llvm.org/bugs/). I am sure Evan or someone > else will love to fix it :-) > > Cheers, > > Gabor >As Eli said, this address is only to be used if you use llvm-gcc for compiling. But the best bet is probably to use Apple's bugreporter. Gabor
Jay Freeman (saurik)
2008-Jun-11 04:21 UTC
[LLVMdev] Compiling llvm libraries to run on iPhone
This is being caused by the assembler you are using not being very good. You should switch to the odcctools-9.2-ld branch of the assembler (the one that I actively maintain). That one is like Apple's SDK assembler (who's source code is available on their website) with a bunch of custom hacks/additions. More information about how to get the newer versions of the open source iPhone toolchain are available on my website: http://www.saurik.com/id/4. You are going to have a hard time cross compiling anything complex with the one you have installed. Sincerely, Jay Freeman (saurik) saurik at saurik.com http://www.saurik.com/ ----- Original Message ----- From: Robert Grapes To: llvmdev at cs.uiuc.edu Sent: Tuesday, June 10, 2008 4:50 PM Subject: [LLVMdev] Compiling llvm libraries to run on iPhone 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:immediate 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 I have also tried compiling v2.2 and get the same error. Any help would be really appreciated, Rob. ------------------------------------------------------------------------------ Download today! Free Windows Live software. Chat, search, share pics and more. ------------------------------------------------------------------------------ _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080610/68ef6c5c/attachment.html>
Possibly Parallel Threads
- [LLVMdev] Compiling llvm libraries to run on iPhone
- [LLVMdev] Compiling llvm libraries to run on iPhone
- [LLVMdev] LLC -view-isel-dags option on Windows/Cygwin build
- [LLVMdev] Re: Release 1.6 LLVM-Cfrontend build error on cygwin
- [LLVMdev] LLC -view-isel-dags option on Windows/Cygwin build