Jens,
Guess this is coincidence but I'm just in the process of compiling for
Mac OS X Leopard PPC. So far I've had different problems. I found
binutils fails to compile in to a separate build directory, but is
fine compiled in to its own.
For gcc I used gcc-core-3.3.6 and merged with the code from cvs...
$ cp -r gcc/gcc-3.4/* gcc-3.3.6
$ cd gcc-3.3.6/
$ ./configure --target=msp430 --prefix=/usr/local/msp430
$ make
$ sudo make install
This built without error.
However msp430-libc fails to compile as there are many targets not
supported by the compiler. I had to remove objects from crt_all_objs
in the Makefile to get it to compile.
I tried your test code and it compile without error with my msp430-gcc
amd msp430-libc
$ msp430-gcc -v
Reading specs from /usr/local/msp430/lib/gcc-lib/msp430/3.3.6/specs
Configured with: ./configure --target=msp430 --prefix=/usr/local/msp430
Thread model: single
gcc version 3.3.6
I notice from your version of the above you have installed in /usr/
msp430 rather than the assumed /usr/local/mas430. Did you remember to
change the msp430-libc Makefile to suit your location?
You could try with gcc-core-3.3.6. I might try again with a gcc-4
version and see if allows me to compile msp430-libc for all the
targets. Does anyone know which version of gcc we ought to be using
for reasonable stability but good coverage of the newer MSP430 models?
Regards,
Steven