Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] ccache problem with codesourcery toolchain
@ 2012-02-05  1:05 D M
  2012-02-05  7:45 ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: D M @ 2012-02-05  1:05 UTC (permalink / raw)
  To: buildroot

Hi,

I am working on a project based on the 2011.08 release of buildroot. ?We found that the ccache savings was not as good as with our older version of buildroot (which used an older version of ccache). ?For example, starting from an empty cache directory, our compile takes about half an hour. ?With the newer version of ccache, we only save about 3 minutes; with the older version, we saved about 13 minutes. ?We traced the problem to a feature introduced in ccache 3.0, the?CCACHE_COMPILERCHECK option. ?Quoting from ccache manual:?

? ?"By default, ccache includes the modification time (?mtime?) and size of the compiler in the hash to ensure that results retrieved from the cache are accurate. The CACHE_COMPILERCHECK environment variable can be used to select another strategy." ?

The default is "mtime", but if we select "none", we get back all of our savings. ?Again quoting from the manual: ?

? ? "none - Don?t hash anything. This may be good for situations where you can safely use the cached results even though the compiler?s mtime or size has changed (e.g. if the compiler is built as part of your build system and the compiler?s source has not changed, or if the compiler only has changes that don?t affect code generation)."

Since we are using buildroot's capability to automatically download and extract the CodeSourcery ARM toolchain, the "mtime" used in the hash is different every time we do a full recompile. ?So a value of "none" seems appropriate when use buildroot this way.

Have others ran into this? ?Since buildroot has this kind of CodeSourcery toolchain support, I was wondering if there should be an option in menuconfig to specify CCACHE_COMPILERCHECK, to, for example, prepend a "CCACHE_COMPILERCHECK=none" to the beginning of the CCACHE variable that is used to make TARGET_CC, TARGET_CXX, HOSTCC, HOSTCXX.

Thanks,
Danomi -

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

end of thread, other threads:[~2012-02-10 21:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-05  1:05 [Buildroot] ccache problem with codesourcery toolchain D M
2012-02-05  7:45 ` Thomas Petazzoni
2012-02-05 18:11   ` D M
2012-02-07 17:21     ` Arnout Vandecappelle
2012-02-09  2:39   ` D M
2012-02-10 21:20     ` Arnout Vandecappelle
2012-02-10 21:21       ` [Buildroot] [PATCH] ext-toolchain: set mtime of toolchain wrapper for ccache Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox