Re: ccache support for make buildworld/make release

From: Maxim Sobolev <sobomax_at_portaone.com>
Date: Wed, 25 Aug 2004 21:05:13 +0200
It wasn't workign that way:

>>> stage 1.1: legacy release compatibility shims
--------------------------------------------------------------
cd /voicelog/devel/src; MAKEOBJDIRPREFIX=/usr/obj/voicelog/devel/src/i386  DESTDIR=  INSTALL="sh /voicelog/devel/src/tools/install.sh"  PATH=/usr/obj/voicelog/devel/src/i386/legacy/usr/sbin:/usr/obj/voicelog/devel/src/i386/legacy/usr/bin:/usr/obj/voicelog/devel/src/i386/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/usr/obj/voicelog/devel/src/i386  MAKEFLAGS="-m /voicelog/devel/src/tools/build/mk  -m /voicelog/devel/src/share/mk" /usr/obj/voicelog/devel/src/make.i386/make -f Makefile.inc1  BOOTSTRAPPING=503000  -DNOHTML -DNOINFO -DNOLINT -DNOMAN -DNOPIC -DNOPROFILE  -DNOSHARED -DNO_CPU_CFLAGS -DNO_WARNS legacy
===> tools/build
/usr/obj/voicelog/devel/src/i386/voicelog/devel/src/tools/build created for /voicelog/devel/src/tools/build
cd /voicelog/devel/src/tools/build; /usr/obj/voicelog/devel/src/make.i386/make buildincludes; /usr/obj/voicelog/devel/src/make.i386/make installincludes
rm -f .depend
CC='ccache cc' mkdep -f .depend -a    -I/usr/obj/voicelog/devel/src/i386/legacy/usr/include /voicelog/devel/src/tools/build/dummy.c
ccache: not found
mkdep: compile failed
*** Error code 1

However, I've managed to work around that problem by creating two
symlinks: /foo/cc -> /usr/local/bin/ccache and /foo/c++ ->
/usr/local/bin/ccache and then setting CC to /foo/cc and CXX to
/foo/c++.

-Maixm

On Wed, Aug 25, 2004 at 08:44:55PM +0200, Maxim Sobolev wrote:
> Hmm, indeed, will try that.
> 
> Thanks for the hint!
> 
> -Maxim
> 
> On Wed, Aug 25, 2004 at 11:33:42AM -0700, Kris Kennaway wrote:
> > On Wed, Aug 25, 2004 at 10:25:07PM +0400, Roman Kurakin wrote:
> > > Maxim Sobolev wrote:
> > > 
> > > >Folks,
> > > >
> > > >I wonder if anyone considered adding ccache support for 
> > > >buildworld/release targets. ccache is a tool, which wraps around gcc, 
> > > >allowing to cache object files generated by the compiler to greatly 
> > > >speed-up compilation of the same code over and over 
> > > >(http://ccache.samba.org/).
> > > >
> > > >It acts as a caching pre-processor to C/C++ compilers, using the -E 
> > > >compiler switch and a hash to detect when a compilation can be 
> > > >satisfied from cache.  This often results in a 5 to 10 times speedup.
> > > 
> > > Hm. It seems that this is very cool tool. I would glad to see it in FreeBSD.
> > > Since I've 5 branch compiles tooooo long and fast systems for compilation
> > > does not always available/possible to use while development.
> > > 
> > > I volonteer to test this if needed.
> > 
> > BTW, I don't think there's anything to set up..you just set
> > CC="ccache cc" or similar.
> > 
> > Kris
> 
> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
> 
Received on Wed Aug 25 2004 - 17:05:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:08 UTC