From owner-freebsd-current@freebsd.org Wed Aug 9 19:35:39 2017 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 C1CA1DD4485 for ; Wed, 9 Aug 2017 19:35:39 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A713E82A27 for ; Wed, 9 Aug 2017 19:35:39 +0000 (UTC) (envelope-from david@catwhisker.org) Received: by mailman.ysv.freebsd.org (Postfix) id A0EECDD4484; Wed, 9 Aug 2017 19:35:39 +0000 (UTC) Delivered-To: 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 A0914DD4483 for ; Wed, 9 Aug 2017 19:35:39 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 62F5C82A21; Wed, 9 Aug 2017 19:35:38 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.15.2/8.15.2) with ESMTP id v79JZbqQ048167; Wed, 9 Aug 2017 19:35:37 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.15.2/8.15.2/Submit) id v79JZbgD048166; Wed, 9 Aug 2017 12:35:37 -0700 (PDT) (envelope-from david) Date: Wed, 9 Aug 2017 12:35:37 -0700 From: David Wolfskill To: Bryan Drewery Cc: "current@freebsd.org" , sjg@freebsd.org Subject: Re: Apparent race in buildworld (head/amd64, r322214 -> r322304) Message-ID: <20170809193537.GD1244@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , Bryan Drewery , "current@freebsd.org" , sjg@freebsd.org References: <20170809120436.GY1244@albert.catwhisker.org> <689a8aa1-c8a3-a8e3-bc01-8bec5c212b41@FreeBSD.org> <20170809175724.GC1244@albert.catwhisker.org> <2d6ecd49-2bcc-0c24-8854-63079c0eef6b@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pTEDYYnwEQXHeRP5" Content-Disposition: inline In-Reply-To: <2d6ecd49-2bcc-0c24-8854-63079c0eef6b@FreeBSD.org> User-Agent: Mutt/1.8.3 (2017-05-23) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Wed, 09 Aug 2017 19:35:39 -0000 --pTEDYYnwEQXHeRP5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 09, 2017 at 12:22:20PM -0700, Bryan Drewery wrote: > > /usr/obj/usr/src/tmp/usr/bin/ld: cannot find -lgcc_s > ...=20 >=20 > This should fix it: > https://people.freebsd.org/~bdrewery/patches/gcc_s-install-race.diff >=20 > The problem has consistently been, from your reports, that gcc_s is > being installed to WORLDTMP *while* something is trying to link to it. Yeah, that doesn't seem like something that's likely to have deterministic results. > ... > > --- lib/libc++__L --- > > /usr/obj/usr/src/tmp/usr/bin/ld: cannot find -lgcc_s > >=20 > > --- lib/libgcc_s__L ---^M = =20 > ... > > --- all_subdir_secure/lib/libcrypto/engines/libsureware ---^M = =20 > > /usr/obj/usr/src/tmp/usr/bin/ld: cannot find -lgcc_s^M = =20 >=20 >=20 >=20 > By default 'install' unlinks the file and then copies over the new file. > Using PRECIOUSLIB we get the -S flag to install which is atomic in its > installation. >=20 > Note the patch is not what I will commit. At Isilon we changed our > install to always use -S for library installation, but not to force schg > on. I am considering making that change the default, to use -S for all > libraries. =46rom an (admittedly) naive perspective, it seems to me that enforcing "atomic installation" for file system objects that are to be used during the build (or install) makes more sense than firing and hoping for the best. :-} > --=20 > Regards, > Bryan Drewery >=20 Thanks! :-) Peace, david --=20 David H. Wolfskill david@catwhisker.org If we wish to eliminate sources of Fake News, start at the top: D. Trump. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --pTEDYYnwEQXHeRP5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJZi2QJXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4XGYYH/i6Oe0heSJFejdqdatiX/LV+ DUpOIp6mNly2couq/LTGPLs5+8o3S84z2jbi7mvg1p9fbVRM9P5dpn4/Ih87ZfMO P/8V99WM09+RUCX2bZXoCDiN/0elBZLxjNXZs1hu22hgj8MGt8tj6iw2uborD8mn Wp4QqFBz8EWt9/OlZRmwqGbdviPo667vdGGLXJhxbZX7/UwoRxxSId2qD3mmbYTW stDmhiRvzfJcGdcwVhzdXJQdYXXaoqE0Q4Xzk+TipxPDPQoVHpufV/7TRp9fv5jC g+GLKqCMhiSfXVWXZXd6FI6TEXyslJ+5jNt4xULiLWtI2saV+gl2YFuURh9w1w0= =ZoY7 -----END PGP SIGNATURE----- --pTEDYYnwEQXHeRP5--