From owner-freebsd-current@FreeBSD.ORG Thu Aug 26 03:01:38 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 4101916A4CE; Thu, 26 Aug 2004 03:01:38 +0000 (GMT) Received: from ylpvm43.prodigy.net (ylpvm43-ext.prodigy.net [207.115.57.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9E3B43D53; Thu, 26 Aug 2004 03:01:37 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (adsl-67-115-74-195.dsl.lsan03.pacbell.net [67.115.74.195]) i7Q31bnA011900; Wed, 25 Aug 2004 23:01:37 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 22546533F9; Wed, 25 Aug 2004 20:01:32 -0700 (PDT) Date: Wed, 25 Aug 2004 20:01:31 -0700 From: Kris Kennaway To: Ruslan Ermilov Message-ID: <20040826030131.GA25905@xor.obsecurity.org> References: <412CBC91.3070900@portaone.com> <412CD983.2040700@cronyx.ru> <20040825183342.GA81434@xor.obsecurity.org> <412CEF62.5010600@mcsi.pp.ru> <412CFBED.6030508@portaone.com> <20040825210144.GG35529@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: <20040825210144.GG35529@ip.net.ua> User-Agent: Mutt/1.4.2.1i cc: Maxim Maximov cc: Maxim Sobolev cc: Kris Kennaway cc: current@freebsd.org cc: Roman Kurakin 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: Thu, 26 Aug 2004 03:01:38 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 26, 2004 at 12:01:44AM +0300, Ruslan Ermilov wrote: > On Wed, Aug 25, 2004 at 11:51:57PM +0300, Maxim Sobolev wrote: > > Yeah, I've noticed that as well. Also, for some reason when I've re-run= =20 > > make world second time all objects built after buildtools miss the=20 > > cache. Strange.... > >=20 > Does ccache take into account that the "cc" binary may be different > for the same source and the command? What will happen, assuming > it's made to work, if you attempt to build the native i386 world, > and then try to "make buildworld TARGET_ARCH=3Dalpha"? The cc > command will be the same; will ccache substitute the i386 code in > this case? Also, what happens for a native build when we upgrade > GCC version in the base? I believe it hashes the output of the preprocessor and uses that as the index into the cache. So cross-builds should probably be fine (assuming the right cc is used) since they'll hash differently. Compiler upgrades might not work reliably since you might sometimes get the object file from the old compiler. Kris --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBLVKLWry0BWjoQKURAi8QAJ4oXpRgVvNH2krUS0846TiIJaomLQCfUNCW UPY9E17t5Iw3QQVZCg//JvA= =bW+R -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--