unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* guix build freezes
@ 2015-05-05 19:50 Ricardo Wurmus
  2015-05-05 20:18 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Wurmus @ 2015-05-05 19:50 UTC (permalink / raw)
  To: Guix-devel

Hi Guix,

I have a very weird problem that I don't understand.  "./pre-inst-env
guix build" just sits there doing nothing at all:

    [rwurmus@guix-builder:/localhome/rwurmus-tmp/guix] (531) $ git describe HEAD
    v0.8.1-1597-g4702cec
    [rwurmus@guix-builder:/localhome/rwurmus-tmp/guix] (532) $ time ./pre-inst-env guix build texlive-texmf-2014
    The following file will be downloaded:
       /gnu/store/h1qjkg8bvcdb485q81lw5844szgywpg7-texlive-texmf-2014
    ^C

    real	13m0.888s
    user	0m3.728s
    sys	0m0.364s

Now using the previously "sudo make install"'d version of Guix:

    [rwurmus@guix-builder:/localhome/rwurmus-tmp/guix] (533) $ time guix build texlive-texmf-2014
    guix build: warning: failed to load '(gnu packages ld-wrapper)':
    ERROR: no code for module (gnu packages ld-wrapper)
    /gnu/store/0zx4rfbf58s0fnh4nzcaajdrfwb1ilv5-texlive-texmf-2014

    real	0m24.060s
    user	0m4.004s
    sys	0m0.541s

I can't really say when I last make install'd, but it was probably
around commit 27350ef8b.

I have a feeling I should do "make clean" again and purge everything,
but I thought I should report this anyway.  I should also note that I
develop Guix on a different machine with the *same* network-mounted home
directory.  On guix-builder I make and make install everything from
within a directory on a local disk, but my actual home directory is the
network share, so I suspect that this could all be explained by sharing
some go caches or so.  Could someone please confirm that this is in fact
what's happening?

~~ Ricardo

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

* Re: guix build freezes
  2015-05-05 19:50 guix build freezes Ricardo Wurmus
@ 2015-05-05 20:18 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2015-05-05 20:18 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Guix-devel

Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:

> I have a very weird problem that I don't understand.  "./pre-inst-env
> guix build" just sits there doing nothing at all:
>
>     [rwurmus@guix-builder:/localhome/rwurmus-tmp/guix] (531) $ git describe HEAD
>     v0.8.1-1597-g4702cec
>     [rwurmus@guix-builder:/localhome/rwurmus-tmp/guix] (532) $ time ./pre-inst-env guix build texlive-texmf-2014
>     The following file will be downloaded:
>        /gnu/store/h1qjkg8bvcdb485q81lw5844szgywpg7-texlive-texmf-2014
>     ^C
>
>     real	13m0.888s
>     user	0m3.728s
>     sys	0m0.364s
>
> Now using the previously "sudo make install"'d version of Guix:
>
>     [rwurmus@guix-builder:/localhome/rwurmus-tmp/guix] (533) $ time guix build texlive-texmf-2014
>     guix build: warning: failed to load '(gnu packages ld-wrapper)':
>     ERROR: no code for module (gnu packages ld-wrapper)

(Side note: there’s a stale ld-wrapper.scm file here, hence the warning.
The problem with repeated ‘make install’ is that files are left behind.)

>     /gnu/store/0zx4rfbf58s0fnh4nzcaajdrfwb1ilv5-texlive-texmf-2014
>
>     real	0m24.060s
>     user	0m4.004s
>     sys	0m0.541s
>
> I can't really say when I last make install'd, but it was probably
> around commit 27350ef8b.

Uh, I can’t reproduce it.  Could you try:

  ./pre-inst-env strace -o log guix build texlive-texmf

to see where it’s stuck?

Another issue: 24 seconds is really a *lot*, esp. if there was nothing
to build.  Where did those 20 seconds between user and real time go?
Could it be due to a very slow file system?  Is the daemon socket file
stored on NFS?  (Does that even work?)

> I have a feeling I should do "make clean" again and purge everything,
> but I thought I should report this anyway.  I should also note that I
> develop Guix on a different machine with the *same* network-mounted home
> directory.  On guix-builder I make and make install everything from
> within a directory on a local disk, but my actual home directory is the
> network share, so I suspect that this could all be explained by sharing
> some go caches or so.  Could someone please confirm that this is in fact
> what's happening?

The .go files are loaded either from $prefix or from $builddir (when
using ./pre-inst-env.)  If these are on NFS, that certainly slows things
down, but I don’t think there are other side effects.

HTH,
Ludo’.

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

end of thread, other threads:[~2015-05-05 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 19:50 guix build freezes Ricardo Wurmus
2015-05-05 20:18 ` 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).