Solved CCACHE problem

Code:
ccache -s
cache directory  /var/cache/ccache
primary config  /var/cache/ccache/ccache.conf
secondary config  (readonly)  /usr/local/etc/ccache.conf
cache hit (direct)  402
cache hit (preprocessed)  567
cache miss  444
called for link  21
called for preprocessing  103
compile failed  89
preprocessor error  262
bad compiler arguments  9
autoconf compile/link  1351
no input file  627
files in cache  1025
cache size  70.0 MB
max cache size  10.0 GB

but do not work.
 
but do not work
What does that mean? There are already some files in the cache and some hits have been succesfull. If you compile new stuff the files in cache and the cache size should increase. As more same code is re-complied the number of hits should increase.
 
There is the crux:

Code:
WITH_CCACHE_BUILD=yes
WRKDIRPREFIX=/ram

.if !defined(NO_CCACHE)
#  CC=/usr/local/libexec/ccache/world/cc
#  CXX=/usr/local/libexec/ccache/world/c++
.endif

I commented out, cause of the above error messages. But the two lines can't be wrong.


is that your /usr/local/etc/synth/LiveSystem-make.conf?

if so: WRONG WRONG WRONG

NONE OF THAT SHOULD BE IN THERE.
 
Thanke protocelt and marino@. In the moment I am not sure if it works. I will look at this a report later.
For the moment I mark it as solved.

marino@ I have removed all entries. But I am not sure if this caused the problem. I rather think it were the things that
protocelt said.
 
talsamon, looking at your output above, ccache(1) is indeed working as chrbr pointed out.

The other settings you had in your /usr/local/etc/synth/LiveSystem-make.conf file should not be there either. However, it was a different issue then the thread topic and I wanted you to focus on one problem at a time, so I didn't mention them.
 
As indicated in the synth(1) man page, the only thing necessary to configure is the ccache(1) directory in the synth configure screen. It would match the "cache directory" shown after ccache -s command

All the stuff in the LiveSystem-make.conf could cause serious problems. That file is only for settings that affect port options. If there is any doubt, ask or don't add it to LiveSystem-make.conf.
 
Back
Top