Problem building 2.9.5.1 on Solaris
Peter A. Friend
octavian@corp.earthlink.net
Fri Oct 1 00:00:00 GMT 1999
I have been trying to build the latest gcc on Solaris 2.5.1 as well as
2.7 (both Sparc) with the same results.
For starters, I get a bunch of "#error ISA not supported" messages. Looks
like __sparc is not being defined somewhere? :
fixproto: populating `include'
/var/tmp/newgcc/gcc/include/curses.h:5: warning: #include_next in primary source file
fix-header: In file included from /usr/include/sys/types.h:14,
from /usr/include/sys/termios.h:20,
from /usr/include/sys/termio.h:13,
from /usr/include/termio.h:13,
from /usr/include/curses.h:48,
from /var/tmp/newgcc/gcc/include/curses.h:5,
from /var/tmp/newgcc/gcc/include/curses.h:5:
/usr/include/sys/isa_defs.h:252: #error ISA not supported
fix-header: In file included from /usr/include/limits.h:14,
from /var/tmp/newgcc/gcc/include/limits.h:117,
from /var/tmp/newgcc/gcc/include/syslimits.h:7,
from /var/tmp/newgcc/gcc/include/limits.h:11:
/usr/include/sys/isa_defs.h:252: #error ISA not supported
Of course, these errors may mean nothing. What gets weird is that if I
use the --prefix=/opt/gnu option to configure, then try a make, I get a
core dump. I do NOT get a core dump when I run the default (install in
/usr/local) configure and run make. I know that I should just install
in /usr/local as a workaround but I am out of room on that partition.
stage1/xgcc -Bstage1/ -B/opt/gnu/sparc-sun-solaris2.5.1/bin/ -c -DIN_GCC -DHAIFA -DSVR4 -O2 -g -O2 -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/gengenrtl.c
stage1/xgcc -Bstage1/ -B/opt/gnu/sparc-sun-solaris2.5.1/bin/ -DIN_GCC -DHAIFA -DSVR4 -O2 -g -O2 -DHAVE_CONFIG_H -o gengenrtl \
gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "alloca.o" in ?*) echo alloca.o ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac `
./gengenrtl tmp-genrtl.h tmp-genrtl.c
make[2]: *** [s-genrtl] Segmentation Fault (core dumped)
make[2]: Leaving directory `/var/tmp/newgcc/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/var/tmp/newgcc/gcc'
make: *** [bootstrap] Error 2
I am using gcc 2.8.1. Make is GNU 3.77.
TIA,
Peter Friend
---
Software Engineer
EarthLink Network
More information about the Gcc-help
mailing list