From owner-freebsd-current@FreeBSD.ORG Mon Sep 13 06:39:42 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 76E2A16A4CE; Mon, 13 Sep 2004 06:39:42 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B395F43D1D; Mon, 13 Sep 2004 06:39:41 +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 i8D6dYZF081535 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 13 Sep 2004 09:39:35 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i8D6dZrs060230; Mon, 13 Sep 2004 09:39:35 +0300 (EEST) (envelope-from ru) Date: Mon, 13 Sep 2004 09:39:35 +0300 From: Ruslan Ermilov To: Maxim Sobolev Message-ID: <20040913063935.GB58490@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> <20040912180221.GB18232@ip.net.ua> <4144AA29.2020003@portaone.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hHWLQfXTYDoKhP50" Content-Disposition: inline In-Reply-To: <4144AA29.2020003@portaone.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: portmgr@FreeBSD.org cc: Kris Kennaway cc: Roman Kurakin cc: current@FreeBSD.org cc: Jens Schweikhardt 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: Mon, 13 Sep 2004 06:39:42 -0000 --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 12, 2004 at 10:57:29PM +0300, Maxim Sobolev wrote: > I have in mind extension for ccache which would allow it to be used with= =20 > buildworld. Instead of using hashed values of compiler binary size and=20 > its last modification time, ccache should be using hash of the compiler= =20 > binary. To avoid hashing several megabytes worth image on each=20 > invocation, compiler binary hash value can be by itself cached using=20 > hashed values of compiler binary size and its last modification time.=20 >=20 That would work, indeed. :-) > Since linking the same objects from the cache is likely to produce the=20 > same binary, bootstrap compiler generated on the second ccached=20 > buildworld will be the same as one generated on the first one. >=20 Even not from cache: # cd /usr/obj/usr/home/src/RELENG_4/gnu/usr.bin/cc/cc1/ # strip cc1 # md5 ./cc1 /usr/libexec/cc1 MD5 (./cc1) =3D 32173c94754290242a6b026cf96ce108 MD5 (/usr/libexec/cc1) =3D 32173c94754290242a6b026cf96ce108 Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --hHWLQfXTYDoKhP50 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBRUCnqRfpzJluFF4RApxsAJ9mxUrzAePxvErDtQNTGb3n5y+9VwCfeZOO R2mTVgTxwZ18epeOrhf3Xag= =vjKr -----END PGP SIGNATURE----- --hHWLQfXTYDoKhP50--