From owner-freebsd-current@FreeBSD.ORG Wed Aug 25 19:05:17 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12DB716A4CE; Wed, 25 Aug 2004 19:05:17 +0000 (GMT) Received: from web.portaone.com (web.portaone.com [195.70.151.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65BF743D31; Wed, 25 Aug 2004 19:05:16 +0000 (GMT) (envelope-from sobomax@web.portaone.com) Received: from web.portaone.com (localhost [127.0.0.1]) by web.portaone.com (8.12.8p2/8.12.8) with ESMTP id i7PJ5D5U061363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 25 Aug 2004 21:05:13 +0200 (CEST) (envelope-from sobomax@web.portaone.com) Received: (from sobomax@localhost) by web.portaone.com (8.12.8p2/8.12.8/Submit) id i7PJ5DAh061362; Wed, 25 Aug 2004 21:05:13 +0200 (CEST) (envelope-from sobomax) Date: Wed, 25 Aug 2004 21:05:13 +0200 From: Maxim Sobolev To: Kris Kennaway Message-ID: <20040825190513.GD57354@www.portaone.com> References: <412CBC91.3070900@portaone.com> <412CD983.2040700@cronyx.ru> <20040825183342.GA81434@xor.obsecurity.org> <20040825184455.GC57354@www.portaone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040825184455.GC57354@www.portaone.com> User-Agent: Mutt/1.4.1i cc: Roman Kurakin cc: portmgr@freebsd.org cc: current@freebsd.org cc: Kris Kennaway Subject: Re: ccache support for make buildworld/make release X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 19:05:17 -0000 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > >