guix build error on armhf - hash-algorithm: unbound variable

  • Done
  • quality assurance status badge
Details
3 participants
  • Danny Milosavljevic
  • Ludovic Courtès
  • Marius Bakke
Owner
unassigned
Submitted by
Danny Milosavljevic
Severity
normal
D
D
Danny Milosavljevic wrote on 23 May 2020 23:14
(address . bug-guix@gnu.org)
20200523231409.673fa788@scratchpost.org
$ guix environment --pure guix --ad-hoc git guile-json guile-readline
$ make
[ 11%] LOAD guix/scripts/download.scm
ice-9/eval.scm:293:34: error: hash-algorithm: unbound variable

guix master commit 51443772b80c5ca51ccbe5cf05c5db4c216a7b66
on Ubuntu 16.04 on armhf.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7JkiEACgkQ5xo1VCww
uqW02QgAikC8r6SyGBt8TB0bBL6KtLFrhWWNkjxlLrgU/vo5JjvNEGRnJwBR3YB2
F+/0/9qZNiQ9nnLMTv/IXC+XgGrxbcQPjYotKfqWs3+URLPu5S1VpH+L7Srgj2du
xk0Gh3/2Vyys2V+XxehBx3wcYQLtF8Gfjw0GGIDNHdlZLx/2uttdx1mhHxsmOKk3
KU9x3dRFGFi9MEIn+MxXx7vT3a//xXm/IVy5w21jcZ+SBp/bpDYbvwomNA8fAcpo
zbYzliRla3ujiGJ4u3trfghdFpdCOziDQPMwBj0JJVuPXxVtFgI67Aj0FP8SqBAA
uYpk4rKA2S52IU4up/IzaIzTjKzLBw==
=8809
-----END PGP SIGNATURE-----


D
D
Danny Milosavljevic wrote on 24 May 2020 00:09
(address . 41494@debbugs.gnu.org)
20200524000901.07d9747c@scratchpost.org
On Sat, 23 May 2020 23:14:09 +0200
Danny Milosavljevic <dannym@scratchpost.org> wrote:

Toggle quote (8 lines)
> $ guix environment --pure guix --ad-hoc git guile-json guile-readline
> $ make
> [ 11%] LOAD guix/scripts/download.scm
> ice-9/eval.scm:293:34: error: hash-algorithm: unbound variable
>
> guix master commit 51443772b80c5ca51ccbe5cf05c5db4c216a7b66
> on Ubuntu 16.04 on armhf.

Works just fine when not doing "make" but just interpreting the stuff
using ~/src/guix-master/guix/pre-inst-env guix environment ...
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7Jnv0ACgkQ5xo1VCww
uqX8KAf/Uu0RNxqM4efCicW8acSxJ2YYT5R7Y1lhXuFYTlWcnmTAp7B/rwCvFYg9
lvHwmqcMYn8XkMIW8I7UQt1wDZOtoZE+1WO8xODm0rEoh5NzlMWFnKqQ8/s7erkq
UeQZW2FcS0jBpF2P1XJMQe4dWNN5d6TGfyhaDqC2wqJGoN2Yfbezq8ywDr4OPB5v
+NW5U4TGTevzXDa5pTzKRimX5FxfajKDxamkLpxr2blL83/zu4kJSYD4aCIt0IDk
dLe6fjwvqTrVvwCBZseveLKGWrEWD+mmCKsJDLsT8mGEEg9Y2zX7nCSH3YAJ7Ct3
q6iJaWSPuHbyxjqUcokg4X11GcoIlw==
=xao6
-----END PGP SIGNATURE-----


M
M
Marius Bakke wrote on 24 May 2020 00:23
87y2pi5lz6.fsf@devup.no
Danny Milosavljevic <dannym@scratchpost.org> writes:

Toggle quote (8 lines)
> $ guix environment --pure guix --ad-hoc git guile-json guile-readline
> $ make
> [ 11%] LOAD guix/scripts/download.scm
> ice-9/eval.scm:293:34: error: hash-algorithm: unbound variable
>
> guix master commit 51443772b80c5ca51ccbe5cf05c5db4c216a7b66
> on Ubuntu 16.04 on armhf.

What is your 'guix --version'?

Presumably you can fix this by importing (guix openpgp) in (guix scripts
download), but IWBN to figure out why it works on other systems.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7Jon0ACgkQoqBt8qM6
VPp2FQf/WvBiBLzlePgqxoj9h6NZj0j43hS/6ocbNqf1pgp0Tbs5kPCXhYYl8m9w
vcigiATkG5Hhhy8vjCBOuCoZaGHA9Y5GZszcypdo659tM25Ha3ltMF7zUrjDylJ3
KLTxMCXDMsztS/P8fE1mC+tsIemjxA4H1uZJeGbbpaTQUGFk6iW/KXvjo1xYydMP
4qDW4Xy3UZL6q0TT9ThhdHYoiGXZ5CmHqqL3gzsbwrnsnq/NN3Yz6xZVsmvlpsQO
Sbp3R2LyvAzIA0IZK54NcZ/bGyEtYskOtc221+TBtVk3/0swsf3lbSjtpQgB21Ct
fX9je1jCrtTM583XvzXDgY+aZ4AGMw==
=LBu7
-----END PGP SIGNATURE-----

D
D
Danny Milosavljevic wrote on 24 May 2020 00:32
(name . Marius Bakke)(address . mbakke@fastmail.com)(address . 41494@debbugs.gnu.org)
20200524003233.2c31af6b@scratchpost.org
Hi Marius,

On Sun, 24 May 2020 00:23:57 +0200
Marius Bakke <mbakke@fastmail.com> wrote:

Toggle quote (15 lines)
> Danny Milosavljevic <dannym@scratchpost.org> writes:
>
> > $ guix environment --pure guix --ad-hoc git guile-json guile-readline
> > $ make
> > [ 11%] LOAD guix/scripts/download.scm
> > ice-9/eval.scm:293:34: error: hash-algorithm: unbound variable
> >
> > guix master commit 51443772b80c5ca51ccbe5cf05c5db4c216a7b66
> > on Ubuntu 16.04 on armhf.
>
> What is your 'guix --version'?
>
> Presumably you can fix this by importing (guix openpgp) in (guix scripts
> download), but IWBN to figure out why it works on other systems.

dannym@bpi-iot-ros-ai:~$ guix --version
guix (GNU Guix) 1.0.1
Copyright (C) 2019 the Guix authors
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
dannym@bpi-iot-ros-ai:~$ guix describe
guix describe: error: failed to determine origin
hint: Perhaps this `guix' command was not obtained with `guix pull'? Its version
string is 1.0.1.

(This is the host guix, not the guix I'm trying to build)

strace says

/gnu/store/a8041j3pg62zi62b30w91mxrmjsamp64-guix-1.0.1/HEAD ENOENT
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7JpIEACgkQ5xo1VCww
uqWA/ggAhTnS+eRDlV+cSW/R6r5ywhEGZbckYETimr4fO0Pvi+J8xUBCaCVueRw7
Q+gls40VMWcpNf9eotzXelyjsvbu2ZpY08iPdc6YQAhu8qjYG6/4dRTsimr2+ekA
H1zsv6iLubJ6+Bo6pq5Lg40xXhdAOBtdIczH7eL/2QvIeDzyrHmXjf6GinJpoOpl
//gEEoR/aSoBe/m4y1yYRKSTJNu94y9xRnyOAjxHtJk3bG1BUFHmyeMApLliQgJB
XnCJVnYc4KQrQIXOsQ8dqH0AVCQHM0mZQguAGW8GPBr6zVZJdW0SWXMJcZQak+Ty
kjkT347p7xkOHSZOQOgRbTFIJxz1zw==
=A5z8
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 24 May 2020 23:27
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 41494@debbugs.gnu.org)
87k111xbur.fsf@gnu.org
Hi,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

Toggle quote (5 lines)
> $ guix environment --pure guix --ad-hoc git guile-json guile-readline
> $ make
> [ 11%] LOAD guix/scripts/download.scm
> ice-9/eval.scm:293:34: error: hash-algorithm: unbound variable

Which version of Guile-Gcrypt do you have in that profile?
You need 0.2.0 or later.

Thanks,
Ludo’.
D
D
Danny Milosavljevic wrote on 24 May 2020 23:41
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 41494@debbugs.gnu.org)
20200524234100.6a688015@scratchpost.org
Hi Ludo,

On Sun, 24 May 2020 23:27:24 +0200
Ludovic Courtès <ludo@gnu.org> wrote:

Toggle quote (7 lines)
> > $ guix environment --pure guix --ad-hoc git guile-json guile-readline
> > $ make
> > [ 11%] LOAD guix/scripts/download.scm
> > ice-9/eval.scm:293:34: error: hash-algorithm: unbound variable
>
> Which version of Guile-Gcrypt do you have in that profile?

/gnu/store/k1jj8xpklngfshd9d9rvws9636am7lp7-guile-gcrypt-0.1.0/share/guile/site/2.2/gcrypt

Toggle quote (2 lines)
> You need 0.2.0 or later.

Oops.

I've installed the host guix using the armhf tarball from the website.

$ which guix
/usr/local/bin/guix
$ ls -l /usr/local/bin/guix
lrwxrwxrwx 1 root root 54 Mar 4 15:25 /usr/local/bin/guix -> /var/guix/profiles/per-user/root/current-guix/bin/guix

Aha! That's different to Guix System, right?

$ ls -l /var/guix/profiles/per-user/root/current-guix
/var/guix/profiles/per-user/root/current-guix -> current-guix-1-link
$ ls -l /var/guix/profiles/per-user/root/current-guix-1-link/
[...]
libexec -> /gnu/store/a8041j3pg62zi62b30w91mxrmjsamp64-guix-1.0.1/libexec

I guess I could guix pull under root user, but that would hide these kind of
usability bugs under the carpet :)

In any case, seems to work fine to just not compile target guix in the first
place and have it be interpreted, so that's what I'm doing now to get some
actual work done :)

Will try guix pull as root later...
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7K6ewACgkQ5xo1VCww
uqV/3QgApB1ijGCqek/x/gPGZ9Gvu9DgFFinDAWqpC/x6yTOVOvWZXAmjCclg/fw
2WwnSubuD7AONLKHncJdQ/81wBILmor7g95P9BpEkmU7tfbn5jX2RL0Gb0p5WlFb
+lSnNY/NhDXNYZOwWAloilPKR3wFHwNVCsDC+Z1e5jXOVpk/3x2eKoQJzsqGkInk
6ERDQfZQ+U3Yxhqi4K7Bxb1C9dJV243IBA71P9QaJs3Uh4vyeupacbN12XmkRqxL
Bui7SqjVcRgEDNe4E6rBELxzZFm4bHK8MD3KPETHh48+Lx+8MJPklqOO1VAOKOkf
5gLeb/AVT1lrl8UwfaJSAvDx/Czdbw==
=Ti9U
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 25 May 2020 09:43
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 41494@debbugs.gnu.org)
87k110wjbr.fsf@gnu.org
Hi,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

Toggle quote (12 lines)
> On Sun, 24 May 2020 23:27:24 +0200
> Ludovic Courtès <ludo@gnu.org> wrote:
>
>> > $ guix environment --pure guix --ad-hoc git guile-json guile-readline
>> > $ make
>> > [ 11%] LOAD guix/scripts/download.scm
>> > ice-9/eval.scm:293:34: error: hash-algorithm: unbound variable
>>
>> Which version of Guile-Gcrypt do you have in that profile?
>
> /gnu/store/k1jj8xpklngfshd9d9rvws9636am7lp7-guile-gcrypt-0.1.0/share/guile/site/2.2/gcrypt

OK, so “not-a-bug” from my perspective. :-)

Toggle quote (13 lines)
>> You need 0.2.0 or later.
>
> Oops.
>
> I've installed the host guix using the armhf tarball from the website.
>
> $ which guix
> /usr/local/bin/guix
> $ ls -l /usr/local/bin/guix
> lrwxrwxrwx 1 root root 54 Mar 4 15:25 /usr/local/bin/guix -> /var/guix/profiles/per-user/root/current-guix/bin/guix
>
> Aha! That's different to Guix System, right?

Yeah.

Toggle quote (9 lines)
> $ ls -l /var/guix/profiles/per-user/root/current-guix
> /var/guix/profiles/per-user/root/current-guix -> current-guix-1-link
> $ ls -l /var/guix/profiles/per-user/root/current-guix-1-link/
> [...]
> libexec -> /gnu/store/a8041j3pg62zi62b30w91mxrmjsamp64-guix-1.0.1/libexec
>
> I guess I could guix pull under root user, but that would hide these kind of
> usability bugs under the carpet :)

‘guix pull’ under the user you want, but you have to use a Guix that’s
recent enough to provide Guile-Gcrypt 0.2.0 or later. :-)

Cheers,
Ludo’.
L
L
Ludovic Courtès wrote on 25 May 2020 09:43
control message for bug #41494
(address . control@debbugs.gnu.org)
87imgkwjb5.fsf@gnu.org
tags 41494 notabug
close 41494
quit
D
D
Danny Milosavljevic wrote on 25 May 2020 10:13
Re: bug#41494: guix build error on armhf - hash-algorithm: unbound variable
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 41494@debbugs.gnu.org)
20200525101347.7912df82@scratchpost.org
Hi Ludo,

On Mon, 25 May 2020 09:43:36 +0200
Ludovic Courtès <ludo@gnu.org> wrote:

Toggle quote (2 lines)
> OK, so “not-a-bug” from my perspective. :-)

Sure, buy maybe configure could check the guile-gcrypt version or something and
error out? :)

Toggle quote (9 lines)
> > $ which guix
> > /usr/local/bin/guix
> > $ ls -l /usr/local/bin/guix
> > lrwxrwxrwx 1 root root 54 Mar 4 15:25 /usr/local/bin/guix -> /var/guix/profiles/per-user/root/current-guix/bin/guix
> >
> > Aha! That's different to Guix System, right?
>
> Yeah.

I mean especially that it doesn't use my regular user's guix (ever), as opposed
to Guix System--where it does.

Toggle quote (5 lines)
> > I guess I could guix pull under root user, but that would hide these kind of
> > usability bugs under the carpet :)
>
> ‘guix pull’ under the user you want

I don't think guix pull under non-root would help.

I've now added $HOME/.config/guix/current/bin to PATH in ~/.profile of the
regular user manually--let's see.

Toggle quote (3 lines)
>, but you have to use a Guix that’s
> recent enough to provide Guile-Gcrypt 0.2.0 or later. :-)

Thanks for checking :)

But it would be nice to have some kind of nicer error message, if that's
possible.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7LfjsACgkQ5xo1VCww
uqV5Lgf/YxlFFWwArijZDlL7x+ZZrNYFyH+VLrGTKH97aTXraIT48h99DghJ1J4d
giq/kU2M1zY872NRWhr5hJrodldPHdojoTCHtj+8qDjnWgluBlywwl8YuAkIVpi6
YDCpYqzRS1yJh9dqoH7VeFk+kwx04nx1yOBF6M4qycAxPLKpsx1nbxmwpJoK169C
h04MvZ+MzBB9en5oPgYdwXCtcFzWaiFxv3D885vlGAKvG2E8tfms2dZcKnVClXe5
x6+PTjcjqHzoXpNDcwhMxZ2UcoI5uA97fL+9/i25kHCmL1f2+V1rLEMN1SHDdRns
lCQhgn1jmFIh3tRIvswhG2+Ud3t+vw==
=Pfv/
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 28 May 2020 01:04
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)(address . 41494-done@debbugs.gnu.org)
87v9khf08m.fsf@gnu.org
Hi,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

Toggle quote (8 lines)
> On Mon, 25 May 2020 09:43:36 +0200
> Ludovic Courtès <ludo@gnu.org> wrote:
>
>> OK, so “not-a-bug” from my perspective. :-)
>
> Sure, buy maybe configure could check the guile-gcrypt version or something and
> error out? :)

Good idea; done in c1dc50ab202fafedde3a6b70ce6339496ad53a51.

Thanks,
Ludo’.
Closed
?