All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 10536] Finding non-relative paths in the ccache
Date: Wed, 31 Jan 2018 19:29:53 +0000	[thread overview]
Message-ID: <bug-10536-163-g6m7BnUvHK@https.bugs.busybox.net/> (raw)
In-Reply-To: <bug-10536-163@https.bugs.busybox.net/>

https://bugs.busybox.net/show_bug.cgi?id=10536

--- Comment #10 from Trent Piepho <tpiepho@gmail.com> ---
I seems like Arnout should be right about host compiles in different
directories not sharing ccache.  Since CCACHE_BASEDIR is not set, the paths
should be absolute and different directories would be a cache miss.

But here's some testing with host-uboot-tools.  First a build from a cleared
and reset ccache:
cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                            58
cache hit rate                      0.00 %
called for link                        8
cleanups performed                     0
files in cache                       171

As expected, all misses. 58 files.

Building again from the same output dir:
cache hit (direct)                    53
cache hit (preprocessed)               5
cache miss                            58
cache hit rate                     50.00 %
called for link                       16
cleanups performed                     0
files in cache                       176

Exactly 58 new hits, as expected, everything in cache.  But 5 new files, odd.

Now the tricky one, building from a different output dir:
cache hit (direct)                    53
cache hit (preprocessed)              15
cache miss                           106
cache hit rate                     39.08 %
called for link                       24
cleanups performed                     0
files in cache                       331

These should be all misses, right?  But there were 10 hits in preprocessed
mode!  Which is fair, if the preprocessed code ends up being exactly the same. 
But just because the c code is the same doesn't mean the auto-dependency file
is the same (absolute paths in the .d file differ!).  If ccache tries to use
the cached .d file with absolute paths on this supposed preprocessed hit, it
will fail.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

      parent reply	other threads:[~2018-01-31 19:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-04 18:04 [Buildroot] [Bug 10536] New: Finding non-relative paths in the ccache bugzilla at busybox.net
2017-12-07 20:08 ` [Buildroot] [Bug 10536] " bugzilla at busybox.net
2017-12-07 20:15 ` bugzilla at busybox.net
2018-01-10 20:42 ` bugzilla at busybox.net
2018-01-17 22:44 ` bugzilla at busybox.net
2018-01-22 15:28 ` bugzilla at busybox.net
2018-01-22 17:57 ` bugzilla at busybox.net
2018-01-26 14:15 ` bugzilla at busybox.net
2018-01-26 14:17 ` bugzilla at busybox.net
2018-01-31 19:16 ` bugzilla at busybox.net
2018-01-31 19:29 ` bugzilla at busybox.net [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=bug-10536-163-g6m7BnUvHK@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.