[LLVMdev] Compiling llvm libraries to run on iPhone
Eli Friedman
eli.friedman at gmail.com
Tue Jun 10 19:27:36 PDT 2008
On Tue, Jun 10, 2008 at 6:20 PM, Robert Grapes
<robert_grapes at hotmail.com> wrote:
>> 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
>
> Hi Eli,
>
> I'm pretty sure that the compiler I'm using is llvm-gcc
>
> $ /usr/local/bin/arm-apple-darwin-gcc -v
>
> Using built-in specs.
>
> Target: arm-apple-darwin
>
> Configured with: ../../llvm-gcc-4.0-iphone/configure
> --enable-llvm=/Users/ur/llvm-svn --enable-languages=c,c++,objc,obj-c++
> --target=arm-apple-darwin --enable-sjlj-exceptions
> --with-heavenly=/usr/local/share/iphone-filesystem
> --with-as=/usr/local/bin/arm-apple-darwin-as
> --with-ld=/usr/local/bin/arm-apple-darwin-ld --enable-wchar_t=no :
> (reconfigured) ../../llvm-gcc-4.0-iphone/configure
> --enable-llvm=/Users/ur/llvm-svn --enable-languages=c,c++,objc,obj-c++
> --target=arm-apple-darwin --enable-sjlj-exceptions
> --with-heavenly=/usr/local/share/iphone-filesystem
> --with-as=/usr/local/bin/arm-apple-darwin-as
> --with-ld=/usr/local/bin/arm-apple-darwin-ld --enable-wchar_t=no
>
> Thread model: posix
>
> gcc version 4.0.1 (Apple Computer, Inc. build 5449)(LLVM build
> 2.0-svn-iphone-dev-0.3-svn)
Oh, so it is llvm-gcc? In that case, see
http://llvm.org/docs/HowToSubmitABug.html#ct_codegen to reduce it.
That said, llvm-gcc 4.0 isn't really supported anymore by the LLVM
project; if you can figure out how to build an llvm-gcc cross-compiler
from SVN, you'd be much more likely to get a usable fix.
-Eli
More information about the llvm-dev
mailing list