ps2toolchain on Mac OS X Leopard Intel
Posted: Thu Jan 15, 2009 9:40 pm
Question
I could not build ps2toolchain on Mac OS X Leopard (intel).
I got errors as follows.
log of toolchain.sh
What I did
* patch binutils like psptoolchain for osx patches.
* patch config.gcc to support i686-apple-darwin9.6.0
My Environment
* I succeed to build psptoolchain on this environment.
Help me!
I could not build ps2toolchain on Mac OS X Leopard (intel).
I got errors as follows.
log of toolchain.sh
Code: Select all
/usr/local/src/ps2toolchain/build/gcc-3.2.2/build-ee-stage1/gcc/xgcc -B/usr/loca
l/src/ps2toolchain/build/gcc-3.2.2/build-ee-stage1/gcc/ -B/usr/local/ps2dev/ee/e
e/bin/ -B/usr/local/ps2dev/ee/ee/lib/ -isystem /usr/local/ps2dev/ee/ee/include -
O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmi
ssing-prototypes -isystem ./include -G 0 -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEE
DED -Dinhibit_libc -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../
gcc/../include -DL_muldi3 -c ../../gcc/libgcc2.c -o libgcc/./_muldi3.o
/usr/local/src/ps2toolchain/build/gcc-3.2.2/build-ee-stage1/gcc/xgcc -B/usr/loca
l/src/ps2toolchain/build/gcc-3.2.2/build-ee-stage1/gcc/ -B/usr/local/ps2dev/ee/e
e/bin/ -B/usr/local/ps2dev/ee/ee/lib/ -isystem /usr/local/ps2dev/ee/ee/include -
O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmi
ssing-prototypes -isystem ./include -G 0 -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEE
DED -Dinhibit_libc -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../
gcc/../include -DL_negdi2 -c ../../gcc/libgcc2.c -o libgcc/./_negdi2.o
FATAL:/usr/bin/../libexec/gcc/darwin/i386/as: I don't understand 'G' flag!
FATAL:/usr/bin/../libexec/gcc/darwin/i386/as: I don't understand 'G' flag!
make[2]: *** [libgcc/./_negdi2.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[1]: *** [libgcc.a] Error 2
make: *** [all-gcc] Error 2
* patch binutils like psptoolchain for osx patches.
* patch config.gcc to support i686-apple-darwin9.6.0
My Environment
Code: Select all
$ uname -a
Darwin xxx.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24
17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 i386
MacBookPro5,1 Darwin
Code: Select all
$ svn info
URL: svn://svn.ps2dev.org/ps2/trunk/ps2toolchain
:
Revision: 1502
:
Last Changed Date: 2007-08-23 18:23:49 +0900 (Thu, 23 Aug 2007)
Code: Select all
$gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)
Help me!