Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ccache doesn't cache files for some packages
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
yin
n00b
n00b


Joined: 15 May 2005
Posts: 11

PostPosted: Wed May 14, 2008 4:29 pm    Post subject: [SOLVED] ccache doesn't cache files for some packages Reply with quote

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
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1139
Location: Michigan

PostPosted: Wed May 14, 2008 7:48 pm    Post subject: Reply with quote

Does
Code:
$ CCACHE_DIR=/var/tmp/ccache ccache -s

Show the right results?
Back to top
View user's profile Send private message
yin
n00b
n00b


Joined: 15 May 2005
Posts: 11

PostPosted: Thu May 15, 2008 1:35 am    Post subject: Reply with quote

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
View user's profile Send private message
yin
n00b
n00b


Joined: 15 May 2005
Posts: 11

PostPosted: Thu May 15, 2008 2:30 am    Post subject: Re: ccache doesn't cache files for some packages Reply with quote

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
View user's profile Send private message
yin
n00b
n00b


Joined: 15 May 2005
Posts: 11

PostPosted: Thu May 15, 2008 5:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum