------- Additional Comments From ro at techfak dot uni-bielefeld dot de  
2004-11-24 14:24 -------
Subject: Re:  [4.0 Regression] libjava bootstrap failure on Tru64 UNIX: 
CPPFLAGS changed in libltdl

tromey at gcc dot gnu dot org writes:

> Perhaps it is a ksh quoting bug.  Or perhaps my approach to reproducing
> it is incorrect somehow.

To make sure the problem isn't shell dependent, I ran a bootstrap on
alpha-dec-osf5.1b with CONFIG_SHELL set to bash: the same problem occured
as with /bin/ksh.

> It would be worth digging through your config.status and config.cache
> files to see where the extra space occurs and where it does not.  This
> will help in isolating the bug, e.g. if the space is in config.status
> then the bug probably occurs during the actual invocation; if the space
> is in config.cache but not config.status then it may be stripped when
> creating config.status, etc.

In the alpha-dec-osf5.1b build mentioned above, I find in
alpha-dec-osf5.1b/libjava/config.cache:

ac_cv_env_CPPFLAGS_value='-O2 -g -O2  -mieee'

i.e. the extra space occurs.  In config.status, there is

  with options \"'--cache-file=./config.cache' '--host=alpha-dec-osf5.1b' 
'--build=alpha-dec-osf5.1b' '--enable-multilib' '--prefix=/vol/gcc' 
'--with-local-prefix=/vol/gcc' '--disable-nls' '--disable-libmudflap' 
'--with-gcc-version-trigger=/vol/gnu/src/gcc/gcc-dist/gcc/version.c' 
'--enable-languages=c,c++,java,objc' '--program-transform-name=s,y,y,' 
'--srcdir=/vol/gnu/src/gcc/gcc-dist/libjava' 
'--with-target-subdir=alpha-dec-osf5.1b' 'CPPFLAGS=-O2 -g -O2  -mieee' 
'build_alias=alpha-dec-osf5.1b' 'host_alias=alpha-dec-osf5.1b' 
'target_alias=alpha-dec-osf5.1b' --enable-ltdl-convenience 
--with-auxdir=/vol/gnu/src/gcc/gcc-dist\"
  echo "running /usr/local/bin/bash /vol/gnu/src/gcc/gcc-dist/libjava/configure 
" '--cache-file=./config.cache' '--host=alpha-dec-osf5.1b' 
'--build=alpha-dec-osf5.1b' '--enable-multilib' '--prefix=/vol/gcc' 
'--with-local-prefix=/vol/gcc' '--disable-nls' '--disable-libmudflap' 
'--with-gcc-version-trigger=/vol/gnu/src/gcc/gcc-dist/gcc/version.c' 
'--enable-languages=c,c++,java,objc' '--program-transform-name=s,y,y,' 
'--srcdir=/vol/gnu/src/gcc/gcc-dist/libjava' 
'--with-target-subdir=alpha-dec-osf5.1b' 'CPPFLAGS=-O2 -g -O2  -mieee' 
'build_alias=alpha-dec-osf5.1b' 'host_alias=alpha-dec-osf5.1b' 
'target_alias=alpha-dec-osf5.1b' --enable-ltdl-convenience 
--with-auxdir=/vol/gnu/src/gcc/gcc-dist $ac_configure_extra_args " --no-create 
--no-recursion" >&6
  exec /usr/local/bin/bash /vol/gnu/src/gcc/gcc-dist/libjava/configure 
'--cache-file=./config.cache' '--host=alpha-dec-osf5.1b' 
'--build=alpha-dec-osf5.1b' '--enable-multilib' '--prefix=/vol/gcc' 
'--with-local-prefix=/vol/gcc' '--disable-nls' '--disable-libmudflap' 
'--with-gcc-version-trigger=/vol/gnu/src/gcc/gcc-dist/gcc/version.c' 
'--enable-languages=c,c++,java,objc' '--program-transform-name=s,y,y,' 
'--srcdir=/vol/gnu/src/gcc/gcc-dist/libjava' 
'--with-target-subdir=alpha-dec-osf5.1b' 'CPPFLAGS=-O2 -g -O2  -mieee' 
'build_alias=alpha-dec-osf5.1b' 'host_alias=alpha-dec-osf5.1b' 
'target_alias=alpha-dec-osf5.1b' --enable-ltdl-convenience 
--with-auxdir=/vol/gnu/src/gcc/gcc-dist $ac_configure_extra_args --no-create 
--no-recursion
ac_configure_args="--enable-multilib '--cache-file=./config.cache' 
'--host=alpha-dec-osf5.1b' '--build=alpha-dec-osf5.1b' '--enable-multilib' 
'--prefix=/vol/gcc' '--with-local-prefix=/vol/gcc' '--disable-nls' 
'--disable-libmudflap' 
'--with-gcc-version-trigger=/vol/gnu/src/gcc/gcc-dist/gcc/version.c' 
'--enable-languages=c,c++,java,objc' '--program-transform-name=s,y,y,' 
'--srcdir=/vol/gnu/src/gcc/gcc-dist/libjava' 
'--with-target-subdir=alpha-dec-osf5.1b' 'CPPFLAGS=-O2 -g -O2  -mieee' 
'build_alias=alpha-dec-osf5.1b' 'host_alias=alpha-dec-osf5.1b' 
'target_alias=alpha-dec-osf5.1b' --enable-ltdl-convenience 
--with-auxdir=/vol/gnu/src/gcc/gcc-dist"
s,@CFLAGS@,-O2 -g -O2  -mieee,;t t
s,@CXXFLAGS@,-g -O2 -mieee,;t t
s,@LIBGCJ_CFLAGS@,  -mieee,;t t
s,@LIBGCJ_CXXFLAGS@,  -mieee,;t t
s,@LIBGCJ_JAVAFLAGS@,  -mieee,;t t
s,@CPPFLAGS@,-O2 -g -O2  -mieee,;t t
s,@IEEESPEC@,-mieee,;t t

I.e. the extra space is present here, too.

In libltdl/config.log, I find

  $ /vol/gnu/src/gcc/gcc-dist/libjava/libltdl/configure --prefix=/vol/gcc 
--cache-file=./config.cache --host=alpha-dec-osf5.1b --build=alpha-dec-osf5.1b 
--enable-multilib --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls 
--disable-libmudflap 
--with-gcc-version-trigger=/vol/gnu/src/gcc/gcc-dist/gcc/version.c--enable-languages=c,c++,java,objc
 --program-transform-name=s,y,y, --srcdir=/vol/gnu/src/gcc/gcc-dist/libjava 
--with-target-subdir=alpha-dec-osf5.1b CPPFLAGS=-O2 -g -O2 -mieee 
build_alias=alpha-dec-osf5.1b host_alias=alpha-dec-osf5.1b 
target_alias=alpha-dec-osf5.1b --enable-ltdl-convenience 
--with-auxdir=/vol/gnu/src/gcc/gcc-dist --cache-file=.././config.cache 
--srcdir=/vol/gnu/src/gcc/gcc-dist/libjava/libltdl

Here, the extra space is gone.

        Rainer


-- 


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

Reply via email to