unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: guix build freezes
Date: Tue, 05 May 2015 22:18:19 +0200	[thread overview]
Message-ID: <87a8xiwzg4.fsf@gnu.org> (raw)
In-Reply-To: <874mnqx0r0.fsf@mango.localdomain> (Ricardo Wurmus's message of "Tue, 5 May 2015 21:50:11 +0200")

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

      reply	other threads:[~2015-05-05 20:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-05 19:50 guix build freezes Ricardo Wurmus
2015-05-05 20:18 ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a8xiwzg4.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=ricardo.wurmus@mdc-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).