From: Phil Blundell <pb@pbcl.net>
To: mike@mwester.net,
Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: The design document for ccache-native
Date: Fri, 10 Jun 2011 14:25:03 +0100 [thread overview]
Message-ID: <1307712303.2529.5016.camel@phil-desktop> (raw)
In-Reply-To: <4DF21798.3080006@mwester.net>
On Fri, 2011-06-10 at 08:09 -0500, Mike Westerhof wrote:
> I fear that the use of ccache is inherently risky with OE. Given the
> (relatively common) case where the user blows away their TMPDIR in order
> to get a full, clean rebuild after an update to the toolchain is make,
> it is possible that ccache will erroneously re-use an object created by
> the earlier version of the toolchain.
>
> While imperfect, I would suggest that we would do better if we would
> somehow embed the PV (or something like that) for the toolchain into the
> CCACHE_DIR, thus ensuring that we don't risk the re-use of old objects
> when the toolchain is updated.
ccache does already include the mtime and file size of the compiler in
the hash that it uses to determine whether two compilations are "the
same". I'm not sure that mangling the compiler version into ${PV} is
going to buy much.
>(Frankly, given my experiences with it, I'd prefer we just disable
>ccache entirely with OE.)
I agree that it should probably be disabled by default. I've also had
some slightly bad experiences with ccache although I don't think I have
ever encountered the failure mode you mentioned above.
p.
prev parent reply other threads:[~2011-06-10 13:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4DF18EF7.8000207@windriver.com>
2011-06-10 5:48 ` The design document for ccache-native Robert Yang
2011-06-10 13:09 ` Mike Westerhof
2011-06-10 13:21 ` Mike Westerhof
2011-06-10 13:25 ` Phil Blundell [this message]
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=1307712303.2529.5016.camel@phil-desktop \
--to=pb@pbcl.net \
--cc=mike@mwester.net \
--cc=openembedded-core@lists.openembedded.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