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

* Re: configure, CFLAGS, and libjava
  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
  1 sibling, 1 reply; 5+ messages in thread
From: Mike Stump @ 2004-11-13 23:47 UTC (permalink / raw)
  To: Gerald Pfeifer; +Cc: gcc, java, David O'Brien

On Saturday, November 13, 2004, at 12:24  PM, Gerald Pfeifer wrote:
> We have a bug in our configure mechanism for libjava.

Not limited to libjava...  All of it is, uhm, what's the word, 
unfortunate.  It triggers too often, and just doesn't do the right 
thing, an rm -rf followed by another build would be preferable, as then 
it would actually build all the time.

:-(

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

* Re: configure, CFLAGS, and libjava
  2004-11-13 23:47 ` Mike Stump
@ 2004-11-14  0:05   ` Gerald Pfeifer
  0 siblings, 0 replies; 5+ messages in thread
From: Gerald Pfeifer @ 2004-11-14  0:05 UTC (permalink / raw)
  To: Mike Stump; +Cc: gcc, java, David O'Brien

On Sat, 13 Nov 2004, Mike Stump wrote:
> Not limited to libjava...  All of it is, uhm, what's the word, unfortunate. 
> It triggers too often, and just doesn't do the right thing, an rm -rf 
> followed by another build would be preferable, as then it would actually 
> build all the time.

Well, it is much worse than that!  For libjava, this failure reproducibly 
happens when building in a pristine build tree from pristine sources.

Gerald

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

* Re: configure, CFLAGS, and libjava
  2004-11-13 20:37 configure, CFLAGS, and libjava Gerald Pfeifer
  2004-11-13 23:47 ` Mike Stump
@ 2004-11-15 12:05 ` Rainer Orth
  2004-11-23  2:54   ` Tom Tromey
  1 sibling, 1 reply; 5+ messages in thread
From: Rainer Orth @ 2004-11-15 12:05 UTC (permalink / raw)
  To: Gerald Pfeifer; +Cc: gcc, java, David O'Brien

Gerald Pfeifer <gerald@pfeifer.com> writes:

> 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:
[...]
> 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?

This problem currently breaks a regular bootstrap on Tru64 UNIX, cf. PR
libgcj/18222.

	Rainer

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

* Re: configure, CFLAGS, and libjava
  2004-11-15 12:05 ` Rainer Orth
@ 2004-11-23  2:54   ` Tom Tromey
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Tromey @ 2004-11-23  2:54 UTC (permalink / raw)
  To: Rainer Orth; +Cc: Gerald Pfeifer, gcc, java, David O'Brien

>>>>> "Rainer" == Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> writes:

Rainer> This problem currently breaks a regular bootstrap on Tru64
Rainer> UNIX, cf. PR libgcj/18222.

I sent a followup to this PR.  It would help a little to find out
whether the bug occurs when creating config.status or when running it.

Tom

^ 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).