GNU bug report logs - #41494
guix build error on armhf - hash-algorithm: unbound variable

Previous Next

Package: guix;

Reported by: Danny Milosavljevic <dannym <at> scratchpost.org>

Date: Sat, 23 May 2020 21:15:03 UTC

Severity: normal

Tags: notabug

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41494 in the body.
You can then email your comments to 41494 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#41494; Package guix. (Sat, 23 May 2020 21:15:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Danny Milosavljevic <dannym <at> scratchpost.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 23 May 2020 21:15:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: <bug-guix <at> gnu.org>
Subject: guix build error on armhf - hash-algorithm: unbound variable
Date: Sat, 23 May 2020 23:14:09 +0200
[Message part 1 (text/plain, inline)]
$ 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.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41494; Package guix. (Sat, 23 May 2020 22:10:02 GMT) Full text and rfc822 format available.

Message #8 received at 41494 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: 41494 <at> debbugs.gnu.org
Subject: Re: bug#41494: guix build error on armhf - hash-algorithm: unbound
 variable
Date: Sun, 24 May 2020 00:09:01 +0200
[Message part 1 (text/plain, inline)]
On Sat, 23 May 2020 23:14:09 +0200
Danny Milosavljevic <dannym <at> scratchpost.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
> 
> 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 ...


[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41494; Package guix. (Sat, 23 May 2020 22:25:02 GMT) Full text and rfc822 format available.

Message #11 received at 41494 <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: Danny Milosavljevic <dannym <at> scratchpost.org>, 41494 <at> debbugs.gnu.org
Subject: Re: bug#41494: guix build error on armhf - hash-algorithm: unbound
 variable
Date: Sun, 24 May 2020 00:23:57 +0200
[Message part 1 (text/plain, inline)]
Danny Milosavljevic <dannym <at> 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.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41494; Package guix. (Sat, 23 May 2020 22:34:02 GMT) Full text and rfc822 format available.

Message #14 received at 41494 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: 41494 <at> debbugs.gnu.org
Subject: Re: bug#41494: guix build error on armhf - hash-algorithm: unbound
 variable
Date: Sun, 24 May 2020 00:32:33 +0200
[Message part 1 (text/plain, inline)]
Hi Marius,

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

> Danny Milosavljevic <dannym <at> 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 <at> 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 <at> 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
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41494; Package guix. (Sun, 24 May 2020 21:28:02 GMT) Full text and rfc822 format available.

Message #17 received at 41494 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 41494 <at> debbugs.gnu.org
Subject: Re: bug#41494: guix build error on armhf - hash-algorithm: unbound
 variable
Date: Sun, 24 May 2020 23:27:24 +0200
Hi,

Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

> $ 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’.




Information forwarded to bug-guix <at> gnu.org:
bug#41494; Package guix. (Sun, 24 May 2020 21:42:01 GMT) Full text and rfc822 format available.

Message #20 received at 41494 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 41494 <at> debbugs.gnu.org
Subject: Re: bug#41494: guix build error on armhf - hash-algorithm: unbound
 variable
Date: Sun, 24 May 2020 23:41:00 +0200
[Message part 1 (text/plain, inline)]
Hi Ludo,

On Sun, 24 May 2020 23:27:24 +0200
Ludovic Courtès <ludo <at> 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

> 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...
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41494; Package guix. (Mon, 25 May 2020 07:44:01 GMT) Full text and rfc822 format available.

Message #23 received at 41494 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 41494 <at> debbugs.gnu.org
Subject: Re: bug#41494: guix build error on armhf - hash-algorithm: unbound
 variable
Date: Mon, 25 May 2020 09:43:36 +0200
Hi,

Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

> On Sun, 24 May 2020 23:27:24 +0200
> Ludovic Courtès <ludo <at> 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.  :-)

>> 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.

> $ 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’.




Added tag(s) notabug. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 25 May 2020 07:45:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 41494 <at> debbugs.gnu.org and Danny Milosavljevic <dannym <at> scratchpost.org> Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 25 May 2020 07:45:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#41494; Package guix. (Mon, 25 May 2020 08:15:02 GMT) Full text and rfc822 format available.

Message #30 received at 41494 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 41494 <at> debbugs.gnu.org
Subject: Re: bug#41494: guix build error on armhf - hash-algorithm: unbound
 variable
Date: Mon, 25 May 2020 10:13:47 +0200
[Message part 1 (text/plain, inline)]
Hi Ludo,

On Mon, 25 May 2020 09:43:36 +0200
Ludovic Courtès <ludo <at> 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? :)

> > $ 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.

> > 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.

>, 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.
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41494; Package guix. (Wed, 27 May 2020 23:05:02 GMT) Full text and rfc822 format available.

Message #33 received at 41494-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 41494-done <at> debbugs.gnu.org
Subject: Re: bug#41494: guix build error on armhf - hash-algorithm: unbound
 variable
Date: Thu, 28 May 2020 01:04:41 +0200
Hi,

Danny Milosavljevic <dannym <at> scratchpost.org> skribis:

> On Mon, 25 May 2020 09:43:36 +0200
> Ludovic Courtès <ludo <at> 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’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 25 Jun 2020 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 318 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.