Maurice Lombardi wrote:
Doing the build as usual, compilation dies at stage 2 when compiling the rts:
there have been many changes in gpcpp.c
The only djgpp-related patch in the p directory now fails. it was
[...]
It was used to make known the djgpp root directory for includes, but all this part has been changed.
More precisely, it has been removed, since the Pascal preprocessor doesn't need to find the C includes. :-) (C files linked into Pascal code are compiled by cc1 and preprocessed by cpp0, not by gpcpp.) So this shouldn't be the problem.
BTW, I wonder a little about these patches. Why don't they get them integrated with the main sources (well, for GPC this was the only one, but there are some more for GCC)? In particular, why is there a DJGPP specific patch for config/i386/djgpp.h? ;-)
I have rerun the offending instruction with addition of the -v option. result is
[...]
The problem seems to be `-imacros' option. Try the following:
--- p/gpcpp.c.orig Sat Nov 9 04:48:57 2002 +++ p/gpcpp.c Wed Nov 13 19:50:46 2002 @@ -1008,6 +1008,8 @@ else pend_includes[i] = argv[i+1], i++; } + if (!strcmp (argv[i], "-imacros")) + i++; if (!strcmp (argv[i], "-iprefix")) { if (i + 1 == argc) fatal ("filename missing after `-iprefix' option");
Frank