From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 50/50] Config: Disable parallel builds for Cargo on riscv64 Date: Tue, 22 Feb 2022 12:51:35 +0000 Message-ID: <20220222125135.1211290-51-michael.tremer@ipfire.org> In-Reply-To: <20220222125135.1211290-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5670152817175506947==" List-Id: --===============5670152817175506947== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit There seems to be some problem where Cargo deadlocks during the build when running on mutliple cores simulteneously. Signed-off-by: Michael Tremer --- lfs/Config | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lfs/Config b/lfs/Config index 9309b832d..53f31ed63 100644 --- a/lfs/Config +++ b/lfs/Config @@ -209,9 +209,15 @@ CARGO = \ --offline CARGO_OPTIONS = \ - $(MAKETUNING) \ -Z avoid-dev-deps +# Cargo dealocks on riscv64 when building on multiple cores at the same time +ifeq "$(BUILD_ARCH)" "riscv64" + CARGO_OPTIONS += -j1 +else + CARGO_OPTIONS += $(MAKETUNING) +endif + define CARGO_PREPARE mkdir -p $(CARGO_PATH) && \ echo "$${CARGO_CONFIG}" > $(CARGO_PATH)/config && \ -- 2.30.2 --===============5670152817175506947==--