Adam Naumowicz wrote:
Following the previous discussion thread I tried to build newer version of GPC on my machine. I had no problems building gpc version 20010502, based on 2.95.3 20010315. Unfortunatelly with the current sources of GPC (20010623) I got the following make errors:
In file included from /export/install/gpc/gcc-2.95.3/gcc/p/gpc-common.c:29: /export/install/gpc/gcc-2.95.3/gcc/p/gbe.h:152: conflicting types for `xmalloc' /export/install/gpc/gcc-2.95.3/gcc/p/../../include/libiberty.h:129: previous declaration of `xmalloc' In file included from /export/install/gpc/gcc-2.95.3/gcc/p/gpc-common.c:35: /export/install/gpc/gcc-2.95.3/gcc/p/util.h:196: conflicting types for `concat' /export/install/gpc/gcc-2.95.3/gcc/p/../../include/libiberty.h:48: previous declaration of `concat' make[2]: *** [gpc-common.o] Error 1 make[2]: Leaving directory `/export/install/gpc/build/gcc/p' make[1]: *** [gpc1] Error 2 make[1]: Leaving directory `/export/install/gpc/build/gcc' make: *** [all-gcc] Error 2
Is there something wrong with the patch for GCC 2.95.3 ? Regards, Adam Naumowicz
Which system? There's a bug in the configure script that causes it to not detect the correct GCC version, but only on systems where grep is not GNU grep. In this case, try the attached patch and let me know me if it helps.
Frank