mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH 2/2] nss: don't build in parallel
Date: Fri, 24 Jul 2020 15:02:38 +0200	[thread overview]
Message-ID: <20200724130238.6287-2-rhi@pengutronix.de> (raw)
In-Reply-To: <20200724130238.6287-1-rhi@pengutronix.de>

NSS has a custom-made build system, but on some systems, building in
parallel can lead to strange compile failures, like:

  ../../../coreconf/nsinstall/Linux5.1.21_arm_glibc_PTH_OPT.OBJ/nsinstall -R -m 444 nssckbi.h ../../../../dist/public/nss
  symlink creation race: /srv/jenkins-data/.../platform-nnn/build-target/nss-3.54/dist/public/nss/nssckbi.h
  nsinstall: symlink was attempted in working directory /srv/jenkins-data/.../platform-nnn/build-target/nss-3.54/nss/lib/ckfw/builtins from ../../../nss/lib/ckfw/builtins/nssckbi.h to /srv/jenkins-data/.../platform-nnn/build-target/nss-3.54/dist/public/nss/nssckbi.h.
  : File exists
  make[5]: *** [../../../coreconf/rules.mk:387: ../../../../dist/public/nss/nssckbi.h] Aborted (core dumped)

Disable parallel building for now, which seems to solve the problem.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/nss.make | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/nss.make b/rules/nss.make
index 9364755f63c9..d3abe8a0b166 100644
--- a/rules/nss.make
+++ b/rules/nss.make
@@ -44,6 +44,8 @@ ifeq ($(NSS_ARCH),i386)
 NSS_ARCH := x86
 endif
 
+NSS_MAKE_PAR := NO
+
 NSS_MAKE_ENV := \
 	$(CROSS_ENV) \
 	CCC=$(CROSS_CXX) \
-- 
2.27.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

  reply	other threads:[~2020-07-24 13:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-24 13:02 [ptxdist] [PATCH 1/2] nss: bring headers in order Roland Hieber
2020-07-24 13:02 ` Roland Hieber [this message]
2020-07-24 14:31   ` [ptxdist] [PATCH 2/2] nss: don't build in parallel Michael Olbrich
2020-07-27  8:48     ` Roland Hieber
2020-08-03 14:11       ` Roland Hieber
2020-08-04  7:23 ` [ptxdist] [APPLIED] nss: bring headers in order Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200724130238.6287-2-rhi@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox