Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 2004 09:14:02 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        Roman Kurakin <rik@cronyx.ru>
Subject:   Re: ccache support for make buildworld/make release
Message-ID:  <20040826061402.GB26879@ip.net.ua>
In-Reply-To: <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> <20040826030131.GA25905@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040826061402.GB26879>