From owner-freebsd-current@FreeBSD.ORG Thu Aug 26 06:14:07 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 9495116A4CE for ; Thu, 26 Aug 2004 06:14:07 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B05A43D45 for ; Thu, 26 Aug 2004 06:14:06 +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 i7Q6DwSG015107 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Aug 2004 09:13:59 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i7Q6E2ib026996; Thu, 26 Aug 2004 09:14:02 +0300 (EEST) (envelope-from ru) Date: Thu, 26 Aug 2004 09:14:02 +0300 From: Ruslan Ermilov To: Kris Kennaway Message-ID: <20040826061402.GB26879@ip.net.ua> 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> <20040826030131.GA25905@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gj572EiMnwbLXET9" Content-Disposition: inline In-Reply-To: <20040826030131.GA25905@xor.obsecurity.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: Maxim Maximov cc: Maxim Sobolev 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 06:14:07 -0000 --gj572EiMnwbLXET9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 25, 2004 at 08:01:31PM -0700, Kris Kennaway wrote: > 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-r= un=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? >=20 > 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. >=20 I'm pretty sure the following code will preprocess identically on all architectures, no? : void : foo(void) : { : } Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --gj572EiMnwbLXET9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBLX+qqRfpzJluFF4RAhHBAJ0a0L+usNLq3CzDT6UGZTRukLDqUgCeIn4+ AmXm2TPjW0OLfVQlbWJvhFs= =/RqD -----END PGP SIGNATURE----- --gj572EiMnwbLXET9--