From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: bug#17935: make check failed Date: Sat, 05 Jul 2014 12:48:21 +0400 Message-ID: <87y4w8ry22.fsf@gmail.com> References: <878uo9t9mq.fsf@gmail.com> <87a98pvyj5.fsf@gnu.org> <8738eht23m.fsf@gmail.com> <87tx6wvmkx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3Leh-0001qX-3Z for bug-guix@gnu.org; Sat, 05 Jul 2014 04:49:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3LeZ-00063r-51 for bug-guix@gnu.org; Sat, 05 Jul 2014 04:49:11 -0400 Received: from debbugs.gnu.org ([140.186.70.43]:52230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3LeZ-00063h-1V for bug-guix@gnu.org; Sat, 05 Jul 2014 04:49:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X3LeY-0005kF-7W for bug-guix@gnu.org; Sat, 05 Jul 2014 04:49:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87tx6wvmkx.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 04 Jul 2014 23:30:22 +0200") 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 17935@debbugs.gnu.org Ludovic Court=C3=A8s (2014-07-05 01:30 +0400) wrote: > Alex Kost skribis: > >> guix build: error: build failed: derivation >> /home/alexx/src/guix/test-tmp/store/kaz0wkisszxrjh38znhgks2pc2g7dqgh-gui= le-bootstrap-2.0.drv' >> has incorrect output >> /media/storage/src/guix/test-tmp/store/ym7nnqd4yqk3mn8pg52d19xyy2j3hz54-= guile-bootstrap-2.0', >> should be >> /home/alexx/src/guix/test-tmp/store/zlj0z1dpwl2qccb56rwgdk3k8qnwwaz8-gui= le-bootstrap-2.0' >> 9 operations >> ./test-env: line 1: 9833 Terminated >> "/home/alexx/src/guix/pre-inst-env" "/home/alexx/src/guix/guix-daemon" >> --disable-chroot >> >> >> I don't know if it relates, but my "/home/alexx/src" is a symlink to >> "/media/storage/src". > > Ah yes, I hadn=E2=80=99t noticed that in the error message, but this is a= source > of confusion for the daemon. > > Could you try that command again with this patch: > > diff --git a/test-env.in b/test-env.in > index a3b3536..f11c014 100644 > --- a/test-env.in > +++ b/test-env.in > @@ -27,8 +27,11 @@ > if [ -x "@abs_top_builddir@/guix-daemon" ] > then > NIX_SETUID_HELPER=3D"@abs_top_builddir@/nix-setuid-helper" # normall= y unused > - NIX_IGNORE_SYMLINK_STORE=3D1 # in case the store is a symlink > - NIX_STORE_DIR=3D"@GUIX_TEST_ROOT@/store" > + > + # Canonicalize the store directory name in an attempt to avoid symli= nks in > + # it or its parent directories. See . > + NIX_STORE_DIR=3D"`cd "@GUIX_TEST_ROOT@/store"; pwd -P`" > + > NIX_LOCALSTATE_DIR=3D"@GUIX_TEST_ROOT@/var" > NIX_LOG_DIR=3D"@GUIX_TEST_ROOT@/var/log/guix" > NIX_DB_DIR=3D"@GUIX_TEST_ROOT@/db" > >> Also I have tried guix 0.6 (from ftp://alpha.gnu.org/gnu/guix/) and it >> was built successfully (no fails in "make check"). > > But was it also from this symlinked directory? No, it was compiled from a direct path (no symlinks). I tried to compile guix from git from a path without symlinks and it was successful as well. So apparently the problem is with symlinked paths. As for the symlinked directory, with your patch, "./test-env guix build guile-bootstrap" also failed. Then I tried to start a build process with your patch from the beginning (from "./bootstrap" in a fresh git tree), and I have got 3 fails (without your patch there were 14). "test-suite.log" tells: ./test-env: line 33: cd: /home/alexx/src/guix/test-tmp/store: No such f= ile or directory So I think the problem with the patch is that =E2=80=9C@GUIX_TEST_ROOT@/sto= re=E2=80=9D directory does not exist when =E2=80=9C`cd "@GUIX_TEST_ROOT@/store"; pwd -P= `=E2=80=9D is being invoked. > > Thanks, > Ludo=E2=80=99. -- Alex Kost