ccache problems with nullfs

Joe Marcus Clarke marcus at marcuscom.com
Thu Dec 27 23:12:38 EST 2007


On Thu, 2007-12-27 at 22:25 -0500, Chess Griffin wrote:
> Hello,
> 
> I have a Tinderbox set up and working nicely.  I am mounting my
> local /usr/src and /usr/ports into the Tinderbox jail using nullfs and
> that works fine too.  I also created the ccache.tar file and have run
> into a problem.  If I have ccache disabled, the following build command
> works:
> 
> ./tinderbuild -b {BUILD} {PORT DIRECTORY}
> 
> I don't have to pass -nullfs since I already set both src and ports to
> nullfs using ./tc setPortsMount and ./tc setSrcMount.  
> 
> However, if I have ccache enabled, then the above build command does
> not work.  The make.0 log seems to indicate that ccache is attempting
> to mount using NFS.  This means I have to pass -nullfs with the above
> command to get it work.  This would not be a problem, but I am also
> trying to use tinderd, which also works fine with ccache disabled, but
> when I enable ccache tinderd also goes into an NFS loop.
> 
> Here is some output:
> 
> rose# ./tc configGet
> CCACHE_DIR=/ccache
> CCACHE_ENABLED=1
> CCACHE_JAIL=0
> CCACHE_LOGFILE=/home/chess/ccache.log
> CCACHE_MAX_SIZE=2G
> CCACHE_NOLINK=1
> DISTFILE_CACHE=/usr/ports/distfiles/
> JAIL_OBJDIR=
> OPTIONS_DIR=
> OPTIONS_ENABLED=0
> TINDERD_SLEEPTIME=120
> __DSVERSION__=2.4.0
> 
> rose# ./tc getPortsMount -p FreeBSD
> /usr/ports
> 
> rose# ./tc getSrcMount -j 7.0
> /usr/src
> 
> rose# mount
> /dev/ad0s1a on / (ufs, local)
> devfs on /dev (devfs, local)
> /dev/ad0s1d on /tmp (ufs, local, soft-updates)
> /dev/ad0s1f on /usr (ufs, local, soft-updates)
> /dev/ad0s2d on /usr/jails (ufs, local, soft-updates)
> /dev/ad0s1e on /var (ufs, local, soft-updates)
> /dev/ad0s2e on /usr/ports (ufs, local, soft-updates)
> /usr/src on /usr/local/tinderbox/jails/7.0/src (nullfs, local)
> /usr/ports on /usr/local/tinderbox/portstrees/FreeBSD/ports (nullfs,
> local)
> 
> Is there any way to use ccache with tinderd using nullfs and not NFS?

You have to pass -nullfs on the command line.  You can pass -nullfs to
tinderd as well.  Tinderd accepts all of the same arguments as
tinderbuild.

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://marcuscom.com/pipermail/tinderbox-list/attachments/20071227/bd991987/attachment.bin 


More information about the tinderbox-list mailing list