I have configured gcc-4.1.0 with the following command:
configure --enable-threads --enable-languages=c,c++ --enable-bootstrap
--with-gnu-as --with-gnu-ld
The system has GNU binutils 2.16 installed and when running "gmake bootstrap"
it compiles all 3 stage but fails during the compare stage with:
...
bgcc_s.so.1 && ln -s libgcc_s.so.1 sparcv9/libgcc_s.so
gmake[4]: Leaving directory
`/tmp/gcc-4.1.0/host-sparc-sun-solaris2.9/stage3-gcc'
echo timestamp > stmp-multilib
gmake[3]: Leaving directory
`/tmp/gcc-4.1.0/host-sparc-sun-solaris2.9/stage3-gcc'
gmake[2]: Leaving directory `/tmp/gcc-4.1.0'
gmake compare
gmake[2]: Entering directory `/tmp/gcc-4.1.0'
gmake[3]: Entering directory `/tmp/gcc-4.1.0'
gmake[3]: Leaving directory `/tmp/gcc-4.1.0'
/bin/sh: stage3-gcc: does not exist
gmake[2]: *** [compare] Error 1
gmake[2]: Leaving directory `/tmp/gcc-4.1.0'
gmake[1]: *** [stage3-bubble] Error 2
gmake[1]: Leaving directory `/tmp/gcc-4.1.0'
gmake: *** [bootstrap] Error 2
--
Summary: GCC 4.1.0 won't build under Solaris 9 - fails stage3
compare
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: andy at trojanfoe dot servebeer dot com
GCC build triplet: solaris2.9
GCC host triplet: sparc
GCC target triplet: sun
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27099