public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Gerald Pfeifer <gerald@pfeifer.com>
To: gcc@gcc.gnu.org, java@gcc.gnu.org
Cc: David O'Brien <obrien@freebsd.org>
Subject: configure, CFLAGS, and libjava
Date: Sat, 13 Nov 2004 20:37:00 -0000	[thread overview]
Message-ID: <Pine.BSF.4.61.0411132102370.90337@acrux.dbai.tuwien.ac.at> (raw)

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

             reply	other threads:[~2004-11-13 20:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-13 20:37 Gerald Pfeifer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.BSF.4.61.0411132102370.90337@acrux.dbai.tuwien.ac.at \
    --to=gerald@pfeifer.com \
    --cc=gcc@gcc.gnu.org \
    --cc=java@gcc.gnu.org \
    --cc=obrien@freebsd.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).