Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2005 15:47:39 -0500
From:      Derrick Edwards <dantavious@comcast.net>
To:        freebsd-ports@freebsd.org
Cc:        Bjarne Wichmann Petersen <freebsd.nospam@mekanix.dk>, michael johnson <buhnux@gmail.com>
Subject:   Re: FreeBSD ccache port is wonderfiul!
Message-ID:  <200511251547.40950.dantavious@comcast.net>
In-Reply-To: <C5FCA709-F847-45E6-B214-5D0CAC5BE38F@ahze.net>
References:  <200511210625.16973.ringworm01@gmail.com> <200511251028.29199.freebsd.nospam@mekanix.dk> <C5FCA709-F847-45E6-B214-5D0CAC5BE38F@ahze.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 25 November 2005 04:34, michael johnson wrote:
	All, 
I followed the instructions  from ccache-howto-freebsd.txt.in and I cant seem 
to get it to work. When compiling ccache does not invoke. I included the 
following info for trouble-shooting purposes. Any help would be greatly 
appreciated.
v/r
Derrick 

snip from /etc/make.conf
.if !defined(NOCCACHE)
.if ${.CURDIR:M/usr/src*}
CC=/usr/local/libexec/ccache/cc
CXX=/usr/local/libexec/ccache/c++
.else
CC=cc
CXX=c++
.endif
.else
CC=/usr/bin/cc
CXX=/usr/bin/c++
.endif
#NOCCACHE=yes

root@focus# more /etc/profile
# $FreeBSD: src/etc/profile,v 1.14 2004/06/06 11:46:27 schweikh Exp $
#
# System-wide .profile file for sh(1).
#
# Uncomment this to give you the default 4.2 behavior, where disk
# information is shown in K-Blocks
# BLOCKSIZE=K; export BLOCKSIZE
#
# For the setting of languages and character sets please see
# login.conf(5) and in particular the charset and lang options.
# For full locales list check /usr/share/locale/*
# You should also read the setlocale(3) man page for information
# on how to achieve more precise control of locale settings.
#
# Read system messages
# msgs -f
# Allow terminal messages
# mesg y

export PATH=/usr/local/libexec/ccache/:$PATH
export CCACHE_PATH=/usr/bin:/usr/local/bin
export CCACHE_DIR=/usr/.ccache
root@focus#                                                           
 

more csh.cshrc
# $FreeBSD: src/etc/csh.cshrc,v 1.3 1999/08/27 23:23:40 peter Exp $
#
# System-wide .cshrc file for csh(1).

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


> On Nov 25, 2005, at 4:28 AM, Bjarne Wichmann Petersen wrote:
> > On Monday 21 November 2005 15:25, Michael C. Shultz wrote:
> >> ps: I cc'ed freebsd-ports@freebsd.org in case others like myself
> >> haven't
> >> heard of this program yet, it may be found in /usr/ports/devel/
> >> ccache.
> >
> > I'm looking at it now, and have a small question. Reading the howto-
> > freebsd
> > I'll have to insert the following into etc/make.conf:
> >
> > .if !defined(NOCCACHE)
> >  .if ${.CURDIR:M/usr/src*}
> >  CC=/usr/local/libexec/ccache/cc
> >  CXX=/usr/local/libexec/ccache/c++
> >  .else
> >  CC=cc
> >  CXX=c++
> >  .endif
> >  .else
> >  CC=/usr/bin/cc
> >  CXX=/usr/bin/c++
> >  .endif
> >
> > I don't know much shell-scripting, so I'm not entirely sure what
> > ${.CURDIR:M/usr/src*} does. But to me it looks like ccache will be
> > called
> > upon only when the current directory is beneath /usr/src; ie.
> > world/kernel-builds.
>
> yeah, the reason for this is because src/ sets PATH
>
> root@blueheron /usr/src > make -V PATH
> /sbin:/bin:/usr/sbin:/usr/bin
>
> and ccache lives in /usr/local..
>
> > Should I make another if-statement for /usr/ports? Or do
> > I have it all wrong
>
> as long as you have /usr/local/libexec/ccache in your path
> before /usr/bin you'll be fine.
>
> > Bjarne
> > _______________________________________________
> > freebsd-ports@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > To unsubscribe, send any mail to "freebsd-ports-
> > unsubscribe@freebsd.org"
>
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511251547.40950.dantavious>