From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?SmFuIFN5bsOhxI1law==?= Subject: Re: Test failure when building libarchive-3.1.2 Date: Fri, 20 Nov 2015 15:10:34 +0100 Message-ID: References: <87h9koyfkr.fsf@gnu.org> <87twogixth.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]:48162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzmOb-0000mp-8b for guix-devel@gnu.org; Fri, 20 Nov 2015 09:10:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzmOZ-00043C-Po for guix-devel@gnu.org; Fri, 20 Nov 2015 09:10:37 -0500 In-Reply-To: <87twogixth.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel On Fri, Nov 20, 2015 at 2:51 PM, Ludovic Court=C3=A8s wrote: > Jan Syn=C3=A1=C4=8Dek skribis: > >> On Sat, Nov 14, 2015 at 12:40 PM, Ludovic Court=C3=A8s wr= ote: >>> Jan Syn=C3=A1=C4=8Dek skribis: >>> >>>> Reference files will be read from: >>>> /tmp/nix-build-libarchive-3.1.2.drv-0/libarchive-3.1.2/tar/test >>>> Running tests on: >>>> "/tmp/nix-build-libarchive-3.1.2.drv-0/libarchive-3.1.2/./bsdtar" >>>> Exercising: bsdtar 3.1.2 - libarchive 3.1.2 >>> >>> [...] >>> >>>> 17: test_option_b FAIL >>> >>> Ricardo reported the same issue a while back: >>> >>> https://lists.gnu.org/archive/html/guix-devel/2015-03/msg00182.html >>> >>> What platform is this on, i686? >>> >>> It would be nice to see if this systematically fails. If it is >>> non-deterministic, we should build it with --keep-failed until it fails >>> (removing successful builds with =E2=80=98guix gc -d=E2=80=99), collect= useful info from >>> the build tree, and debug. >>> >>> (You can also work around it by enabling substitutes since Hydra had no >>> problems building it.) >>> >>> Ludo=E2=80=99. >> >> In my case the build fails always. I'm running guix on Fedora 23, x86_64= . > > What file system is this on? The test itself seems to always run in /tmp, which is tmpfs in my case. I t= ried patching it to run in /var/tmp, which is ext4 (on LVM), but that failed as = well. > I=E2=80=99ve run several builds on my x86_64 GuixSD, ext4, but I=E2=80=99= ve failed to > reproduce the test failure. I could reproduce the issue even outside of the guix build process. I downloaded the tarball, extracted it and ran configure + make + make chec= k. The latest git version worked fine, even though the asserts in test_option_= b.c didn't change. > I noticed that libarchive uses =E2=80=98readdir=E2=80=99 calls as-is, wit= hout sorting > directory entries afterwards. Thus, the order of directory entries is > effectively non-deterministic and may change depending on the phase of > the moon. > > This has been reported at: > > https://github.com/libarchive/libarchive/issues/602 > > Could you add the patch that=E2=80=99s given at that URL to the =E2=80=98= patches=E2=80=99 field > or libarchive=E2=80=99s =E2=80=98origin=E2=80=99 form and see if the prob= lem shows up again, > preferably building several times in a row? I built it once and it passed (note that it failed *everytime* I wanted to build it). Maybe a dumb question, but how do I force a rebuild of an already built package?:) > At any rate we=E2=80=99ll probably apply the patch. > > Thanks, > Ludo=E2=80=99. Cheers, --=20 Jan Syn=C3=A1=C4=8Dek