From: Nick Clifton <nickc@redhat.com>
To: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>,
Nick Clifton <nickc@redhat.com>,
gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org,
binutils@sourceware.org
Subject: Re: RFA/RFC: Pass --cache-file=/dev/null on to subconfigures
Date: Fri, 25 Sep 2009 14:50:00 -0000 [thread overview]
Message-ID: <4ABCD89E.6040406@redhat.com> (raw)
In-Reply-To: <20090925110629.GA25946@ins.uni-bonn.de>
Hi Ralf,
>> Any comments or reasons why the patch should not be applied ?
>
> Yes. Unless you have actively changed any precious variables, they
> should not be inconsistent and the cache should not be invalidated.
Ok, first of all though, do you agree that it should be possible to
build a toolchain without using config caches ? Ie should a
"--cache-file=/dev/null" specified at the top level be passed on to the
configure scripts in sub-directories ?
Also, as an aside, what about a "--config-file=<foo>" top-level
configure switch where <foo> is a non-absolute filename. Eg:
--config-file=foo.config.cache
Should a switch like this be allowed to change the name of the config
cache files used in the sub-directories ? Currently this will not work,
and my patch would not fix this, but I was wondering if it was expected
to work.
> Can you please provide me with a recipe to reproduce this
OK, here is what works for me. Using the latest gcc and sourceware
mainline sources, with symlinks from the gcc source directory to the
sourceware source directory, on a Fedora 11 x86 host, in an empty
directory, run the following commands:
% <path-to-top-level-gcc-sources>/configure \
--quiet \
--target=arm-eabi \
--enable-languages=c
[The configure options are not essential, but they do make it faster
to reproduce the problem. I suspect that you need to choose a target
that uses multilibs].
% make all-target-newlib
% touch <path-to-sourceware-source>/newlib/configure
% make all-target-newlib
Result:
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and
start over
make[1]: *** [Makefile] Error 1
Note that the configure script at the top level of the newlib source
directory was built with autoconf v2.59. This is doubtless part of the
problem. But the issue is that if the gcc sources are part of an
integrated source tree where some of the configure files have not been
created with the latest version of autoconf (2.64 ?) then rebuilds of
the toolchain can fail.
Requiring that all configure files be updated to the latest autoconf
version might be the technically correct way to solve the problem, but
is not really a very practical solution. Allowing toolchains to be
configured without config caches is a workaround, but one that is much
simpler to adopt.
Cheers
Nick
next prev parent reply other threads:[~2009-09-25 14:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-25 10:24 Nick Clifton
2009-09-25 11:06 ` Ralf Wildenhues
2009-09-25 14:50 ` Nick Clifton [this message]
[not found] ` <20090925110629.GA25946__23064.0259491794$1253876825$gmane$org@ins.uni-bonn.de>
2009-09-25 14:49 ` Charles Wilson
2009-09-25 17:21 ` Ralf Wildenhues
2009-09-25 17:29 ` DJ Delorie
2009-09-25 17:48 ` Ralf Wildenhues
2009-09-25 18:06 ` Charles Wilson
2009-09-25 19:31 ` Nick Clifton
[not found] ` <4ABCD858.3030400__7010.59009084037$1253890491$gmane$org@cwilson.fastmail.fm>
2009-09-25 17:13 ` Andreas Schwab
2009-09-25 18:02 ` Charles Wilson
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=4ABCD89E.6040406@redhat.com \
--to=nickc@redhat.com \
--cc=Ralf.Wildenhues@gmx.de \
--cc=binutils@sourceware.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=gdb-patches@sourceware.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