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

DoneSubmitted by Danny Milosavljevic.
Details
3 participants
  • Danny Milosavljevic
  • Ludovic Courtès
  • Marius Bakke
Owner
unassigned
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.scmice-9/eval.scm:293:34: error: hash-algorithm: unbound variable
guix master commit 51443772b80c5ca51ccbe5cf05c5db4c216a7b66on Ubuntu 16.04 on armhf.
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7JkiEACgkQ5xo1VCwwuqW02QgAikC8r6SyGBt8TB0bBL6KtLFrhWWNkjxlLrgU/vo5JjvNEGRnJwBR3YB2F+/0/9qZNiQ9nnLMTv/IXC+XgGrxbcQPjYotKfqWs3+URLPu5S1VpH+L7Srgj2duxk0Gh3/2Vyys2V+XxehBx3wcYQLtF8Gfjw0GGIDNHdlZLx/2uttdx1mhHxsmOKk3KU9x3dRFGFi9MEIn+MxXx7vT3a//xXm/IVy5w21jcZ+SBp/bpDYbvwomNA8fAcpozbYzliRla3ujiGJ4u3trfghdFpdCOziDQPMwBj0JJVuPXxVtFgI67Aj0FP8SqBAAuYpk4rKA2S52IU4up/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 +0200Danny 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 stuffusing ~/src/guix-master/guix/pre-inst-env guix environment ...
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7Jnv0ACgkQ5xo1VCwwuqX8KAf/Uu0RNxqM4efCicW8acSxJ2YYT5R7Y1lhXuFYTlWcnmTAp7B/rwCvFYg9lvHwmqcMYn8XkMIW8I7UQt1wDZOtoZE+1WO8xODm0rEoh5NzlMWFnKqQ8/s7erkqUeQZW2FcS0jBpF2P1XJMQe4dWNN5d6TGfyhaDqC2wqJGoN2Yfbezq8ywDr4OPB5v+NW5U4TGTevzXDa5pTzKRimX5FxfajKDxamkLpxr2blL83/zu4kJSYD4aCIt0IDkdLe6fjwvqTrVvwCBZseveLKGWrEWD+mmCKsJDLsT8mGEEg9Y2zX7nCSH3YAJ7Ct3q6iJaWSPuHbyxjqUcokg4X11GcoIlw===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 scriptsdownload), but IWBN to figure out why it works on other systems.
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7Jon0ACgkQoqBt8qM6VPp2FQf/WvBiBLzlePgqxoj9h6NZj0j43hS/6ocbNqf1pgp0Tbs5kPCXhYYl8m9wvcigiATkG5Hhhy8vjCBOuCoZaGHA9Y5GZszcypdo659tM25Ha3ltMF7zUrjDylJ3KLTxMCXDMsztS/P8fE1mC+tsIemjxA4H1uZJeGbbpaTQUGFk6iW/KXvjo1xYydMP4qDW4Xy3UZL6q0TT9ThhdHYoiGXZ5CmHqqL3gzsbwrnsnq/NN3Yz6xZVsmvlpsQOSbp3R2LyvAzIA0IZK54NcZ/bGyEtYskOtc221+TBtVk3/0swsf3lbSjtpQgB21CtfX9je1jCrtTM583XvzXDgY+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 +0200Marius 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 --versionguix (GNU Guix) 1.0.1Copyright (C) 2019 the Guix authorsLicense GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.htmlThis 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 describeguix describe: error: failed to determine originhint: Perhaps this `guix' command was not obtained with `guix pull'? Its versionstring 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-----
iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7JpIEACgkQ5xo1VCwwuqWA/ggAhTnS+eRDlV+cSW/R6r5ywhEGZbckYETimr4fO0Pvi+J8xUBCaCVueRw7Q+gls40VMWcpNf9eotzXelyjsvbu2ZpY08iPdc6YQAhu8qjYG6/4dRTsimr2+ekAH1zsv6iLubJ6+Bo6pq5Lg40xXhdAOBtdIczH7eL/2QvIeDzyrHmXjf6GinJpoOpl//gEEoR/aSoBe/m4y1yYRKSTJNu94y9xRnyOAjxHtJk3bG1BUFHmyeMApLliQgJBXnCJVnYc4KQrQIXOsQ8dqH0AVCQHM0mZQguAGW8GPBr6zVZJdW0SWXMJcZQak+TykjkT347p7xkOHSZOQOgRbTFIJxz1zw===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 +0200Ludovic 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/guixlrwxrwxrwx 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 ofusability bugs under the carpet :)
In any case, seems to work fine to just not compile target guix in the firstplace and have it be interpreted, so that's what I'm doing now to get someactual work done :)
Will try guix pull as root later...
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7K6ewACgkQ5xo1VCwwuqV/3QgApB1ijGCqek/x/gPGZ9Gvu9DgFFinDAWqpC/x6yTOVOvWZXAmjCclg/fw2WwnSubuD7AONLKHncJdQ/81wBILmor7g95P9BpEkmU7tfbn5jX2RL0Gb0p5WlFb+lSnNY/NhDXNYZOwWAloilPKR3wFHwNVCsDC+Z1e5jXOVpk/3x2eKoQJzsqGkInk6ERDQfZQ+U3Yxhqi4K7Bxb1C9dJV243IBA71P9QaJs3Uh4vyeupacbN12XmkRqxLBui7SqjVcRgEDNe4E6rBELxzZFm4bHK8MD3KPETHh48+Lx+8MJPklqOO1VAOKOkf5gLeb/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’srecent 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 notabugclose 41494quit
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 +0200Ludovic 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 anderror 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 opposedto 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 theregular 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'spossible.
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl7LfjsACgkQ5xo1VCwwuqV5Lgf/YxlFFWwArijZDlL7x+ZZrNYFyH+VLrGTKH97aTXraIT48h99DghJ1J4dgiq/kU2M1zY872NRWhr5hJrodldPHdojoTCHtj+8qDjnWgluBlywwl8YuAkIVpi6YDCpYqzRS1yJh9dqoH7VeFk+kwx04nx1yOBF6M4qycAxPLKpsx1nbxmwpJoK169Ch04MvZ+MzBB9en5oPgYdwXCtcFzWaiFxv3D885vlGAKvG2E8tfms2dZcKnVClXe5x6+PTjcjqHzoXpNDcwhMxZ2UcoI5uA97fL+9/i25kHCmL1f2+V1rLEMN1SHDdRnslCQhgn1jmFIh3tRIvswhG2+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
?