From owner-freebsd-current@freebsd.org Thu Oct 22 01:16:16 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F08AFA1B405 for ; Thu, 22 Oct 2015 01:16:15 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D56BE1BB5; Thu, 22 Oct 2015 01:16:15 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id CF0EA1044; Thu, 22 Oct 2015 01:16:15 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 88D70167B4; Thu, 22 Oct 2015 01:16:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id psqmRVzfXHkQ; Thu, 22 Oct 2015 01:16:13 +0000 (UTC) Subject: Re: [CFT] Buildworld ccache support DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 13763167AD To: =?UTF-8?Q?Juan_Ram=c3=b3n_Molina_Menor?= , freebsd-current@freebsd.org References: <56264279.7020504@club.fr> <56279AD2.6080009@FreeBSD.org> <5627F937.4060301@club.fr> <56280E07.50900@FreeBSD.org> From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <562838E0.1070004@FreeBSD.org> Date: Wed, 21 Oct 2015 18:16:16 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56280E07.50900@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qrWN7N7HljIsH499I53fsXJFr0VcuhO06" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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, 22 Oct 2015 01:16:16 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --qrWN7N7HljIsH499I53fsXJFr0VcuhO06 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 10/21/2015 3:13 PM, Bryan Drewery wrote: > On 10/21/2015 1:44 PM, Juan Ram=F3n Molina Menor wrote: >> +.if ${CC:M/*} =3D=3D "" >> +# Can use PATH. >> +PATH:=3D ${CCACHE_WRAPPER_PATH}:${PATH} >=20 > These lines in particular did have problems that I fixed recently. >=20 > - It would potentially add /usr/local/libexec/ccache into PATH multiple= > times in sub-makes (I think, it may have been my own PATH confusing me)= =2E > This would still use ccache. > - It would consider the '-isystem /usr/obj/...' used for LIB32MAKE to > match on '${CC:M/*}' which is intended to see if the compiler itself > starts with a /. In this case of building during build32 ccache was not= > used. >=20 > I have since added 'env CCACHE=3D1' to CC and an .info ${PATH} near thi= s > code to see if it is working and it sure seems to be working in all of > the build. This does suggest that using the PATH method may not be goo= d > as it leads to confusion about whether it is used or not. >=20 > I have seen ccache stats get really messed up before. They seemed stuc= k > to me earlier. I had updated ccache in ports recently and had been > building Poudriere using my global ccache dir. Outside of the jail I > still had the older ccache. This may have led to it messing up my cach= e > and stats. Once I upgraded ccache in the host and cleaned the cache it= > seemed to resume incrementing the counters. >=20 > I've also since removed the CCP handling from the patch as I found that= > ccache just records a stat and bails out in that case. >=20 Subtle changes in the environment or make command line could not use the cache too. Some of my recent changes in the build system may have caused no cache to be used in the next build. --=20 Regards, Bryan Drewery --qrWN7N7HljIsH499I53fsXJFr0VcuhO06 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJWKDjgAAoJEDXXcbtuRpfPEyAIALmGMwYnP3TadX4Fi2wO1zD+ pzVtGegZ+raWyBeY5d4KxAfMoMdB1iSzHBbchWTC47AnYzEZrLqmwQANxEA+Hu6Q DUXhnrNtNwG2QjfOFYELXbeD9n1yKjjnwAQEX1RypDFCZOW8bhWOQUUEDYFH9n9C HvJdG5/kojcO9vb/weIY5ua+71ArixAJUZwhriu2qYX8/fmatjzT+kAhzy61GK55 yyQSaQOqg7X2CG4IBj+KInwACqLjk2aAEou1rLF7AR6M74/Tha8/vSMPf63C83oO AFsyOKFEg5GzRy4wDjZY4+Gv+HGFGpc69IMLbMw2U07U57aNeYx1Dlt+mTZk6zs= =7U8B -----END PGP SIGNATURE----- --qrWN7N7HljIsH499I53fsXJFr0VcuhO06--