error on make bootstrap

Carl B. Constantine cconstan@csc.UVic.CA
Tue Apr 22 22:06:00 GMT 2003


I'm trying to compile gcc-3.1.1 on solaris 8 Sparc (Blade 1000) and get
an error during the make bootstrap process. This is really strange,
since I don't get the problem on a solaris 8 for x86 system using the
same settings.

First, my settings:

CPPFLAGS = '-I/public/include -L/public/lib' (basically just extras)
CFLAGS = '-D_LARGEFILE_SOURCE -O2'
LD_LIBRARY_PATH = /public/lib:/usr/lib

gcc -v
Reading specs from
/package/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs
gcc version 2.95.3 20010315 (release)

make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.8

my configure options:

../gcc-3.1.1/configure --prefix=/package/gcc-3.1.1 --enable-shared
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls

Now, the configure works fine. Then I do a make bootstrap and receive
the following error:

gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-pototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FIE -I/public/include -L/public/lib   -I. -I. -I../../gcc-3.1.1/gcc -I../../gcc-31.1/gcc/. -I../../gcc-3.1.1/gcc/config -I../../gcc-3.1.1/gcc/../include ../../gc-3.1.1/gcc/rtl.c -o rtl.o
../../gcc-3.1.1/gcc/rtl.c: In function `get_mode_alignment':
../../gcc-3.1.1/gcc/rtl.c:488: warning: comparison between signed and unsigned
gcc -c -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-pototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FIE -I/public/include -L/public/lib   -I. -I. -I../../gcc-3.1.1/gcc -I../../gcc-31.1/gcc/. -I../../gcc-3.1.1/gcc/config -I../../gcc-3.1.1/gcc/../include ../../gc-3.1.1/gcc/read-rtl.c -o read-rtl.o
../../gcc-3.1.1/gcc/read-rtl.c: In function `fatal_with_file_and_line':
../../gcc-3.1.1/gcc/read-rtl.c:67: warning: implicit declaration of function `V_OPEN'
../../gcc-3.1.1/gcc/read-rtl.c:67: `ap' undeclared (first use in this function)
../../gcc-3.1.1/gcc/read-rtl.c:67: (Each undeclared identifier is reported onlyonce
../../gcc-3.1.1/gcc/read-rtl.c:67: for each function it appears in.)
../../gcc-3.1.1/gcc/read-rtl.c:68: warning: implicit declaration of function `V_FIXEDARG'
../../gcc-3.1.1/gcc/read-rtl.c:68: parse error before `FILE'
../../gcc-3.1.1/gcc/read-rtl.c:69: parse error before `const'
../../gcc-3.1.1/gcc/read-rtl.c:90: warning: implicit declaration of function `V_CLOSE'
make[2]: *** [read-rtl.o] Error 1
make[2]: Leaving directory `/mayne/c/admpubsw/gcc/objdir311/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mayne/c/admpubsw/gcc/objdir311/gcc'
make: *** [bootstrap] Error 2

I used script to capture the entire session. In the interest of saving
space, you can look at the entire typescript at the following URL:

http://web.csc.uvic.ca/~cconstan/typescript-3.1.1

note in that version, I have CFLAGS set to -D_LARGEFILE_SOURCE -O2
-funroll-loops -fexpensive-optimizations

I really need to get this to work, so I can get gnat, to compile
(already tried, same error on the bootstrap) but I can't get by this.


PS: does anyone know if I can try to cross compile this and gnat for
solaris x86?

-- 
Carl B. Constantine         University of Victoria
Programmer Analyst          http://www.csc.uvic.ca
UNIX System Administrator   Victoria, BC, Canada
cconstan@csc.uvic.ca        ELW A220, 721-8753



More information about the Gcc-help mailing list