From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] DRAFT: build: Compile scheme modules in batches (was Re: Release!) Date: Mon, 09 Oct 2017 09:38:30 +0200 Message-ID: <87o9pgahzd.fsf@gnu.org> References: <877f16z9eo.fsf@gnu.org> <87infv54m3.fsf@gnu.org> <87efqgnn7x.fsf@elephly.net> <87fuavzjms.fsf_-_@netris.org> <8760bqngiz.fsf@elephly.net> <87376tonh2.fsf@elephly.net> <871smdojnp.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1Se6-0000Ps-35 for guix-devel@gnu.org; Mon, 09 Oct 2017 03:38:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1Se0-0001bH-SS for guix-devel@gnu.org; Mon, 09 Oct 2017 03:38:38 -0400 In-Reply-To: <871smdojnp.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 08 Oct 2017 15:26:18 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel@gnu.org Ricardo Wurmus skribis: > Ricardo Wurmus writes: > >> Ricardo Wurmus writes: >> >>>> I've attached a workaround that I've been using for the last 6 weeks on >>>> my MIPS-based Yeeloong running GuixSD, since it only has 1 GB of RAM a= nd >>>> otherwise it would not be able to successfully build the 'guix' packag= e. >>>> >>>> Note that I never use 'guix pull', so I'm not sure off-hand whether th= is >>>> solves the problem there, but it certainly greatly reduces the memory >>>> needed to run 'make' and thus to build the 'guix' package. >>> >>> thank you for this patch. I=E2=80=99m trying it on my i686 with 1GB of= RAM now. >>> My own attempt to revert the commit to build all files in one process >>> resulted in a guix pull that would only go to 20.4% and then sit there >>> doing nothing. >>> >>> I=E2=80=99ll report back once I manage to run =E2=80=9Cguix pull --url= =3D/path/to/guix=E2=80=9D >>> with this patch. > > Well=E2=80=A6 I just noticed that guix pull doesn=E2=80=99t even use comp= ile-all.scm; it > uses build-self.scm, so this patch has no effect on =E2=80=9Cguix pull=E2= =80=9D. Right, this should be tested with =E2=80=9Cmake=E2=80=9D. If it works fine here, we can port it to (guix build pull). (And factorize it eventually=E2=80=A6) Ludo=E2=80=99.