public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* configure, CFLAGS, and libjava
@ 2004-11-13 20:37 Gerald Pfeifer
  2004-11-13 23:47 ` Mike Stump
  2004-11-15 12:05 ` Rainer Orth
  0 siblings, 2 replies; 5+ messages in thread
From: Gerald Pfeifer @ 2004-11-13 20:37 UTC (permalink / raw)
  To: gcc, java; +Cc: David O'Brien

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-11-23  2:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-13 20:37 configure, CFLAGS, and libjava Gerald Pfeifer
2004-11-13 23:47 ` Mike Stump
2004-11-14  0:05   ` Gerald Pfeifer
2004-11-15 12:05 ` Rainer Orth
2004-11-23  2:54   ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).