To those interested:

I think I've figured out how to build mspgcc on OS X 10.2.

The problem is apparently with Apple's C preprocessor, which supports precompiled headers. According to the Apple GCC manpage, their preprocessor doesn't handle some constructs that the pure GNU preprocessor does. So, they have an option to disable it: -no-gcc-precomp. This option causes Apple's GCC to use the GNU version of CPP.

Adding this option to the compile command for binutils and gcc did the trick. To configure binutils and GCC, I used:

CC='gcc -no-cpp-precomp' --target=msp430 --prefix=/usr/local/msp430

Other than the CC variable, everything else is identical to the build instructions on the web page. I just now compiled msp430-libc with nary a complaint.

I haven't tried GDB yet, but I expect the same rule will apply.

Anybody up for making a Fink package now? ;-D

cheers -- MPA


Reply via email to