This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] Do we care about binary compatibility of code produced by cross-compilers?
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Paolo Carlini <paolo dot carlini at oracle dot com>, Mark Mitchell <mark at codesourcery dot com>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 02 Sep 2008 16:16:07 +0200
- Subject: Re: [RFC] Do we care about binary compatibility of code produced by cross-compilers?
- References: <48A05898.9000705@oracle.com> <m37iane6sw.fsf@google.com> <48B160E6.3040908@oracle.com> <m3prnyksyx.fsf@google.com> <48B1DA23.2060404@oracle.com> <m3hc99lgsx.fsf@google.com> <48B2855E.5090907@oracle.com> <m38wulkkuh.fsf@google.com> <48B2FCDC.7080101@oracle.com> <48B30F10.70100@oracle.com> <48B31507.7040007@oracle.com> <m3zln0kdn3.fsf@google.com> <48BBD5F8.2040808@oracle.com> <48BC0DEA.2040908@codesourcery.com> <48BC1122.4080101@oracle.com> <48BCD0F7.8080208@gnu.org> <48BD0A8A.5080102@oracle.com> <48BD1059.8080102@gnu.org> <m3tzcy3ba5.fsf@google.com>
Ian Lance Taylor wrote:
>>> ... actually, if all the checks presently doing link-tests consistently
>>> get a parameter allowing to disable the test completely and also to set
>>> its value, I'm thinking with proper documentation nobody could be
>>> *really* unhappy with the change... Do you agree?
>> The cache file is a way to set the value of a test.
>
> As Paolo B knows, we've historically had problems using a single cache
> file for all directories. The problem is that different directories
> sometimes have subtly different meanings for the same cache variable.
Yes, I was in a hurry in answering. However, I remember that the
problems with the single cache file was just race conditions. Your
memory (and history) is longer than mine, but the optional serializing
of configure-* supported by the toplevel is what remains of the attempts
to use a cache for Autoconf tests.
What I meant with my suggestion is that if people wanted to override the
results of tests, they can use a system-wide cache for the target. As
Ian knows, :-) Autoconf has a $CONFIG_SITE variable that you can use for
that. While right now this is explicitly disabled for target libraries
(because it applies to the host system), I suppose a simple patch to add
--with-{build,target}-config-cache=/path/to/config.site would be okay
even in stage3.
For that, I wouldn't care much about conflicting values; in most cases,
anyway, you can use a conservative setting or, since config.cache is
sourced, you can use a case statement.
> I don't think it's worth worrying about the fact that the tests are
> run multiple times. If you want to speed up configury, help get Tom's
> quagmire project working for gcc (http://code.google.com/p/quagmire/).
Agreed. :-)
Paolo