From owner-freebsd-current@FreeBSD.ORG Sun Sep 12 18:02:30 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 8468E16A4CE; Sun, 12 Sep 2004 18:02:30 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7066743D48; Sun, 12 Sep 2004 18:02:29 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i8CI2KDL072590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 12 Sep 2004 21:02:21 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i8CI2L4P018322; Sun, 12 Sep 2004 21:02:21 +0300 (EEST) (envelope-from ru) Date: Sun, 12 Sep 2004 21:02:21 +0300 From: Ruslan Ermilov To: Jens Schweikhardt Message-ID: <20040912180221.GB18232@ip.net.ua> References: <412CBC91.3070900@portaone.com> <412CD983.2040700@cronyx.ru> <20040825183342.GA81434@xor.obsecurity.org> <20040912112411.GA62181@schweikhardt.net> <20040912140311.GA60265@schweikhardt.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="K8nIJk4ghYZn606h" Content-Disposition: inline In-Reply-To: <20040912140311.GA60265@schweikhardt.net> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: Maxim Sobolev cc: portmgr@FreeBSD.ORG cc: Roman Kurakin 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: Sun, 12 Sep 2004 18:02:30 -0000 --K8nIJk4ghYZn606h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 12, 2004 at 04:03:11PM +0200, Jens Schweikhardt wrote: > Following up myself, >=20 > On Sun, Sep 12, 2004 at 01:24:11PM +0200, Jens Schweikhardt wrote: > # On Wed, Aug 25, 2004 at 11:33:42AM -0700, Kris Kennaway wrote: > # ... > # # BTW, I don't think there's anything to set up..you just set > # # CC=3D"ccache cc" or similar. >=20 > I've investigated further and found that the cc which is used > after bootstrapping uses a different start for include path > search, e.g. >=20 > /usr/bin/cc -v ... > #include "..." search starts here: > #include <...> search starts here: > /usr/include > End of search list. >=20 > /usr/obj/share/HEAD/src/i386/usr/bin/cc -v ... > #include "..." search starts here: > #include <...> search starts here: > /usr/obj/share/HEAD/src/i386/usr/include > End of search list. >=20 > This is why the includes are not found when ccache is forced to use > /usr/bin/cc. Which somewhat defeats the purpose of ccache: if the > build switches compilers, ccache only speeds up the bootstrapping > up to that point. Unfortunately, ccache also hashes the compiler's > modification timestamp, so each time a new cc is used in the build, > this effectively means no more cache hits for all previous compiled > files. >=20 > Hmm. Maybe I could hack ccache to make it ignore the modification > timestamp... Hmmm. Room for foot shooting... Hmmm. >=20 ccache can be useful with "make all". But with buildworld, since the compiler is alwys rebuilt, ccache is only useful with -DNOCLEAN, when the compiler is not upgraded. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --K8nIJk4ghYZn606h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBRI8tqRfpzJluFF4RAnqIAJ4tpQRM5E1HcOUOGng3CxMHdrU91QCeKmaS FK/jrhlA+v2loArX3uKPv9I= =7cQT -----END PGP SIGNATURE----- --K8nIJk4ghYZn606h--