From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CDFPE3ChzGISFgEAbAwnHQ (envelope-from ) for ; Tue, 12 Jul 2022 00:17:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QLIxE3ChzGIzFQEA9RJhRA (envelope-from ) for ; Tue, 12 Jul 2022 00:17:20 +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 F1CF6209E2 for ; Tue, 12 Jul 2022 00:17:19 +0200 (CEST) Received: from localhost ([::1]:41430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oB1iP-0006gD-3l for larch@yhetil.org; Mon, 11 Jul 2022 18:17:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oB1iA-0006em-Sy for bug-guix@gnu.org; Mon, 11 Jul 2022 18:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47270) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oB1iA-00052J-E2 for bug-guix@gnu.org; Mon, 11 Jul 2022 18:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oB1iA-0004mA-7i for bug-guix@gnu.org; Mon, 11 Jul 2022 18:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56503: Poor error message on missing file using substitute* Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 11 Jul 2022 22:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56503 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 56503@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.165757779118314 (code B ref -1); Mon, 11 Jul 2022 22:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jul 2022 22:16:31 +0000 Received: from localhost ([127.0.0.1]:41167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oB1he-0004lJ-MI for submit@debbugs.gnu.org; Mon, 11 Jul 2022 18:16:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:38836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oB1hd-0004lB-GS for submit@debbugs.gnu.org; Mon, 11 Jul 2022 18:16:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oB1hd-0006DM-CL for bug-guix@gnu.org; Mon, 11 Jul 2022 18:16:29 -0400 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:45698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oB1hb-0004zw-Qr for bug-guix@gnu.org; Mon, 11 Jul 2022 18:16:29 -0400 Received: by mail-qt1-x82d.google.com with SMTP id i21so6868472qtw.12 for ; Mon, 11 Jul 2022 15:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Efqb6U2Z5aoh5GOcui+9pbtXUiJnxLurz/vEXwgCx0I=; b=g2dOhyz4TK0SWWo9ogfToluDhewbnEvJzCNgOvCRoS6dDmiUETRbPWY5dTkG12Wy3T W0TgnLgOn4oqf3AhD5NzdeghaFL9td0Au0M14BnEgJh74NYrTraEPhUg6LSdujH2c+FE F4ggtCVCAkDYM26iGMaxxVmB1nbPLK6DYIL4uzMBIDoFBwzQaY2D4sLyUmH9ZQimDmhA kAW09GgSleo7B455T82r2xscm3tr4wQIFfAEf2N8XEEde4fns0sHaLppetoTmlfKwSaG qWY/fARoFmvxIoDYBpLpKyhZd0TXCRMBfDZuj/umQokHgX4LyWAu631ybxUGh8tUGvmU JGRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Efqb6U2Z5aoh5GOcui+9pbtXUiJnxLurz/vEXwgCx0I=; b=h6f+jvO92iKqY9Mq472ZuQSA6as9wFhlitrSp64/8Nd3R/vw7AUWvzn0f1RFp9T/R6 Ik4/fi80VExhtDwmUAdTyHauptXOCoufEnhuX046IZ+p4RqWN8xxRoe4fYQa4+ftl1Cp U6cmGyXBPz84O298tFbgokPOMJORTl5GMXdVH8ld6IoEtreWf524PK5D3UmyL4DGsWDO Fki6F7uhrWL5m8sclWW0IMlmERSAYCtQ7LS0G5YOVZVV9o1uAUVS03frKD4C6ocy7WQr gepbxTDPfVsOdfYbfsHAC1bCA0ytiP4zb90tR3f5TsdiGfEErPOSmO4mg02UZk6f5C9C QgWQ== X-Gm-Message-State: AJIora/sbBmGlOlwaW9/l26Np1alFJme62UqL4W7Bz1amQXDYXc/HBjN lE3tgPk6V9IM2IUu5YC1NA4XxPCXTevVQpm7 X-Google-Smtp-Source: AGRyM1vzMegOxUSadIkV2coP0Fw55IXaIhQ6k2BXvNey3T0d+YrxhRzukd1F9gv7+o45lcaXxGYrWg== X-Received: by 2002:a05:622a:649:b0:31e:aaf9:a262 with SMTP id a9-20020a05622a064900b0031eaaf9a262mr11531363qtb.275.1657577786327; Mon, 11 Jul 2022 15:16:26 -0700 (PDT) Received: from hurd (dsl-155-226.b2b2c.ca. [66.158.155.226]) by smtp.gmail.com with ESMTPSA id g7-20020a05620a40c700b006b1490619cdsm7604164qko.99.2022.07.11.15.16.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 15:16:26 -0700 (PDT) From: Maxim Cournoyer Date: Mon, 11 Jul 2022 18:16:25 -0400 Message-ID: <87r12r9txi.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82d.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657577840; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Efqb6U2Z5aoh5GOcui+9pbtXUiJnxLurz/vEXwgCx0I=; b=ERFAlnRxFViupeXWKEwpPqFv/46Snp9q8/NKDEh1E27IMcgIENZDIGnywNjzAWiieKnJYK WmoTaS81is+i5lFcYQCWPPDMsvuBtmArchxZQgOV9HgX96/cCBLR6gc86kRqxsa7Q2NBG8 hbI22YQvLlTNrP9GYsGACmFOITjoxeZ+lBm1xiMNmi5nNYJxvl/+EUYFLt286677u8NzYn NndV7SCC4rvBcIKN4zyezlZOUs7Tp0zujgPPhadUhHtmfexqOQYf2mjEDQi254fykfCAtP x4Qbo/xCyTKGERQBcIHML/kCNF0YaQ+OLY3Z6+MNJFplj5jVFIU3D84UENs+lA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657577840; a=rsa-sha256; cv=none; b=OioPZFhRX4Vek+eXxn+tnGmnHXWI+G7b6+PFeN97t6W0916noosdBrx+1P3tdKAzDSOa/V HR/zcagkj82oKLCVMopKcvEF2jiNvixoFAxh29u8dw0hDDkZCZLfgFZ6lHlpjZdGKzueBX uu8rkepjEtAhF7T4oUGkwl2HCm7biQpE9OEqrdMVWo2sz1frDLRkvDmg2y+sFDkTKQsTgZ k9+eQXQUE+tz6acjS3RJxGF8WxkERsbYs6NiVieXyj6CdUwWqxq6//T0IIiWFL0bCuJAvU /1dK9WQ92cfSWF4c6CczQ/S33JPpxkMVTfISvAATWQp98lO+ZESyoj9pvEKqRQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=g2dOhyz4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 4.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=g2dOhyz4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: F1CF6209E2 X-Spam-Score: 4.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: STFeeUuj+2+w Hello Guix, When substitute* encounters a nonexistent file, the error is reported to the guix CLI like so: --8<---------------cut here---------------start------------->8--- error: in phase 'bake-tor': uncaught exception: system-error "mkstemp" "~A" ("No such file or directory") (2)=20 phase `bake-tor' failed after 0.0 seconds Backtrace: 11 (primitive-load "/gnu/store/0i9iay6rahmps8by40aja6qz1fv=E2=80= =A6") In guix/build/gnu-build-system.scm: 906:2 10 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #) In ice-9/boot-9.scm: 1752:10 9 (with-exception-handler _ _ #:unwind? _ # _) In srfi/srfi-1.scm: 634:9 8 (for-each # =E2=80=A6) In ice-9/boot-9.scm: 1752:10 7 (with-exception-handler _ _ #:unwind? _ # _) In guix/build/gnu-build-system.scm: 927:23 6 (_) In ice-9/eval.scm: 619:8 5 (_ #(#(#) (# # =E2=80=A6)= )) In srfi/srfi-1.scm: 634:9 4 (for-each # _) In guix/build/utils.scm: 843:19 3 (with-atomic-file-replacement "desktop/src/onionshare/=E2=80= =A6" =E2=80=A6) In unknown file: 2 (mkstemp! "desktop/src/onionshare/gui_common.py.XXXXXX" #) 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: In procedure mkstemp: No such file or directory note: keeping build directory `/tmp/guix-build-onionshare-cli-2.5.drv-0' --8<---------------cut here---------------end--------------->8--- The main error message, "system-error "mkstemp" "~A" ("No such file or directory") (2)" is malformed and doesn't report the actual file which is missing; one must decipher the backtrace for clues as to which file caused the error. We should improve it :-). Maxim