From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cEZ2LWyr02Cr/gAAgWs5BA (envelope-from ) for ; Wed, 23 Jun 2021 23:45:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IAf7KGyr02D6LQAAbx9fmQ (envelope-from ) for ; Wed, 23 Jun 2021 21:45:16 +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 02BDB1E463 for ; Wed, 23 Jun 2021 23:45:16 +0200 (CEST) Received: from localhost ([::1]:41146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwAgM-00088F-NS for larch@yhetil.org; Wed, 23 Jun 2021 17:45:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwAgA-00087v-T1 for bug-guix@gnu.org; Wed, 23 Jun 2021 17:45:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwAgA-0005MB-Li for bug-guix@gnu.org; Wed, 23 Jun 2021 17:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lwAgA-0006i8-LL for bug-guix@gnu.org; Wed, 23 Jun 2021 17:45:02 -0400 Subject: bug#48963: "guix build guix" halts after exhausting memory Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Wed, 23 Jun 2021 21:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 48963 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Julien Lepiller Mail-Followup-To: 48963@debbugs.gnu.org, ludo@gnu.org, julien@lepiller.eu Received: via spool by 48963-done@debbugs.gnu.org id=D48963.162448464725712 (code D ref 48963); Wed, 23 Jun 2021 21:45:02 +0000 Received: (at 48963-done) by debbugs.gnu.org; 23 Jun 2021 21:44:07 +0000 Received: from localhost ([127.0.0.1]:41993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwAfH-0006ge-5y for submit@debbugs.gnu.org; Wed, 23 Jun 2021 17:44:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwAfF-0006g3-F3 for 48963-done@debbugs.gnu.org; Wed, 23 Jun 2021 17:44:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51960) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwAf9-0004iL-Fi; Wed, 23 Jun 2021 17:43:59 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35424 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwAf9-0006Fz-89; Wed, 23 Jun 2021 17:43:59 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210612002330.64cd06c1@tachikoma.lepiller.eu> <87im2dpoj3.fsf@gnu.org> Date: Wed, 23 Jun 2021 23:43:55 +0200 In-Reply-To: <87im2dpoj3.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 16 Jun 2021 22:01:20 +0200") Message-ID: <87zgvgtfxg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 48963-done@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=1624484716; 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: content-transfer-encoding:content-transfer-encoding:resent-to: 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=feTrlc6e7p9lKZmWg0BfUwtiHKmGg0F8oT5dxNVFnfE=; b=b/rm1BKK8en1oIz7zJzUYF2A+oBrSQOSOvfjNIrLB7QLizKcF0l2dxFKQ6L56XdvHKTqMi wMHGLxNFJymRuQu47f8YPC8Q3pj77Fr9Iz8Yv+IzWHF9tUyvb92syXbkH0eIMIfmHC4cWx 0EeSvoxLB+vCA34zPVaIXwg73lEV3OPRB0KhTf4RIc39sPSBnceGr4oTnxgJ0duS92QloN 8b+PUXtUrZG1dUBvXcySoB0FbgnjKn0xO+EzSwl5sXCdoMOqYS80espxx5L4NJOoysriXe Z13zFIFidx3G9YcBReL0e4Q7mmBwVJQXhDBS709u3n+hwFlu1MH6S6i2zdQMqw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624484716; a=rsa-sha256; cv=none; b=Gj8xnvcOfnrK7UZaaRyx50Epti9DqJNdE1uSKDyrnL6UYJzB3OuCSBCjHvAGZXFTWRjmBv d1UyCV21DfVhscbD/rZ96+EQFu+47YnazUCoqtz5hRG5gw4O+PA2ijhKjt9Q/wSREkaZj7 R/3goZuqw1tRbNgxG8SdhXw7kAEhJF//1EMwu5fwpVT3kDVPKa7JhhXIHWgyeeemWc5l3K l/SxexbttDhWd2BDi2sTK1sfbOtsXXRFFtWZF9Wk4pJzS3teHqTlsEGmE/FLkjWLq9G/Ln Dr0nDGbldnK4BZkWd+HmP+vP4fk3FOeeggqvgsvwnLXhqS29pkRZ8+jsu5FNpQ== 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: -2.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 02BDB1E463 X-Spam-Score: -2.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: c1Q7dr/tuHzm Hi, Ludovic Court=C3=A8s skribis: > Julien Lepiller skribis: >> Can we instead break the build (at the Makefile level) into multiple >> smaller chunks, that require less memory, in the same way (guix self) >> works? > > Yes, that=E2=80=99s a good idea. > > Could you check the extent to which the attached patch helps on this > machine? > > It doesn=E2=80=99t split as much as (guix self) does, only in three piece= s, but > hopefully that helps a bit. A side effect is that progress report is > now off, but we can fix it later. I pushed a variant of this patch, resorting to an ugly hack so that compile-all.scm can still estimate progress. The estimate is correct if you=E2=80=99re building all the .go files, not so much if you just do, say: make rm guix/cpio.go && make because guix/cpio.scm is in the first module set, so it=E2=80=99ll think it= =E2=80=99s starting from scratch and display =E2=80=9C0%=E2=80=9D. Fixing it is left as an exercise to the reader. :-) It seemed more important to me to fix the memory exhaustion issue first. Thanks, Ludo=E2=80=99.