Hello!

Bootstraping the gcc-4.0.0 leads to a error message:
/tmp/gcc-4.0.0/libcpp/configure[2760]: test: argument expected

As far as I see in the line
  if test $GCC = yes; then
the var GCC is not set. It is set in line 2145, but in case of a non gcc
compiler, it is evaluated to an empty string.
  GCC=`test $ac_compiler_gnu = yes && echo yes`

Note 1: Maybe this is a problem with autoconf / automake.

Note 2: As far as I can see there is no functional impact: the 'test' is
evaluated to 'false' which is exactly what is needed at this point.

Note 3: Maybe a bugfix is:
  GCC=`test $ac_compiler_gnu = yes && echo yes || echo no`

Best regards

Andreas Florath


System:
SunOS 5.8 Generic_108528-26 sun4u sparc SUNW,Sun-Fire-15000

How to reproduce:
1) cd /tmp/gcc-4.0.0
2) mkdir ../gcc-compile
3) cd ../gcc-compile
4) CONFIG_SHELL=/bin/ksh
5) export CONFIG_SHELL
6) /tmp/gcc-4.0.0/configure --prefix=/tmp/pkg/pre1 --enable-shared
--enable-threads --enable-languages=c --disable-libgcj --disable-multilib

-- 
           Summary: Boostraping with SUN cc leads to: gcc-
                    4.0.0/libcpp/configure[2760]: test: argument expected
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andreas at florath dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc-sun-solaris2.8
  GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21646

Reply via email to