This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/21646] New: Boostraping with SUN cc leads to: gcc-4.0.0/libcpp/configure[2760]: test: argument expected
- From: "andreas at florath dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 May 2005 14:41:35 -0000
- Subject: [Bug bootstrap/21646] New: Boostraping with SUN cc leads to: gcc-4.0.0/libcpp/configure[2760]: test: argument expected
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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