Hi all,
Need some advice please, as I suspect I am missing something obvious with ccache and a few ports.
I am compiling editors/libraoffice-en_GB and have devel/ccache installed.
/etc/make.conf:
If I issue
However, ccache does not show any hits or misses during complile. The same is for graphics/libopenraw, but devel/libtool causes ccache to cache the relevant output sucessfully.
The output of
Any ideas as to why Libreoffice or libopenraw are not using ccache but libtool is OK?
Thanks,
James
Need some advice please, as I suspect I am missing something obvious with ccache and a few ports.
I am compiling editors/libraoffice-en_GB and have devel/ccache installed.
/etc/make.conf:
Code:
WITH_CCACHE_BUILD=yes
.if !defined(NOCCACHE)
CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1}
CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1}
.endif
.if ${CC:T} == "clang"
CFLAGS+= -Qunused-arguments
.endif
If I issue
make -V CC in the editors/libreoffice-en_GB it reports
Code:
/usr/local/libexec/ccache/world/cc
However, ccache does not show any hits or misses during complile. The same is for graphics/libopenraw, but devel/libtool causes ccache to cache the relevant output sucessfully.
The output of
ccache -s is
Code:
cache directory /root/.ccache
primary config /root/.ccache/ccache.conf
secondary config (readonly) /usr/local/etc/ccache.conf
cache hit (direct) 66
cache hit (preprocessed) 8
cache miss 54
called for link 3
called for preprocessing 15
compile failed 3
preprocessor error 19
bad compiler arguments 6
unsupported source language 9
autoconf compile/link 69
unsupported compiler option 2
no input file 374
files in cache 136
cache size 630.8 kB
max cache size 5.0 GB
uname -a
Code:
FreeBSD argon 10.1-RELEASE FreeBSD 10.1-RELEASE #0: Sat Jan 31 10:53:36 GMT 2015 root@argon:/usr/obj/usr/src/sys/ARGON i386
Thanks,
James