From patchwork Thu Feb 15 08:49:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saku Laesvuori X-Patchwork-Id: 2249 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2F47527BBEA; Thu, 15 Feb 2024 08:50:58 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B058A27BBE2 for ; Thu, 15 Feb 2024 08:50:54 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raXSC-00005q-GU; Thu, 15 Feb 2024 03:50:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raXS8-0008S0-1u for guix-patches@gnu.org; Thu, 15 Feb 2024 03:50:44 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raXS7-0003iU-Oi for guix-patches@gnu.org; Thu, 15 Feb 2024 03:50:43 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raXSQ-00011X-1H; Thu, 15 Feb 2024 03:51:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67921] [WIP PATCH v2 00/23] Update GHC to 9.6.4 References: <5cdfcf3aadfbe42655b941764d5a700b6d4bca88.1703056111.git.saku@laesvuori.fi> In-Reply-To: <5cdfcf3aadfbe42655b941764d5a700b6d4bca88.1703056111.git.saku@laesvuori.fi> Resent-From: Saku Laesvuori Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Thu, 15 Feb 2024 08:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67921 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67921@debbugs.gnu.org Cc: Saku Laesvuori , Lars-Dominik Braun X-Debbugs-Original-To: guix-patches@gnu.org, 67921@debbugs.gnu.org X-Debbugs-Original-Xcc: Lars-Dominik Braun Received: via spool by 67921-submit@debbugs.gnu.org id=B67921.17079870593924 (code B ref 67921); Thu, 15 Feb 2024 08:51:01 +0000 Received: (at 67921) by debbugs.gnu.org; 15 Feb 2024 08:50:59 +0000 Received: from localhost ([127.0.0.1]:53975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raXSM-00011D-VJ for submit@debbugs.gnu.org; Thu, 15 Feb 2024 03:50:59 -0500 Received: from vmi571514.contaboserver.net ([75.119.130.101]:32846 helo=mail.laesvuori.fi) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raXSJ-000113-Vh for 67921@debbugs.gnu.org; Thu, 15 Feb 2024 03:50:57 -0500 Received: from X-kone.org.aalto.fi (unknown [130.233.144.187]) by mail.laesvuori.fi (Postfix) with ESMTPSA id 4F321342FEF; Thu, 15 Feb 2024 09:51:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail; t=1707987073; bh=wKgiVXf8tTP7y6f5bkixpMDApiDixo46vvPnoJvpfug=; h=From:To:Cc:Subject:Date; b=M7LtvZsTcunaO2iFpIw0YdM+Z67/C5TApOXMytHcaEIOzM2FoIeyxffXX7+t16xH0 PaJvPFoj/J+y6J1rKaEbBfC7hmFe0Qs/ELpLtvaSDGrcn+kbzzQPUwF9Zlapu9LhvB VE1V1KNdbB/YIlIYu7xXa3wY0um2eu/dJ1QKR+A0= Date: Thu, 15 Feb 2024 10:49:41 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Saku Laesvuori X-ACL-Warn: , Saku Laesvuori via Guix-patches X-Patchwork-Original-From: Saku Laesvuori via Guix-patches via From: Saku Laesvuori Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This series - updates ghc-next to 9.4.8 - adds bootstrap dependencies for Hadrian (ghc-9.6 build system) - adds ghc-9.6 - changes the default ghc to ghc-9.6. The compiler seems to work (I have built some haskell packages with it after running `guix refresh` and disabling it's tests) but some tests fail with weird errors like the following: ``` ld: cannot find \: No such file or directory ld: cannot find \: No such file or directory ld: cannot find spaces/testsuite/tests/backpack/cabal/T16219/T16219.run/dist/build/library-a-impl: No such file or directory collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) make: *** [Makefile:12: T16219] Error 1 ``` Something seems to be failing due to the tests being run in '/tmp/guix-build-ghc-9.6.4.drv-0/ghctest-lgjqumae/test spaces/testsuite/...' but I can't figure out what it is. I've tried tracing the tests and it seems that ld is called with arguments '/tmp/.../test' '\' '\' 'spaces/...' which obviously can't work, but I could not pin down where the escaping fails. This happens with just ~40 out of almost 10 000 tests which makes it even more confusing. Any ideas what could be causing the failures or should I just try disabling those tests? I also noticed that hidden packages shadow other packages, for example the hidden base package from any haskell package can shadow the exposed version from ghc. I guess I'll try implementing a fix for https://issues.guix.gnu.org/66347 by adding a new profile hook that creates a package environment[1] for ghc. [2]: https://ghc.gitlab.haskell.org/ghc/doc/users_guide/packages.html#package-environments Saku Laesvuori (23): gnu: ghc-next: Update to version 9.4.8 gnu: Add ghc-js-flot-bootstrap-for-9.6 gnu: Add ghc-clock-bootstrap-for-9.6 gnu: Add ghc-extra-bootstrap-for-9.6 gnu: Add ghc-hashable-bootstrap-for-9.6 gnu: Add ghc-splitmix-bootstrap-for-9.6 gnu: Add ghc-random-bootstrap-for-9.6 gnu: Add ghc-primitive-bootstrap-for-9.6 gnu: Add ghc-js-jquery-bootstrap-for-9.6 gnu: Add ghc-utf8-string-bootstrap-for-9.6 gnu: Add ghc-heaps-bootstrap-for-9.6 gnu: Add ghc-js-dgtable-bootstrap-for-9.6 gnu: Add ghc-nats-bootstrap-for-9.6 gnu: Add ghc-tagged-bootstrap-for-9.6 gnu: Add ghc-semigroups-bootstrap-for-9.6 gnu: Add ghc-base16-bytestring-bootstrap-for-9.6 gnu: Add ghc-cryptohash-sha256-bootstrap-for-9.6 gnu: Add ghc-unordered-containers-bootstrap-for-9.6 gnu: Add ghc-filepattern-bootstrap-for-9.6 gnu: Add ghc-shake-bootstrap-for-9.6 gnu: Add hadrian-for-ghc-9.6 gnu: Add ghc-9.6 gnu: ghc: Update to version 9.6.4 gnu/packages/haskell.scm | 686 +++++++++++++++++- .../patches/ghc-9.4-testsuite-fixes.patch | 119 +++ 2 files changed, 792 insertions(+), 13 deletions(-) create mode 100644 gnu/packages/patches/ghc-9.4-testsuite-fixes.patch base-commit: f2102cb5b9239be2ed2023b908b726af542e0124