Talk:Ccache
From Gentoo Linux Wiki
I'm surprised to find that this was written so recently. Can you tell me why this is better than the instructions at in the Gentoo Handbook, please? I was setting up CCache up today for the first time in ages & googled for instructions - yours was one of the first Google hits, but I found the Handbook easier to use (sorry!).
- This article contains some fallback instructions in case something went wrong. There were some problems with ccache in the past, someone may need this troubleshooting info. -- ph
It appears that it is no longer necessary to edit make.conf. Emerge returns a post-install message stating that running ccache -M 2G from the command line is the only post-install step needed. Can someone clarify this? I went ahead and added FEATURES="ccache" to my make.conf. I assume it can't hurt anything.
- You still need to specify ccache in FEATURES if you want to use it. If it's not there, portage ignores it. -Tro
Contents |
[edit] try add CC=gcc and CXX=g++ to /etc/make.conf
Try add
CC=gcc CXX=g++
to /etc/make.conf and look the difference in output of
ccache -s
when you rebuilds world
(SeYKo)
What gives? I won't try rebuilding world with some options you recommend but won't explain. (stagger)
[edit] Problems here
I really can't get ccache to work at all... Dgrant 06:06, 6 September 2005 (GMT)
[edit] Examples
Maybe the examples should be more consistant. /var/tmp/ccache or /root/.ccache but not a random selection
[edit] re: ccache adjusts directory permissions
i'm confused: it says "the ccache_dir" (by default /var/tmp/ccache), and then the prescribed chmod cmd acts on /usr/lib/ccache
Also, should that instuction fix the pbm for good, or do you have to do it regularly? If the latter, when? TIA,
harpette 19:36, 3 October 2006 (UTC)
[edit] Re: ccache and genkernel
adding the PATH-extension to /etc/env.d does not work, since /etc/profile puts any PATH-segments from env.d after the standard PATH - which, among others contains /usr/bin, where gcc resides.
I ended up creating /etc/bash/ccache with PATH="/usr/lib/ccache/bin:${PATH}" and sourcing that from /etc/bash/bashrc.
If anybody knows a cleaner way, do tell.
