| View previous topic :: View next topic |
| Author |
Message |
yin n00b

Joined: 15 May 2005 Posts: 11
|
Posted: Wed May 14, 2008 4:29 pm Post subject: [SOLVED] ccache doesn't cache files for some packages |
|
|
Hi!
At my PC same important packages (important for a end-user, e.g. mozilla-firefox) doesn't use ccache, or ccache refuse to cache their compilation result (I'm not sure, which is true). I figured out when I checked ccache stats when I was emerging some packages - the stats doen't changed. Some times, when I check them after a few emerges, they are changed, but sometime not. What can be the problem, noticed someone else something like me?
Last edited by yin on Thu May 15, 2008 5:04 am; edited 1 time in total |
|
| Back to top |
|
 |
El_Presidente_Pufferfish Veteran


Joined: 11 Jul 2002 Posts: 1139 Location: Michigan
|
Posted: Wed May 14, 2008 7:48 pm Post subject: |
|
|
Does
| Code: | | $ CCACHE_DIR=/var/tmp/ccache ccache -s |
Show the right results? |
|
| Back to top |
|
 |
yin n00b

Joined: 15 May 2005 Posts: 11
|
Posted: Thu May 15, 2008 1:35 am Post subject: |
|
|
| El_Presidente_Pufferfish wrote: | Does
| Code: | | $ CCACHE_DIR=/var/tmp/ccache ccache -s |
Show the right results? |
It's how I use ccache and it shows what I wrote. |
|
| Back to top |
|
 |
yin n00b

Joined: 15 May 2005 Posts: 11
|
Posted: Thu May 15, 2008 2:30 am Post subject: Re: ccache doesn't cache files for some packages |
|
|
| yin wrote: | | ... doesn't use ccache, or ccache refuse to cache their compilation result (I'm not sure, which is true). |
This morning I figured out that ccache is not even caled. I replaced the symlink /usr/lib/ccache/bin/i586-pc-linux-gnu-g++ with a bash script, which had to echo some text and call ccache. Whe I compiled mozilla-firefox, nothing was printed on screen, gcc was run directly.
I made a small ebuild to check $PATH value... /usr/lib/ccache/bin was the first... so I think, the mozilla-firefox ebuild disabled cache. Can be this the cause? And how to fix it? |
|
| Back to top |
|
 |
yin n00b

Joined: 15 May 2005 Posts: 11
|
Posted: Thu May 15, 2008 5:03 am Post subject: |
|
|
I cleared the ccache:
| Code: |
CCACHE_DIR=/var/tmp/ccache ccache -C
CCACHE_DIR=/var/tmp/ccache ccache -z
|
and it sudenly started to work.[/code] |
|
| Back to top |
|
 |
|