unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* "profil-drv" error or what am I doing wrong?
@ 2014-06-11 16:00 Adam Pribyl
  2014-06-12  8:57 ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Pribyl @ 2014-06-11 16:00 UTC (permalink / raw)
  To: guix-devel

As there is no user list, let me use this one.

I am trying the GNU Guix 0.6 as published in

https://savannah.gnu.org/forum/forum.php?forum_id=7939

however I am not able to finish any "guix package -i" as it always reports 
error in compilation, either profile.drv or perl etc.
BTW: in the X session I can not switch to root as there is no "su" 
available by default.

guix refresh just prints various packages that "would be upgraded" but 
does nothing.

I am confused with dmd too at I do not know how to list running services, 
therefore I can not enable or disable anything as I do not know what is 
available.

Documentation for both is not very helpful ATM... :(

Thanx for hints

Adam Pribyl

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "profil-drv" error or what am I doing wrong?
  2014-06-11 16:00 "profil-drv" error or what am I doing wrong? Adam Pribyl
@ 2014-06-12  8:57 ` Ludovic Courtès
  2014-06-19  9:06   ` Adam Pribyl
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2014-06-12  8:57 UTC (permalink / raw)
  To: Adam Pribyl; +Cc: guix-devel

Hi,

Adam Pribyl <pribyl@lowlevel.cz> skribis:

> As there is no user list, let me use this one.
>
> I am trying the GNU Guix 0.6 as published in
>
> https://savannah.gnu.org/forum/forum.php?forum_id=7939

I suppose you’re referring to the VM image, right?

> however I am not able to finish any "guix package -i" as it always
> reports error in compilation, either profile.drv or perl etc.

What error does it report?

> BTW: in the X session I can not switch to root as there is no "su"
> available by default.

Yes, this has been fixed since then.

> guix refresh just prints various packages that "would be upgraded" but
> does nothing.

That’s intended:

  http://www.gnu.org/software/guix/manual/guix.html#Invoking-guix-refresh

As noted there, the primary audience of the guix refresh command is
developers of the GNU software distribution.

> I am confused with dmd too at I do not know how to list running
> services, therefore I can not enable or disable anything as I do not
> know what is available.

As root, try running ‘deco status dmd’; more info at:

  http://www.gnu.org/software/dmd/manual/dmd.html#Invoking-deco

To become root on the 0.6 VM image, you’ll have to switch to VT 1, and
from there log in as root.

If this is an option for you, I’d recommend trying Guix from master, or
waiting until 0.7 is out (within a month or so.)

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "profil-drv" error or what am I doing wrong?
  2014-06-12  8:57 ` Ludovic Courtès
@ 2014-06-19  9:06   ` Adam Pribyl
  2014-06-19 10:36     ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Pribyl @ 2014-06-19  9:06 UTC (permalink / raw)
  Cc: guix-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 5375 bytes --]

On Thu, 12 Jun 2014, Ludovic Courtès wrote:

> Hi,
>
> Adam Pribyl <pribyl@lowlevel.cz> skribis:
>
>> As there is no user list, let me use this one.
>>
>> I am trying the GNU Guix 0.6 as published in
>>
>> https://savannah.gnu.org/forum/forum.php?forum_id=7939
>
> I suppose you’re referring to the VM image, right?

Yes..

>
>> however I am not able to finish any "guix package -i" as it always
>> reports error in compilation, either profile.drv or perl etc.
>
> What error does it report?

This is what is at the end:

  makefile:550: recipe for target 'install.perl' failed
             make[1]: *** [install.perl] Error 28
             make[1]: Leaving directory 
'/tmp/nix-build-perl-5.16.1.drv-0/perl-5.16.1'
             makefile:535: recipe for target 'install' failed
             make: *** [install] Error 2
             phase `install' failed after 90 seconds
             builder for 
`/gnu/store/pg7qk32dirrqwagwd12n533v483hyipx-perl-5.16.1.drv' failed
              with exit code 1
             @ build-failed 
/gnu/store/pg7qk32dirrqwagwd12n533v483hyipx-perl-5.16.1.drv - 1 b
             uilder for 
`/gnu/store/pg7qk32dirrqwagwd12n533v483hyipx-perl-5.16.1.drv' failed
             with exit code 1
             @ build-started 
/gnu/store/shmbq7s0zmqc5xd0ab2cn6b2zsdz89ra-binutils-cross-boot0
             -2.24.drv - x86_64-linux 
/var/log/guix/drvs/sh//mbq7s0zmqc5xd0ab2cn6b2zsdz89ra-b
             inutils-cross-boot0-2.24.drv.bz2
             cannot build derivation 
`/gnu/store/5yz9vz3h79jqlkqiik5nwgxj894f9dmb-linux-libre
             -headers-3.3.8.drv': 1 dependencies couldn't be built
             cannot build derivation 
`/gnu/store/im9knz29ylgi84ja8q2vagazkkrp7w5w-vim-7.4.drv
             ': 1 dependencies couldn't be built
             cannot build derivation 
`/gnu/store/7k7sfnv99d948yh3a8sz3ia36zz4kvrg-profile.drv
             ': 1 dependencies couldn't be built
             guix package: error: build failed: build of 
`/gnu/store/7k7sfnv99d948yh3a8sz3ia3
             6zz4kvrg-profile.drv' failed
             1104 operations
             [ 2147.754972] guix (905) used greatest stack depth: 3968 
bytes left
             root@gnu#


I am still somehow unsure, how to correctly work with guix - e.g. what to 
do if some build fails? Are the already build packages still there? How do 
I start clean build of whole dependency chain?


>> BTW: in the X session I can not switch to root as there is no "su"
>> available by default.
>
> Yes, this has been fixed since then.
>
>> guix refresh just prints various packages that "would be upgraded" but
>> does nothing.
>
> That’s intended:
>
>  http://www.gnu.org/software/guix/manual/guix.html#Invoking-guix-refresh
>
> As noted there, the primary audience of the guix refresh command is
> developers of the GNU software distribution.

OK, how do I then upgrade all packages, e.g. to get to "master" status?

guix package -u
says "nothing to be done".

guix pull
prints few messages and then just sits there, doing nothing.

root@gnu# guix pull
             accepted connection from pid 25883, uid 0
             starting download of `guix-file.FvG4HK' from 
`http://git.savannah.gnu.org/cgit/g
             uix.git/snapshot/guix-master.tar.gz'...
             http://git.savannah.gnu.org/.../guix-master.tar.gz      6328.1 
KiB transferred
             The following derivations will be built:
                /gnu/store/dx6awxpri6s5n1hvz8ah1k7lga16d6lm-guix-latest.drv

/gnu/store/hak6ligbsmqrqns1g2gagg0pmklhva73-pkg-config-0.27.1.drv

/gnu/store/shmbq7s0zmqc5xd0ab2cn6b2zsdz89ra-binutils-cross-boot0-2.24.drv
                /gnu/store/pg7qk32dirrqwagwd12n533v483hyipx-perl-5.16.1.drv

/gnu/store/5yz9vz3h79jqlkqiik5nwgxj894f9dmb-linux-libre-headers-3.3.8.drv

/gnu/store/64lzm3zc8ndxss5wn0jgbxdpwjaam0zm-findutils-4.4.2.drv

/gnu/store/6x2zwiamdwzh2a3iq0a3zm1k1r05p900-diffutils-3.3.drv
                /gnu/store/7gz7rqrg9v6zr8vsxpwd299zws8siqc8-make-4.0.drv
                /gnu/store/gif1916apz6v2w9yl7p79pas3m3rc5pp-tar-1.27.1.drv
                /gnu/store/kfd74bkyc6zihysa0dh5kq7j2rwblfcx-patch-2.7.1.drv
                /gnu/store/q55k342x0rm16cidc4521ffckpab0dzf-sed-4.2.2.drv
                /gnu/store/qrxglkjsb61pvwjnzinmi7smyacjnc0w-gzip-1.6.drv
                /gnu/store/1ynv017dz1dxp3y4a7qbjsq80wh503kp-tar-1.27.1.drv


>> I am confused with dmd too at I do not know how to list running
>> services, therefore I can not enable or disable anything as I do not
>> know what is available.
>
> As root, try running ‘deco status dmd’; more info at:
>
>  http://www.gnu.org/software/dmd/manual/dmd.html#Invoking-deco


It may not look that way, but I'm trying to read the doc, but this was 
really a not obvious to get the list of services by quering dmd status, 
while one has to know it has to query dmd. I was looking for something 
like "deeco list-services"


> To become root on the 0.6 VM image, you’ll have to switch to VT 1, and
> from there log in as root.

Not that easy with qemu but I managed it by qemu console sendkey command.

> If this is an option for you, I’d recommend trying Guix from master, or
> waiting until 0.7 is out (within a month or so.)
>
> Thanks,
> Ludo’.

Thank you

Adam Pribyl

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "profil-drv" error or what am I doing wrong?
  2014-06-19  9:06   ` Adam Pribyl
@ 2014-06-19 10:36     ` Ludovic Courtès
  2014-06-19 17:37       ` Adam Pribyl
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2014-06-19 10:36 UTC (permalink / raw)
  To: Adam Pribyl; +Cc: guix-devel

Hello,

Adam Pribyl <pribyl@lowlevel.cz> skribis:

> On Thu, 12 Jun 2014, Ludovic Courtès wrote:
>

[...]

>>> however I am not able to finish any "guix package -i" as it always
>>> reports error in compilation, either profile.drv or perl etc.
>>
>> What error does it report?
>
> This is what is at the end:
>
>  makefile:550: recipe for target 'install.perl' failed
>             make[1]: *** [install.perl] Error 28
>             make[1]: Leaving directory
> /tmp/nix-build-perl-5.16.1.drv-0/perl-5.16.1'
>             makefile:535: recipe for target 'install' failed
>             make: *** [install] Error 2
>             phase `install' failed after 90 seconds
>             builder for
> /gnu/store/pg7qk32dirrqwagwd12n533v483hyipx-perl-5.16.1.drv' failed
>              with exit code 1

All this means that it failed to build Perl.  Since it happens during
the install phase, it may be a no-space-left condition; could you check
if this is the case?

Could you check the tail of the log file returned by

  guix build --log-file /gnu/store/pg7qk32dirrqwagwd12n533v483hyipx-perl-5.16.1.drv

?

It should contain an error message that’s missing above.

> I am still somehow unsure, how to correctly work with guix - e.g. what
> to do if some build fails?

As an “end user”, if a build fails, it amounts to being unable to
install the package or whatever depends on it.

As someone who wants to get involved in Guix (and I think this is the
main category at this development stage ;-)), then you need to
investigate.

But really, more than 90% of the packages present in the distro at the
time 0.6 was released were known to build fine.

> Are the already build packages still there?

The “substitutes” may have disappeared from hydra.gnu.org, meaning that
some of the packages as they were defined in 0.6 may have to be built
locally on your machine.  But again, that’s transparent for you, it just
takes more time.

> How do I start clean build of whole dependency chain?

The principle of “functional packaging” is that it always “starts
clean”.  It’s as if you were rebuilding everything from scratch in a
pristine environment.

[...]

>>> guix refresh just prints various packages that "would be upgraded" but
>>> does nothing.
>>
>> That’s intended:
>>
>>  http://www.gnu.org/software/guix/manual/guix.html#Invoking-guix-refresh
>>
>> As noted there, the primary audience of the guix refresh command is
>> developers of the GNU software distribution.
>
> OK, how do I then upgrade all packages, e.g. to get to "master" status?

Using “guix pull”, as you found out.

> guix package -u
> says "nothing to be done".

Yes, because it compares what’s installed to the list of packages known
to it:

  Note that this upgrades package to the latest version of packages
  found in the distribution currently installed. To update your
  distribution, you should regularly run guix pull (see Invoking guix
  pull).

  http://www.gnu.org/software/guix/manual/guix.html#Invoking-guix-package

> guix pull
> prints few messages and then just sits there, doing nothing.
>
> root@gnu# guix pull
>             accepted connection from pid 25883, uid 0
>             starting download of `guix-file.FvG4HK' from
> http://git.savannah.gnu.org/cgit/g
>             uix.git/snapshot/guix-master.tar.gz'...
>             http://git.savannah.gnu.org/.../guix-master.tar.gz
> 6328.1 KiB transferred
>             The following derivations will be built:
>                /gnu/store/dx6awxpri6s5n1hvz8ah1k7lga16d6lm-guix-latest.drv
>
> /gnu/store/hak6ligbsmqrqns1g2gagg0pmklhva73-pkg-config-0.27.1.drv
>
> /gnu/store/shmbq7s0zmqc5xd0ab2cn6b2zsdz89ra-binutils-cross-boot0-2.24.drv
>                /gnu/store/pg7qk32dirrqwagwd12n533v483hyipx-perl-5.16.1.drv
>
> /gnu/store/5yz9vz3h79jqlkqiik5nwgxj894f9dmb-linux-libre-headers-3.3.8.drv
>
> /gnu/store/64lzm3zc8ndxss5wn0jgbxdpwjaam0zm-findutils-4.4.2.drv
>
> /gnu/store/6x2zwiamdwzh2a3iq0a3zm1k1r05p900-diffutils-3.3.drv
>                /gnu/store/7gz7rqrg9v6zr8vsxpwd299zws8siqc8-make-4.0.drv
>                /gnu/store/gif1916apz6v2w9yl7p79pas3m3rc5pp-tar-1.27.1.drv
>                /gnu/store/kfd74bkyc6zihysa0dh5kq7j2rwblfcx-patch-2.7.1.drv
>                /gnu/store/q55k342x0rm16cidc4521ffckpab0dzf-sed-4.2.2.drv
>                /gnu/store/qrxglkjsb61pvwjnzinmi7smyacjnc0w-gzip-1.6.drv
>                /gnu/store/1ynv017dz1dxp3y4a7qbjsq80wh503kp-tar-1.27.1.drv

At this point it is probably building all of the above dependencies, but
I understand this can be confusing because there are no messages being
printed.

>>> I am confused with dmd too at I do not know how to list running
>>> services, therefore I can not enable or disable anything as I do not
>>> know what is available.
>>
>> As root, try running ‘deco status dmd’; more info at:
>>
>>  http://www.gnu.org/software/dmd/manual/dmd.html#Invoking-deco
>
>
> It may not look that way, but I'm trying to read the doc, but this was
> really a not obvious to get the list of services by quering dmd
> status, while one has to know it has to query dmd. I was looking for
> something like "deeco list-services"

Yeah.  Actually your feedback is very helpful in improving the doc.
I’ve just done that for this particular example:

  http://git.savannah.gnu.org/cgit/dmd.git/commit/?id=3e516eaea4cb6833c5b9292dce80687541b1aedd

But I’m sure you’ll find other things that are under-documented or
undocumented.  Don’t hesitate to report them.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "profil-drv" error or what am I doing wrong?
  2014-06-19 10:36     ` Ludovic Courtès
@ 2014-06-19 17:37       ` Adam Pribyl
  2014-06-20  8:13         ` Ludovic Courtès
  2014-06-20  8:19         ` Ludovic Courtès
  0 siblings, 2 replies; 7+ messages in thread
From: Adam Pribyl @ 2014-06-19 17:37 UTC (permalink / raw)
  Cc: guix-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2797 bytes --]

On Thu, 19 Jun 2014, Ludovic Courtès wrote:

>> On Thu, 12 Jun 2014, Ludovic Courtès wrote:
>>
>>> What error does it report?
>>
>> This is what is at the end:
>>
>>  makefile:550: recipe for target 'install.perl' failed
>>             make[1]: *** [install.perl] Error 28
>>             make[1]: Leaving directory
>> /tmp/nix-build-perl-5.16.1.drv-0/perl-5.16.1'
>>             makefile:535: recipe for target 'install' failed
>>             make: *** [install] Error 2
>>             phase `install' failed after 90 seconds
>>             builder for
>> /gnu/store/pg7qk32dirrqwagwd12n533v483hyipx-perl-5.16.1.drv' failed
>>              with exit code 1
>
> All this means that it failed to build Perl.  Since it happens during
> the install phase, it may be a no-space-left condition; could you check
> if this is the case?
>
> Could you check the tail of the log file returned by
>
>  guix build --log-file /gnu/store/pg7qk32dirrqwagwd12n533v483hyipx-perl-5.16.1.drv

This produces a log file in .bz2 compressed archive. First I thought bzip2 
is not there, but then I found it is just not linked into any PATH.

But you are probably right, as the qcow is already 1.5GB.
df: cannot read table of mounted file systems: No such file or directory

df /dev/sda1 confirms there is not much space left, it is then pretty hard 
to use guix when there is not a plenty of space to compile. It could be I 
first tried to build packages as user and it consumed additional space.

I started with "clean" qcow again...

>> guix pull
>> prints few messages and then just sits there, doing nothing.
>
> At this point it is probably building all of the above dependencies, but
> I understand this can be confusing because there are no messages being
> printed.

I think it gets stuck for the same reason as any other build - not enought 
space, because the load of the system was 0
guix pull on a clean qcow ends with
  guix pull: error: build failed: build of 
`/gnu/store/ffixc7nqdf5rlydkzi9bv5ylx9y8blh0-guix-latest.drv' failed

  guix build --log-file /gnu/store/ffixc7nqdf5rlydkzi9bv5ylx9y8blh0-guix-latest.drv
  accepted connection from pid 13623, uid 0
  guix build: error: no build log for '/gnu/store/ffixc7nqdf5rlydkzi9bv5ylx9y8blh0-guix-latest.drv'
  1 operations

As everything remains on the disk it looks to me like it is building with
"keep build tree of failed builds"
guix gc cleaned it up.. right? but no clue what gets wrong this time.

However I am probably doomed to not get this rolling.

> But I’m sure you’ll find other things that are under-documented or
> undocumented.  Don’t hesitate to report them.

Of course, as soon I am not drowning myself.

> Thanks,
> Ludo’.

Thank you anyway.

Adam Pribyl

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "profil-drv" error or what am I doing wrong?
  2014-06-19 17:37       ` Adam Pribyl
@ 2014-06-20  8:13         ` Ludovic Courtès
  2014-06-20  8:19         ` Ludovic Courtès
  1 sibling, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2014-06-20  8:13 UTC (permalink / raw)
  To: Adam Pribyl; +Cc: guix-devel

Adam Pribyl <pribyl@lowlevel.cz> skribis:

> On Thu, 19 Jun 2014, Ludovic Courtès wrote:
>
>>> On Thu, 12 Jun 2014, Ludovic Courtès wrote:
>>>
>>>> What error does it report?
>>>
>>> This is what is at the end:
>>>
>>>  makefile:550: recipe for target 'install.perl' failed
>>>             make[1]: *** [install.perl] Error 28
>>>             make[1]: Leaving directory
>>> /tmp/nix-build-perl-5.16.1.drv-0/perl-5.16.1'
>>>             makefile:535: recipe for target 'install' failed
>>>             make: *** [install] Error 2
>>>             phase `install' failed after 90 seconds
>>>             builder for
>>> /gnu/store/pg7qk32dirrqwagwd12n533v483hyipx-perl-5.16.1.drv' failed
>>>              with exit code 1
>>
>> All this means that it failed to build Perl.  Since it happens during
>> the install phase, it may be a no-space-left condition; could you check
>> if this is the case?
>>
>> Could you check the tail of the log file returned by
>>
>>  guix build --log-file /gnu/store/pg7qk32dirrqwagwd12n533v483hyipx-perl-5.16.1.drv
>
> This produces a log file in .bz2 compressed archive. First I thought
> bzip2 is not there, but then I found it is just not linked into any
> PATH.

Right.

> But you are probably right, as the qcow is already 1.5GB.
> df: cannot read table of mounted file systems: No such file or directory
>
> df /dev/sda1 confirms there is not much space left, it is then pretty
> hard to use guix when there is not a plenty of space to compile. It
> could be I first tried to build packages as user and it consumed
> additional space.

OK.

>>> guix pull
>>> prints few messages and then just sits there, doing nothing.
>>
>> At this point it is probably building all of the above dependencies, but
>> I understand this can be confusing because there are no messages being
>> printed.
>
> I think it gets stuck for the same reason as any other build - not
> enought space, because the load of the system was 0

Could be.

> guix pull on a clean qcow ends with
>  guix pull: error: build failed: build of
> /gnu/store/ffixc7nqdf5rlydkzi9bv5ylx9y8blh0-guix-latest.drv' failed
>
>  guix build --log-file /gnu/store/ffixc7nqdf5rlydkzi9bv5ylx9y8blh0-guix-latest.drv
>  accepted connection from pid 13623, uid 0
>  guix build: error: no build log for '/gnu/store/ffixc7nqdf5rlydkzi9bv5ylx9y8blh0-guix-latest.drv'

That ‘guix build --log-file’ fails is weird, unless there was not even
enough space for the log itself.  You could check whether
/var/log/guix/drvs is already filled.

> As everything remains on the disk it looks to me like it is building with
> "keep build tree of failed builds"

The --keep-failed option, which I think is what you’re referring to,
keeps build trees under /tmp/nix-build-*.  If you used that option, you
may want to remove those directories.

> guix gc cleaned it up.. right? but no clue what gets wrong this time.

‘guix gc’ won’t clean /tmp, only /gnu/store.

> However I am probably doomed to not get this rolling.
>
>> But I’m sure you’ll find other things that are under-documented or
>> undocumented.  Don’t hesitate to report them.
>
> Of course, as soon I am not drowning myself.

We won’t let you drown, but you’ll have to be a good swimmer, and be
prepared to occasionally swallow water.  ;-)

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "profil-drv" error or what am I doing wrong?
  2014-06-19 17:37       ` Adam Pribyl
  2014-06-20  8:13         ` Ludovic Courtès
@ 2014-06-20  8:19         ` Ludovic Courtès
  1 sibling, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2014-06-20  8:19 UTC (permalink / raw)
  To: Adam Pribyl; +Cc: guix-devel

BTW, I should point out that you can also try and use Guix on top of
whatever distro you’re using, if that’s something you’re interested in.

That should be relatively easy to set up, it’s non intrusive, and you
wouldn’t run into the disk space issues.

Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-20  8:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-11 16:00 "profil-drv" error or what am I doing wrong? Adam Pribyl
2014-06-12  8:57 ` Ludovic Courtès
2014-06-19  9:06   ` Adam Pribyl
2014-06-19 10:36     ` Ludovic Courtès
2014-06-19 17:37       ` Adam Pribyl
2014-06-20  8:13         ` Ludovic Courtès
2014-06-20  8:19         ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).