From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8D7uFOKFjGONNwAAbAwnHQ (envelope-from ) for ; Sun, 04 Dec 2022 12:34:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UIj0FOKFjGMjyAAA9RJhRA (envelope-from ) for ; Sun, 04 Dec 2022 12:34:58 +0100 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 12A663EB37 for ; Sun, 4 Dec 2022 12:34:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1nG6-0000MZ-AL; Sun, 04 Dec 2022 06:34:10 -0500 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 1p1nG5-0000M0-1i for guix-devel@gnu.org; Sun, 04 Dec 2022 06:34:09 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1nG0-0005rC-Rl; Sun, 04 Dec 2022 06:34:08 -0500 Received: by mail-wr1-x42d.google.com with SMTP id w15so14650527wrl.9; Sun, 04 Dec 2022 03:34:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=87OESJdvMwhghPFOGA8kISgypDt9duL5ymlSXDkm5L0=; b=MVL83pGcZxKLOewhrOtIL3LaUs6YZx6WMeJluV6tqesWVw7y/5qpAyTLGwDVfQsHAt wcbj2h3gkh++1uy+vjC83Ejcu57JKJkP00qaQFTra5bJG31mTqof1P+heHBJI76Rt85e 56iEY7iP3LPvVrePPkXtcbqVoEDU4ep2+KcnwmG5vwG/J56EgfSPaohfHAN0BEwI8KA0 sW1K6JGUWcHTI5CymEXngjmjwagFjPxFEcNLoAOmmdqm3nl3RkL7HmjbYt4uSBwzS20z Yia6DPh9lhaA4dH/vHkSy5JY/N0/5h8p8D1VRY6Tjk6CsvMu8ek10kjSeYnrnn1j5n/T 4XCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=87OESJdvMwhghPFOGA8kISgypDt9duL5ymlSXDkm5L0=; b=Pzoc+Vq+AibNeeLrMukW11oK2/0UrC00P70TdI7xBIU5qDZAQW71RKcDlfYUakbcLN oZLQhUQnHjyC3VXJquCj+f5oxvNuQ/2y4Px9tZqYsejl+QFFLC+uslCm9cVgA9QONGlH spZ6dGZ4DE5ucJrhS5wV2FEwBe6EnIRw5KYqfFYs/d7DBDLGW2F4SOx/VH234ikoYRbf w4+hcLvLdUfzKoi4OUt9SG3qlYGFVOeOAcl/5KJvwQAcdAkUc0OMOmChzcQa2k7KWdNF 2MgOhUMlwvBlQXY74ZDB1yuSFJaeuq5m3K2yGXBBGrnyqpE/yVLaYRvqgz0pEQJnz9ve s+Dw== X-Gm-Message-State: ANoB5pl1FhfBZwmuBTAyIZEb8ac+Gi7VNNSekErzsHTp9CiV3ahJNru3 lF1bCqSHYSRY8D1TQ0LqXccqjKUghvA= X-Google-Smtp-Source: AA0mqf5dzl12MMAw46fccdXFfwuEL+6CzS62rJvJ5Z4Yxo9isl7IagJixOqjc3ac+ls1pnM6FGNggA== X-Received: by 2002:a5d:4e83:0:b0:242:63de:2f58 with SMTP id e3-20020a5d4e83000000b0024263de2f58mr613036wru.28.1670153641274; Sun, 04 Dec 2022 03:34:01 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id k15-20020a05600c1c8f00b003c6c3fb3cf6sm15442035wms.18.2022.12.04.03.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 03:34:00 -0800 (PST) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: "(" , Guix Devel Subject: Re: Help with G-expression In-Reply-To: <87359wpelq.fsf@gnu.org> References: <86359zm3iv.fsf@gmail.com> <86v8mvklcd.fsf@gmail.com> <87sfhyuq7t.fsf@gnu.org> <87cz92rli9.fsf@gmail.com> <871qphqyrz.fsf@gnu.org> <86a645cvpr.fsf@gmail.com> <87359wpelq.fsf@gnu.org> Date: Sun, 04 Dec 2022 12:11:32 +0100 Message-ID: <868rjn5spn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670153698; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=87OESJdvMwhghPFOGA8kISgypDt9duL5ymlSXDkm5L0=; b=fpALFEHqsgSG5ae/NgUlrKBNWf05cCeWHyHqj5jkWRZra4pDG4LHkbDy45TU/+n6LskM0N 2UZAyU3fgziIOlnXwu/pbFHuJxzj5JbZKVz9yEWgIDpwlUnb3mjw66tS1AkdAYuGxkATF+ YcbkRHuPIbACZ4FEEb0ATNj/Zurnoy0Nn+wF55MHXC5lUTcz5liiR4sb+QwYwyTScV7cqM AGhNwDCOBFnczIHa70JKFGYJQymmxp75fxH1PHe4U3g6v/6TFReioqe7gxTQTCiMefmam+ ueIIFf8xpndkFs8vYCyoAx2K3SG65BSro7WVg5u6EzWDiMcy8dXQGUrhzoyCfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670153698; a=rsa-sha256; cv=none; b=oLqzEUDYoGuexsVPRCSak+antukxN77cL4hx9gH+MsB+T94eXeuPJhsA9ggMLw4W633ZQL bvWll/fuh7R+iaF2nU20By0ScNhl0Ap6p1MxGCq+ByKnW3FDO0l1Cy392RC/lldk9ti14C /xLa4CoNfVtiCa9iVeMbMd78M67YIxBRlVqpMRplXDNDroK8hgUzVsPQXxU74oBW9EtY4P fQ04LEvvHyRw8aDJhWK4Sc7TRFbwtqGK34lt3KMjPZNzTR6OyYQ6LxQ1tpiJ9J2lcgOZGt E3lGnIRZWZbnqGQlmPAo2aeEbMYzAXcP3LHBLTg2r8iZfhSvgGk09lq1zX7zAw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MVL83pGc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.47 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MVL83pGc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 12A663EB37 X-Spam-Score: -2.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: cLw7jV1zlgUM Hi Ludo, Thanks for the help. On Sat, 03 Dec 2022 at 18:43, Ludovic Court=C3=A8s wrote: > Fixed in 9672db290a35f59113682a7f0c17c050a4ae2578. Well, the main issue was that I hit this bug. :-) I tried to see if this trivial example is covered by the test suite but I have not found it. Something like, --8<---------------cut here---------------start------------->8--- (define (something) (with-extensions (list guile-gcrypt) (with-imported-modules (source-module-closure '((guix build utils) (guix profiles))) ;import it (computed-file "empty-tree" #~(begin ;; Put it in scope. (use-modules (guix build utils)) ;; Happily use its 'mkdir-p' procedure. (mkdir-p (string-append #$output "/a/b/c"))))))) ,build (something) --8<---------------cut here---------------end--------------->8--- where =E2=80=99something=E2=80=99 would be a better name and =E2=80=99,buil= d=E2=80=99 the real function call. Well, maybe it could help to detect some regression. :-) As people tell: one bug closed, one test added. ;-) Although it requires to talk with the daemon and I do not remember if it is a good idea to add such test. > It=E2=80=99s annoying, but I don=E2=80=99t see how this could be avoided. Well, the error message is not super clear=E2=80=A6 --8<---------------cut here---------------start------------->8--- building /gnu/store/rh1ii1cjlc0jhkz2aspxcw1mdkr7b2nf-module-import-compiled= .drv... 20% [##################### = ]builder for `/gnu/store/rh1ii1cjl= c0jhkz2aspxcw1mdkr7b2nf-module-import-compiled.drv' failed with exit code 1 build of /gnu/store/rh1ii1cjlc0jhkz2aspxcw1mdkr7b2nf-module-import-compiled= .drv failed View build log at '/var/log/guix/drvs/rh/1ii1cjlc0jhkz2aspxcw1mdkr7b2nf-mod= ule-import-compiled.drv.gz'. cannot build derivation `/gnu/store/cznhm1wzdv60jwi7fz96cilq925j54i1-empty-= tree.drv': 1 dependencies couldn't be built While executing meta-command: ERROR: 1. &store-protocol-error: message: "build of `/gnu/store/cznhm1wzdv60jwi7fz96cilq925j54i1-empty= -tree.drv' failed" status: 100 --8<---------------cut here---------------end--------------->8--- =E2=80=A6but the log somehow is: --8<---------------cut here---------------start------------->8--- [ 1/56] Loading './guix/base16.scm'... [...] [11/56] Loading './guix/derivations.scm'... ;;; Failed to autoload make-zlib-input-port in (zlib): ;;; no code for module (zlib) ;;; Failed to autoload make-zlib-input-port in (zlib): ;;; no code for module (zlib) ;;; Failed to autoload make-zlib-output-port in (zlib): ;;; no code for module (zlib) ;;; Failed to autoload make-zlib-output-port in (zlib): ;;; no code for module (zlib) Backtrace: [...] 222:17 1 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # ?)) 3329:6 0 (resolve-interface (gcrypt hash) #:select _ #:hide _ # _ ?) ice-9/boot-9.scm:3329:6: In procedure resolve-interface: no code for module (gcrypt hash) --8<---------------cut here---------------end--------------->8--- Well, it seems reasonable, IMHO, to assume that an user diving into such internal would be able to parse this information. Cheers, simon