Hello, 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
-------------------------------------- WWW: http://math.uwb.edu.pl/~adamn/ --------------------------------------
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
On Wed, 18 Jul 2001, Frank Heckenbach wrote:
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.
Thanks, it works after applying this patch. I work on Solaris 2.8, and it seems that I surely have to replace the native utils (patch, sed, etc.) with their GNU counterparts. Thanks again, Adam Naumowicz
-------------------------------------- WWW: http://math.uwb.edu.pl/~adamn/ --------------------------------------
Adam Naumowicz wrote:
Thanks, it works after applying this patch. I work on Solaris 2.8, and it seems that I surely have to replace the native utils (patch, sed, etc.) with their GNU counterparts.
Perhaps it's good if some people who install GPC regularly use non-GNU tools so we get to know about such problems. Of course, it will be more inconvenient to you ... ;-)
Frank