compiling a C compiler for dsPIC using source from Microchip

May 12, 2005 0 Replies

Hi, I am trying to compile a C compiler for dsPIC processor.



During compilation, i am getting the following error posted below. Before this error, there were a few other errors which i fixed after some help on google, but there is no information on the error i am currently getting.



I have tried V1.31 amd V1.32 of the source present on Microchip site, but this problem persists.



can anybody tell me what is going wrong or if i have missed anything(specifically during ./configure step)?



My configuration : ================= PC : P4 1.6 GHz OS : Fedora Core-3 compiler : GCC 3.4.2 20041017 (rh 3.4.2-6 fc3) Source from Microchip site: both Version 1.31 & 1.32 tried configuration options : --target=pic30-coff --enable-languages=c



=============================================================== In file included from libgcc2.c:44: libgcc2.h:270:15: macro "__NDW" requires 2 arguments, but only 1 given libgcc2.h:271:15: macro "__NDW" requires 2 arguments, but only 1 given In file included from libgcc2.c:44: libgcc2.h:271: error: conflicting types for `__NDW' libgcc2.h:270: error: previous declaration of `__NDW' libgcc2.h:274:15: macro "__NW" requires 2 arguments, but only 1 given libgcc2.h:275:15: macro "__NW" requires 2 arguments, but only 1 given libgcc2.h:275: error: conflicting types for `__NW' libgcc2.h:274: error: previous declaration of `__NW' libgcc2.h:276:15: macro "__NDW" requires 2 arguments, but only 1 given libgcc2.h:276: error: conflicting types for `__NDW' libgcc2.h:271: error: previous declaration of `__NDW' libgcc2.h:277:15: macro "__NDW" requires 2 arguments, but only 1 given libgcc2.h:277: error: conflicting types for `__NDW' libgcc2.h:276: error: previous declaration of `__NDW' make[2]: *** [libgcc/./_muldi3.o] Error 1 make[1]: *** [libgcc.a] Error 2 make: *** [all-gcc] Error ================================================================ Thanks & Regards



Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required