Re: [Install guix packages to non-default]: Unable to build derivation hello

2017-02-08 Thread Ludovic Courtès
rohit yadav  skribis:

> Thanks for fixing the linux-libre (I am yet to try). However, my other
> question is why linux-libre is required to build hello?

Since you’re using a non-standard store directory, you cannot get
binaries from hydra.gnu.org, so you’re rebuilding the world.

The C library depends on the Linux-libre header files, which is why this
is happening.

Ludo’.



Re: [Install guix packages to non-default]: Unable to build derivation hello

2017-02-07 Thread rohit yadav
​Hi,

Thanks for fixing the linux-libre (I am yet to try). However, my other
question is why linux-libre is required to build hello?

Thanks,
Rohit​

On Tue, Feb 7, 2017 at 7:56 AM, Ludovic Courtès  wrote:

> Hello,
>
> rohit yadav  skribis:
>
> > Starting download of
> > /home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhd
> vb-linux-libre-4.4.18-gnu.tar.xz
>
> [...]
>
> > ERROR: download failed "
> > http://mirror.hydra.gnu.org/file/fsgliw4y7j4kc6ad1574h7qhdvb-
> linux-libre-4.4.18-gnu.tar.xz/sha256/0k8k17in7dkjd9d8zg3i8l1ax466db
> a6bxw28flxizzyq8znljps"
> > 404 "Not Found"
>
> Ooh, there’s a bug here.  The URL should be:
>
>   https://mirror.hydra.gnu.org/file/linux-libre-4.4.18-gnu.tar.xz/sha256/
> 0k8k17in7dkjd9d8zg3i8l1ax466dba6bxw28flxizzyq8znljps
>
> (Compare the part right after “/file.”)
>
> I believe this is fixed by 328f7cbe435d79d61f57129d9e3ee90404d6bfda.
>
> Now, you can either build and install guix-daemon from ‘master’, or
> simply make sure to do:
>
>   export NIX_STORE=/home/royadav/opt/guix/local/gnu/store
>
> in the environment where guix-daemon runs.
>
> If you’re using systemd, I guess you can add this setting in the unit
> file.
>
> Once you’ve done that, you should be able to download this tarball from
> mirror.hydra.gnu.org transparently.
>
> HTH!
>
> Ludo’.
>


Re: [Install guix packages to non-default]: Unable to build derivation hello

2017-02-07 Thread Ludovic Courtès
Hello,

rohit yadav  skribis:

> Starting download of
> /home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz

[...]

> ERROR: download failed "
> http://mirror.hydra.gnu.org/file/fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz/sha256/0k8k17in7dkjd9d8zg3i8l1ax466dba6bxw28flxizzyq8znljps";
> 404 "Not Found"

Ooh, there’s a bug here.  The URL should be:

  
https://mirror.hydra.gnu.org/file/linux-libre-4.4.18-gnu.tar.xz/sha256/0k8k17in7dkjd9d8zg3i8l1ax466dba6bxw28flxizzyq8znljps

(Compare the part right after “/file.”)

I believe this is fixed by 328f7cbe435d79d61f57129d9e3ee90404d6bfda.

Now, you can either build and install guix-daemon from ‘master’, or
simply make sure to do:

  export NIX_STORE=/home/royadav/opt/guix/local/gnu/store

in the environment where guix-daemon runs.

If you’re using systemd, I guess you can add this setting in the unit
file.

Once you’ve done that, you should be able to download this tarball from
mirror.hydra.gnu.org transparently.

HTH!

Ludo’.



Re: [Install guix packages to non-default]: Unable to build derivation hello

2017-02-06 Thread Ricardo Wurmus

rohit yadav  writes:

> ​Hi,
>
> I am noticing that all the links the guix is trying to download linux-libre
> are broken (linux-libre-4.4.18-gnu.tar.xz) does not exist. How should I fix
> it, is there a way to provide a local copy for this which guix can use?

Oof, you are right about this.  Where did that tarball go?
We have it cached on hydra.  You can download it with

guix build -S linux-libre-headers

when substitutes are enabled.  Alternatively, you could fetch this


https://mirror.hydra.gnu.org/nar/51f2f2ck80migsfr2hwy4ds30966lifi-linux-libre-4.4.18-gnu.tar.xz

Note that this is a nar wrapped in a layer of bzip2 compression, because
that’s what hydra does for everything.  You can unpack with bunzip2 and
then use “guix archive --extract” to turn it into a regular tarball.

I’ll open a bug report about the broken URL.  Thanks for the report!

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net




Re: [Install guix packages to non-default]: Unable to build derivation hello

2017-02-06 Thread rohit yadav
I apologize for the missing link. Here it is:

https://github.com/UMCUGenetics/guix-additions/blob/master/doc/Deployment.md#restricted-environment-installation

At this moment, I have been able to get nix to work with the same technique
as mentioned in the above mentioned article. However, I really want to use
guix if possible.

Thanks,
Rohit


On Mon, Feb 6, 2017 at 2:46 PM, Ricardo Wurmus  wrote:

>
> rohit yadav  writes:
>
> > Hi,
> >
> > I am trying to install guix packages to a non-default location to benefit
> > from guix on machines with no root privileges. Following the below
> > mentioned article,
>
> Could you point us to article you followed?  I couldn’t find it in your
> message.
>
> > I am able to install guix and run guix-daemon configured
> > to a non-default location. However, when I trying to install even a basic
> > hello package, the guix goes on to install large number of derivations.
> And
> > fails while trying to pull linux-libre (why is this needed for hello
> > package?).
>
> Derivations are not packages.  The derivation for “hello” says that it
> needs /gnu/store/…-linux-libre-headers-4.4.18.drv, which in turn says
> that it needs the derivation to download the linux-libre tarball.
>
> (I’m still traveling, so I cannot check the tarballs right now.)
>
> --
> Ricardo
>
> GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
> https://elephly.net
>
>


Re: [Install guix packages to non-default]: Unable to build derivation hello

2017-02-06 Thread Ricardo Wurmus

rohit yadav  writes:

> Hi,
>
> I am trying to install guix packages to a non-default location to benefit
> from guix on machines with no root privileges. Following the below
> mentioned article,

Could you point us to article you followed?  I couldn’t find it in your
message.

> I am able to install guix and run guix-daemon configured
> to a non-default location. However, when I trying to install even a basic
> hello package, the guix goes on to install large number of derivations. And
> fails while trying to pull linux-libre (why is this needed for hello
> package?).

Derivations are not packages.  The derivation for “hello” says that it
needs /gnu/store/…-linux-libre-headers-4.4.18.drv, which in turn says
that it needs the derivation to download the linux-libre tarball.

(I’m still traveling, so I cannot check the tarballs right now.)

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net




Re: [Install guix packages to non-default]: Unable to build derivation hello

2017-02-06 Thread rohit yadav
​Hi,

I am noticing that all the links the guix is trying to download linux-libre
are broken (linux-libre-4.4.18-gnu.tar.xz) does not exist. How should I fix
it, is there a way to provide a local copy for this which guix can use?

Thanks,
Rohit

On Sun, Feb 5, 2017 at 12:27 PM, rohit yadav  wrote:

> ​Hi,
>
> Thanks for the reply. I am running guix-daemon with --non-substitute
> option. And the error posted actually complains about Error 404. I am not
> sure, if it is happening because of firewall. Although, I tried the
> suggested method also but result is still the same. I cleaned up the store
> with "guix gc" and restarted for scratch. Additionally, I am unable to
> understand why "linux-libre" is required to install a hello program?
>
> Thanks,
> Rohit
>
>
>
> On Sun, Feb 5, 2017 at 5:29 AM, ng0  wrote:
>
>> guix package --fallback --install hello
>
>
>
>


Re: [Install guix packages to non-default]: Unable to build derivation hello

2017-02-05 Thread rohit yadav
​Hi,

Thanks for the reply. I am running guix-daemon with --non-substitute
option. And the error posted actually complains about Error 404. I am not
sure, if it is happening because of firewall. Although, I tried the
suggested method also but result is still the same. I cleaned up the store
with "guix gc" and restarted for scratch. Additionally, I am unable to
understand why "linux-libre" is required to install a hello program?

Thanks,
Rohit



On Sun, Feb 5, 2017 at 5:29 AM, ng0  wrote:

> guix package --fallback --install hello


Re: [Install guix packages to non-default]: Unable to build derivation hello

2017-02-05 Thread ng0
Hi,

I don't reply to the entire issue, for a comment see below.
On 17-02-05 02:53:11, rohit yadav wrote:
> Hi,
> 
> I am trying to install guix packages to a non-default location to benefit
> from guix on machines with no root privileges. Following the below
> mentioned article, I am able to install guix and run guix-daemon configured
> to a non-default location. However, when I trying to install even a basic
> hello package, the guix goes on to install large number of derivations. And
> fails while trying to pull linux-libre (why is this needed for hello
> package?). I am not sure why it is unable to pull the src packages to build
> from scratch.
> 
> Hope to hear soon.
> 
> Thanks,
> Rohit
> 
> The terminal output is attached below:
> 
> 
> *ubuntu@ubuntu-xenial*:*~*$ guix package -i hello
> 
> The following package will be installed:
> 
>hello2.10
> /home/royadav/opt/guix/local/gnu/store/my4vxpk417bgq21i803fs3shbhqhz53a-hello-2.10
> 
> Starting download of
> /home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz
> 
> From
> http://linux-libre.fsfla.org/pub/linux-libre/releases/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz.
> ..
> 
> ERROR: download failed "
> http://linux-libre.fsfla.org/pub/linux-libre/releases/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz";
> 404 "Not Found"

In this case, no binary substitute is found. You need to run
"guix package --fallback --install hello" when no substitutes
are found. 
"--fallback" falls back to building (from source) when no
substitute is found.

> Starting download of
> /home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz
> 
> From ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-4.4.18-gnu.tar.xz...
> 
> ERROR: Throw to key `ftp-error' with args `(#
> "RETR linux-libre-4.4.18-gnu.tar.xz" 550 "Failed to open file.\r")'.
> 
> Starting download of
> /home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz
> 
> From
> http://ftpmirror.gnu.org/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz.
> ..
> 
> following redirection to `
> http://mirrors.kernel.org/gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz'.
> ..
> 
> ERROR: download failed "
> http://mirrors.kernel.org/gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz";
> 404 "Not Found"
> 
> 
> Starting download of
> /home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz
> 
> From
> ftp://ftp.cs.tu-berlin.de/pub/gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz.
> ..
> 
> ERROR: In procedure connect*: Connection timed out
> 
> 
> Starting download of
> /home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz
> 
> From
> ftp://ftp.funet.fi/pub/mirrors/ftp.gnu.org/gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz.
> ..
> 
> ERROR: Throw to key `ftp-error' with args `(# "CWD
> 4.4.18-gnu" 550 "Can't change directory to 4.4.18-gnu: No such file or
> directory\r")'.
> 
> 
> Starting download of
> /home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz
> 
> From
> http://ftp.gnu.org/pub/gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz.
> ..
> 
> ERROR: download failed "
> http://ftp.gnu.org/pub/gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz";
> 404 "Not Found"
> 
> 
> Starting download of
> /home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz
> 
> From
> http://mirror.hydra.gnu.org/file/fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz/sha256/0k8k17in7dkjd9d8zg3i8l1ax466dba6bxw28flxizzyq8znljps.
> ..
> 
> ERROR: download failed "
> http://mirror.hydra.gnu.org/file/fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz/sha256/0k8k17in7dkjd9d8zg3i8l1ax466dba6bxw28flxizzyq8znljps";
> 404 "Not Found"
> 
> 
> Starting download of
> /home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz
> 
> From
> http://tarballs.nixos.org/sha256/0k8k17in7dkjd9d8zg3i8l1ax466dba6bxw28flxizzyq8znljps.
> ..
> 
> ERROR: download failed "
> http://tarballs.nixos.org/sha256/0k8k17in7dkjd9d8zg3i8l1ax466dba6bxw28flxizzyq8znljps";
> 404 "Not Found"
> 
> failed to download
> "/home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz"
> from ("
> http://linux-libre.fsfla.org/pub/linux-libre/releases/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz";
> "ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-4.4.18-gnu.tar.xz";
> "mirror://gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz")
> 
> builder for
> `/home/royadav/opt/guix/local/gnu/store/19qni5ycaxbpgl6na69k0fg6yf7v69l5-linux-libre-4.4.18-gnu.tar.xz.drv'
> failed to produce output path
> `/home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhd

[Install guix packages to non-default]: Unable to build derivation hello

2017-02-05 Thread rohit yadav
Hi,

I am trying to install guix packages to a non-default location to benefit
from guix on machines with no root privileges. Following the below
mentioned article, I am able to install guix and run guix-daemon configured
to a non-default location. However, when I trying to install even a basic
hello package, the guix goes on to install large number of derivations. And
fails while trying to pull linux-libre (why is this needed for hello
package?). I am not sure why it is unable to pull the src packages to build
from scratch.

Hope to hear soon.

Thanks,
Rohit

The terminal output is attached below:


*ubuntu@ubuntu-xenial*:*~*$ guix package -i hello

The following package will be installed:

   hello2.10
/home/royadav/opt/guix/local/gnu/store/my4vxpk417bgq21i803fs3shbhqhz53a-hello-2.10

Starting download of
/home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz

From
http://linux-libre.fsfla.org/pub/linux-libre/releases/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz.
..

ERROR: download failed "
http://linux-libre.fsfla.org/pub/linux-libre/releases/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz";
404 "Not Found"

Starting download of
/home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz

>From ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-4.4.18-gnu.tar.xz...

ERROR: Throw to key `ftp-error' with args `(#
"RETR linux-libre-4.4.18-gnu.tar.xz" 550 "Failed to open file.\r")'.

Starting download of
/home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz

From
http://ftpmirror.gnu.org/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz.
..

following redirection to `
http://mirrors.kernel.org/gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz'.
..

ERROR: download failed "
http://mirrors.kernel.org/gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz";
404 "Not Found"


Starting download of
/home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz

From
ftp://ftp.cs.tu-berlin.de/pub/gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz.
..

ERROR: In procedure connect*: Connection timed out


Starting download of
/home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz

From
ftp://ftp.funet.fi/pub/mirrors/ftp.gnu.org/gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz.
..

ERROR: Throw to key `ftp-error' with args `(# "CWD
4.4.18-gnu" 550 "Can't change directory to 4.4.18-gnu: No such file or
directory\r")'.


Starting download of
/home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz

From
http://ftp.gnu.org/pub/gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz.
..

ERROR: download failed "
http://ftp.gnu.org/pub/gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz";
404 "Not Found"


Starting download of
/home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz

From
http://mirror.hydra.gnu.org/file/fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz/sha256/0k8k17in7dkjd9d8zg3i8l1ax466dba6bxw28flxizzyq8znljps.
..

ERROR: download failed "
http://mirror.hydra.gnu.org/file/fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz/sha256/0k8k17in7dkjd9d8zg3i8l1ax466dba6bxw28flxizzyq8znljps";
404 "Not Found"


Starting download of
/home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz

From
http://tarballs.nixos.org/sha256/0k8k17in7dkjd9d8zg3i8l1ax466dba6bxw28flxizzyq8znljps.
..

ERROR: download failed "
http://tarballs.nixos.org/sha256/0k8k17in7dkjd9d8zg3i8l1ax466dba6bxw28flxizzyq8znljps";
404 "Not Found"

failed to download
"/home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz"
from ("
http://linux-libre.fsfla.org/pub/linux-libre/releases/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz";
"ftp://alpha.gnu.org/gnu/guix/mirror/linux-libre-4.4.18-gnu.tar.xz";
"mirror://gnu/linux-libre/4.4.18-gnu/linux-libre-4.4.18-gnu.tar.xz")

builder for
`/home/royadav/opt/guix/local/gnu/store/19qni5ycaxbpgl6na69k0fg6yf7v69l5-linux-libre-4.4.18-gnu.tar.xz.drv'
failed to produce output path
`/home/royadav/opt/guix/local/gnu/store/gc4i3fsgliw4y7j4kc6ad1574h7qhdvb-linux-libre-4.4.18-gnu.tar.xz'

cannot build derivation
`/home/royadav/opt/guix/local/gnu/store/bx3zwbw5k9vdjkwaagrdhnajbvj4bxhq-linux-libre-headers-4.4.18.drv':
1 dependencies couldn't be built

cannot build derivation
`/home/royadav/opt/guix/local/gnu/store/98rmh5pbfx33z294l0z586hzqbyjfshd-mkfontdir-1.0.7.drv':
1 dependencies couldn't be built

guix package: error: build failed: build of
`/home/royadav/opt/guix/local/gnu/store/98rmh5pbfx33z294l0z586hzqbyjfshd-mkfontdir-1.0.7.drv'
failed

===