From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Vollmert Subject: Re: help with a confusing error: url-fetch, hash, invalid keyword #vu8 Date: Mon, 18 Nov 2019 22:06:09 +0100 Message-ID: <84F71CF4-3340-461C-A7F5-A4D20E4EE920@vllmrt.net> References: <1D116338-4D20-4935-9F33-1E3987EDB17F@vllmrt.net> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34157) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWoE2-0001xE-Qp for guix-devel@gnu.org; Mon, 18 Nov 2019 16:06:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWoE1-0000i2-1Z for guix-devel@gnu.org; Mon, 18 Nov 2019 16:06:22 -0500 Received: from mout-u-107.mailbox.org ([2001:67c:2050:1::465:107]:41048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iWoE0-0000gd-Qa for guix-devel@gnu.org; Mon, 18 Nov 2019 16:06:20 -0500 In-Reply-To: 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: John Soo Cc: guix-devel@gnu.org On 18. Nov 2019, at 21:40, John Soo wrote: >=20 > Hi Robert, >=20 > Interesting. Looks alright to me. Also I did just package ormolu = myself and everything worked alright. One thing to try is using `guix = repl` to reproduce the error. Can you open one up and see what happens? Actually that helped, thanks! Here=E2=80=99s what I did (mostly so I = don=E2=80=99t need to figure that out again): 1. made a proper module out of the file ormolu.scm 2. ran `guix repl` in the directory with ormolu.scm scheme@(guix-user)> ,load /path/to/ormolu.scm scheme@(guix-user)> ghc-ormolu $1 =3D # scheme@(guix-user)> (package-source ghc-ormolu) $2 =3D # scheme@(guix-user)> (origin-sha256 (package-source ghc-ormolu)) $3 =3D #vu8(96 84 134 13 223 219 170 200 61 134 246 111 6 115 201 118 = 102 154 109 187 101 185 64 146 131 54 199 173 34 76 149 220) scheme@(guix-user)> ,use (gnu packages haskell) scheme@(guix-user)> (package-source ghc) $4 =3D # scheme@(guix-user)> (origin-sha256 (package-source ghc)) $5 =3D #vu8(174 71 175 218 152 88 48 222 136 17 36 50 85 170 55 68 223 = 185 32 124 185 128 175 116 57 50 152 178 182 33 96 214) So far so good, they look similar. scheme@(guix-user)> (origin-method (package-source ghc)) $6 =3D # scheme@(guix-user)> (origin-method (package-source ghc-ormolu)) $7 =3D # Aha! It turns out the error was in importing (guix build download) as = opposed to (guix download). I=E2=80=99d added that import due to the =E2=80=9Chelpful=E2=80=9D $ guix build -f ormolu.scm ice-9/eval.scm:223:20: In procedure proc: error: url-fetch: unbound variable hint: Did you forget `(use-modules (guix build download))'? Sigh. Anyway, fixed for now, thank you! Cheers Rob