From unknown Sat Aug 09 01:37:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43618: Problem building disk-image with guix from git Resent-From: Fredrik Salomonsson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 25 Sep 2020 18:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43618 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43618@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160105750222247 (code B ref -1); Fri, 25 Sep 2020 18:12:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Sep 2020 18:11:42 +0000 Received: from localhost ([127.0.0.1]:45303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLsC6-0005mj-Ec for submit@debbugs.gnu.org; Fri, 25 Sep 2020 14:11:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:46748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLsC5-0005mc-4Y for submit@debbugs.gnu.org; Fri, 25 Sep 2020 14:11:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLsC4-0004BP-Mg for bug-guix@gnu.org; Fri, 25 Sep 2020 14:11:41 -0400 Received: from mout02.posteo.de ([185.67.36.66]:52291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLsC2-0004O4-7p for bug-guix@gnu.org; Fri, 25 Sep 2020 14:11:40 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 1BB1F2400FC for ; Fri, 25 Sep 2020 20:11:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1601057494; bh=SqeocRRlAj2dAE5pOPjWFxkQmEyq5JqNGfznqXCRoNY=; h=From:To:Subject:Date:From; b=ntXE4yboK5nHw7WTr6hnl6jVHHU48IsTr3CQjFCz0jDZShSAeL5STbMXYYGHliJoy RkgAHq1/PFIoh9HN07+mGm/W76f9mFV0LEo8UDWj6FrGwSN6U9/Zrvpl4TLumw+g7r PLKHDHzOqjRxPD+CVdDSYDhhDs9J8/OxIP4TradydeHcgJcUd12mzAmb1lihK9B7PY F8QWuO5GX6XhxAlPpqiQ+maxUoo6q1biVVzNsgIztFqUAFRI445ryDYOSQFgc/diTW ff60GrDorHu/IsowroK7zY9tsUNNxVwPDvpgw5vw3v+ErDPXvzxxZU8XqAuYut3+Dy xNjIKfO10wOEw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Byg390rk0z6tmk for ; Fri, 25 Sep 2020 20:11:32 +0200 (CEST) From: Fredrik Salomonsson Date: Fri, 25 Sep 2020 11:11:30 -0700 Message-ID: <874knlu3ot.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=plattfot@posteo.net; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/25 14:00:27 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi guix, I thought I would test out the patch from https://issues.guix.info/43366 on my laptop. I cloned the guix repo (checksum: d48b17a), applied the patch from 43366. Then followed the steps in the manual: ``` $ guix environment guix $ ./bootstrap $ ./configure --localstatedir=3D/var $ make ``` Then launched the daemon in one shell: ``` $ sudo -E ./pre-inst-env guix-daemon --build-users-group=3Dguixbuild ``` And tried to build the disk image in another ``` $ ./pre-inst-env guix system disk-image --file-system-type=3Diso9660 gnu/sy= stem/install.scm ``` But getting this error: ``` substitute: Backtrace: substitute: In ice-9/boot-9.scm: substitute: 3223:13 19 (_) substitute: In ice-9/threads.scm: substitute: 390:8 18 (_ _) substitute: In ice-9/boot-9.scm: substitute: 3507:20 17 (_) substitute: 2806:4 16 (save-module-excursion _) substitute: 3527:26 15 (_) substitute: In unknown file: substitute: 14 (primitive-load-path "guix/store" #) substitute: In guix/store.scm: substitute: 23:0 13 (_) substitute: In ice-9/boot-9.scm: substitute: 3380:4 12 (define-module* _ #:filename _ #:pure _ #:version = _ # _ =E2=80=A6) substitute: 3393:24 11 (_) substitute: 222:29 10 (map1 (((guix utils)) ((guix config)) ((guix #)) (= (=E2=80=A6)) =E2=80=A6)) substitute: 222:29 9 (map1 (((guix config)) ((guix deprecation)) ((guix= =E2=80=A6)) =E2=80=A6)) substitute: 222:29 8 (map1 (((guix deprecation)) ((guix memoization)) (= (=E2=80=A6)) =E2=80=A6)) substitute: 222:29 7 (map1 (((guix memoization)) ((guix serialization))= (#) =E2=80=A6)) substitute: 222:29 6 (map1 (((guix serialization)) ((guix monads)) ((# = #)) =E2=80=A6)) substitute: 222:29 5 (map1 (((guix monads)) ((guix records)) ((guix #))= (#) =E2=80=A6)) substitute: 222:29 4 (map1 (((guix records)) ((guix base16)) ((guix #))= (#) =E2=80=A6)) substitute: 222:29 3 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)= ) # =E2=80=A6)) substitute: 222:29 2 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) = (#) =E2=80=A6)) substitute: 222:17 1 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #= )) # =E2=80=A6)) substitute: 3300:6 0 (resolve-interface (gcrypt hash) #:select _ #:hide= _ # _ =E2=80=A6) substitute:=20 substitute: ice-9/boot-9.scm:3300:6: In procedure resolve-interface: substitute: no code for module (gcrypt hash) guix system: error: `/home/plattfot/projects/guix/scripts/guix substitute' = died unexpectedly ``` I tried running the guix system command in a guix enviroment: ``` $ guix=C2=A0environment=C2=A0guix=C2=A0--ad-hoc=C2=A0guile=C2=A0guild-gcrypt ``` Same error. This is what changed when I applied the patch: ``` $ git diff diff --git a/guix/build/utils.scm b/guix/build/utils.scm index 419c10195b..cd43c14eab 100644 --- a/guix/build/utils.scm +++ b/guix/build/utils.scm @@ -365,6 +365,16 @@ verbose output to the LOG port." stat lstat))) =20 +(define-syntax-rule (warn-on-error expr file) + (catch 'system-error + (lambda () + expr) + (lambda args + (format (current-error-port) + "warning: failed to delete ~a: ~a~%" + file (strerror + (system-error-errno args)))))) + (define* (delete-file-recursively dir #:key follow-mounts?) "Delete DIR recursively, like `rm -rf', without following symlinks. Don= 't @@ -375,10 +385,10 @@ errors." (or follow-mounts? (=3D dev (stat:dev stat)))) (lambda (file stat result) ; leaf - (delete-file file)) + (warn-on-error (delete-file file) file)) (const #t) ; down (lambda (dir stat result) ; up - (rmdir dir)) + (warn-on-error (rmdir dir) dir)) (const #t) ; skip (lambda (file stat errno result) (format (current-error-port) ``` Anyone have any pointers what I might have done wrong? Thanks --=20 s/Fred[re]+i[ck]+/Fredrik/g From unknown Sat Aug 09 01:37:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43618: Problem building disk-image with guix from git Resent-From: Fredrik Salomonsson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 26 Sep 2020 01:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43618 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43618@debbugs.gnu.org Received: via spool by 43618-submit@debbugs.gnu.org id=B43618.160108230526318 (code B ref 43618); Sat, 26 Sep 2020 01:06:02 +0000 Received: (at 43618) by debbugs.gnu.org; 26 Sep 2020 01:05:05 +0000 Received: from localhost ([127.0.0.1]:45512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLye9-0006qQ-Ij for submit@debbugs.gnu.org; Fri, 25 Sep 2020 21:05:05 -0400 Received: from mout02.posteo.de ([185.67.36.66]:42737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLye6-0006pq-My for 43618@debbugs.gnu.org; Fri, 25 Sep 2020 21:05:03 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 6A4EE2400FB for <43618@debbugs.gnu.org>; Sat, 26 Sep 2020 03:04:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1601082296; bh=Ms5VnqFzX0hcFLTFkOwju57degofIQOZjQ1kiJ0XSl4=; h=From:To:Subject:Date:From; b=Tmym7dydpD/csIlBVoKjTbBMQ5ET2xHGLm9QrVxWDIDE/G41hbnFGyXVzwznHoXYk ld6G7hshY4xIXcya+OpcBYUMVnpPqfMgPFNh3kd1HiY9jHALf1JuoUJS1IF0IpNIXP GUvI3TIympUayISINyZYHHcRkhvn88H76/gWqg40bqhz+bKK3q1n5SKWbOhjtOgGyd NkVovSHURfbwWuNlZ3lPAknUkSCwdaH86Obm8eTjZbcJ2djD3z7IZc1tx2Alk3Z9S/ IaNukXU5c9tGwBACiKFn+N4SPEkE44WThQLETLcEToym1tgvXRjcD6FXQmBTm0ASQB xN1P/zcyWKl6g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4ByrD74RzNz6tmX for <43618@debbugs.gnu.org>; Sat, 26 Sep 2020 03:04:55 +0200 (CEST) From: Fredrik Salomonsson In-Reply-To: <874knlu3ot.fsf@posteo.net> References: <874knlu3ot.fsf@posteo.net> Date: Fri, 25 Sep 2020 18:04:53 -0700 Message-ID: <87k0whcpqi.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Please close this issue. Sent it to the wrong mailing list... Thanks -- s/Fred[re]+i[ck]+/Fredrik/g From unknown Sat Aug 09 01:37:47 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Fredrik Salomonsson Subject: bug#43618: closed (Re: bug#43618: Problem building disk-image with guix from git) Message-ID: References: <20200926153503.GA8281@jurong> <874knlu3ot.fsf@posteo.net> X-Gnu-PR-Message: they-closed 43618 X-Gnu-PR-Package: guix Reply-To: 43618@debbugs.gnu.org Date: Sat, 26 Sep 2020 15:36:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1601134561-28246-1" This is a multi-part message in MIME format... ------------=_1601134561-28246-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #43618: Problem building disk-image with guix from git which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 43618@debbugs.gnu.org. --=20 43618: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D43618 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1601134561-28246-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 43618-done) by debbugs.gnu.org; 26 Sep 2020 15:35:12 +0000 Received: from localhost ([127.0.0.1]:47591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMCEC-0007KX-3v for submit@debbugs.gnu.org; Sat, 26 Sep 2020 11:35:12 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:59844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMCE7-0007KL-BW for 43618-done@debbugs.gnu.org; Sat, 26 Sep 2020 11:35:10 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id A34CAE2F; Sat, 26 Sep 2020 17:35:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v-AKduI1tTwD; Sat, 26 Sep 2020 17:35:05 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:910:103f::7ed]) by hera.aquilenet.fr (Postfix) with ESMTPSA id D75F5D88; Sat, 26 Sep 2020 17:35:04 +0200 (CEST) Date: Sat, 26 Sep 2020 17:35:03 +0200 From: Andreas Enge To: Fredrik Salomonsson Subject: Re: bug#43618: Problem building disk-image with guix from git Message-ID: <20200926153503.GA8281@jurong> References: <874knlu3ot.fsf@posteo.net> <87k0whcpqi.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k0whcpqi.fsf@posteo.net> X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 43618-done Cc: 43618-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) On Fri, Sep 25, 2020 at 06:04:53PM -0700, Fredrik Salomonsson wrote: > Please close this issue. > Sent it to the wrong mailing list... Done, by sending a message to the address in cc. Andreas ------------=_1601134561-28246-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Sep 2020 18:11:42 +0000 Received: from localhost ([127.0.0.1]:45303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLsC6-0005mj-Ec for submit@debbugs.gnu.org; Fri, 25 Sep 2020 14:11:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:46748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLsC5-0005mc-4Y for submit@debbugs.gnu.org; Fri, 25 Sep 2020 14:11:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLsC4-0004BP-Mg for bug-guix@gnu.org; Fri, 25 Sep 2020 14:11:41 -0400 Received: from mout02.posteo.de ([185.67.36.66]:52291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLsC2-0004O4-7p for bug-guix@gnu.org; Fri, 25 Sep 2020 14:11:40 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 1BB1F2400FC for ; Fri, 25 Sep 2020 20:11:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1601057494; bh=SqeocRRlAj2dAE5pOPjWFxkQmEyq5JqNGfznqXCRoNY=; h=From:To:Subject:Date:From; b=ntXE4yboK5nHw7WTr6hnl6jVHHU48IsTr3CQjFCz0jDZShSAeL5STbMXYYGHliJoy RkgAHq1/PFIoh9HN07+mGm/W76f9mFV0LEo8UDWj6FrGwSN6U9/Zrvpl4TLumw+g7r PLKHDHzOqjRxPD+CVdDSYDhhDs9J8/OxIP4TradydeHcgJcUd12mzAmb1lihK9B7PY F8QWuO5GX6XhxAlPpqiQ+maxUoo6q1biVVzNsgIztFqUAFRI445ryDYOSQFgc/diTW ff60GrDorHu/IsowroK7zY9tsUNNxVwPDvpgw5vw3v+ErDPXvzxxZU8XqAuYut3+Dy xNjIKfO10wOEw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Byg390rk0z6tmk for ; Fri, 25 Sep 2020 20:11:32 +0200 (CEST) From: Fredrik Salomonsson To: bug-guix@gnu.org Subject: Problem building disk-image with guix from git Date: Fri, 25 Sep 2020 11:11:30 -0700 Message-ID: <874knlu3ot.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=plattfot@posteo.net; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/25 14:00:27 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi guix, I thought I would test out the patch from https://issues.guix.info/43366 on my laptop. I cloned the guix repo (checksum: d48b17a), applied the patch from 43366. Then followed the steps in the manual: ``` $ guix environment guix $ ./bootstrap $ ./configure --localstatedir=3D/var $ make ``` Then launched the daemon in one shell: ``` $ sudo -E ./pre-inst-env guix-daemon --build-users-group=3Dguixbuild ``` And tried to build the disk image in another ``` $ ./pre-inst-env guix system disk-image --file-system-type=3Diso9660 gnu/sy= stem/install.scm ``` But getting this error: ``` substitute: Backtrace: substitute: In ice-9/boot-9.scm: substitute: 3223:13 19 (_) substitute: In ice-9/threads.scm: substitute: 390:8 18 (_ _) substitute: In ice-9/boot-9.scm: substitute: 3507:20 17 (_) substitute: 2806:4 16 (save-module-excursion _) substitute: 3527:26 15 (_) substitute: In unknown file: substitute: 14 (primitive-load-path "guix/store" #) substitute: In guix/store.scm: substitute: 23:0 13 (_) substitute: In ice-9/boot-9.scm: substitute: 3380:4 12 (define-module* _ #:filename _ #:pure _ #:version = _ # _ =E2=80=A6) substitute: 3393:24 11 (_) substitute: 222:29 10 (map1 (((guix utils)) ((guix config)) ((guix #)) (= (=E2=80=A6)) =E2=80=A6)) substitute: 222:29 9 (map1 (((guix config)) ((guix deprecation)) ((guix= =E2=80=A6)) =E2=80=A6)) substitute: 222:29 8 (map1 (((guix deprecation)) ((guix memoization)) (= (=E2=80=A6)) =E2=80=A6)) substitute: 222:29 7 (map1 (((guix memoization)) ((guix serialization))= (#) =E2=80=A6)) substitute: 222:29 6 (map1 (((guix serialization)) ((guix monads)) ((# = #)) =E2=80=A6)) substitute: 222:29 5 (map1 (((guix monads)) ((guix records)) ((guix #))= (#) =E2=80=A6)) substitute: 222:29 4 (map1 (((guix records)) ((guix base16)) ((guix #))= (#) =E2=80=A6)) substitute: 222:29 3 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)= ) # =E2=80=A6)) substitute: 222:29 2 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) = (#) =E2=80=A6)) substitute: 222:17 1 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #= )) # =E2=80=A6)) substitute: 3300:6 0 (resolve-interface (gcrypt hash) #:select _ #:hide= _ # _ =E2=80=A6) substitute:=20 substitute: ice-9/boot-9.scm:3300:6: In procedure resolve-interface: substitute: no code for module (gcrypt hash) guix system: error: `/home/plattfot/projects/guix/scripts/guix substitute' = died unexpectedly ``` I tried running the guix system command in a guix enviroment: ``` $ guix=C2=A0environment=C2=A0guix=C2=A0--ad-hoc=C2=A0guile=C2=A0guild-gcrypt ``` Same error. This is what changed when I applied the patch: ``` $ git diff diff --git a/guix/build/utils.scm b/guix/build/utils.scm index 419c10195b..cd43c14eab 100644 --- a/guix/build/utils.scm +++ b/guix/build/utils.scm @@ -365,6 +365,16 @@ verbose output to the LOG port." stat lstat))) =20 +(define-syntax-rule (warn-on-error expr file) + (catch 'system-error + (lambda () + expr) + (lambda args + (format (current-error-port) + "warning: failed to delete ~a: ~a~%" + file (strerror + (system-error-errno args)))))) + (define* (delete-file-recursively dir #:key follow-mounts?) "Delete DIR recursively, like `rm -rf', without following symlinks. Don= 't @@ -375,10 +385,10 @@ errors." (or follow-mounts? (=3D dev (stat:dev stat)))) (lambda (file stat result) ; leaf - (delete-file file)) + (warn-on-error (delete-file file) file)) (const #t) ; down (lambda (dir stat result) ; up - (rmdir dir)) + (warn-on-error (rmdir dir) dir)) (const #t) ; skip (lambda (file stat errno result) (format (current-error-port) ``` Anyone have any pointers what I might have done wrong? Thanks --=20 s/Fred[re]+i[ck]+/Fredrik/g ------------=_1601134561-28246-1-- From unknown Sat Aug 09 01:37:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43618: Problem building disk-image with guix from git Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 05 Oct 2020 12:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43618 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Fredrik Salomonsson Cc: 43618@debbugs.gnu.org Received: via spool by 43618-submit@debbugs.gnu.org id=B43618.16019009031368 (code B ref 43618); Mon, 05 Oct 2020 12:29:02 +0000 Received: (at 43618) by debbugs.gnu.org; 5 Oct 2020 12:28:23 +0000 Received: from localhost ([127.0.0.1]:48246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPPbK-0000M0-Uo for submit@debbugs.gnu.org; Mon, 05 Oct 2020 08:28:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPPbJ-0000Lm-8V for 43618@debbugs.gnu.org; Mon, 05 Oct 2020 08:28:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57713) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPPbD-0005kj-Sp; Mon, 05 Oct 2020 08:28:15 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=35068 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kPPb3-0001sz-4i; Mon, 05 Oct 2020 08:28:07 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <874knlu3ot.fsf@posteo.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 =?UTF-8?Q?Vend=C3=A9miaire?= 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: Mon, 05 Oct 2020 14:28:02 +0200 In-Reply-To: <874knlu3ot.fsf@posteo.net> (Fredrik Salomonsson's message of "Fri, 25 Sep 2020 11:11:30 -0700") Message-ID: <87362s26y5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Fredrik Salomonsson skribis: > $ guix environment guix > $ ./bootstrap > $ ./configure --localstatedir=3D/var > $ make > ``` > > Then launched the daemon in one shell: > ``` > $ sudo -E ./pre-inst-env guix-daemon --build-users-group=3Dguixbuild > ``` [...] > substitute: ice-9/boot-9.scm:3300:6: In procedure resolve-interface: > substitute: no code for module (gcrypt hash) > guix system: error: `/home/plattfot/projects/guix/scripts/guix substitute= ' died unexpectedly This is =E2=80=98guix substitute=E2=80=99, invoked by =E2=80=98guix-daemon= =E2=80=99, telling you that it can=E2=80=99t find guile-gcrypt on its load path. =E2=80=98sudo -E=E2=80= =99 should preserve GUILE_LOAD_PATH from your environment, but was guile-gcrypt in $GUILE_LOAD_PATH in the first place? HTH, Ludo=E2=80=99. From unknown Sat Aug 09 01:37:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43618: Problem building disk-image with guix from git Resent-From: Fredrik Salomonsson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 05 Oct 2020 17:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43618 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 43618@debbugs.gnu.org Received: via spool by 43618-submit@debbugs.gnu.org id=B43618.160191793123051 (code B ref 43618); Mon, 05 Oct 2020 17:13:01 +0000 Received: (at 43618) by debbugs.gnu.org; 5 Oct 2020 17:12:11 +0000 Received: from localhost ([127.0.0.1]:50421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPU1z-0005zj-EQ for submit@debbugs.gnu.org; Mon, 05 Oct 2020 13:12:11 -0400 Received: from mout02.posteo.de ([185.67.36.66]:33711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPU1x-0005zX-UH for 43618@debbugs.gnu.org; Mon, 05 Oct 2020 13:12:10 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 4E96A2400FD for <43618@debbugs.gnu.org>; Mon, 5 Oct 2020 19:12:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1601917923; bh=RzLgS3mE46Lp9Uefc/V8s6tkhGmWNzypkowI3jJwcd4=; h=From:To:Cc:Subject:Date:From; b=dvq5+FOEuCk0rSXH1D/fwnleMnTYahjP1elL0MOdXfPclvrFsheo5eGzndtXrvTSe aXIfC8+oJ45/A/phZBziw7Mu9qKuwzAl2PZk0CZmvDvuVls+FxywcTKFilL6AfMWjI CP3whY/y7Hqk9EWjZ7VibbiLiiK076o71Z4Taxva6ZdRytdGjXaMZ8I1ZHsxQMh7Dv o7xKH7x/9PKgOmAcZQGdwRcGdJwTIqoIu2N+7of0du2gpmwuF5A5MBNX9zqQqfntpH wNBEIDTAo5FhXWyBEGQom30x0xQsxeA7iJCdR9Y6UgdOFcXupJfC3NRn/TawtB5qpg FUxvlbmZ4mFQA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4C4nFt37S1z6tmX; Mon, 5 Oct 2020 19:12:02 +0200 (CEST) From: Fredrik Salomonsson In-Reply-To: <87362s26y5.fsf@gnu.org> References: <874knlu3ot.fsf@posteo.net> <87362s26y5.fsf@gnu.org> Date: Mon, 05 Oct 2020 10:12:00 -0700 Message-ID: <875z7owqan.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Ludovic Court=C3=A8s writes: > This is =E2=80=98guix substitute=E2=80=99, invoked by =E2=80=98guix-daemo= n=E2=80=99, telling you that it > can=E2=80=99t find guile-gcrypt on its load path. =E2=80=98sudo -E=E2=80= =99 should preserve > GUILE_LOAD_PATH from your environment, but was guile-gcrypt in > $GUILE_LOAD_PATH in the first place? Ah, I was running the `guix-daemon` outside the `guix environment guix` thinking `pre-inst-env` would setup the correct environment. It works fine now when I launched the `guix-daemon` in the correct environment. Thanks! --=20 s/Fred[re]+i[ck]+/Fredrik/g From unknown Sat Aug 09 01:37:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43618: Problem building disk-image with guix from git Resent-From: Andreas Enge Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Oct 2020 07:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43618 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Fredrik Salomonsson Cc: 43618-done@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 43618-done@debbugs.gnu.org id=D43618.160197002624802 (code D ref 43618); Tue, 06 Oct 2020 07:41:02 +0000 Received: (at 43618-done) by debbugs.gnu.org; 6 Oct 2020 07:40:26 +0000 Received: from localhost ([127.0.0.1]:51465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPhaD-0006Ry-Pu for submit@debbugs.gnu.org; Tue, 06 Oct 2020 03:40:25 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:33120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPhaB-0006Rn-9c for 43618-done@debbugs.gnu.org; Tue, 06 Oct 2020 03:40:25 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id BBE91C86; Tue, 6 Oct 2020 09:40:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RDA8Wabr7K3Q; Tue, 6 Oct 2020 09:40:20 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:910:103f::5a4]) by hera.aquilenet.fr (Postfix) with ESMTPSA id D576C3BE; Tue, 6 Oct 2020 09:40:19 +0200 (CEST) Date: Tue, 6 Oct 2020 09:40:18 +0200 From: Andreas Enge Message-ID: <20201006074018.GA1909@jurong> References: <874knlu3ot.fsf@posteo.net> <87362s26y5.fsf@gnu.org> <875z7owqan.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <875z7owqan.fsf@posteo.net> X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) On Mon, Oct 05, 2020 at 10:12:00AM -0700, Fredrik Salomonsson wrote: > It works > fine now when I launched the `guix-daemon` in the correct environment. Closing the bug then by sending a message to 43618-done@debbugs.gnu.org. Andreas