This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Error building gcc-2.95.1
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Error building gcc-2.95.1
- From: Marcelo Maraboli <maraboli at dcsc dot utfsm dot cl>
- Date: Wed, 29 Sep 1999 14:34:09 -0400
- Organization: DCSC, UTFSM
Hello:
I've just encountered a problem (error) in building gcc-2.95.1
on a Solaris 2.7 Sparc box.
I compiled the same source with another machine Solaris 2.6
and it worked ok. (compiled only with make bootstrap)
on the error'ed machine: i compiled it with the
/install/make-3.77/make CFLAGS='-O2' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g
-O2 -fno-implicit-templates' bootstrap
and it found the following error:
gcc -c -DIN_GCC -DHAIFA -DSVR4 -g -DHAVE_CONFIG_H -I.
-I../../gcc-2.95.1/gcc -I../../gcc-2.95.1/gcc/config
-I../../gcc-2.95.1/gcc/../include ../../gcc-2.95.1/gcc/genattrtab.c
../../gcc-2.95.1/gcc/genattrtab.c:98: parse error before `/'
../../gcc-2.95.1/gcc/genattrtab.c: In function `max_attr_value':
../../gcc-2.95.1/gcc/genattrtab.c:4734: `INT_MAX' undeclared (first use
this function)
../../gcc-2.95.1/gcc/genattrtab.c:4734: (Each undeclared identifier is
reported only once
../../gcc-2.95.1/gcc/genattrtab.c:4734: for each function it appears
in.)
make[2]: *** [genattrtab.o] Error 1
make[2]: Leaving directory `/install/gcc/itata/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/install/gcc/itata/gcc'
make: *** [bootstrap] Error 2
I manually added:
#include "glimits.h"
before: #include "hconfig.h" in the gcc-2.95.1/gcc/genattrtab.c file
and re-ran "make...." and it worked ok....
seems that "genattrtab.c" didn't know
what the INT_MAX values was...
also...
gcc -c -DIN_GCC -DHAIFA -DSVR4 -g -DHAVE_CONFIG_H -I.
-I../../gcc-2.95.1/gcc -I../../gcc-2.95.1/gcc/config
-I../../gcc-2.95.1/gcc/../include ../../gcc-2.95.1/gcc/cppfiles.c
../../gcc-2.95.1/gcc/cppfiles.c: In function `initialize_input_buffer':
../../gcc-2.95.1/gcc/cppfiles.c:1103: `CHAR_BIT' undeclared (first use
this function)
../../gcc-2.95.1/gcc/cppfiles.c:1103: (Each undeclared identifier is
reported only once
../../gcc-2.95.1/gcc/cppfiles.c:1103: for each function it appears in.)
make[2]: *** [cppfiles.o] Error 1
make[2]: Leaving directory `/install/gcc/itata/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/install/gcc/itata/gcc'
make: *** [bootstrap] Error 2
I apply the same correction, and it works, but this other file complains
about a
PATH_MAX value which I couldn't find:
gcc-2.95.1/gcc/config/sparc/gmon-sol2.c
so I could not build gcc-2.95.1 for Solaris 2.7: here is the "uname"
output:
root@itata:/install/gcc/itata$ uname -a
SunOS itata 5.7 Generic_106541-05 sun4m sparc SUNW,SPARCstation-20
hope it helps..
regards,
--
Marcelo Maraboli Rosselott
Jefe de Area de Redes (Network Administrator)
Direccion Central de Servicios Computacionales (DCSC)
Universidad Tecnica Federico Santa Maria, Chile.
|--| |-[]-| |--| C: uCapacitor The Beginning of the
| C I C | I: Electronic New Electronic Age
| | Island "Quantum Electronics, That's COOL!"
|------()------| V: Voltage "Shut up, Beavis!"
V + -
mailto:maraboli@dcsc.utfsm.cl http://www.dcsc.utfsm.cl/~maraboli
------------------------------------------------------------------/