buildworld, buildkernel, and devel/cache

Scott Bennett bennett at sdf.org
Mon Jan 26 06:21:22 UTC 2015


     I am now running FreeBSD 10.1-STABLE (amd64) r277396 and have
installed devel/ccache.  In /etc/make.conf I have

WITH_CCACHE_BUILD=yes
CCACHE_CPP2=1

In /etc/src.conf I have

WITH_LLDB=

In /root/.profile I have

CCACHE_DIR=/buildwork/ccache
export PATH=/usr/local/libexec/ccache:$PATH
export CCACHE_PATH=/usr/bin:/usr/local/bin

In /root/.cshrc.extensions, a file I source from /root/.cshrc, I have

setenv CCACHE_DIR /buildwork/ccache
setenv PATH /usr/local/libexec/ccache:$PATH
setenv CCACHE_PATH /usr/bin:/usr/local/bin

     ccache seems to be working just fine for building ports with portmaster,
but I don't see any evidence that either "make buildworld" or "make
buildkernel" make any use of ccache at all.  I've searched the archives for
several FreeBSD lists, but haven't turned up anything helpful.  If someone
knows what I need to do to get ccache involved in buildworld and buildkernel,
would you share it here please?  I would very much like to reduce the times
for those builds.  Also, if so, please Cc me directly because I'm currently
subscribed only to the digest form of these lists, which means I may not
see responses until the digest arrives, which is often a day or more after
a followup is posted.
     Thanks greatly for any help on this!


                                  Scott Bennett, Comm. ASMELG, CFIAG
**********************************************************************
* Internet:   bennett at sdf.org   *xor*   bennett at freeshell.org  *
*--------------------------------------------------------------------*
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."                                               *
*    -- Gov. John Hancock, New York Journal, 28 January 1790         *
**********************************************************************


More information about the freebsd-questions mailing list