I am trying to compile gpc20010623 with gcc 2.95.3 but the compiler complains about the following.
in gcc/tree.h:
extern int lang_decode_option PROTO((int, char **));
in gcc/p/lang.c:
#ifdef EGCS int lang_decode_option (argc, argv) int argc; char **argv; { return pascal_decode_option (argc, argv); } #else /* not EGCS */ int lang_decode_option (p) char *p; { return pascal_decode_option (p); } #endif /* not EGCS */
However, I am not using EGCS but gcc 2.95.3. Is comething configured incorrectly?
Theo Carr-Brion
Theo Carr-Brion wrote:
I am trying to compile gpc20010623 with gcc 2.95.3 but the compiler complains about the following.
in gcc/tree.h:
extern int lang_decode_option PROTO((int, char **));
in gcc/p/lang.c:
#ifdef EGCS int lang_decode_option (argc, argv) int argc; char **argv; { return pascal_decode_option (argc, argv); } #else /* not EGCS */ int lang_decode_option (p) char *p; { return pascal_decode_option (p); } #endif /* not EGCS */
However, I am not using EGCS but gcc 2.95.3. Is comething configured incorrectly?
In GPC's terminology, "EGCS" is everything newer than gcc-2.8.1, therefore including 2.95.3 (ask Peter why ;-).
There's a problem in config-lang.in that mis-detects the GCC version on systems with crippled versions of sed or grep. I've fixed it long time ago (and the patch was posted here several times), but Peter hasn't gotten around to uploading it yet. Perhaps he'll manage to RSN.
Apart from that, you can look for the fix in the list archives, or install GNU grep/sed and reconfigure.
Frank
Hello, Alternately, immediately after 'configure' command in gpc-build directory,
Check 'gcc-version.h ' file contained in gpc-build/gcc/ directory. If it is empty just add, #define EGCS #define ECGS92 #define EGCS95 Then proceed onto make. Ensure also gnu 'sed' is there in the path. Hope it works for you Thanks and Regards hari
frank@g-n-u.de wrote:
Theo Carr-Brion wrote:
I am trying to compile gpc20010623 with gcc 2.95.3 but the compiler complains about the following.
in gcc/tree.h:
extern int lang_decode_option PROTO((int, char **));
in gcc/p/lang.c:
#ifdef EGCS int lang_decode_option (argc, argv) int argc; char **argv; { return pascal_decode_option (argc, argv); } #else /* not EGCS */ int lang_decode_option (p) char *p; { return pascal_decode_option (p); } #endif /* not EGCS */
However, I am not using EGCS but gcc 2.95.3. Is comething configured incorrectly?
In GPC's terminology, "EGCS" is everything newer than gcc-2.8.1, therefore including 2.95.3 (ask Peter why ;-).
There's a problem in config-lang.in that mis-detects the GCC version on systems with crippled versions of sed or grep. I've fixed it long time ago (and the patch was posted here several times), but Peter hasn't gotten around to uploading it yet. Perhaps he'll manage to RSN.
Apart from that, you can look for the fix in the list archives, or install GNU grep/sed and reconfigure.
Frank
-- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html