From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: tests/builders.scm hangs Date: Sat, 08 Dec 2012 22:32:31 +0100 Message-ID: <87boe4jkls.fsf@gnu.org> References: <201212082013.05047.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThS0h-0002FT-Mq for bug-guix@gnu.org; Sat, 08 Dec 2012 16:32:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThS0g-0007fm-4t for bug-guix@gnu.org; Sat, 08 Dec 2012 16:32:35 -0500 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:18768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThS0f-0007fa-UX for bug-guix@gnu.org; Sat, 08 Dec 2012 16:32:34 -0500 In-Reply-To: <201212082013.05047.andreas@enge.fr> (Andreas Enge's message of "Sat, 8 Dec 2012 20:13:04 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org Hi Andreas, Andreas Enge skribis: > after downloading the lastest git version (a0f16bb), "./autoreconf -vi" a= nd=20 > configuring with > ./configure --prefix=3D/usr/local/guix-git --with-nix- > prefix=3D/usr/local/nix-1.1 > (by the way, would not "--with-nix" be a more standard choice than "--wit= h- > nix-prefix"?) I think --with-FOO-prefix is quite common too. But anyway, the dependency on Nix will soon be removed, as Guix will ship the subset of Nix it depends on (that=E2=80=99s currently in the =E2=80=98nix-integration= =E2=80=99 branch, if you=E2=80=99re curious ;-)). > on Debian testing, "make" passes, but "make check" poses=20 > problems. Some tests pass without the nix-worker daemon running: All the tests that failed actually require a running nix-worker, as you apparently figured out. > When the nix-worker daemon is running, builders.scm hangs. > "ps -ef|grep nix" shows the following list of processes: > root 13947 4755 0 20:03 pts/0 00:00:00 nix-worker --daemon > privat 14031 14026 0 20:06 pts/1 00:00:00 /bin/bash -c list=3D''=20 > list2=3D'tests/base32.log tests/builders.log tests/derivations.log=20 > tests/utils.log tests/build-utils.log tests/packages.log tests/snix.log=20 > tests/union.log tests/guix-build.log tests/guix-download.log tests/guix- > package.log'; for f in $list2; do \ test .log =3D $f && continue; \ i= f=20 > test check-TESTS =3D recheck; then \ test -f $f || continue; \ if= =20 > test -r $f && read line < $f; then \ case $line in FAIL*|XPASS*) : = ;;=20 > *) continue;; esac; \ fi; \ fi; \ if test -z "$list"; then list= =3D$f;=20 > else list=3D"$list $f"; fi; \ done; \ if test check-TESTS =3D recheck && = test - > n "$list"; then \ { am__dry=3Dno; case $MAKEFLAGS in *\\[\ \?]*) echo '= am-- > echo: ; @echo "AM" OK' | make -f - 2>/dev/null | grep '^AM OK$' >/dev/nu= ll=20 > || am__dry=3Dyes;; *) for am__flg in $MAKEFLAGS; do case $am__flg in *=3D= *|--*)=20 > ;; *n*) am__dry=3Dyes; break;; esac; done;; esac; test $am__dry =3D yes; = } ||=20 > rm -f $list || exit 1; \ fi; \ make test-suite.log TEST_LOGS=3D"$list" > privat 14032 14031 0 20:06 pts/1 00:00:00 make test-suite.log=20 > TEST_LOGS=3Dtests/base32.log tests/builders.log tests/derivations.log=20 > tests/utils.log tests/build-utils.log tests/packages.log tests/snix.log=20 > tests/union.log tests/guix-build.log tests/guix-download.log tests/guix- > package.log > root 14061 13947 3 20:06 ? 00:00:00 nix-worker 14060=20=20=20 > root 14062 14061 0 20:06 ? 00:00:00 /usr/bin/perl -w - > I/usr/local/nix-1.1/lib/perl5/site_perl/5.14.2/x86_64-linux-gnu-thread- > multi /usr/local/nix-1.1/libexec/nix/substituters/copy-from-other-stores.= pl=20 > --query > root 14063 14061 0 20:06 ? 00:00:00 /usr/bin/perl -w - > I/usr/local/nix-1.1/lib/perl5/site_perl/5.14.2/x86_64-linux-gnu-thread- > multi /usr/local/nix-1.1/libexec/nix/substituters/download-using- > manifests.pl --query > root 14064 14061 0 20:06 ? 00:00:00 guile --no-auto-compile -= L=20 > /nix/store/7asnahbrlirf5dwyd16w0qpwciv3kj3z-module-import=20 > /nix/store/q41qjkxi1h8w6qjgv6j2vcv9rf9ka4pg-make-3.82.tar.bz2-guile-build= er (Note that =E2=80=98make check=E2=80=99 is expected to take some time the f= irst time you run it (5=E2=80=9310 mn), because it downloads and builds a few things.) My guess is that it=E2=80=99s one of the substituters above that=E2=80=99s = hanging, but I don=E2=80=99t know why exactly. Could you try running nix-worker like th= is: NIX_SUBSTITUTERS=3D"" nix-worker --daemon & > I tried to execute the last few ones by hand. > /usr/local/nix-1.1/libexec/nix/substituters/copy-from-other-stores.pl -- > query > and > /usr/local/nix-1.1/libexec/nix/substituters/download-using-manifests.pl -- > query > do not return. So maybe there is a problem with my nix installation? No, it=E2=80=99s normal: these scripts normally interact with nix-worker ov= er stdin/stdout. > guile --no-auto-compile -L /nix/store/7asnahbrlirf5dwyd16w0qpwciv3kj3z- > module-import /nix/store/q41qjkxi1h8w6qjgv6j2vcv9rf9ka4pg- > make-3.82.tar.bz2-guile-builder > results in > starting download of `#f' from=20 Yes, that=E2=80=99s expected too: this script expects the =E2=80=98out=E2= =80=99 environment variable to be defined to the name of the output file. Thanks! Ludo=E2=80=99.