From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 18:16:31 2022 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 To: bug-guix Subject: Poor error message on missing file using substitute* 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-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 (--) 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