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 ms11 with LMTPS id oHQmJPc6bl9HTAAA0tVLHw (envelope-from ) for ; Fri, 25 Sep 2020 18:46:15 +0000 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 wO4NIPc6bl9eKgAAbx9fmQ (envelope-from ) for ; Fri, 25 Sep 2020 18:46:15 +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 9EB729401BF for ; Fri, 25 Sep 2020 18:46:14 +0000 (UTC) Received: from localhost ([::1]:43438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLsjT-0005u4-TP for larch@yhetil.org; Fri, 25 Sep 2020 14:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLsCQ-0004Cz-Sy for bug-guix@gnu.org; Fri, 25 Sep 2020 14:12:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLsCQ-0004PI-Jw for bug-guix@gnu.org; Fri, 25 Sep 2020 14:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLsCQ-0005nJ-GC for bug-guix@gnu.org; Fri, 25 Sep 2020 14:12:02 -0400 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 X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Fri, 25 Sep 2020 14:45:54 -0400 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.net header.s=2017 header.b=ntXE4ybo; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=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-Spam-Score: 0.09 X-TUID: u3XJzweWCP9J 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