From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sLO3IDliQ2HVYgAAgWs5BA (envelope-from ) for ; Thu, 16 Sep 2021 17:26:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eNpUHDliQ2EUEQAAbx9fmQ (envelope-from ) for ; Thu, 16 Sep 2021 15:26:49 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A1FA8224F0 for ; Thu, 16 Sep 2021 17:26:48 +0200 (CEST) Received: from localhost ([::1]:58046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQtHj-0006a6-Qe for larch@yhetil.org; Thu, 16 Sep 2021 11:26:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQtCB-0007JQ-Ac for bug-guix@gnu.org; Thu, 16 Sep 2021 11:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44694) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQtC9-0002cm-WC for bug-guix@gnu.org; Thu, 16 Sep 2021 11:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQtC9-0005WO-R2 for bug-guix@gnu.org; Thu, 16 Sep 2021 11:21:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50617: [core-updates-frozen] CMake fails to build on i686-linux Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 16 Sep 2021 15:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50617 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Guillaume Le Vaillant Received: via spool by 50617-submit@debbugs.gnu.org id=B50617.163180562621162 (code B ref 50617); Thu, 16 Sep 2021 15:21:01 +0000 Received: (at 50617) by debbugs.gnu.org; 16 Sep 2021 15:20:26 +0000 Received: from localhost ([127.0.0.1]:56240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQtBa-0005VF-Bc for submit@debbugs.gnu.org; Thu, 16 Sep 2021 11:20:26 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:53597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQtBW-0005Uz-NK for 50617@debbugs.gnu.org; Thu, 16 Sep 2021 11:20:24 -0400 IronPort-HdrOrdr: A9a23:llE4f678vj6y91XPjAPXwCTXdLJyesId70hD6qm+c3Fom62j5ruTdZsgpHvJYVoqM03I3OrwX5VoIkmsjaKdg7NhW4tKNTOO0FdAbrsM0WKI+VHd8kPFnNK1mZ0QCpRWOZnXNzFB/KPHyTj9KvgYhPaG966lnv7Ez3BxJDsaCZ1I3kNBJD/eMEFnLTM2ZqYRJd6kyPMChTaxPVQ7B/7aOlA1G9POuNvPiI/nZxkPHA5ixQGSgVqTiYLSIlyl5TJ2aV1y/Ys= X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="393181807" Received: from unknown (HELO ribbon) ([193.50.110.101]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Sep 2021 17:20:15 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87y27w26yy.fsf@inria.fr> <87k0jgoe2v.fsf@kitej> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 30 Fructidor an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 16 Sep 2021 17:20:15 +0200 In-Reply-To: <87k0jgoe2v.fsf@kitej> (Guillaume Le Vaillant's message of "Thu, 16 Sep 2021 13:13:55 +0000") Message-ID: <87h7ek1r9s.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 50617@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631806008; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=+OY+RU7OGPrYX2ZABio8Bw39QobX4CsnOiSfXdLtodU=; b=Cs+Tm9wO0BB0VVgSpPU9JlxhZmTzHB9SEj6Bsj6juVao/jf8qdiZk2ANdYhtrcaeV4Htb7 OJeFZpBjh8IAq9din4sWI19btWehVce0/1zqzAasHRWVwLo5Sv02poxsQZlkiZjCUqA2A/ 3nS/84rmok6qrCQpbn1v6GqJb9ZckCXJmIsXs6l24VGPGrPG2eydSOkYqOXcxnMxx/9bfr dj808d1qzapv3eY7M7KlXzO+ryTIGxet/eBGqJlY3jpFcgjq9Sg4+fOzf3ZFbJVoErfpOa YKcG+v7r92/R9iEeSvbA9b0nCexsg84T0uIX/MsPLk1gA61xv0dmG6QrGFcOVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631806008; a=rsa-sha256; cv=none; b=NaT10rlrm1bBy7nNKraKwCTsVBlAc4hiO88gESMRanhtYrsGVMiP4dUVtDyMkJRQ3x5ByT 8x5839ryBit7F9uY96o56xbQNzASUuVG7X/6b6fHSr03Z7qI9fXu2P90niUj4/VVMWlGYd Yusn+QO+PpzilEDVXYLL/OK5AE2tjcz3pHCeBl8IMW2URVi9hI6g7JWLmUa9i5j6NS1CF+ jiK3L4lmEW8n/z0QqGiqLIdX/52zDrfPakJi9IEEem05R5BKGWrS+JmOpziMnkig0KFBjV yRH/kubULdXSMk1fL/xy1BbCXJvi7y+ibIz4nlDuMCICc7VxSMMaPYERiAAP7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.90 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: A1FA8224F0 X-Spam-Score: -0.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: K/zM520pXEN9 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Guillaume Le Vaillant skribis: > Ludovic Court=C3=A8s skribis: > >> On =E2=80=98core-updates-frozen=E2=80=99, CMake has one test failure on = i686-linux when >> building on berlin (e.g., = ): >> >> --8<---------------cut here---------------start------------->8--- >> 545/558 Test #518: RunCMake.CPack_TXZ ................................**= *Failed 3.79 sec >> [...] >> --8<---------------cut here---------------end--------------->8--- >> >> I cannot reproduce it on hardware with 32 cores. I suspect it has to do >> with the number of threads used for xz compression, which defaults to >> the number of cores, and some of the build machines on berlin have way >> more cores. >> >> Ludo=E2=80=99. > > I tried a few times on a machine with 16 cores, and I can't reproduce > either. The build succeeded every time. My latest attempt is to go as far as setting the number of threads used by libarchive to 1 (patch attached). However, that still fails systematically on berlin=E2=80=99s 32-core build machines. The Internet doesn=E2=80=99t seem to have much to say about this problem. Ideas anyone? Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm index f76ee3ff3a..a235d922e0 100644 --- a/gnu/packages/cmake.scm +++ b/gnu/packages/cmake.scm @@ -92,7 +92,7 @@ using the CMake build system.") ;;; Build phases shared between 'cmake-bootstrap' and the later variants ;;; that use cmake-build-system. -(define %common-build-phases +(define (%common-build-phases) `((add-after 'unpack 'split-package ;; Remove files that have been packaged in other package recipes. (lambda _ @@ -100,6 +100,18 @@ using the CMake build system.") (substitute* "Auxiliary/CMakeLists.txt" ((".*cmake-mode.el.*") "")) #t)) + ,@(let ((system (or (%current-target-system) (%current-system)))) + (if (or (string-prefix? "i686-" system) + (string-prefix? "i586-" system)) + '((add-after 'unpack 'clamp-xz-thread-number + (lambda _ + ;; By default, 'CPack' would use as many threads as the + ;; number of available cores for xz compression. + ;; However, this leads to test failures: . + (substitute* "Source/cmArchiveWrite.cxx" + (("case CompressXZ:") + "case CompressXZ: numThreads = 1;\n"))))) + '())) (add-before 'configure 'patch-bin-sh (lambda _ ;; Replace "/bin/sh" by the right path in... a lot of @@ -188,7 +200,7 @@ using the CMake build system.") " --exclude-regex ^\\(" (string-join skipped-tests "\\|") "\\)$"))) #:phases (modify-phases %standard-phases - ,@%common-build-phases + ,@(%common-build-phases) (add-before 'configure 'set-paths (lambda _ ;; Help cmake's bootstrap process to find system libraries @@ -295,7 +307,7 @@ and workspaces that can be used in the compiler environment of your choice.") #:build-type "Release" #:phases (modify-phases %standard-phases - ,@%common-build-phases + ,@(%common-build-phases) (add-after 'install 'delete-help-documentation (lambda* (#:key outputs #:allow-other-keys) (delete-file-recursively --=-=-=--