Date: Wed, 9 Aug 2017 12:35:37 -0700 From: David Wolfskill <david@catwhisker.org> To: Bryan Drewery <bdrewery@FreeBSD.org> Cc: "current@freebsd.org" <current@freebsd.org>, sjg@freebsd.org Subject: Re: Apparent race in buildworld (head/amd64, r322214 -> r322304) Message-ID: <20170809193537.GD1244@albert.catwhisker.org> In-Reply-To: <2d6ecd49-2bcc-0c24-8854-63079c0eef6b@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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170809193537.GD1244>