C compiler used :
Sun Studio 10
Here how I configured gcc :
/usr/local/inst/gcc-4.0.0/configure --prefix=/usr/local/gnu
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-languages=c,c++
The 'make bootstrap' step of the build process fails. I am using the proper
version of GNU make,tar, bzip2, as recommended by the installation instructions.
It turns out that this configure script :
gcc-4.0.0/libcpp/configure
contains a bug. Specifically, line 2760 is
if test $GCC = yes; then
This causes configure to fail on Sun Solaris 2.9 (SPARC) using the Sun
Studio 10 C compiler, since $GCC expands to an empty string and
test then complains about missing arguments. Changing line 2760 to
if test "$GCC" = yes; then
fixes the problem. I don't know much about Autoconf, but I think
the problem might be stemming from line 53 in gcc-4.0.0/config/warnings.m4 :
AS_IF([test $GCC = yes],
Best Regards,
Serge Monkewitz
--
Summary: Bug in configure script for libcpp
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: smm at ipac dot caltech dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.9
GCC host triplet: sparc-sun-solaris2.9
GCC target triplet: sparc-sun-solaris2.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21411