Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 2004 20:01:31 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Ruslan Ermilov <ru@freebsd.org>
Cc:        Roman Kurakin <rik@cronyx.ru>
Subject:   Re: ccache support for make buildworld/make release
Message-ID:  <20040826030131.GA25905@xor.obsecurity.org>
In-Reply-To: <20040825210144.GG35529@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>

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

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



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