Hi There,
I have spent the last few days chasing the same issue. The problem with
Apple's preprocessor results in
incorrect concatination of strings using the CONCAT macro. The
preprocessor introduces a space when there is
an underscore in the string.
It seems to only affect gcc as I built binutils and libc with the
standard configure options.
Thanks for finding the no-cpp-precomp option.
I have recompiled a large IAR project with mspgcc and it works great.
The only problem I am having now, is that
the -O2 option just won't work, only -O works. .... will investigate
further.
Cheers,
Bernie Mentink
On Tuesday, June 3, 2003, at 08:19 AM, Michael Ashton wrote:
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
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users