Since I am unable to bootstrap gcc-4.3.1 using the Sun cc compiler (see bug Bug#: 33304), I attempted to compile using Sun's version of gcc (http://cooltools.sunsource.net/gcc/). This does not work either. The configure fails in the sparc-sun-solaris2.10/libgcc directory.
The version of gcc being used is: /gcc -v Using built-in specs. Target: sparc-sun-solaris2.10 Configured with: /net/clpt-v490-1/export/data/bldmstr/20080102_phobos_gcc42/src/configure --prefix=/usr/sfw --enable-shared --with-system-zlib --enable-checking=release --disable-libmudflap --enable-languages=c,c++ --enable-version-specific-runtime-libs --with-cpu=v9 --with-ld=/usr/ccs/bin/ld --without-gnu-ld --disable-gnattools --with-mpfr=/ws/gccfss/tools --with-gmp=/ws/gccfss/tools Thread model: posix gcc version 4.2.0 (gccfss) The configure command is: /bin/ksh /appl/local_sde_dev/src/gcc/gcc-4.3.1/sparc-SunOS-5.10/gcc-4.3.1-obj/../gcc-4.3.1/configure --prefix=/usr/local/sde/gcc-4.3.1 --with-gmp=/usr/local/sde --with-mpfr=/usr/local/sde --disable-nls Note that gmp and mpfr are compiled into static libraries only, and I set ABI=32 for gmp. The "make bootstrap" terminates with: checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. The following is an extract from the config.log (from the sparc-sun-solaris2.10/libgcc directory) that has the following error message: Reading specs from /appl/local_sde_dev/src/gcc/gcc-4.3.1/sparc-SunOS-5.10/gcc-4.3.1-obj/./gcc/specs Target: sparc-sun-solaris2.10 Configured with: /appl/local_sde_dev/src/gcc/gcc-4.3.1/sparc-SunOS-5.10/gcc-4.3.1-obj/../gcc-4.3.1/configure --prefix=/usr/local/sde/gcc-4.3.1 --with-gmp=/usr/local/sde --with-mpfr=/usr/local/sde --disable-nls Thread model: posix gcc version 4.3.1 (GCC) configure:2374: $? = 0 configure:2376: /appl/local_sde_dev/src/gcc/gcc-4.3.1/sparc-SunOS-5.10/gcc-4.3.1-obj/./gcc/xgcc -B/appl/local_sde_dev/src/gcc/gcc-4.3.1/sparc-SunOS-5.10/gcc-4.3.1-obj/./gcc/ -B/usr/local/sde/gcc-4.3.1/sparc-sun-solaris2.10/bin/ -B/usr/local/sde/gcc-4.3.1/sparc-sun-solaris2.10/lib/ -isystem /usr/local/sde/gcc-4.3.1/sparc-sun-solaris2.10/include -isystem /usr/local/sde/gcc-4.3.1/sparc-sun-solaris2.10/sys-include -V </dev/null >&5 xgcc: '-V' must come at the start of the command line configure:2379: $? = 1 configure:2398: /appl/local_sde_dev/src/gcc/gcc-4.3.1/sparc-SunOS-5.10/gcc-4.3.1-obj/./gcc/xgcc -B/appl/local_sde_dev/src/gcc/gcc-4.3.1/sparc-SunOS-5.10/gcc-4.3.1-obj/./gcc/ -B/usr/local/sde/gcc-4.3.1/sparc-sun-solaris2.10/bin/ -B/usr/local/sde/gcc-4.3.1/sparc-sun-solaris2.10/lib/ -isystem /usr/local/sde/gcc-4.3.1/sparc-sun-solaris2.10/include -isystem /usr/local/sde/gcc-4.3.1/sparc-sun-solaris2.10/sys-include -o conftest -g -fkeep-inline-functions conftest.c >&5 conftest.c:1: internal compiler error: Segmentation Fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Please let me know what more information you would like. -- Summary: gcc-4.3.1 bootstrap failure on sparc Solaris 10 Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Jay dot St dot Pierre at Colorado dot EDU GCC build triplet: sparc-sun-solaris2.10 GCC host triplet: sparc-sun-solaris2.10 GCC target triplet: sparc-sun-solaris2.10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37050