From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id aG1BL1Qu5WSXjQAASxT56A (envelope-from ) for ; Tue, 22 Aug 2023 23:53:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GM1VLlQu5WTPJgEAG6o9tA (envelope-from ) for ; Tue, 22 Aug 2023 23:53:24 +0200 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 ED99157ACA for ; Tue, 22 Aug 2023 23:53:23 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="hdqJg/oV"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692741204; 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-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:dkim-signature; bh=xA6xKZd0R8odnqBJIEAbgIub4oudzEMvBekUZ7/8lGg=; b=dDPnR156ROvf7keMT3OXTuaTfSjjmVl2mtJDdP5aj7hWAAZm8QobmhXn2+CjQhLNjwtzZU j3+GXqbcd+r3+fe4UDIDuD8fnQYcytOezLpcDc7Rk35ItbuLWTd/opE1coFJLFoNZqo19s 9oYG2uWtgGsBsjFnuyzMBqLDCEDcjBBFSblOf18X+Om8ba44hW01MUB5yw/CsjvbmDH9sP r+obaP8OicuPpEWlFXA2tb/uYLcYkIBBxsuagpJc4ZohKu//wKTZeJh3Z7wYZSOZ9z/4ha r2O+gsus0J21tGyQqpBN53s+cZgDErUi0XlxMpS7VlRqjmUMmP5YdfM2wuiquw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="hdqJg/oV"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692741204; a=rsa-sha256; cv=none; b=U4gX563ECySay91EYHUQwTpz62VskHeSvxnAXvSk7mwhJrd5nll8/5+48623o4NEQmMqlf aTtnMWJIeSxjmAvFK/Z1eKCfCNzmRJWX7kRLUSNlbQI6Zhh2XkFhi0+4vQGcHSosYPZ9KU tcpE8AYZucPAOSiBsbwF2u7LszPB4Pd/RTbeKOBL7R6XfuNYvhy7m3W/0hNwQNki4LiW65 N5tJJPuImqkg8ejyxwT+m/bsCH/92mnsTA5eG+FIj1Wtwr50XIHin38wRlxP5ahtEZbI3T KM376zjyxW+LMJbwdf0b2rFELMRO05YerKsHuFkYhh05YTVnM3aNqCNNHk+/Xw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYZJ5-0005pu-Pb; Tue, 22 Aug 2023 17:52:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYZJ5-0005pm-6P for bug-guix@gnu.org; Tue, 22 Aug 2023 17:52:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYZJ4-00051U-Uj for bug-guix@gnu.org; Tue, 22 Aug 2023 17:52:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qYZJ7-0001Ma-OH for bug-guix@gnu.org; Tue, 22 Aug 2023 17:53:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#65456: [PATCH 0/2] Split guix build into more steps for 32bit hosts. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 22 Aug 2023 21:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65456 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Janneke Nieuwenhuizen Cc: Josselin Poiret , Tobias Geerinckx-Rice , Simon Tournier , Mathieu Othacehe , 65456@debbugs.gnu.org, Ricardo Wurmus , Christopher Baines Received: via spool by 65456-submit@debbugs.gnu.org id=B65456.16927411375187 (code B ref 65456); Tue, 22 Aug 2023 21:53:01 +0000 Received: (at 65456) by debbugs.gnu.org; 22 Aug 2023 21:52:17 +0000 Received: from localhost ([127.0.0.1]:60557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYZIO-0001Lb-9p for submit@debbugs.gnu.org; Tue, 22 Aug 2023 17:52:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qYZIL-0001LK-U1 for 65456@debbugs.gnu.org; Tue, 22 Aug 2023 17:52:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYZI4-0004Yl-41; Tue, 22 Aug 2023 17:52:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=xA6xKZd0R8odnqBJIEAbgIub4oudzEMvBekUZ7/8lGg=; b=hdqJg/oVb6pSHWqfMM3G H5mz5ppAjTVz7/MpNei7xMnxcmSWdpzyWjAgVsS0i82mBhCAZdb+p6gHZguUV1Z/u2ZSmQrZNR8Ph XxZYTUXIshpGAmhIhnQ9rqCz4wuG37hy9kKcevrpcwW7lZukGACvxE3thDl08QFlJl9E3GzOfyS4j Xu+XnMvsnCDdVCkXfKInfJd5s+CGX2qtwCJ3pw35hilPA2u9N8Y2yGzks91oaGfWGIOFVEoBAR91a YCcHLF+haRQeMhHH5w34U/Nql/KjO2USuNHS9tIDmjmlCVMYAOWSnKUeiwl868r0ptmM1yyPsq3fP TEq/ltVLhW9hoQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <887d53ad5bee76b33d765e744c50e94e063b1ab8.1692723764.git.janneke@gnu.org> Date: Tue, 22 Aug 2023 23:51:53 +0200 In-Reply-To: <887d53ad5bee76b33d765e744c50e94e063b1ab8.1692723764.git.janneke@gnu.org> (Janneke Nieuwenhuizen's message of "Tue, 22 Aug 2023 19:19:42 +0200") Message-ID: <87pm3e3fuu.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -0.90 X-Spam-Score: -0.90 X-Migadu-Queue-Id: ED99157ACA X-TUID: SdyNkx2yKb58 Hi, Janneke Nieuwenhuizen skribis: > Similar to the Makefile.am change, this breaks-up packages into 26 chunks > when building on 32bit. Also force garbage collection. > > * guix/self.scm (compiled-modules)[process-directory/32bit]: New inner de= fine. > Use it when building on a "i586" or "i686" cpu. .go files of a Guix built with this new (guix self) would not be found: --8<---------------cut here---------------start------------->8--- newfstatat(AT_FDCWD, "/gnu/store/pm43nabwng5rm8irmfhw2wk39hip8xr6-guix-modu= le-union/share/guile/site/3.0/guix/ui.scm", {st_mode=3DS_IFREG|0444, st_siz= e=3D95284, ...}, 0) =3D 0 newfstatat(AT_FDCWD, "/gnu/store/pm43nabwng5rm8irmfhw2wk39hip8xr6-guix-modu= le-union/lib/guile/3.0/site-ccache/guix/ui.go", 0x7ffc4bf07640, 0) =3D -1 E= NOENT (No such file or directory) newfstatat(AT_FDCWD, "/gnu/store/4gvgcfdiz67wv04ihqfa8pqwzsb0qpv5-guile-3.0= .9/lib/guile/3.0/ccache/guix/ui.go", 0x7ffc4bf07640, 0) =3D -1 ENOENT (No s= uch file or directory) newfstatat(AT_FDCWD, "/gnu/store/4gvgcfdiz67wv04ihqfa8pqwzsb0qpv5-guile-3.0= .9/lib/guile/3.0/ccache/guix/ui.go", 0x7ffc4bf07640, 0) =3D -1 ENOENT (No s= uch file or directory) newfstatat(AT_FDCWD, "/gnu/store/4gvgcfdiz67wv04ihqfa8pqwzsb0qpv5-guile-3.0= .9/lib/guile/3.0/site-ccache/guix/ui.go", 0x7ffc4bf07640, 0) =3D -1 ENOENT = (No such file or directory) newfstatat(AT_FDCWD, "/gnu/store/b914k2bjm3wixvd2kc9s03mzvfsif69c-profile/l= ib/guile/3.0/site-ccache/guix/ui.go", 0x7ffc4bf07640, 0) =3D -1 ENOENT (No = such file or directory) newfstatat(AT_FDCWD, "/gnu/store/b914k2bjm3wixvd2kc9s03mzvfsif69c-profile/s= hare/guile/site/3.0/guix/ui.go", 0x7ffc4bf07640, 0) =3D -1 ENOENT (No such = file or directory) newfstatat(AT_FDCWD, "/home/ludo/.guix-home/profile/lib/guile/3.0/site-ccac= he/guix/ui.go", 0x7ffc4bf07640, 0) =3D -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/home/ludo/.guix-home/profile/lib/guile/3.0/site-ccac= he/guix/ui.go", 0x7ffc4bf07640, 0) =3D -1 ENOENT (No such file or directory) newfstatat(AT_FDCWD, "/run/current-system/profile/lib/guile/3.0/site-ccache= /guix/ui.go", {st_mode=3DS_IFREG|0444, st_size=3D530053, ...}, 0) =3D 0 --8<---------------cut here---------------end--------------->8--- In fact, guix/*.go is entirely missing, it seems: $ --8<---------------cut here---------------start------------->8--- ls /gnu/store/pm43nabwng5rm8irmfhw2wk39hip8xr6-guix-module-union/lib/guile/= 3.0/site-ccache/guix ls: cannot access '/gnu/store/pm43nabwng5rm8irmfhw2wk39hip8xr6-guix-module-= union/lib/guile/3.0/site-ccache/guix': No such file or directory $ ls /gnu/store/pm43nabwng5rm8irmfhw2wk39hip8xr6-guix-module-union/lib/guil= e/3.0/site-ccache/gnu packages/ --8<---------------cut here---------------end--------------->8--- With the patch, without the patch: --8<---------------cut here---------------start------------->8--- $ find -L /gnu/store/pm43nabwng5rm8irmfhw2wk39hip8xr6-guix-module-union -na= me \*.go | wc -l 719 $ find -L /gnu/store/4dm864f7iif1vg9sz355gdqkgb7air98-guix-module-union -n= ame \*.go | wc -l 1188 --8<---------------cut here---------------end--------------->8--- The problem would then manifest like this: --8<---------------cut here---------------start------------->8--- $ /gnu/store/57x6wrf78147lif1ss0ck2z3a0323b9l-guix-20230822.21/bin/guix bui= ld hello error: license:arphic-1999: unbound variable hint: Did you forget a `use-modules' form? error: googletest: unbound variable hint: Did you forget a `use-modules' form? [=E2=80=A6] Throw to key `unbound-variable' with args `("resolve-interface" "no binding= `~A' in module ~A" (shared-mime-info (gnu packages gnome)) #f)'. Backtrace: In guix/store.scm: 659:37 19 (thunk) 1298:8 18 (call-with-build-handler # =E2=80=A6) In guix/scripts/build.scm: 584:2 17 (_) In srfi/srfi-1.scm: 673:15 16 (append-map _ _ . _) 586:17 15 (map1 ((argument . "hello") (build-mode . 0) (graft? . #t) (su= bstitutes? . #t) # =E2=80=A6)) In guix/scripts/build.scm: 604:31 14 (_ _) In gnu/packages.scm: 485:2 13 (%find-package "hello" "hello" #f) 365:6 12 (find-best-packages-by-name _ _) 295:56 11 (_ "hello" _) In unknown file: 10 (force #>) In gnu/packages.scm: 242:33 9 (fold-packages # # =E2=80=A6) In guix/discovery.scm: 158:11 8 (all-modules _ #:warn _) In srfi/srfi-1.scm: 460:18 7 (fold # _ ((. #))) In guix/discovery.scm: 148:19 6 (_ _ ()) 115:5 5 (scheme-modules _ _ #:warn _) In srfi/srfi-1.scm: 691:23 4 (filter-map # _ . _) In guix/discovery.scm: 123:24 3 (_ . _) In guix/ui.scm: 343:2 2 (report-unbound-variable-error _ #:frame _) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: Throw to key `match-error' with args `("match" "no matching pattern" (unbou= nd-variable "resolve-interface" "no binding `~A' in module ~A" (shared-mime= -info (gnu packages gnome)) #f))'. --8<---------------cut here---------------end--------------->8--- This is because an old (guix licenses) module would be loaded. I=E2=80=99m reverting for now. Note that (guix self) is very sensitive, so we should test it thoroughly. Here I used =E2=80=98make as-derivation=E2=80=99 and ran the r= esulting =E2=80=98guix=E2=80=99 command. Ludo=E2=80=99.