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 cNY7Hg2Ubl8GFQAA0tVLHw (envelope-from ) for ; Sat, 26 Sep 2020 01:06:21 +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 AJxEGg2Ubl99PQAAbx9fmQ (envelope-from ) for ; Sat, 26 Sep 2020 01:06:21 +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 AECBB9402A4 for ; Sat, 26 Sep 2020 01:06:20 +0000 (UTC) Received: from localhost ([::1]:51486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLyfJ-0004DL-M8 for larch@yhetil.org; Fri, 25 Sep 2020 21:06:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLyfA-0004C8-46 for help-guix@gnu.org; Fri, 25 Sep 2020 21:06:08 -0400 Received: from mout02.posteo.de ([185.67.36.66]:52033) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLyf4-00022h-HD for help-guix@gnu.org; Fri, 25 Sep 2020 21:06:07 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 14BA82400FB for ; Sat, 26 Sep 2020 03:05:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1601082360; bh=2lFcvY79yiwnMEQhvjp3C7rE2BCC01rn2ZcE+z7NgNM=; h=From:To:Subject:Date:From; b=nWLJugWX/uZm5eW/BEumIbJgvvp5VimCamjciLm7F3MT9TxzlmdYvpO8ZTV6uyoZz wTHtjh7R6IALDSo2zHVM+KlBlYBWA6KgW49/1hfPemjMF24ltGPgqNm17jP3B5syri C0xQmvAR7ELyjDuDvpKNJ33SKb9SFqIaVg3zpAfbEWjLu1V8qP4UuAtHuo7x3ZrHDI zLYDqNkTH+zS/HhF+MpRkBgI4oRfKuwO8udZYZ3uC3JUE4WMGqiQabF3ovXrdnsocq DnrMriisb0+YOLe7T1O77KyDPbQRBb4f3a/dD2V+fPGAArNkLkOm0iR+MUX+7FEhcZ /b17pyRaFMZ9w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4ByrFM0Hghz6tmW for ; Sat, 26 Sep 2020 03:05:58 +0200 (CEST) From: Fredrik Salomonsson To: help-guix Subject: Problem building disk-image with guix from git Date: Fri, 25 Sep 2020 18:05:57 -0700 Message-ID: <87h7rlcpoq.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 20:35:17 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-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nWLJugWX; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: TwcSzHo+ltf/ Hi guix, See if I can send this to the right mailing list this time... 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))) +(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