I am trying to install the latest version (20010623) of GPC. However, during the make I get the following error:
-------------------------------------------- In file included from /usr/pgmdev/gcc-2.95.2/gcc/p/gpc-common.c:35: /usr/pgmdev/gcc-2.95.2/gcc/p/util.h:196: conflicting types for `concat' /usr/pgmdev/gcc-2.95.2/gcc/p/../../include/libiberty.h:48: previous declaration of `concat' make[1]: *** [gpc-common.o] Error 1 --------------------------------------------
in include\libiberty.h:48 - extern char *concat PARAMS ((const char *, ...));
in gcc-2.95.2/gcc/p/util.h:196 - extern char *concat PARAMS ((char *, ...));
Pls advise which one is correct. Or is there a switch/directive to disregard this error? I am installing on an Intel x86/Solaris 7 platform using GCC 2.95.2. I pulled down the GCC source from the Sunfreeware site and the GPC source from the GPC site.
Pls advise also if there are other potential problems that have already been reported and addressed. By the way the link to the GPC mailing list archive http://www.gnu.de/archive/wilma.cgi/gpc is broken.
Regards,
Jing Gloria Texas Instruments
Gloria, Jing wrote:
I am trying to install the latest version (20010623) of GPC. However, during the make I get the following error:
In file included from /usr/pgmdev/gcc-2.95.2/gcc/p/gpc-common.c:35: /usr/pgmdev/gcc-2.95.2/gcc/p/util.h:196: conflicting types for `concat' /usr/pgmdev/gcc-2.95.2/gcc/p/../../include/libiberty.h:48: previous declaration of `concat' make[1]: *** [gpc-common.o] Error 1
in include\libiberty.h:48 - extern char *concat PARAMS ((const char *, ...));
in gcc-2.95.2/gcc/p/util.h:196 - extern char *concat PARAMS ((char *, ...));
Pls advise which one is correct. Or is there a switch/directive to disregard this error? I am installing on an Intel x86/Solaris 7 platform using GCC 2.95.2. I pulled down the GCC source from the Sunfreeware site and the GPC source from the GPC site.
For me (djgpp) I have identical prototypes in both files, but the second (util.h) is disabled presumably because it is circumvented by:
#ifndef EGCS92 ... #endif
But I do not know what it should be for Solaris. Somebody knows ?
Maurice
Maurice Lombardi wrote:
Gloria, Jing wrote:
I am trying to install the latest version (20010623) of GPC. However, during the make I get the following error:
In file included from /usr/pgmdev/gcc-2.95.2/gcc/p/gpc-common.c:35: /usr/pgmdev/gcc-2.95.2/gcc/p/util.h:196: conflicting types for `concat' /usr/pgmdev/gcc-2.95.2/gcc/p/../../include/libiberty.h:48: previous declaration of `concat' make[1]: *** [gpc-common.o] Error 1
in include\libiberty.h:48 - extern char *concat PARAMS ((const char *, ...));
in gcc-2.95.2/gcc/p/util.h:196 - extern char *concat PARAMS ((char *, ...));
Pls advise which one is correct. Or is there a switch/directive to disregard this error? I am installing on an Intel x86/Solaris 7 platform using GCC 2.95.2. I pulled down the GCC source from the Sunfreeware site and the GPC source from the GPC site.
For me (djgpp) I have identical prototypes in both files, but the second (util.h) is disabled presumably because it is circumvented by:
#ifndef EGCS92 ... #endif
But I do not know what it should be for Solaris. Somebody knows ?
Incidentally, Kevin M. Buckley has just found the same problem on Solaris a few days ago. It seems to be due to the use of some GNU grep features which are not supported by Solaris' grep which causes EGCS92 etc. not to be set.
Applying the attached patch to config-lang.in will hopefully solve the problem. (It will be incorporated into the official sources soon.)
Frank