PDA

View Full Version : Where to find help with toolchain compilation errors !


dakoo
07-06-2008, 02:31 AM
hi
:iphone:
i am trying to follow the following links to compile the Open ToolChain on my Ubuntu 8.04 Linux,
http://www.onlamp.com/pub/a/onlamp/2008/03/25/the-apple-sdk-apis-apple-didnt-want-you-to-know-about.html?page=3
http://jewclaw.net/?p=77
http://george.insideiphone.com/index.php/iphone-toolchain/

But am not sure as to where to ask for help for help ..
As i am having problem with the final step of compilation...

AM very unsure of the error & so can't verfiy where to post in the google project issues page..

My Error is at the very final step

make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn

Just in case someone is intrested..

The Error is
-c ../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c -o crt3.o
make[3]: Leaving directory `/home/rush/iphone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc'
/home/rush/iphone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/xgcc -B/home/rush/iphone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/ -B/usr/local/arm-apple-darwin/bin/ -B/usr/local/arm-apple-darwin/lib/ -isystem /usr/local/arm-apple-darwin/include -isystem /usr/local/arm-apple-darwin/sys-include -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../../llvm-gcc-4.0-iphone/gcc -I../../../llvm-gcc-4.0-iphone/gcc/. -I../../../llvm-gcc-4.0-iphone/gcc/../include -I../../../llvm-gcc-4.0-iphone/gcc/../libcpp/include -I/home/rush/iphone/llvm-svn/include -I/home/rush/iphone/llvm-svn/include -DSHARED -DL_udivsi3 -xassembler-with-cpp -c ../../../llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm -o libgcc/./_udivsi3_s.o
../../../llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm:670:garbage following instruction -- `bls 11f'
../../../llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm:672:garbage following instruction -- `beq 12f'
make[2]: *** [libgcc/./_udivsi3_s.o] Error 1
make[2]: Leaving directory `/home/rush/iphone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/home/rush/iphone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc'
make: *** [all-gcc] Error 2

Rikk
07-25-2008, 01:37 AM
I've same problem during toolchain compilation..

2 modifications are apply on toolchain script (due to official SDK path):

HEAVENLY=/Developer/Platforms/IPhoneOS.platform/Developer/SDKs/IPhoneOS2.0.sdk

sudo ln -s /Developer/Platforms/IPhoneOS.platform/Developer/SDKs/IPhoneOS2.0.sdk /usr/local/share/iphone-filesystem

Config:
Leopard 10.5.4
Mac Intel 2x 2.33
Official SDK V1

Somebody can help us ?
Thanks,
Rikk

Rikk
07-25-2008, 12:54 PM
I've found a compiled installation of toolchain (just unzip and copy in //usr/ directory) here:
http://blogs.oreilly.com/iphone/2008/05/using-the-open-sdk-with-20-fir.html

How can I verify if this toolchain is "up to date" to work with 2.0 ?

Rikk

spektro
07-28-2008, 12:56 AM
Basically you just need to open this file:

.../llvm-svn/iphone-dev/llvm-gcc-4.0-iphone/gcc/config/arm/lib1funcs.asm

And edit all the labels and references from 10f, 11f and 12f to 0f, 1f and 2f , and also the 10: , 11: and 12: to 0: 1: and 2:

After this, recompile and install. Be happy !!!