Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ccache not caching...
View unanswered posts
View posts from last 24 hours

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


Joined: 11 Feb 2004
Posts: 47

PostPosted: Wed Oct 13, 2004 2:56 pm    Post subject: ccache not caching... Reply with quote

After a gcc 3.3 -> 3.4 upgrade, I cleaned ccache's cache by ccache -C. From this point (and with gcc 3.4 installed), ccache stopped caching things. I even removed ~/.ccache and re-emerged the whole thing, but with no luck. It seems to do something if I do "ccache gcc something.c", althoug the response, seeing the statistics are only "called for link", "couldn't find the compiler" (I think that this is the point) and "no input file". BTW, the file compiles.

/usr/bin/gcc is on the path, and all emerges since 3.4 upgrade work fairly well.

Any ideas? Thank you in advance :)
_________________
.:c0p0n:.
Back to top
View user's profile Send private message
iTux
Guru
Guru


Joined: 07 Sep 2004
Posts: 586
Location: Toronto

PostPosted: Wed Oct 13, 2004 3:55 pm    Post subject: Reply with quote

Hi,

I think I had the same problem. Look here for the solution.

https://forums.gentoo.org/viewtopic.php?t=231681&highlight=



iTux
Back to top
View user's profile Send private message
c0p0n
n00b
n00b


Joined: 11 Feb 2004
Posts: 47

PostPosted: Wed Oct 13, 2004 4:13 pm    Post subject: Reply with quote

thx man!! That was the problem. I set CCACHE_DIR and all worked like it should.
It's somewhat strange, I always emerge certaing packages alone (like portage or ccache) just to see the final messages, since they're important. I do not remember anything about this matter, although I could've missed one or two of them after all.
_________________
.:c0p0n:.
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Wed Oct 13, 2004 5:23 pm    Post subject: Reply with quote

c0p0n wrote:
thx man!! That was the problem. I set CCACHE_DIR and all worked like it should.
It's somewhat strange, I always emerge certaing packages alone (like portage or ccache) just to see the final messages, since they're important. I do not remember anything about this matter, although I could've missed one or two of them after all.


I am having the same problem with my ccache, could you please tell me how you set your CCACHE_DIR. I am "weak" in those steps, thanks :oops:
Back to top
View user's profile Send private message
Deranger
Veteran
Veteran


Joined: 26 Aug 2004
Posts: 1215

PostPosted: Wed Oct 13, 2004 5:33 pm    Post subject: Reply with quote

heavyt wrote:
c0p0n wrote:
thx man!! That was the problem. I set CCACHE_DIR and all worked like it should.
It's somewhat strange, I always emerge certaing packages alone (like portage or ccache) just to see the final messages, since they're important. I do not remember anything about this matter, although I could've missed one or two of them after all.



I am having the same problem with my ccache, could you please tell me how you set your CCACHE_DIR. I am "weak" in those steps, thanks :oops:

CCACHE_DIR="/root/.ccache" in /etc/make.conf (of course you can use different path, but I use that...)
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Wed Oct 13, 2004 5:52 pm    Post subject: Reply with quote

Thanks alot, I will add that now. I did not know I could add "CCACHE_DIR=" into the /etc/make.conf file.

:o
Back to top
View user's profile Send private message
coelho
n00b
n00b


Joined: 23 Jun 2004
Posts: 44

PostPosted: Wed Oct 13, 2004 6:31 pm    Post subject: Reply with quote

thx :) had the same problem, now fixed :)
Back to top
View user's profile Send private message
iTux
Guru
Guru


Joined: 07 Sep 2004
Posts: 586
Location: Toronto

PostPosted: Wed Oct 13, 2004 8:21 pm    Post subject: Reply with quote

Oktane wrote:

CCACHE_DIR="/root/.ccache" in /etc/make.conf (of course you can use different path, but I use that...)


FYI, what I did is to set it up to:
/var/tmp/ccache

Then, I symlink it:
ln -s /var/tmp/ccache /root/.ccache


So in a root shell, I can still do:
ccache -s
(so convenient)

But the cache reside on my /var partition.

iTux
Back to top
View user's profile Send private message
Deranger
Veteran
Veteran


Joined: 26 Aug 2004
Posts: 1215

PostPosted: Wed Oct 13, 2004 8:27 pm    Post subject: Reply with quote

iTux, thanks for the tip.

I have some strange files in /root (0, 1, 2, 3, 4, 5 etc)...Are those created by ccache?
Back to top
View user's profile Send private message
c0p0n
n00b
n00b


Joined: 11 Feb 2004
Posts: 47

PostPosted: Wed Oct 13, 2004 8:43 pm    Post subject: Reply with quote

yeah, they're created by ccache. Are you sure that CCACHE_DIR points to somewhere else than /root? I am using /root/.ccache, like always.
_________________
.:c0p0n:.
Back to top
View user's profile Send private message
Deranger
Veteran
Veteran


Joined: 26 Aug 2004
Posts: 1215

PostPosted: Wed Oct 13, 2004 8:46 pm    Post subject: Reply with quote

Yeah, I had earlier it pointing to /root...I changed it and this is why those direstories was there. I rf -rf'd them away...
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
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