Hello!
David James wrote:
I unpacked the egcs source into a directory tree, moved the snapshot's p directory into gcc, applied the gcc-egcs-2.91.66 patch (after a bit of editing of directory names within the patch file), did a ./configure, and am now trying make LANGUAGES=pascal.
Is this the correct sequence of actions?
Yes.
You can omit applying the patch manually, then `./configure' will do it for you.
The INSTALL file in the snapshot doesn't seem to cover building GPC under EGCS.
EGCS is just a special case of GCC. We should perhaps mention that the `p' subdirectory has to be attached to the `gcc' (and not the main) directory.
I guess my first question is: should I be using EGCS or would I be better off with a plain gcc source, and if so what version?
egcs-1.1.x is fine.
The p/gpc_release file contains 19990610, I think it should contain 19990813.
Correct. Thanks.
I think there is something strange about the way the contents of the gpc_release file is accessed - at the point where I see the make doing a cd p, I then see an error message from cat that it cannot find the gpc_release file. It looks as if there is one too few "../"s on the front of the path to the file.
In p/gpc-common.c at line 2893, TREU_OVERFLOW should be TREE_OVERFLOW, I think.
That's strange because my `p/gpc-common.c' (from gpc-19990813) is correct.
(Not a GPC problem): In my gcc/flow.c at line 1493, the code says REG_N_SEDS, it should be REG_N_SETS, I think.
This could be the same problem as with `p/gpc-common.c'.
I have seen errors of this type with a defective hard disk, but a better explanation would be preferred. (Maybe a libc conflict?)
make[1]: Entering directory `/home/david/egcs/objs/gcc' gcc -DIN_GCC -g -O2 -DHAVE_CONFIG_H -o cc1 c-parse.o c-lang.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common collect2: ld terminated with signal 11 [Segmentation fault], core dumped make[1]: *** [cc1] Error 1 make: *** [all-gcc] Error 2 make[1]: Leaving directory `/home/david/egcs/objs/gcc'
I think the GCC line has been truncated in copying it between systems.
Has anyone succeeded in compiling this snapshot in a similar environment?
The snapshot was successfully tested with egcs-1.1.2 as follows:
mv gpc/p egcs-1.1.2/gcc/ cd egcs-1.1.2/gcc ./configure make LANGUAGES=pascal sudo make LANGUAGES=pascal install
I am afraid that something is strange with your system.
Good luck,
Peter