This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

configure, CFLAGS, and libjava


We have a bug in our configure mechanism for libjava.

Specifically, when ones sets CFLAGS to "-pipe " (note the trailing blank),
bootstrap fails as follows on i386 GNU/Linux and others:

  Adding multilib support to Makefile in /cvs/gcc/libjava
  multidirs=
  with_multisubdir=
  configure: configuring in libltdl
  configure: running /bin/sh '/cvs/gcc/libjava/libltdl/configure' --prefix=/suse/gp/gcc-i386  '--cache-file=./config.cache' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--enable-multilib' '--prefix=/suse/gp/gcc-i386' '--with-gcc-version-trigger=/cvs/gcc/gcc/version.c' '--enable-languages=c,c++,java,objc' '--program-transform-name=s,y,y,' '--srcdir=/cvs/gcc/libjava' '--with-target-subdir=i686-pc-linux-gnu' 'CPPFLAGS=-O2 -pipe ' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'target_alias=i686-pc-linux-gnu' --enable-ltdl-convenience --with-auxdir=/cvs/gcc --cache-file=.././config.cache --srcdir=/cvs/gcc/libjava/libltdl
  configure: loading cache .././config.cache
  configure: error: `CPPFLAGS' has changed since the previous run:
  configure:   former value:  -O2 -pipe  <===
  configure:   current value: -O2 -pipe <===
  configure: error: changes in the environment can compromise the build
  configure: error: run `make distclean' and/or `rm .././config.cache' and start over
  configure: error: /bin/sh '/cvs/gcc/libjava/libltdl/configure' failed for libltdl
  gmake[1]: *** [configure-target-libjava] Error 1
  gmake[1]: Leaving directory `/tmp/OBJ-1113-2018'
  gmake: *** [bootstrap-lean] Error 2

Note that "former value" and "current value" above differ by one blank.

I tried to track the source of this difference down but failed so far. Any
concrete hints where to look or, better yet ;-), takers?

Gerald


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]