I am using Sun Forte to bootstrap gcc-4.0.0. A config script does not work unless GCC is set. Here is a patch to fix the problem.
--- config/warnings.m4.0 Mon Jan 24 04:21:24 2005 +++ config/warnings.m4 Tue Apr 26 11:06:52 2005 @@ -50,7 +50,7 @@ AC_SUBST([WARN_PEDANTIC])dnl AS_VAR_PUSHDEF([acx_Pedantic], [acx_cv_prog_cc_pedantic_$1])dnl WARN_PEDANTIC= -AS_IF([test $GCC = yes], +AS_IF([test "$GCC" = yes], [AC_CACHE_CHECK([whether $CC supports -pedantic $1], acx_Pedantic, [save_CFLAGS="$CFLAGS" CFLAGS="-pedantic $1" libcpp/configure must be regenerated after the patch is applied. Best Regards,... -- Summary: gcc-4.0.0 bootstrap failed unless bootstrap compiler is gcc. Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kunisawa at access dot co dot jp CC: gcc-bugs at gcc dot gnu dot org 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=21230