From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 16 11:47:49 2019 Received: (at submit) by debbugs.gnu.org; 16 Jul 2019 15:47:49 +0000 Received: from localhost ([127.0.0.1]:50995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnPgD-0004Mp-8w for submit@debbugs.gnu.org; Tue, 16 Jul 2019 11:47:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:44154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnPgB-0004Mh-27 for submit@debbugs.gnu.org; Tue, 16 Jul 2019 11:47:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38964) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnPg9-0007NY-TP for guix-patches@gnu.org; Tue, 16 Jul 2019 11:47:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnPg8-0000AY-PK for guix-patches@gnu.org; Tue, 16 Jul 2019 11:47:45 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:44736) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hnPg8-000059-Hr for guix-patches@gnu.org; Tue, 16 Jul 2019 11:47:44 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id F3B644F3C3; Tue, 16 Jul 2019 17:47:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id 64Hka7JjEr98; Tue, 16 Jul 2019 17:47:40 +0200 (CEST) From: Robert Vollmert To: guix-patches@gnu.org Subject: [PATCH 0/2] Add GHC 8.6.5 Date: Tue, 16 Jul 2019 17:47:32 +0200 Message-Id: <20190716154734.22605-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.241.60.212 X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: Robert Vollmert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Seemed like a good idea to have current GHC packaged. This almost works, except for two real test failures (not sure if these are just on my syste= m), and some more "stat failures". It would be neat if someone could run the build and see if they get the same failures. Unexpected results from: TEST=3D"T5631 T8108 T9203 T9630 haddock.Cabal haddock.base parsing001 pos= ix010" SUMMARY for test run started at Tue Jul 16 12:47:07 2019 UTC 2:44:36 spent to go through 6525 total tests, which gave rise to 25446 test cases, of which 18529 were skipped 41 had missing libraries 6782 expected passes 86 expected failures 0 caused framework failures 0 caused framework warnings 0 unexpected passes 2 unexpected failures 6 unexpected stat failures Unexpected failures: ../../libraries/unix/tests/T8108.run T8108 [bad stderr] (= normal) ../../libraries/unix/tests/libposix/posix010.run posix010 [bad exit c= ode] (normal) Unexpected stat failures: perf/compiler/T5631.run T5631 [stat too good] (normal) perf/compiler/parsing001.run parsing001 [stat too good] (normal) perf/compiler/T9630.run T9630 [stat not good enough] (normal) perf/haddock/haddock.base.run haddock.base [stat too good] (normal) perf/haddock/haddock.Cabal.run haddock.Cabal [stat too good] (normal) perf/should_run/T9203.run T9203 [stat too good] (normal) First failure: cd "../../libraries/unix/tests/T8108.run" && "/tmp/guix-build-ghc-8.6.5.= drv-0/ghc-8.6.5/inplace/bin/ghc-stage2" -o T8108 T8108.hs -dcore-lint -dc= mm-lint -no-user-package-db -rtso pts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-= color=3Dnever -fno-diagnostics-show-caret -dno-debug-output -package uni= x cd "../../libraries/unix/tests/T8108.run" && ./T8108 =20 Actual stderr output differs from expected: diff -uw "/dev/null" "../../libraries/unix/tests/T8108.run/T8108.run.stde= rr.normalised" *** unexpected failure for T8108(normal) Second failure: cd "../../libraries/unix/tests/libposix/posix010.run" && ./posix010 =20 Wrong exit code for posix010(normal)(expected 0 , actual 1 ) Stderr ( posix010 ): posix010: getUserEntryForName: does not exist (no such user) *** unexpected failure for posix010(normal) Dmesg output, possibly related: [250906.659949] derefnull[32322]: segfault at 0 ip 0000000000405bd1 sp 00= 007fffffff90e8 error 4 in derefnull[402000+88000] [250906.659980] Code: 00 00 00 e9 99 4a 07 00 90 00 00 00 00 00 00 00 00 = 1e 00 00 00 00 00 00 00 49 83 c4 10 4d 3b a5 58 03 00 00 77 d2 48 8b 43 0= 7 <48> 8b 00 4 9 c7 44 24 f8 98 3c 46 00 49 89 04 24 49 8d 5c 24 f9 48 [250908.941498] traps: divbyzero[32344] trap divide error ip:46308f sp:7f= ffffff90e8 error:0 in divbyzero[402000+88000] Robert Vollmert (2): gnu: Rename ghc-8 to ghc-8.4 gnu: Add GHC 8.6.5 gnu/packages/haskell.scm | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) --=20 2.20.1 (Apple Git-117) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 16 11:48:53 2019 Received: (at 36692) by debbugs.gnu.org; 16 Jul 2019 15:48:53 +0000 Received: from localhost ([127.0.0.1]:51000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnPhE-0004P6-Oc for submit@debbugs.gnu.org; Tue, 16 Jul 2019 11:48:52 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:43318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnPhD-0004Or-CW for 36692@debbugs.gnu.org; Tue, 16 Jul 2019 11:48:51 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id A5F14A0D16; Tue, 16 Jul 2019 17:48:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id X4VZmCC6kj1d; Tue, 16 Jul 2019 17:48:44 +0200 (CEST) From: Robert Vollmert To: 36692@debbugs.gnu.org Subject: [PATCH 1/2] gnu: Rename ghc-8 to ghc-8.4 Date: Tue, 16 Jul 2019 17:48:40 +0200 Message-Id: <20190716154841.22666-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36692 Cc: Robert Vollmert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Seems misleading to have ghc-8 pointing at ghc-8.4, if ghc-8.6 is also packaged. * gnu/packages/haskell.scm (ghc-8): Rename to ghc-8.4. (ghc): Refer to ghc-8.4. --- gnu/packages/haskell.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index a5c1aa27da..09618738b6 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -440,7 +440,7 @@ interactive environment for the functional language Haskell.") interactive environment for the functional language Haskell.") (license license:bsd-3))) -(define-public ghc-8 +(define-public ghc-8.4 (package (inherit ghc-8.0) (name "ghc") (version "8.4.3") @@ -572,7 +572,7 @@ interactive environment for the functional language Haskell.") (file-pattern ".*\\.conf\\.d$") (file-type 'directory)))))) -(define-public ghc ghc-8) +(define-public ghc ghc-8.4) (define-public ghc-hostname (package -- 2.20.1 (Apple Git-117) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 16 11:48:57 2019 Received: (at 36692) by debbugs.gnu.org; 16 Jul 2019 15:48:57 +0000 Received: from localhost ([127.0.0.1]:51003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnPhJ-0004PR-0p for submit@debbugs.gnu.org; Tue, 16 Jul 2019 11:48:57 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:17186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnPhH-0004Oy-IX for 36692@debbugs.gnu.org; Tue, 16 Jul 2019 11:48:56 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 01D6350A72; Tue, 16 Jul 2019 17:48:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id cEy9DuEJ9KEn; Tue, 16 Jul 2019 17:48:46 +0200 (CEST) From: Robert Vollmert To: 36692@debbugs.gnu.org Subject: [PATCH 2/2] gnu: Add GHC 8.6.5 Date: Tue, 16 Jul 2019 17:48:41 +0200 Message-Id: <20190716154841.22666-2-rob@vllmrt.net> In-Reply-To: <20190716154841.22666-1-rob@vllmrt.net> References: <20190716154841.22666-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36692 Cc: Robert Vollmert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) This is exactly like GHC 8.4, except for the sources, and depending on ghc-8.4 as ghc-bootstrap, since GHC 8.6 expects at least version 8.2. * gnu/packages/haskell.scm (ghc-8.6): New field. --- gnu/packages/haskell.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 09618738b6..a8657f0b97 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -572,6 +572,33 @@ interactive environment for the functional language Haskell.") (file-pattern ".*\\.conf\\.d$") (file-type 'directory)))))) +(define-public ghc-8.6 + (package (inherit ghc-8.4) + (name "ghc") + (version "8.6.5") + (source + (origin + (method url-fetch) + (uri (string-append "https://www.haskell.org/ghc/dist/" + version "/" name "-" version "-src.tar.xz")) + (sha256 + (base32 "0qg3zsmbk4rkwkc3jpas3zs74qaxmw4sp4v1mhsbj0a0dzls2jjd")))) + (native-inputs + `(("perl" ,perl) + ("python" ,python) ; for tests + ("ghostscript" ,ghostscript) ; for tests + ;; GHC 8.6.5 must be built with GHC >= 8.2. + ("ghc-bootstrap" ,ghc-8.4) + ("ghc-testsuite" + ,(origin + (method url-fetch) + (uri (string-append + "https://www.haskell.org/ghc/dist/" + version "/" name "-" version "-testsuite.tar.xz")) + (sha256 + (base32 + "0pw9r91g2np3i806g2f4f8z4jfdd7mx226cmdizk4swa7av1qf91")))))))) + (define-public ghc ghc-8.4) (define-public ghc-hostname -- 2.20.1 (Apple Git-117) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 16 12:01:07 2019 Received: (at 36692) by debbugs.gnu.org; 16 Jul 2019 16:01:07 +0000 Received: from localhost ([127.0.0.1]:51008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnPt5-0004ql-69 for submit@debbugs.gnu.org; Tue, 16 Jul 2019 12:01:07 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:30664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnPt0-0004pv-V1 for 36692@debbugs.gnu.org; Tue, 16 Jul 2019 12:01:05 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id EBCCDA1050 for <36692@debbugs.gnu.org>; Tue, 16 Jul 2019 18:00:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id 4E3IthbkvZe1 for <36692@debbugs.gnu.org>; Tue, 16 Jul 2019 18:00:53 +0200 (CEST) From: Robert Vollmert Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: test failures Message-Id: <1A10CE34-C9D6-4ECD-AA58-C7681043EBEF@vllmrt.net> Date: Tue, 16 Jul 2019 18:00:51 +0200 To: 36692@debbugs.gnu.org X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36692 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) I was able to run both tests from the build directory in /tmp, and they both passed fine. Also they both involve user ids, I suspect those might differ in the build container? main =3D do void $ forkIO $ forever $ getGroupEntryForID 0 void $ forkIO $ forever $ getGroupEntryForID 0 threadDelay (3*1000*1000) main =3D do root <- getUserEntryForName "root" putStrLn (ue2String root) root' <- getUserEntryForID (userID root) putStrLn (ue2String root') if homeDirectory root =3D=3D homeDirectory root' && userShell root =3D=3D userShell root' then putStrLn "OK" else putStrLn =E2=80=9CMismatch" From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 16 12:28:39 2019 Received: (at 36692) by debbugs.gnu.org; 16 Jul 2019 16:28:39 +0000 Received: from localhost ([127.0.0.1]:51053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnQJh-0005nx-KO for submit@debbugs.gnu.org; Tue, 16 Jul 2019 12:28:37 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:55575) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnQJe-0005nc-6d for 36692@debbugs.gnu.org; Tue, 16 Jul 2019 12:28:35 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id E306A21B24; Tue, 16 Jul 2019 12:28:28 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 16 Jul 2019 12:28:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm3; bh=yt0jUda5+raVD4gZAf516lWsme KbK/w7O3EbYjB3KQ4=; b=LU3TUv7864U6hYXkvA9yhu7a8NlDNl4QpdwBKbMQ3B sExUFl2O4DpLhgYJQFtdZ2n/AIhAGba1WEx6XAqi87K7/fb++LWKo47erxpZLoWt /0vmFYMPu05g1reqqDZmr3XXubbA8FflWEKNiDoVs9pVoNJJ20csawKS+S4uG5Ar PnKv2BgDgYJG4/NInS4tsjoytcAG9wRFIt2rjeJcwR3j7eXji/TF/iTy8xKdEHRt 3m71XxooEYHyKU0kPYJGppjlEj28hojSQgm2OFuWYHgJ0eecnim1keUbcrQgunTz fqIXv/cWiacFStWlAUGilyTELesB7WP3mou0DVGGRZcA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=yt0jUd a5+raVD4gZAf516lWsmeKbK/w7O3EbYjB3KQ4=; b=Dguucoa0JU1L5rVtiiHbi0 20A61ItiH7pV8lBsKJjKB2pKvdGHqaPQhkFqB7hoImoqZhI/NhBSQ82y+QZXwgdv fNdm2Dvrc79aj/ldMqMzQSAa/doWzZolYjE6QgIyQVbU3ekWSl/uC3v7up6RBc4c jKit+YIJLN1VsRSdbusnqD73QoDjR+l2iri/fb0Xp3BBlYshyk1GVaK7pHPSIC8F o0pmKCvUgajKkjHlY2Lhi3jWiOnid4x0atUaI37xPHrAgydnGq5Y67/mQiv0dDcv MNnkVluqIRi2e75XAy3DlIcWODNXXkZaByyC11AOWQMReId6rMlCKBmcEHeil+JQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddriedtgddutdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffgffkfggtgesghdtre ertderjeenucfhrhhomhepofgrrhhiuhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghs thhmrghilhdrtghomheqnecukfhppeeivddrudeirddvvdeirddugedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhmnecuvehluhhs thgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 0E38380068; Tue, 16 Jul 2019 12:28:27 -0400 (EDT) From: Marius Bakke To: Robert Vollmert , 36692@debbugs.gnu.org Subject: Re: [bug#36692] test failures In-Reply-To: <1A10CE34-C9D6-4ECD-AA58-C7681043EBEF@vllmrt.net> References: <20190716154734.22605-1-rob@vllmrt.net> <1A10CE34-C9D6-4ECD-AA58-C7681043EBEF@vllmrt.net> User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu) Date: Tue, 16 Jul 2019 18:28:25 +0200 Message-ID: <87tvbm54gm.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36692 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Robert Vollmert writes: > I was able to run both tests from the build directory in /tmp, > and they both passed fine. Also they both involve user ids, I > suspect those might differ in the build container? > > main =3D do > void $ forkIO $ forever $ getGroupEntryForID 0 > void $ forkIO $ forever $ getGroupEntryForID 0 > threadDelay (3*1000*1000) > > main =3D do > root <- getUserEntryForName "root" > putStrLn (ue2String root) > root' <- getUserEntryForID (userID root) > putStrLn (ue2String root') > if homeDirectory root =3D=3D homeDirectory root' && > userShell root =3D=3D userShell root' > then putStrLn "OK" > else putStrLn =E2=80=9CMismatch" The only reliable user ID available in the build container is 'nobody' with UID and GID 65534 and the (see nix/libstore/build.cc:1862). You can likely patch these tests to refer to that instead. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl0t+ykACgkQoqBt8qM6 VPon2Qf+Nk2Qynzdye1whkGHoUtpnMlAJloOMWn9STaG7c64My3WdaiVHtudWVXN sORQHwpReY3JwifL0ZgpTS1j+8j7RrlEG9G+I9kfbQb0y6qQF+hn66cu1H6Szq5y eW6TFqPRf4HP9tf7mhqERVuHXD63pmIht0/XNkOCtuBPPP+pf1cmlVXf3u3rcKvF bsco+RgFZL1YyLxlNLtTqq54OLWoZPZaUg+2Y4KEXhSwCnXylSlmF7EEgSBlVlwf hQOk6pcxjxwjjr9qbWuKI/QxmMzL9inScqp8ojj5JLQLJkI9kQEjI72xCfOViFpA 52X47U532BPEDz5nPwvc7v/ZoV/R6g== =/6Yt -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 16 12:36:49 2019 Received: (at 36692) by debbugs.gnu.org; 16 Jul 2019 16:36:49 +0000 Received: from localhost ([127.0.0.1]:51058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnQRc-00064E-PF for submit@debbugs.gnu.org; Tue, 16 Jul 2019 12:36:49 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:58938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnQRa-00063z-TS for 36692@debbugs.gnu.org; Tue, 16 Jul 2019 12:36:47 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id D2D62506CD; Tue, 16 Jul 2019 18:36:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id JtA-3PXj64Bf; Tue, 16 Jul 2019 18:36:36 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [bug#36692] test failures From: Robert Vollmert In-Reply-To: <87tvbm54gm.fsf@devup.no> Date: Tue, 16 Jul 2019 18:36:35 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <7CE61390-AB3B-42B9-B453-3C9D1FDD10D2@vllmrt.net> References: <20190716154734.22605-1-rob@vllmrt.net> <1A10CE34-C9D6-4ECD-AA58-C7681043EBEF@vllmrt.net> <87tvbm54gm.fsf@devup.no> To: Marius Bakke X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36692 Cc: 36692@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > On 16. Jul 2019, at 18:28, Marius Bakke wrote: >=20 > Robert Vollmert writes: >=20 >> I was able to run both tests from the build directory in /tmp, >> and they both passed fine. Also they both involve user ids, I >> suspect those might differ in the build container? >>=20 >> main =3D do >> void $ forkIO $ forever $ getGroupEntryForID 0 >> void $ forkIO $ forever $ getGroupEntryForID 0 >> threadDelay (3*1000*1000) >>=20 >> main =3D do >> root <- getUserEntryForName "root" >> putStrLn (ue2String root) >> root' <- getUserEntryForID (userID root) >> putStrLn (ue2String root') >> if homeDirectory root =3D=3D homeDirectory root' && >> userShell root =3D=3D userShell root' >> then putStrLn "OK" >> else putStrLn =E2=80=9CMismatch" >=20 > The only reliable user ID available in the build container is 'nobody' > with UID and GID 65534 and the (see nix/libstore/build.cc:1862). >=20 > You can likely patch these tests to refer to that instead. Thanks, I=E2=80=99ll give that a shot! There=E2=80=99s something I don=E2=80=99t understand: Comments above the = definition of ghc-7 mention test failures, particularly one of these (posix010): ;; - Test posix010 tries to check the existence of a user on the system: ;; getUserEntryForName: does not exist (no such user) But I don=E2=80=99t see any place in the definitions of any of the GHC = packages (ghc-7, ghc-8.0, ghc-8.4) that patch any tests out, and tests aren=E2=80=99= t disabled either. So how can these packages apparently be fine? From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 16 12:45:41 2019 Received: (at 36692) by debbugs.gnu.org; 16 Jul 2019 16:45:41 +0000 Received: from localhost ([127.0.0.1]:51065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnQaC-0006KH-R9 for submit@debbugs.gnu.org; Tue, 16 Jul 2019 12:45:41 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnQaA-0006Jx-Tv for 36692@debbugs.gnu.org; Tue, 16 Jul 2019 12:45:39 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7416A21F8E; Tue, 16 Jul 2019 12:45:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 16 Jul 2019 12:45:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm3; bh=kldq6NBRoqm8kENKygwbpR5Jci f1hMS6jNaataeSiUU=; b=MdW/sd7+Fqo5XvMFbBjuuk5or6AiJhtW8wQ3BJpxOt 0i7WqeZpXI7/xQVh50GzMHwvSXt+orUAPywxnJKhuWUV03uGsuB7L1v8WNbyDUws 7lAfNkVLWdSgX66Ey97Eusbgo3OkIgIYjVkBDbohY/TO91kFDApjRwFVCNLzZmBa ntgn5BKsf3cHnC4oVoFRc3AUouYdrIjc2q8e0m7/jpcBDYz8jjeoxHL8vNyz6cF2 cK7BRGtP0URE+uf8zNjmMPNTC4gZ6O1Auq717eL4bxmQPdsctBOKbB94qUrkUkRy yvkmWECJzt9iNp4XTfPHghqIRr+4GBtP/WcYJiqu5YuA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=kldq6N BRoqm8kENKygwbpR5Jcif1hMS6jNaataeSiUU=; b=uJOEOCtqctwVpU9q1Znr6m kanuj4NQfioxF1S5Mhn88g0w1WEtqyoh/bcqo1BbWURswS1lCrpvwQNrplVv7JIQ 0bsEzvBE69FvGZXozsEmtCGujnDP7hDuLbR62KFi4M1qCEo23Vk8Yu0+kmMV5uF4 0RmRCSag2wflTDormD5CIHf44OiCG0flqJtBF4dAbZeCee7b3dMCbdvtgfVKkUmp ScUwfYg5fmsM8Z8UHDZyR/uoG19u1mqpUeLGQfMewbIo+o7qgdzhgWMsahduWQ4n eEax1EuyLgXzggydaQhqgLhH2RQZI5sov8ryNe6q9PvrGq18o/B82yjDqgdbk3CQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddriedtgddutdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffgffkfggtgesghdtre ertderjeenucfhrhhomhepofgrrhhiuhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghs thhmrghilhdrtghomheqnecuffhomhgrihhnpehgnhhurdhorhhgnecukfhppeeivddrud eirddvvdeirddugedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmsggrkhhkvgesfhgr shhtmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id B6D6738008B; Tue, 16 Jul 2019 12:45:32 -0400 (EDT) From: Marius Bakke To: Robert Vollmert Subject: Re: [bug#36692] test failures In-Reply-To: <7CE61390-AB3B-42B9-B453-3C9D1FDD10D2@vllmrt.net> References: <20190716154734.22605-1-rob@vllmrt.net> <1A10CE34-C9D6-4ECD-AA58-C7681043EBEF@vllmrt.net> <87tvbm54gm.fsf@devup.no> <7CE61390-AB3B-42B9-B453-3C9D1FDD10D2@vllmrt.net> User-Agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu) Date: Tue, 16 Jul 2019 18:45:31 +0200 Message-ID: <87o91u53o4.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36692 Cc: 36692@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Robert Vollmert writes: >> On 16. Jul 2019, at 18:28, Marius Bakke wrote: >>=20 >> Robert Vollmert writes: >>=20 >>> I was able to run both tests from the build directory in /tmp, >>> and they both passed fine. Also they both involve user ids, I >>> suspect those might differ in the build container? >>>=20 >>> main =3D do >>> void $ forkIO $ forever $ getGroupEntryForID 0 >>> void $ forkIO $ forever $ getGroupEntryForID 0 >>> threadDelay (3*1000*1000) >>>=20 >>> main =3D do >>> root <- getUserEntryForName "root" >>> putStrLn (ue2String root) >>> root' <- getUserEntryForID (userID root) >>> putStrLn (ue2String root') >>> if homeDirectory root =3D=3D homeDirectory root' && >>> userShell root =3D=3D userShell root' >>> then putStrLn "OK" >>> else putStrLn =E2=80=9CMismatch" >>=20 >> The only reliable user ID available in the build container is 'nobody' >> with UID and GID 65534 and the (see nix/libstore/build.cc:1862). >>=20 >> You can likely patch these tests to refer to that instead. > > Thanks, I=E2=80=99ll give that a shot! > > > There=E2=80=99s something I don=E2=80=99t understand: Comments above the = definition > of ghc-7 mention test failures, particularly one of these (posix010): > > ;; - Test posix010 tries to check the existence of a user on the system: > ;; getUserEntryForName: does not exist (no such user) > > But I don=E2=80=99t see any place in the definitions of any of the GHC pa= ckages > (ghc-7, ghc-8.0, ghc-8.4) that patch any tests out, and tests aren=E2=80= =99t > disabled either. So how can these packages apparently be fine? It looks like failing tests don't cause these builds to fail for some reason. Here is an excerpt from the GHC 7 build log on 'core-updates' [0]: Unexpected results from: TEST=3D"T8108 process002 process001 posix010 exec_signals T9203 T9961 parsi= ng001 haddock.base" OVERALL SUMMARY for test run started at Wed Jul 10 09:03:57 2019 UTC 0:59:45 spent to go through 4434 total tests, which gave rise to 17996 test cases, of which 13907 were skipped 49 had missing libraries 3989 expected passes 42 expected failures 1 caused framework failures 0 unexpected passes 5 unexpected failures 4 unexpected stat failures Unexpected failures: ../../libraries/process/tests process001 [bad exit code] (normal) ../../libraries/process/tests process002 [bad exit code] (normal) ../../libraries/unix/tests T8108 [bad stderr] (normal) ../../libraries/unix/tests/libposix posix010 [bad exit code] (normal) rts exec_signals [bad exit code] (norma= l) Unexpected stat failures: perf/compiler T9961 [stat not good enough] (normal) perf/compiler parsing001 [stat too good] (normal) perf/haddock haddock.base [stat too good] (normal) perf/should_run T9203 [stat too good] (normal) make[2]: Leaving directory '/tmp/guix-build-ghc-7.10.2.drv-0/ghc-7.10.2/tes= tsuite/tests' make[1]: Leaving directory '/tmp/guix-build-ghc-7.10.2.drv-0/ghc-7.10.2/tes= tsuite/tests' phase `check' succeeded after 3588.0 seconds [0]: https://ci.guix.gnu.org/log/42f20g43jaxs27jd407wn6fad9cpwjf7-ghc-7.10.2 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl0t/ysACgkQoqBt8qM6 VPqTCQgAgs8QINEvfBdfW6aXzqnzs1DihHyq4GQpK1C1KjD8lQQhU9Gx6U3ysI56 SqIAjPCr0odOAeEQXjymcbmidfDPkzl6Q/qp6WnP52yEwq99oHcyhKeTe1g+HF2X 8x0uriQP8TfdE5mgeXQnXdWcZg+9vr0aZmVVDcRdRsAd4CdkB9QAJLXALtnOqzND 0r8Vnl/77m/tzJNEwjo5dUsSh/ZENYD8YRqLxuQSZV7FTA8HZBA2AoSf3PwiOtTm ahAIVk+yKLniRhgnndYykAstK1fEh+iqOf4rDNkP5Z3Aqz9pamdYUNhWfadlhbxQ neoK9as6e6uoC7SzjIfTeAjWRGAkmw== =igMk -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 16 14:58:55 2019 Received: (at 36692) by debbugs.gnu.org; 16 Jul 2019 18:58:55 +0000 Received: from localhost ([127.0.0.1]:51126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnSf8-0001kb-MX for submit@debbugs.gnu.org; Tue, 16 Jul 2019 14:58:54 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:48364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnSf6-0001kA-RM for 36692@debbugs.gnu.org; Tue, 16 Jul 2019 14:58:53 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 9B0605090E; Tue, 16 Jul 2019 20:58:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id tSetb96zSjhR; Tue, 16 Jul 2019 20:58:45 +0200 (CEST) From: Robert Vollmert To: 36692@debbugs.gnu.org Subject: [PATCH 2/2] gnu: ghc@8.6.5: Skip failing tests Date: Tue, 16 Jul 2019 20:58:36 +0200 Message-Id: <20190716185836.23128-2-rob@vllmrt.net> In-Reply-To: <20190716185836.23128-1-rob@vllmrt.net> References: <20190716185836.23128-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36692 Cc: Robert Vollmert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) These two tests require the existence of user root with id 0. * gnu/packages/haskell.scm (ghc-8.6): Add phase 'skip-tests. --- gnu/packages/haskell.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 0d53f16b2a..e672ea9232 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -636,6 +636,14 @@ interactive environment for the functional language Haskell.") (assoc-ref inputs "ghc-testsuite") "--strip-components=1") #t)) + ;; These two tests refer to the root user, which doesn't exist. + (add-after 'unpack-testsuite 'skip-tests + (lambda _ + (substitute* "libraries/unix/tests/all.T" + (("^test\\('T8108'") "# guix skipped: test('T8108'")) + (substitute* "libraries/unix/tests/libposix/all.T" + (("^test\\('posix010'") "# guix skipped: test('posix010'")) + #t)) ;; This phase patches the 'ghc-pkg' command so that it sorts the list ;; of packages in the binary cache it generates. (add-before 'build 'fix-ghc-pkg-nondeterminism -- 2.20.1 (Apple Git-117) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 16 14:58:58 2019 Received: (at 36692) by debbugs.gnu.org; 16 Jul 2019 18:58:58 +0000 Received: from localhost ([127.0.0.1]:51128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnSfC-0001kr-0t for submit@debbugs.gnu.org; Tue, 16 Jul 2019 14:58:58 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:43846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnSf8-0001kG-2O for 36692@debbugs.gnu.org; Tue, 16 Jul 2019 14:58:54 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 4CAE6A1046; Tue, 16 Jul 2019 20:58:48 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id sjhN7ZdJKn2g; Tue, 16 Jul 2019 20:58:42 +0200 (CEST) From: Robert Vollmert To: 36692@debbugs.gnu.org Subject: [PATCH 1/2] gnu: ghc@8.6.5: Duplicate build arguments from ghc-8.4 Date: Tue, 16 Jul 2019 20:58:35 +0200 Message-Id: <20190716185836.23128-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36692 Cc: Robert Vollmert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) In preparation of skipping tests. * gnu/packages/haskell.scm (ghc-8.6): Copy argument, native-search-paths from ghc-8.4. --- gnu/packages/haskell.scm | 99 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 98 insertions(+), 1 deletion(-) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 65d8d75950..0d53f16b2a 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -597,7 +597,104 @@ interactive environment for the functional language Haskell.") version "/" name "-" version "-testsuite.tar.xz")) (sha256 (base32 - "0pw9r91g2np3i806g2f4f8z4jfdd7mx226cmdizk4swa7av1qf91")))))))) + "0pw9r91g2np3i806g2f4f8z4jfdd7mx226cmdizk4swa7av1qf91")))))) + (arguments + `(#:test-target "test" + ;; We get a smaller number of test failures by disabling parallel test + ;; execution. + #:parallel-tests? #f + + ;; The DSOs use $ORIGIN to refer to each other, but (guix build + ;; gremlin) doesn't support it yet, so skip this phase. + #:validate-runpath? #f + + ;; Don't pass --build=, because the configure script + ;; auto-detects slightly different triplets for --host and --target and + ;; then complains that they don't match. + #:build #f + + #:configure-flags + (list + (string-append "--with-gmp-libraries=" + (assoc-ref %build-inputs "gmp") "/lib") + (string-append "--with-gmp-includes=" + (assoc-ref %build-inputs "gmp") "/include") + "--with-system-libffi" + (string-append "--with-ffi-libraries=" + (assoc-ref %build-inputs "libffi") "/lib") + (string-append "--with-ffi-includes=" + (assoc-ref %build-inputs "libffi") "/include") + (string-append "--with-curses-libraries=" + (assoc-ref %build-inputs "ncurses") "/lib") + (string-append "--with-curses-includes=" + (assoc-ref %build-inputs "ncurses") "/include")) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'unpack-testsuite + (lambda* (#:key inputs #:allow-other-keys) + (invoke "tar" "xvf" + (assoc-ref inputs "ghc-testsuite") + "--strip-components=1") + #t)) + ;; This phase patches the 'ghc-pkg' command so that it sorts the list + ;; of packages in the binary cache it generates. + (add-before 'build 'fix-ghc-pkg-nondeterminism + (lambda _ + (substitute* "utils/ghc-pkg/Main.hs" + (("confs = map \\(path \\) \\$ filter \\(\".conf\" `isSuffixOf`\\) fs") + "confs = map (path ) $ filter (\".conf\" `isSuffixOf`) (sort fs)")) + #t)) + (add-after 'unpack-testsuite 'fix-shell-wrappers + (lambda _ + (substitute* '("driver/ghci/ghc.mk" + "utils/mkdirhier/ghc.mk" + "rules/shell-wrapper.mk") + (("echo '#!/bin/sh'") + (format #f "echo '#!~a'" (which "sh")))) + #t)) + ;; This is necessary because the configure system no longer uses + ;; “AC_PATH_” but “AC_CHECK_”, setting the variables to just the + ;; plain command names. + (add-before 'configure 'set-target-programs + (lambda* (#:key inputs #:allow-other-keys) + (let ((binutils (assoc-ref inputs "target-binutils")) + (gcc (assoc-ref inputs "target-gcc")) + (ld-wrapper (assoc-ref inputs "target-ld-wrapper"))) + (setenv "CC" (string-append gcc "/bin/gcc")) + (setenv "CXX" (string-append gcc "/bin/g++")) + (setenv "LD" (string-append ld-wrapper "/bin/ld")) + (setenv "NM" (string-append binutils "/bin/nm")) + (setenv "RANLIB" (string-append binutils "/bin/ranlib")) + (setenv "STRIP" (string-append binutils "/bin/strip")) + ;; The 'ar' command does not follow the same pattern. + (setenv "fp_prog_ar" (string-append binutils "/bin/ar")) + #t))) + (add-before 'build 'fix-references + (lambda _ + (substitute* '("testsuite/timeout/Makefile" + "testsuite/timeout/timeout.py" + "testsuite/timeout/timeout.hs" + "testsuite/tests/programs/life_space_leak/life.test" + ;; libraries + "libraries/process/System/Process/Posix.hs" + "libraries/process/tests/process001.hs" + "libraries/process/tests/process002.hs" + "libraries/unix/cbits/execvpe.c") + (("/bin/sh") (which "sh")) + (("/bin/ls") (which "ls")) + (("/bin/rm") "rm")) + #t)) + (add-before 'build 'fix-environment + (lambda _ + (unsetenv "GHC_PACKAGE_PATH") + (setenv "CONFIG_SHELL" (which "bash")) + #t))))) + (native-search-paths (list (search-path-specification + (variable "GHC_PACKAGE_PATH") + (files (list + (string-append "lib/ghc-" version))) + (file-pattern ".*\\.conf\\.d$") + (file-type 'directory)))))) (define-public ghc ghc-8.4) -- 2.20.1 (Apple Git-117) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 16 15:00:44 2019 Received: (at 36692) by debbugs.gnu.org; 16 Jul 2019 19:00:45 +0000 Received: from localhost ([127.0.0.1]:51133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnSgu-0001py-JO for submit@debbugs.gnu.org; Tue, 16 Jul 2019 15:00:44 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:54808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnSgs-0001pd-Gi for 36692@debbugs.gnu.org; Tue, 16 Jul 2019 15:00:43 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id CA35850600; Tue, 16 Jul 2019 21:00:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id U3bHfa8gQ4DX; Tue, 16 Jul 2019 21:00:31 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [bug#36692] test failures From: Robert Vollmert In-Reply-To: <87tvbm54gm.fsf@devup.no> Date: Tue, 16 Jul 2019 21:00:31 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <60B55E47-6B11-43B1-B78D-665F903F9CE4@vllmrt.net> References: <20190716154734.22605-1-rob@vllmrt.net> <1A10CE34-C9D6-4ECD-AA58-C7681043EBEF@vllmrt.net> <87tvbm54gm.fsf@devup.no> To: Marius Bakke X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36692 Cc: 36692@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > On 16. Jul 2019, at 18:28, Marius Bakke wrote: >=20 > Robert Vollmert writes: >=20 >> I was able to run both tests from the build directory in /tmp, >> and they both passed fine. Also they both involve user ids, I >> suspect those might differ in the build container? >>=20 >> main =3D do >> void $ forkIO $ forever $ getGroupEntryForID 0 >> void $ forkIO $ forever $ getGroupEntryForID 0 >> threadDelay (3*1000*1000) >>=20 >> main =3D do >> root <- getUserEntryForName "root" >> putStrLn (ue2String root) >> root' <- getUserEntryForID (userID root) >> putStrLn (ue2String root') >> if homeDirectory root =3D=3D homeDirectory root' && >> userShell root =3D=3D userShell root' >> then putStrLn "OK" >> else putStrLn =E2=80=9CMismatch" >=20 > The only reliable user ID available in the build container is 'nobody' > with UID and GID 65534 and the (see nix/libstore/build.cc:1862). >=20 > You can likely patch these tests to refer to that instead. I chose to skip them instead =E2=80=94 specializing them to nobody/65534 = doesn=E2=80=99t seem helpful in the end. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 16 15:48:22 2019 Received: (at 36692) by debbugs.gnu.org; 16 Jul 2019 19:48:22 +0000 Received: from localhost ([127.0.0.1]:51188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnTR0-0005OQ-4n for submit@debbugs.gnu.org; Tue, 16 Jul 2019 15:48:22 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:58562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnTQx-0005OA-F0 for 36692@debbugs.gnu.org; Tue, 16 Jul 2019 15:48:20 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id D34F2A10E4; Tue, 16 Jul 2019 21:48:12 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id mCjFh7QjE-Xg; Tue, 16 Jul 2019 21:48:05 +0200 (CEST) From: Robert Vollmert To: 36692@debbugs.gnu.org Subject: [PATCH (unified, replaces previous patches)] gnu: Add GHC 8.6.5 Date: Tue, 16 Jul 2019 21:47:41 +0200 Message-Id: <20190716194740.23243-1-rob@vllmrt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36692 Cc: Robert Vollmert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) This is exactly like GHC 8.4, except for: - the sources - depends on ghc-8.4 as ghc-bootstrap, since it has a minimum requirement of GHC 8.2 as a bootstrap compiler - explicitly skip two failing tests (Apparently, those tests also fail on older versions, but for unclear reasons the packages still build successfully.) * gnu/packages/haskell.scm (ghc-8.6): New field. (ghc-8): Rename to ghc-8.4. (ghc): Refer to ghc-8.4. --- gnu/packages/haskell.scm | 136 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 134 insertions(+), 2 deletions(-) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 4f0ab5825c..6b5662298f 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -440,7 +440,7 @@ interactive environment for the functional language Haskell.") interactive environment for the functional language Haskell.") (license license:bsd-3))) -(define-public ghc-8 +(define-public ghc-8.4 (package (inherit ghc-8.0) (name "ghc") (version "8.4.3") @@ -572,7 +572,139 @@ interactive environment for the functional language Haskell.") (file-pattern ".*\\.conf\\.d$") (file-type 'directory)))))) -(define-public ghc ghc-8) +(define-public ghc-8.6 + (package (inherit ghc-8.4) + (name "ghc") + (version "8.6.5") + (source + (origin + (method url-fetch) + (uri (string-append "https://www.haskell.org/ghc/dist/" + version "/" name "-" version "-src.tar.xz")) + (sha256 + (base32 "0qg3zsmbk4rkwkc3jpas3zs74qaxmw4sp4v1mhsbj0a0dzls2jjd")))) + (native-inputs + `(("perl" ,perl) + ("python" ,python) ; for tests + ("ghostscript" ,ghostscript) ; for tests + ;; GHC 8.6.5 must be built with GHC >= 8.2. + ("ghc-bootstrap" ,ghc-8.4) + ("ghc-testsuite" + ,(origin + (method url-fetch) + (uri (string-append + "https://www.haskell.org/ghc/dist/" + version "/" name "-" version "-testsuite.tar.xz")) + (sha256 + (base32 + "0pw9r91g2np3i806g2f4f8z4jfdd7mx226cmdizk4swa7av1qf91")))))) + (arguments + `(#:test-target "test" + ;; We get a smaller number of test failures by disabling parallel test + ;; execution. + #:parallel-tests? #f + + ;; The DSOs use $ORIGIN to refer to each other, but (guix build + ;; gremlin) doesn't support it yet, so skip this phase. + #:validate-runpath? #f + + ;; Don't pass --build=, because the configure script + ;; auto-detects slightly different triplets for --host and --target and + ;; then complains that they don't match. + #:build #f + + #:configure-flags + (list + (string-append "--with-gmp-libraries=" + (assoc-ref %build-inputs "gmp") "/lib") + (string-append "--with-gmp-includes=" + (assoc-ref %build-inputs "gmp") "/include") + "--with-system-libffi" + (string-append "--with-ffi-libraries=" + (assoc-ref %build-inputs "libffi") "/lib") + (string-append "--with-ffi-includes=" + (assoc-ref %build-inputs "libffi") "/include") + (string-append "--with-curses-libraries=" + (assoc-ref %build-inputs "ncurses") "/lib") + (string-append "--with-curses-includes=" + (assoc-ref %build-inputs "ncurses") "/include")) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'unpack-testsuite + (lambda* (#:key inputs #:allow-other-keys) + (invoke "tar" "xvf" + (assoc-ref inputs "ghc-testsuite") + "--strip-components=1") + #t)) + ;; These two tests refer to the root user, which doesn't exist. + (add-after 'unpack-testsuite 'skip-tests + (lambda _ + (substitute* "libraries/unix/tests/all.T" + (("^test\\('T8108'") "# guix skipped: test('T8108'")) + (substitute* "libraries/unix/tests/libposix/all.T" + (("^test\\('posix010'") "# guix skipped: test('posix010'")) + #t)) + ;; This phase patches the 'ghc-pkg' command so that it sorts the list + ;; of packages in the binary cache it generates. + (add-before 'build 'fix-ghc-pkg-nondeterminism + (lambda _ + (substitute* "utils/ghc-pkg/Main.hs" + (("confs = map \\(path \\) \\$ filter \\(\".conf\" `isSuffixOf`\\) fs") + "confs = map (path ) $ filter (\".conf\" `isSuffixOf`) (sort fs)")) + #t)) + (add-after 'unpack-testsuite 'fix-shell-wrappers + (lambda _ + (substitute* '("driver/ghci/ghc.mk" + "utils/mkdirhier/ghc.mk" + "rules/shell-wrapper.mk") + (("echo '#!/bin/sh'") + (format #f "echo '#!~a'" (which "sh")))) + #t)) + ;; This is necessary because the configure system no longer uses + ;; “AC_PATH_” but “AC_CHECK_”, setting the variables to just the + ;; plain command names. + (add-before 'configure 'set-target-programs + (lambda* (#:key inputs #:allow-other-keys) + (let ((binutils (assoc-ref inputs "target-binutils")) + (gcc (assoc-ref inputs "target-gcc")) + (ld-wrapper (assoc-ref inputs "target-ld-wrapper"))) + (setenv "CC" (string-append gcc "/bin/gcc")) + (setenv "CXX" (string-append gcc "/bin/g++")) + (setenv "LD" (string-append ld-wrapper "/bin/ld")) + (setenv "NM" (string-append binutils "/bin/nm")) + (setenv "RANLIB" (string-append binutils "/bin/ranlib")) + (setenv "STRIP" (string-append binutils "/bin/strip")) + ;; The 'ar' command does not follow the same pattern. + (setenv "fp_prog_ar" (string-append binutils "/bin/ar")) + #t))) + (add-before 'build 'fix-references + (lambda _ + (substitute* '("testsuite/timeout/Makefile" + "testsuite/timeout/timeout.py" + "testsuite/timeout/timeout.hs" + "testsuite/tests/programs/life_space_leak/life.test" + ;; libraries + "libraries/process/System/Process/Posix.hs" + "libraries/process/tests/process001.hs" + "libraries/process/tests/process002.hs" + "libraries/unix/cbits/execvpe.c") + (("/bin/sh") (which "sh")) + (("/bin/ls") (which "ls")) + (("/bin/rm") "rm")) + #t)) + (add-before 'build 'fix-environment + (lambda _ + (unsetenv "GHC_PACKAGE_PATH") + (setenv "CONFIG_SHELL" (which "bash")) + #t))))) + (native-search-paths (list (search-path-specification + (variable "GHC_PACKAGE_PATH") + (files (list + (string-append "lib/ghc-" version))) + (file-pattern ".*\\.conf\\.d$") + (file-type 'directory)))))) + +(define-public ghc ghc-8.4) (define-public ghc-hostname (package -- 2.20.1 (Apple Git-117) From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 08 00:26:48 2019 Received: (at 36692-done) by debbugs.gnu.org; 8 Aug 2019 04:26:48 +0000 Received: from localhost ([127.0.0.1]:39809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hva0m-0001gb-GT for submit@debbugs.gnu.org; Thu, 08 Aug 2019 00:26:48 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:37607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hva0k-0001gN-3F for 36692-done@debbugs.gnu.org; Thu, 08 Aug 2019 00:26:47 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B533E21C1B; Thu, 8 Aug 2019 00:26:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 08 Aug 2019 00:26:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=b0XAllsx9daWLKsR1huoIY4O2g6vTDJSQl5zNIiMD Q8=; b=BX/Z+k5enokv+jUNK5+wvyAf7MA+y2PYGeBmNgW1ZyJ1faMXd+YQpU+ZA jfppTV2yvrHB1ZORlTHBb4yP3RwJzFPDvC1tpTDKQ6MiW4RwrZsSWUXO8CTUb0PW j3O2ko9LZQNjtIxUmEvTgarNXCdlUbYHcHiqn6Z6q0UnA27FhCAOflN9SU4Wsxvp gZzHl3XbcroNho9RO95D3d6ccxFESeleRSing2j5dcPGJTl4PLPZp+1P04Ac/KQs qrZchnlLc01G/NBh24VcyvlEeoQpMG2oi9Pv218TxJSR56djDSvUxU++MVupTsXY HkVv+gtjSbB1WoWJ6eV23Gkfd/dgg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddruddugedgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufhffjgfkfgggtgfgsehtqh ertddtreejnecuhfhrohhmpefvihhmohhthhihucfurghmphhlvgcuoehsrghmphhlvght sehnghihrhhordgtohhmqeenucfkphepjeegrdduudeirddukeeirdeggeenucfrrghrrg hmpehmrghilhhfrhhomhepshgrmhhplhgvthesnhhghihrohdrtghomhenucevlhhushht vghrufhiiigvpedt X-ME-Proxy: Received: from mrblack (74-116-186-44.qc.dsl.ebox.net [74.116.186.44]) by mail.messagingengine.com (Postfix) with ESMTPA id 0735A80059; Thu, 8 Aug 2019 00:26:39 -0400 (EDT) From: Timothy Sample To: Robert Vollmert Subject: Re: [bug#36692] [PATCH (unified, replaces previous patches)] gnu: Add GHC 8.6.5 References: <20190716154734.22605-1-rob@vllmrt.net> <20190716194740.23243-1-rob@vllmrt.net> Date: Thu, 08 Aug 2019 00:26:39 -0400 In-Reply-To: <20190716194740.23243-1-rob@vllmrt.net> (Robert Vollmert's message of "Tue, 16 Jul 2019 21:47:41 +0200") Message-ID: <87r25wnuyo.fsf@ngyro.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 36692-done Cc: 36692-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Robert, Robert Vollmert writes: > This is exactly like GHC 8.4, except for: > - the sources > - depends on ghc-8.4 as ghc-bootstrap, since it has a > minimum requirement of GHC 8.2 as a bootstrap compiler > - explicitly skip two failing tests I simplified the package by reusing the inputs and arguments from =E2=80=9Cghc-8.4=E2=80=9D. I also made changing =E2=80=9Cghc-8=E2=80=9D it= s own commit. Pushed as a62ddb748f=E2=80=93cce84c34cd. Thanks! > (Apparently, those tests also fail on older versions, but > for unclear reasons the packages still build successfully.) It would be nice if we could make the old versions fail and fix or disable the failing tests. -- Tim From unknown Sat Jun 14 14:28:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Sep 2019 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator