gcc cross-compile build on linux
gcc cross-compile build on linux
- Subject: gcc cross-compile build on linux
- From: Kraus Philipp <email@hidden>
- Date: Fri, 28 Sep 2012 22:58:29 +0200
Hello,
I try to build OSX gcc on my linux box to use it for cross-compiling and I hope my question isn't off-topic on this list.
I have copy my Mac SDK (10.6) to my Linux box (x86_64 with gcc 4.5.3) and try to build the gcc on my box with
mkdir darwin
cd darwin
../gcc_42-5577/configure --prefix=/opt/osxtoolchain/snowleopard/ --enable-languages=c,c++ --target=i686-apple-darwin10 --with-sysroot=/opt/osxtoolchain/snowleopard/MacOSX10.6.sdk/
I would like to build only executables for Snow Leopard with this command. The configure runs without any errors and I can start the "make"
process, but this breaks with the error:
# APPLE LOCAL use -mlongcall for large text support
/root/darwin/./gcc/xgcc -B/root/darwin/./gcc/ -B/opt/osxtoolchain/snowleopard//i686-apple-darwin10/bin/ -B/opt/osxtoolchain/snowleopard//i686-apple-darwin10/lib/ -isystem /opt/osxtoolchain/snowleopard//i686-apple-darwin10/include -isystem /opt/osxtoolchain/snowleopard//i686-apple-darwin10/sys-include -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc_42-5577/gcc -I../../gcc_42-5577/gcc/. -I../../gcc_42-5577/gcc/../include -I../../gcc_42-5577/gcc/../libcpp/include -I../../gcc_42-5577/gcc/../libdecnumber -I../libdecnumber -mlongcall \
-fno-tree-dominator-opts \
\
-c ../../gcc_42-5577/gcc/config/darwin-crt3.c -o crt3.o
rch: invalid option -- 'f'
rch: invalid option -- 'o'
rch: invalid option -- 'r'
rch: invalid option -- 'c'
rch: invalid option -- 'e'
rch: invalid option -- '_'
rch: invalid option -- 'c'
rch: invalid option -- 'p'
rch: invalid option -- 'u'
rch: invalid option -- 's'
rch: invalid option -- 'u'
rch: invalid option -- 'b'
rch: invalid option -- 't'
rch: invalid option -- 'y'
rch: invalid option -- 'p'
rch: invalid option -- 'e'
rch: invalid option -- '_'
rch: invalid option -- 'A'
rch: invalid option -- 'o'
rch: rch: Unrecognized architecture
make[4]: *** [crt3.o] Error 1
make[4]: Leaving directory `/root/darwin/gcc'
make[3]: *** [extra] Error 2
make[3]: Leaving directory `/root/darwin/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/root/darwin/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/root/darwin'
make: *** [all] Error 2
Do you have any idea to solve the problem?
Thanks a lot
Phil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden