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

2020-05-27 Thread Ludovic Courtès
Hi,

Danny Milosavljevic  skribis:

> On Mon, 25 May 2020 09:43:36 +0200
> Ludovic Courtès  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#41494: guix build error on armhf - hash-algorithm: unbound variable

2020-05-25 Thread Danny Milosavljevic
Hi Ludo,

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


pgpClGtNH2XPh.pgp
Description: OpenPGP digital signature


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

2020-05-25 Thread Ludovic Courtès
Hi,

Danny Milosavljevic  skribis:

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





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

2020-05-24 Thread Danny Milosavljevic
Hi Ludo,

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


pgpgHYlsa82bb.pgp
Description: OpenPGP digital signature


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

2020-05-24 Thread Ludovic Courtès
Hi,

Danny Milosavljevic  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’.





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

2020-05-23 Thread Danny Milosavljevic
Hi Marius,

On Sun, 24 May 2020 00:23:57 +0200
Marius Bakke  wrote:

> Danny Milosavljevic  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 
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


pgpzEwUjPqNYd.pgp
Description: OpenPGP digital signature


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

2020-05-23 Thread Marius Bakke
Danny Milosavljevic  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
Description: PGP signature


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

2020-05-23 Thread Danny Milosavljevic
On Sat, 23 May 2020 23:14:09 +0200
Danny Milosavljevic  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 ...




pgpViwZdojJKx.pgp
Description: OpenPGP digital signature


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

2020-05-23 Thread Danny Milosavljevic
$ 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.


pgpKPYQ2PCHa2.pgp
Description: OpenPGP digital signature