I'm trying to build gpc-20001019 on an old i486DX2 DECpc running FreBSD 2.2.8 , but I get the error message of "gcc-2.95.2/gcc/p/rts/rts.c:326: `T_RESADFLT' undeclared here (not in a function)" .
I can't find the word "T_RESADFLT" in rts.c. I want to know what is happenning.
==== gmake[2]: Entering directory `/usr/local/src/gcc/gpc_objir/gcc/p/rts' /usr/local/src/gcc/gpc_objir/gcc/xgcc -B/usr/local/src/gcc/gpc_objir/gcc/ -B/usr/local/i386-unknown-freebsd2.2.8/bin/ -I/usr/local/i386-unknown-freebsd2.2.8/include -c -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 -DRTS_RELEASE_STRING="'`cat /usr/local/src/gcc/gcc-2.95.2/gcc/p/rts/rts-version`'" /usr/local/src/gcc/gcc-2.95.2/gcc/p/rts/rts.c /usr/local/src/gcc/gcc-2.95.2/gcc/p/rts/rts.c:326: `T_RESADFLT' undeclared here (not in a function) /usr/local/src/gcc/gcc-2.95.2/gcc/p/rts/rts.c:328: `T_RESOPFLT' undeclared here (not in a function) /usr/local/src/gcc/gcc-2.95.2/gcc/p/rts/rts.c: In function `_p_c_strsignal': /usr/local/src/gcc/gcc-2.95.2/gcc/p/rts/rts.c:741: warning: return discards qualifiers from pointer target type gmake[2]: *** [rts.o] Error 1 gmake[2]: Leaving directory `/usr/local/src/gcc/gpc_objir/gcc/p/rts' gmake[1]: *** [pascal.rts] Error 2 gmake[1]: Leaving directory `/usr/local/src/gcc/gpc_objir/gcc' gmake: *** [all-gcc] Error 2 $
==== Built and Installed files for preparation to build gpc
make-3.79.1 sed-3.02 bzip2-1.0.1 gettext-0.10.35 bison-1.28 gcc-2.95.2 (installed already. It took me 11 hours !) gawk-3.0.6 m4-1.4 autoconf-2.13
Honda Hirotaka wrote:
I'm trying to build gpc-20001019 on an old i486DX2 DECpc running FreBSD 2.2.8 , but I get the error message of "gcc-2.95.2/gcc/p/rts/rts.c:326: `T_RESADFLT' undeclared here (not in a function)" .
I can't find the word "T_RESADFLT" in rts.c. I want to know what is happenning.
No, this word doesn't occur. However, the line refers to ILL_RESAD_FAULT (and two lines below to ILL_RESOP_FAULT).
So, it may be that these symbols are defined to T_RESADFLT and T_RESOPFLT in some system header, but the latter symbols are not defined. Now, why would one define something to something undefined? I don't know, I guess only a C programmer can understand this...
Maybe they expect one to include some other header where the latter symbols are defined. If you can find out which one (using grep or something), we can arrange for that...
/usr/local/src/gcc/gpc_objir/gcc/xgcc -B/usr/local/src/gcc/gpc_objir/gcc/ -B/usr/local/i386-unknown-freebsd2.2.8/bin/ -I/usr/local/i386-unknown-freebsd2.2.8/include -c -I. -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 -DRTS_RELEASE_STRING="'`cat /usr/local/src/gcc/gcc-2.95.2/gcc/p/rts/rts-version`'" /usr/local/src/gcc/gcc-2.95.2/gcc/p/rts/rts.c /usr/local/src/gcc/gcc-2.95.2/gcc/p/rts/rts.c:326: `T_RESADFLT' undeclared here (not in a function) /usr/local/src/gcc/gcc-2.95.2/gcc/p/rts/rts.c:328: `T_RESOPFLT' undeclared here (not in a function) /usr/local/src/gcc/gcc-2.95.2/gcc/p/rts/rts.c: In function `_p_c_strsignal': /usr/local/src/gcc/gcc-2.95.2/gcc/p/rts/rts.c:741: warning: return discards qualifiers from pointer target type
This last warning is harmless, but it'll be removed soon...
Frank