From owner-freebsd-ports@freebsd.org Thu Jul 30 17:18:15 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 249D43AAC48 for ; Thu, 30 Jul 2020 17:18:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-20.consmr.mail.gq1.yahoo.com (sonic305-20.consmr.mail.gq1.yahoo.com [98.137.64.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BHcYy0jVmz4g06 for ; Thu, 30 Jul 2020 17:18:13 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: jHHhT1gVM1kx4NKrlQuotQ6SkS4o6kc6wXQcv4RPfV5AfoaXIDpuZB7Vp3ODxcW 8AHOseFCS90TCGHGDZCYsqSMwSACHhD.TLtPp9gSKlSiCGjvWI8M48Xn4XetOt9NLD6xkg_gS5mt uCf9HcaV9DQlh8Hb.DbvzaaudtUGFf94Lz.7ksSh0ujUcEnkOiOH_XNH3uW7PGLuqelt01bRv0Lp tqzZOeKbn8u94x6x2X2.RRgfnJBotpGYt.4T3uvE99TZLjEM2lLdF7oNRffSnaUnNWUTmdn3Qjwv y6ZgRUq7PnBMgdxGnIxV3NM0HDVXvS_klfmckEkXTkmYm9ojcdLw1OZUC9jR7O.vJt4HMIPcCOHQ PSmp0tMGCduHFv5WE_J_QcGC1oJWgxD73W.4fzUjdvMNdkVQMZtUKw45171cPmN2py_LuOdnKdd2 p_LQD7Zwc5TZMKskxg0Hw_lNm0DwMMm1g__Sd3Oa54CVEW1DwL9wZTNSIF9vNtJlZjLr68LVBKLf lQLwwBKdDmOHHZJ07zvpO6UPGxTHFrbybgzEo6gZFe.BMnBcQ4tDWWOaGL_ikpYgxJW59Bmw_PPT n0KAvBvQFc5NgGEM4YaFzER7DGlP0i0MDHIym999zD8Ewekp_a5GT4qKds_3ccWtjSqpUJAeGyVp Zrmkd2d0.GmpTc1U2CPjj5Bkf_0_afvfxLvvob5sAU0mM29BKBKkZEfrMZ.5GiNWjdGJC39X2d7G 6LWug20ljWYb7_MAH76vAAxrhWVPX4k8xMy9PTkUb81Npwsf36ug.vbIF438S.Ym9NZ41d9pVRyf 2bpUyzzbgi.pn9QqVMxd6UWh0LXmNF6tqpzFnFumcoWVwWcorO9Ho5O0gwqAFoRddy8PBs5hjCIm ZAIzGrXMP2MaquMG5SIqG4u9RMKMAJs1Zr4S_p5rKiS49DonnNC2.1lpB86FGgXJfNFCsvVRCim0 FVJdQvWY.kg0IGUS1jNLO1Di4jh6q052FuG.vHcAM7ti4e9yzLzFdAWp2uzExaRw60tISseprBBG ReuJpTVDVKhsFpMor16WV.s.pXZKKe5s.pCodtIS5fbWLydW0esdFo_04mRZK.h98C30.Kxd7NHW vWGxSjmU0AbdBcmcxgm5Ud3IgHDINW8GL9MT.ekf5gyFJRNU94F54_6Z2Znvtfg8SdX85Vtu9_bR xOTdhy1X60m7oNDWU99QYrH4XtcggJxp1whsm9E3hdHycRxsjdmtdJrJe0dNJrBfjR3XoW_3AX0H UJeEPZ5F0c9CcYsP4JJ3o6TpPOlGPjuTJHHKSgyNVjz9VW.VM6ckXZoxB.QxEKygadlOxcb2Pywi VCj0_ay7RM6DJJI5xUWUzSNPKC_KoNC756Ax.6cxujZz.dbni689OWSdMPYL9SmPUOcc6ostmQsj OB5r_clo4EZwXPct2qxsVRg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Thu, 30 Jul 2020 17:18:12 +0000 Received: by smtp418.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 18e5283b751d4116c114f3537bfafbdc; Thu, 30 Jul 2020 17:18:09 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: security/nss build failure under poudriere, "symlink creation race", head -r363590 FreeBSD and head -r543636 ports From: Mark Millard In-Reply-To: Date: Thu, 30 Jul 2020 10:18:07 -0700 Cc: FreeBSD ports Content-Transfer-Encoding: quoted-printable Message-Id: References: <545B857B-6A55-4C71-BA3D-6F9F5BF9F059.ref@yahoo.com> <545B857B-6A55-4C71-BA3D-6F9F5BF9F059@yahoo.com> To: Tatsuki Makino X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 4BHcYy0jVmz4g06 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.26 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.70)[-0.705]; FREEMAIL_TO(0.00)[hotmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.01)[-1.006]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.05)[-1.051]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.83:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.83:from]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2020 17:18:15 -0000 On 2020-Jul-29, at 23:34, Tatsuki Makino wrote: > Hello. >=20 > The same thing happened to me. > If you want the build to succeed, I think enabling DISABLE_MAKE_JOBS > will solve the problem. Running bulk again had no troubles, no use of MAKE_JOBS_UNSAFE involved. However, I use poudriere with ALLOW_MAKE_JOBS=3Dyes and do not restrict PARALLEL_JOBS. The first run had 4 builders running (one per core), each allowed 4 active processes. The 2nd run had only one builder active while building nss simply because everything not dependent on nss had been built already. The 4-builders, each allowed 4 active processes, apparently makes it more likely to fail the race condition. > Here's an excerpt from a log of my failures for the same reason. >=20 >=20 > =3D>> Building security/nss > build started at Tue Jun 30 01:18:43 UTC 2020 > port directory: /usr/ports/security/nss > package name: nss-3.54 > building for: FreeBSD src-default-job-02 12.1-STABLE FreeBSD = 12.1-STABLE > 1201518 amd64 > =E3=80=80=E3=80=80=E3=80=80=EF=B8=99 > Poudriere version: 3.3.4 > Host OSVERSION: 1201518 > Jail OSVERSION: 1201518 > =E3=80=80=E3=80=80=E3=80=80=EF=B8=99 > ../../coreconf/nsinstall/FreeBSD12.1_OPT.OBJ/nsinstall -R -m 444 = smime.h > ../../../dist/public/nss > ../../coreconf/nsinstall/FreeBSD12.1_OPT.OBJ/nsinstall -R -m 444 > nssckfw.h ../../../dist/public/nss > ../../coreconf/nsinstall/FreeBSD12.1_OPT.OBJ/nsinstall -R -m 444 > nssckfw.h ../../../dist/public/nss > ../../coreconf/nsinstall/FreeBSD12.1_OPT.OBJ/nsinstall -R -m 444 > cmsreclist.h ../../../dist/public/nss > symlink creation race: > = /wrkdirs/usr/ports/security/nss/work/nss-3.54/dist/public/nss/nssckfw.h > nsinstall: symlink was attempted in working directory > /wrkdirs/usr/ports/security/nss/work/nss-3.54/nss/lib/ckfw from > ../../../nss/lib/ckfw/nssckfw.h to = /wrkdirs/usr/ports/security/nss/work> > ../../coreconf/nsinstall/FreeBSD12.1_OPT.OBJ/nsinstall -R -m 444 > nssckfwc.h ../../../dist/public/nss > : File exists > ../../coreconf/nsinstall/FreeBSD12.1_OPT.OBJ/nsinstall -R -m 444 > nssckfwt.h ../../../dist/public/nss > ../../coreconf/nsinstall/FreeBSD12.1_OPT.OBJ/nsinstall -R -m 444 > nssckfwc.h ../../../dist/public/nss > gmake[4]: Leaving directory > '/wrkdirs/usr/ports/security/nss/work/nss-3.54/nss/lib/smime' > =E3=80=80=E3=80=80=E3=80=80=EF=B8=99 > gmake[5]: *** [../../coreconf/rules.mk:387: > ../../../dist/public/nss/nssckfw.h] Abort trap (core dumped) > gmake[5]: *** Deleting file '../../../dist/public/nss/nssckfw.h' > gmake[5]: Leaving directory > '/wrkdirs/usr/ports/security/nss/work/nss-3.54/nss/lib/ckfw' > gmake[4]: *** [../../coreconf/rules.mk:44: .] Error 2 > gmake[4]: Leaving directory > '/wrkdirs/usr/ports/security/nss/work/nss-3.54/nss/lib/ckfw' > gmake[3]: *** [../coreconf/rules.mk:44: ckfw] Error 2 > gmake[3]: Leaving directory > '/wrkdirs/usr/ports/security/nss/work/nss-3.54/nss/lib' > gmake[2]: *** [coreconf/rules.mk:44: lib] Error 2 > gmake[2]: Leaving directory > '/wrkdirs/usr/ports/security/nss/work/nss-3.54/nss' > gmake[1]: *** [manifest.mn:25: prepare_build] Error 2 > gmake[1]: Leaving directory > '/wrkdirs/usr/ports/security/nss/work/nss-3.54/nss' > =3D=3D=3D> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the = failure to > the maintainer. > *** Error code 1 >=20 > Stop. > make: stopped in /usr/ports/security/nss >=20 >=20 > I don't know why it's trying to run the command twice against = nssckfw.h. >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)