From owner-freebsd-current@FreeBSD.ORG Tue Nov 15 22:08:03 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 97F7216A420 for ; Tue, 15 Nov 2005 22:08:03 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33B9843D64 for ; Tue, 15 Nov 2005 22:08:00 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR001.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0IQ000B0NO5A6660@VL-MO-MR001.ip.videotron.ca> for freebsd-current@freebsd.org; Tue, 15 Nov 2005 17:07:59 -0500 (EST) Date: Tue, 15 Nov 2005 17:07:58 -0500 From: Nicolas Blais In-reply-to: <200511151657.44716.nb_root@videotron.ca> To: freebsd-current@freebsd.org Message-id: <200511151707.58687.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart1399538.CNGH6PNsor; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit References: <200511141702.45491.nb_root@videotron.ca> <20051115211418.GE1783@schweikhardt.net> <200511151657.44716.nb_root@videotron.ca> User-Agent: KMail/1.8.3 Cc: Steve Hodgson , Jens Schweikhardt Subject: Re: Using ccache for build{world, kernel} (was: can't compile -CURRENT since 2 days ago) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 15 Nov 2005 22:08:03 -0000 --nextPart1399538.CNGH6PNsor Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On November 15, 2005 04:57 pm, Nicolas Blais wrote: > On November 15, 2005 04:14 pm, Jens Schweikhardt wrote: > > Folks, > > > > # Put this in /usr/ports/devel/ccache/files/patch-nohash-size-mtime and > > # reinstall the port. Then export CCACHE_NOHASH_SIZE_MTIME=3Dy during y= our > > # makes for buildworld and buildkernel. This melts my buildworld time > > # from 2700s (real@~100%CPU) to under 1000s and buildkernel from 800s > > # to 250s, so you gain about a factor 3 for ab-initio builds. Sweet! > > # > > # > > # --- ccache.c.orig Mon Oct 31 17:38:21 2005 > > # +++ ccache.c Mon Oct 31 17:52:31 2005 > > # @@ -331,8 +331,10 @@ > > # hash_string(str_basename(args->argv[0])); > > # } > > # > > # - hash_int(st.st_size); > > # - hash_int(st.st_mtime); > > # + if (!getenv("CCACHE_NOHASH_SIZE_MTIME")) { > > # + hash_int(st.st_size); > > # + hash_int(st.st_mtime); > > # + } > > [Rest of patch snipped ...] > > > > I just asked the devel/ccache maintainer to commit this patch and he > > promptly did (Thanks Michael Johnson, aka ahze!). So you only need this > > unless your ports tree is current as of now. > > > > Regards, > > > > Jens > > Thanks, very helpful! Actually, I've upgraded ccache to _2 and it doesn't say anymore what to put= in=20 make.conf. Is it still : =2Eif ${.CURDIR:M/usr/src*} || ${.CURDIR:M/usr/obj*} CC=3Dcc CXX=3Dc++ =2Eelse =2Eif defined(NOCCACHE) CC=3D/usr/bin/cc CXX=3D/usr/bin/c++ =2Eelse CC=3Dcc CXX=3Dc++ =2Eendif =2Eendif or is it : #.if !defined(NOCCACHE) #.if ${.CURDIR:M/usr/src*} #CC=3D/usr/local/libexec/ccache/cc #CXX=3D/usr/local/libexec/ccache/c++ #.else #CC=3Dcc #CXX=3Dc++ #.endif #.else #CC=3D/usr/bin/cc #CXX=3D/usr/bin/c++ #.endif and do I still have to setenv CCACHE_NOHASH_SIZE_MTIME yes for a=20 buildworld/kernel? Thanks, Nicolas. =2D-=20 =46reeBSD 7.0-CURRENT #0: Tue Nov 15 06:21:56 EST 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? : http://www.clkroot.net/security/nb_root.asc --nextPart1399538.CNGH6PNsor Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDelw+z38ton5LGeIRAlj0AJ42taj98NsjAukaClmU/BCNNAicOwCfalUy QsayssM61QdRhi/LhT4Sm3Y= =d9rr -----END PGP SIGNATURE----- --nextPart1399538.CNGH6PNsor--