I'd like to install GCC 4.3.3 on a SGI IRIX 6.5 box.
First, I got compiled GCC 3.2.2 from the SGI freeware homepage, and installed it.
Then, I configured GCC 4.3.3 with following options
../gcc-4.3.3/configure --prefix=/usr/local/gcc43 \
--with-mpfr=/usr/local/mpf
r-n32 \
--with-gmp=/usr/local/gmp-
n32 \
--enable-languages=c,c++,f
ortran \
--enable-multilib \
--enable-shared \
--enable-threads=posix \
--enable-libgcj \
--disable-nls \
--with-pkgversion=AutoBuil
d \
--enable-checking=release \
--with-gnu-as --with-as=/usr/local/binut
ils/bin/as
\
--with-gnu-ld --with-ld=/usr/local/binut
ils/bin/ld
After that, I issued the command "gmake bootstrap" to compile it.
It spends 10 minutes or so compiling, then bombs out with:
gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I..
/../gcc-4.3.3/gcc -I../../gcc-4.3.3/gcc/buil
d -I../../gcc-4.3.3/gcc/../i
nclude -I../../gcc-4.3.3/gcc/../l
ibcpp/incl
ude -I/usr/local/gmp-n32/inclu
de -I/usr/local/mpfr-n3
2/include -I../../gcc-4.3.3/gcc/../l
ibdecnumbe
r -I../../gcc-4.3.3/gcc/../l
ibdecnumbe
r/dpd -I../libdecnumber -o build/fix-header.o ../../gcc-4.3.3/gcc/fix-he
ader.c
gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I..
/../gcc-4.3.3/gcc -I../../gcc-4.3.3/gcc/buil
d -I../../gcc-4.3.3/gcc/../i
nclude -I../../gcc-4.3.3/gcc/../l
ibcpp/incl
ude -I/usr/local/gmp-n32/inclu
de -I/usr/local/mpfr-n3
2/include -I../../gcc-4.3.3/gcc/../l
ibdecnumbe
r -I../../gcc-4.3.3/gcc/../l
ibdecnumbe
r/dpd -I../libdecnumber -o build/scan-decls.o ../../gcc-4.3.3/gcc/scan-d
ecls.c
gcc -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-DHAVE_CONFIG_H -DGENERATOR_FILE -o build/fix-heade
r \
build/fix-header.o c-incpath.o cppdefault.o build/scan-decls.o prefix.o \
build/scan.o build/errors.o ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumb
er.a
ld32: WARNING 84 : ../libdecnumber/libdecnumb
er.a is not used for resolving any symbol.
if [ -f fixhdr.ready ] ; then \
true; \
else \
echo timestamp > fixhdr.ready; \
fi
set -e; for ml in `cat fixinc_list`; do \
sysroot_headers_suffix=`ec
ho ${ml} | sed -e 's/;.*$//'`; \
multi_dir=`echo ${ml} | sed -e 's/^[^;]*;//'`; \
fix_dir=include-fixed${mul
ti_dir}; \
if [ -f ${fix_dir}/fixed ] ; then true; \
else \
: This line works around a 'make' bug in BSDI 1.1.; \
FIXPROTO_DEFINES="-D__EXTE
NSIONS__ -D_SGI_SOURCE -D_LANGUAGE_C_PLUS_PLUS"; export FIXPROTO_DEFINES; \
FIX_HEADER="build/fix-head
er"; export FIX_HEADER; \
mkinstalldirs="/bin/sh ../../gcc-4.3.3/gcc/../mki
nstalldirs
"; \
export mkinstalldirs; \
if [ -d "`echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`" ]; then \
/bin/sh ../../gcc-4.3.3/gcc/fixpro
to ${fix_dir} ${fix_dir} `echo /usr/include | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`; \
if [ $? -eq 0 ] ; then true ; else exit 1 ; fi ; \
else true; fi; \
echo timestamp > ${fix_dir}/fixed; \
fi; \
done
fixproto: populating `include-fixed'
Internal error: No prototype for clearerr
Internal error: No prototype for fclose
Internal error: No prototype for feof
Internal error: No prototype for ferror
Internal error: No prototype for fflush
Internal error: No prototype for fgetc
...........
...........
checking for mips-sgi-irix6.5-gcc... /home/root/gcc-build/./gcc
/xgcc -B/home/root/gcc-build/./g
cc/ -B/usr/local/gcc43/mips-sg
i-irix6.5/
bin/ -B/usr/local/gcc43/mips-sg
i-
irix6.5/lib/ -isystem /usr/local/gcc43/mips-sgi-
irix6.5/in
clude -isystem /usr/local/gcc43/mips-sgi-
irix6.5/sy
s-include
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
gmake[2]: *** [configure-stage1-target-l
ibgcc] Error 1
gmake[2]: Leaving directory `/home/root/gcc-build'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/home/root/gcc-build'
gmake: *** [bootstrap] Error 2
So I am not sure what to do. Any suggestions are appreciated.
Thanks