View previous topic :: View next topic |
Author |
Message |
c0p0n n00b
Joined: 11 Feb 2004 Posts: 47
|
Posted: Wed Oct 13, 2004 2:56 pm Post subject: ccache not caching... |
|
|
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 |
|
|
iTux Guru
Joined: 07 Sep 2004 Posts: 586 Location: Toronto
|
|
Back to top |
|
|
c0p0n n00b
Joined: 11 Feb 2004 Posts: 47
|
Posted: Wed Oct 13, 2004 4:13 pm Post subject: |
|
|
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 |
|
|
heavyt Guru
Joined: 03 Mar 2003 Posts: 498 Location: Matrix (Washington,DC)
|
Posted: Wed Oct 13, 2004 5:23 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
Deranger Veteran
Joined: 26 Aug 2004 Posts: 1215
|
Posted: Wed Oct 13, 2004 5:33 pm Post subject: |
|
|
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 |
CCACHE_DIR="/root/.ccache" in /etc/make.conf (of course you can use different path, but I use that...) |
|
Back to top |
|
|
heavyt Guru
Joined: 03 Mar 2003 Posts: 498 Location: Matrix (Washington,DC)
|
Posted: Wed Oct 13, 2004 5:52 pm Post subject: |
|
|
Thanks alot, I will add that now. I did not know I could add "CCACHE_DIR=" into the /etc/make.conf file.
|
|
Back to top |
|
|
coelho n00b
Joined: 23 Jun 2004 Posts: 44
|
Posted: Wed Oct 13, 2004 6:31 pm Post subject: |
|
|
thx had the same problem, now fixed |
|
Back to top |
|
|
iTux Guru
Joined: 07 Sep 2004 Posts: 586 Location: Toronto
|
Posted: Wed Oct 13, 2004 8:21 pm Post subject: |
|
|
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 |
|
|
Deranger Veteran
Joined: 26 Aug 2004 Posts: 1215
|
Posted: Wed Oct 13, 2004 8:27 pm Post subject: |
|
|
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 |
|
|
c0p0n n00b
Joined: 11 Feb 2004 Posts: 47
|
Posted: Wed Oct 13, 2004 8:43 pm Post subject: |
|
|
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 |
|
|
Deranger Veteran
Joined: 26 Aug 2004 Posts: 1215
|
Posted: Wed Oct 13, 2004 8:46 pm Post subject: |
|
|
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 |
|
|
|