First: I'm a noob when it comes to PSP-Dev, so please have a bit of patience :-|
I tried to compile/install the PSP-SDK on my PowerBook G4 under Mac OS X Leopard (10.5.1) mostly with the help of these two forum entries:
- HOWTO: Compile the SDK on OSX - Consolidated Info
- Mac OS X toolchain script patches for Leopard and Tiger
- gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl -I../../gcc/../libcpp/include ../../gcc/config/rs6000/host-darwin.c -o host-ppc-darwin.o
../../gcc/config/rs6000/host-darwin.c:38: warning: 'struct sigaltstack' declared inside parameter list
../../gcc/config/rs6000/host-darwin.c:38: warning: its scope is only this definition or declaration, which is probably not what you want
../../gcc/config/rs6000/host-darwin.c:38: error: conflicting types for 'sigaltstack'
/usr/include/signal.h:89: error: previous declaration of 'sigaltstack' was here
../../gcc/config/rs6000/host-darwin.c: In function 'segv_handler':
../../gcc/config/rs6000/host-darwin.c:71: error: 'struct __darwin_mcontext' has no member named 'ss'
../../gcc/config/rs6000/host-darwin.c:120: error: 'struct __darwin_mcontext' has no member named 'es'
../../gcc/config/rs6000/host-darwin.c:120: error: 'struct __darwin_mcontext' has no member named 'ss'
../../gcc/config/rs6000/host-darwin.c: In function 'darwin_rs6000_extra_signals':
../../gcc/config/rs6000/host-darwin.c:134: warning: passing argument 1 of 'sigaltstack' from incompatible pointer type
make[2]: *** [host-ppc-darwin.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2
../scripts/002-gcc-4.1.0-stage1.sh: Failed.
- I had Apple Dev Tools (3.0) already installed (from Leopard Install DVD)
- I built Fink 0.8.1 Full from source with the help of this Fink Docu
- I ran "fink selfupdate"
- I ran "sudo fink -y install autogen autoconf2.5 automake1.8 libtool make svn-client wget sdl libtool14"
- I changed fink.config to allow unstable trees (main and crypto) since there seems no stable version of autogen available
- I ran "sudo fink -y install autogen autoconf2.5 automake1.8 libtool make svn-client wget sdl libtool14" again
- I set up Environment Variables, made a directory and chmoded it as described in the first forum entry mentioned above
- I checked out the psptoolchain script from subversion: "svn co svn://svn.ps2dev.org/psp/trunk/psptoolchain"
- I applied the patch as described in the second forum entry mentioned above
- I installed readline and libusb via Fink: "fink install readline" and "fink install libusb"
- I ran ./toolchain.sh which went into the Error above
Ok, hope that's enough info to solve the problem ;-)
Many thanks for any help
monkeyJPEG