Hi, I am quite new to building gcc and resolving related issues. This is probably a general question regarding porting gcc. I have obtained gcc sources for PIC30 from Microchip but they seem to be broken/incomplete. When the xgcc attempts to build libgcc2.c module. It turns out that the xgcc is not able to compile a 'void function'(see the error below). I am sure the problem is not trivial, but maybe could some one point me to what the machine definitions in case of any architecture should be checked? Or at least could someone confirm my theory that if the xgcc is not capable of doing a certain thing and emits a syntax error, it is due to some incompleteness in the machine definitions? Please, CC me, since I am not subscribed to the list. Best regards, Jan Capek The compiler error is below. The declaration that it dies on is a simple void function: extern void *malloc (size_t); make[1]: Entering directory `/home/jan/mc/gcc-4.0.2/obj-gcc-pic30/gcc' ./NONExgcc -B./ -B/home/jan/mc/pic30/pic30-coff/bin/ -isystem /home/jan/mc/pic30/pic30-coff/include -isystem /home/jan/mc/pic30/pic30-coff/sys-include -L/home/jan/mc/gcc-4.0.2/obj-gcc-pic30/gcc/../ld -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I/home/jan/mc/gcc-4.0.2/gcc-4.0.2/gcc -I/home/jan/mc/gcc-4.0.2/gcc-4.0.2/gcc/. -I/home/jan/mc/gcc-4.0.2/gcc-4.0.2/gcc/../include -I/home/jan/mc/gcc-4.0.2/gcc-4.0.2/gcc/../libcpp/include -DL_muldi3 -c /home/jan/mc/gcc-4.0.2/gcc-4.0.2/gcc/libgcc2.c -o libgcc/./_muldi3.o In file included from /home/jan/mc/gcc-4.0.2/gcc-4.0.2/gcc/libgcc2.c:37: ./auto-host.h:75:14: warning: missing whitespace after the macro name In file included from /home/jan/mc/gcc-4.0.2/gcc-4.0.2/gcc/libgcc2.c:43: /home/jan/mc/gcc-4.0.2/gcc-4.0.2/gcc/tsystem.h:53: error: syntax error before '*' token /home/jan/mc/gcc-4.0.2/gcc-4.0.2/gcc/tsystem.h:57: error: syntax error before 'void' /home/jan/mc/gcc-4.0.2/gcc-4.0.2/gcc/tsystem.h:61: error: syntax error before '(' token /home/jan/mc/gcc-4.0.2/gcc-4.0.2/gcc/tsystem.h:61: error: syntax error before ')' token /