On FreeBSD 10.0-RELEASE, what I did was: ATTEMPT A: ?1. Installed ccache and dialog4ports from pkg(ng) repos with 'pkg install ccache'. ?2 Appended 'CCACHE_DIR=/var/cache/ccache' to /usr/local/etc/poudriere.conf' ATTEMPT B: ?4. Then I appended the following three lines to /etc/make.conf to mount ccache to tmpfs WRKDIRPREFIX=/ccache WITH_CCACHE_BUILD=yes CCACHE_COMPRESS=yes ?5 Appended 'none /ccache tmpfs rw,size=4294967296 0 0' to /etc/fstab' and mounted /compcache. ?6 Replaced CCACHE_DIR=/ccache' to /usr/local/etc/poudriere.conf' In both cases, 'ccache -s' shows no hits: # ccache -s cache directory /root/.ccache cache hit (direct) 0 cache hit (preprocessed) 0 cache miss 0 files in cache 0 cache size 0 Kbytes max cache size 1.0 Gbytes Is there a specific way to use CCACHE with Poudriere in FreeBSD 10-RELEASE? What did I miss? Thanks! /zenny
On FreeBSD 10.0-RELEASE, what I did was: ATTEMPT A: ?1. Installed ccache and dialog4ports from pkg(ng) repos with 'pkg install ccache'. ?2 Appended 'CCACHE_DIR=/var/cache/ccache' to /usr/local/etc/poudriere.conf' ATTEMPT B: ?4. Then I appended the following three lines to /etc/make.conf to mount ccache to tmpfs WRKDIRPREFIX=/ccache WITH_CCACHE_BUILD=yes CCACHE_COMPRESS=yes ?5 Appended 'none /ccache tmpfs rw,size=4294967296 0 0' to /etc/fstab' and mounted /compcache. ?6 Replaced CCACHE_DIR=/ccache' to /usr/local/etc/poudriere.conf' In both cases, 'ccache -s' shows no hits: # ccache -s cache directory /root/.ccache cache hit (direct) 0 cache hit (preprocessed) 0 cache miss 0 files in cache 0 cache size 0 Kbytes max cache size 1.0 Gbytes Is there a specific way to use CCACHE with Poudriere in FreeBSD 10-RELEASE with clang? What did I miss? Thanks! /zenny
On Wed, Jan 29, 2014 at 7:16 AM, Zenny <garbytrash at gmail.com> wrote:> On FreeBSD 10.0-RELEASE, what I did was: > > ATTEMPT A: > ?1. Installed ccache and dialog4ports from pkg(ng) repos with 'pkg > install ccache'. > ?2 Appended 'CCACHE_DIR=/var/cache/ccache' to /usr/local/etc/poudriere.conf'^^^^^^^^^^^^^> > ATTEMPT B: > ?4. Then I appended the following three lines to /etc/make.conf to > mount ccache to tmpfs > WRKDIRPREFIX=/ccache > WITH_CCACHE_BUILD=yes > CCACHE_COMPRESS=yes > ?5 Appended 'none /ccache tmpfs rw,size=4294967296 0 0' to /etc/fstab' > and mounted /compcache. > ?6 Replaced CCACHE_DIR=/ccache' to /usr/local/etc/poudriere.conf'^^^^^^^^^^^> > In both cases, 'ccache -s' shows no hits: > > # ccache -s > cache directory /root/.ccache^^^^^^^^^ Are you sure it isn't working, and not that you are inspecting a different cache directory? Cheers Tom