Hi Grabbed Waldek's patches. Both gcc & gpc patched ok. Started bootstrap; found bison 1.35 was too old; Grabbed bison 1.875, & installed (there's a 1.875c - should I have used that instead? ). Then make bootstrap got this far:
[..] make[3]: Nothing to be done for `generated-files'. make[3]: Leaving directory `/home/russ/src/gpc-20030830-3.4.0/p/rts' gcc -o p/parse.o -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -I. -Ip -I../../gcc-3.4.0/gcc -I../../gcc-3.4.0/gcc/p -I../../gcc-3.4.0/gcc/../include -DGPC -I../../gcc-3.4.0/gcc/p ../../gcc-3.4.0/gcc/p/parse.c parse.c:378: warning: useless keyword or type name in empty declaration parse.c:378: warning: empty declaration parse.c: In function `yydoAction': parse.c:8133: error: `USE_ASSERT_RATHER_THAN_ABORT' undeclared (first use in this function) parse.c:8133: error: (Each undeclared identifier is reported only once parse.c:8133: error: for each function it appears in.) parse.c: In function `yyglrReduce': parse.c:8249: error: `USE_ASSERT_RATHER_THAN_ABORT' undeclared (first use in this function) parse.c: In function `yysplitStack': parse.c:8287: error: `USE_ASSERT_RATHER_THAN_ABORT' undeclared (first use in this function) parse.c: In function `yyresolveStates': parse.c:8386: error: `USE_ASSERT_RATHER_THAN_ABORT' undeclared (first use in this function) parse.c: In function `yyresolveAction': parse.c:8417: error: `USE_ASSERT_RATHER_THAN_ABORT' undeclared (first use in this function) parse.c: In function `yyprocessOneStack': parse.c:8610: error: `USE_ASSERT_RATHER_THAN_ABORT' undeclared (first use in this function) parse.y: At top level: parse.y:2967: warning: 'locations' defined but not used make[2]: *** [p/parse.o] Error 1 make[2]: Leaving directory `/home/russ/src/gpc-20030830-3.4.0/build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/home/russ/src/gpc-20030830-3.4.0/build/gcc' make: *** [bootstrap] Error 2
Russ
Russell Whitaker wrote:
Hi Grabbed Waldek's patches. Both gcc & gpc patched ok. Started bootstrap; found bison 1.35 was too old; Grabbed bison 1.875, & installed (there's a 1.875c - should I have used that instead? ). Then make bootstrap got this far:
The patch only works with bison 1.875c (should work with later version when they apper, but ATM 1.875c is the latest). If you do not have that version you can grab patch to parse.[ch].