Bug 253614 - security/nss: apparently needs MAKE_JOBS_UNSAFE
Summary: security/nss: apparently needs MAKE_JOBS_UNSAFE
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-gecko (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-18 08:52 UTC by andrew
Modified: 2021-02-20 11:49 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (gecko)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrew 2021-02-18 08:52:34 UTC
Had this error twice out of two attempts when trying to build security/nss on stable/13:

../../coreconf/nsinstall/FreeBSD13.0_OPT.OBJ/nsinstall -R -m 444 nssckt.h ../../../dist/public/nss
symlink creation race: /wrkdirs/usr/ports/security/nss/work/nss-3.61/dist/public/nss/nssckfwc.h
nsinstall: symlink was attempted in working directory /wrkdirs/usr/ports/security/nss/work/nss-3.61/nss/lib/ckfw from ../../../nss/lib/ckfw/nssckfwc.h to /wrkdirs/usr/ports/security/nss/work/nss-3.61/dist/public/nss/nssckfwc.h.
: File exists
../../coreconf/nsinstall/FreeBSD13.0_OPT.OBJ/nsinstall -R -m 444 nssckt.h ../../../dist/public/nss
gmake[5]: *** [../../coreconf/rules.mk:387: ../../../dist/public/nss/nssckfwc.h] Abort trap (core dumped)
gmake[5]: *** Deleting file '../../../dist/public/nss/nssckfwc.h'

Manually setting MAKE_JOBS_UNSAFE allowed the build to succeed.
Comment 1 Jan Beich freebsd_committer 2021-02-18 09:09:48 UTC
What architecture and how many make jobs were used? Did you try old nss versions? Maybe there's a regression. ports r537010 removed MAKE_JOBS_UNSAFE due to https://bugzilla.mozilla.org/show_bug.cgi?id=290526
Comment 2 andrew 2021-02-18 09:15:51 UTC
(In reply to Jan Beich from comment #1)

amd64, host 4-core intel skylake cpu, bhyve VM with 4 vCPUs, using poudriere with ALLOW_MAKE_JOBS=yes, therefore 4 jobs used.

Did not try other nss versions.
Comment 3 Charlie Li freebsd_committer 2021-02-19 20:38:01 UTC
This doesn't seem related to that upstream bug.

I occasionally hit nsinstall crashing during build with ALLOW_MAKE_JOBS, but trying the build again succeeds, so ime this only happens intermittently. Also on amd64, but with three jobs; have not tried with two jobs. Been happening for the past couple versions iirc (not sure if my old build logs still exist).
Comment 4 andrew 2021-02-20 11:49:47 UTC
Note, this is NOT fixed in nss 3.62: I've had 2 build failures out of 5 attempts so far when jobs are enabled.