From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wAZSFIwr9GHo4gAAgWs5BA (envelope-from ) for ; Fri, 28 Jan 2022 18:44:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uKwREYwr9GGXZQAAauVa8A (envelope-from ) for ; Fri, 28 Jan 2022 18:44:44 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 417D83E457 for ; Fri, 28 Jan 2022 18:44:43 +0100 (CET) Received: from localhost ([::1]:60418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDVIe-0001Px-3D for larch@yhetil.org; Fri, 28 Jan 2022 12:44:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDVI5-0001F9-5D for guix-patches@gnu.org; Fri, 28 Jan 2022 12:44:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39294) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nDVI4-0001ak-6x for guix-patches@gnu.org; Fri, 28 Jan 2022 12:44:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nDVI2-0001Co-HN for guix-patches@gnu.org; Fri, 28 Jan 2022 12:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53609] [PATCH] Add GHC 4 for the Haskell bootstrap Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 28 Jan 2022 17:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53609 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53609@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16433918294604 (code B ref -1); Fri, 28 Jan 2022 17:44:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jan 2022 17:43:49 +0000 Received: from localhost ([127.0.0.1]:60430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDVHp-0001CC-6H for submit@debbugs.gnu.org; Fri, 28 Jan 2022 12:43:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:33938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDVHn-0001C5-Nk for submit@debbugs.gnu.org; Fri, 28 Jan 2022 12:43:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDVHm-00018Y-8I for guix-patches@gnu.org; Fri, 28 Jan 2022 12:43:46 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21120) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDVHh-0001ZZ-Nm for guix-patches@gnu.org; Fri, 28 Jan 2022 12:43:44 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1643391817; cv=none; d=zohomail.com; s=zohoarc; b=XXdakM5NimmsTyx1ao/UsFpKxaqKLdmMeysj21g6R8BJ40vqtvUmvhwtCcXLvE1XLTkytmWdnBD6f8fzQ2JGTpk19mLRppX6cdfnSwyda9fPmGqsbVjF+ZUcSYye6rAbJ4giMZzn3QZHM0M607ytvvjaWo0VxePzjkcp1Sm5lKw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643391817; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=twtzA760OhSHsYfnUHwcoX3KuQRkuKu+j0nFLqDz3Lo=; b=PdygZsfBTMXKKpX1BVVX08RhMxoJY7wXWwgIK6iwBcww8OFsGJ51hDG846AqLqOMvQ4lAJgiSi3iZ8xPVW0mDdOD8QvPJs4jxTmuAPPrHapDkXDP+t5kEqiPV5OWX8H4wUWXJeksweEea4AyBndu9XMCDBG+Ruxt1+XUHs24pCk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1643391817; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=twtzA760OhSHsYfnUHwcoX3KuQRkuKu+j0nFLqDz3Lo=; b=cTJVBzIKACPICs62fDIF8pb2jnW7bEZJk2/5VIt/8FsGdyL5d2icjvvagKGstWf4 VHGTvWW+ASgpoR+jdDf34CtnxUcjZdEHuZwOzTLzVuz2jxdJXp1rJyr1DI/vZM+eC9i Cko22tWirv3iNSUZ5dTsl2JGKf84NeGxnpLyW5Ng= Received: from localhost (p54ad4fa1.dip0.t-ipconnect.de [84.173.79.161]) by mx.zohomail.com with SMTPS id 1643391815347458.8725525884063; Fri, 28 Jan 2022 09:43:35 -0800 (PST) User-agent: mu4e 1.6.10; emacs 27.2 From: Ricardo Wurmus Date: Fri, 28 Jan 2022 18:35:06 +0100 X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <8735l7hi2k.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643391884; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=twtzA760OhSHsYfnUHwcoX3KuQRkuKu+j0nFLqDz3Lo=; b=Q/P7pyvti3xQjq54XzUAP1mtVttIuZMf28IjYi/ZnqdWOR5xKnXEUFCUc6LWabTtrp9KOL FkX+ubr2Hcr4uY+2dIsQP1iV/xfHRsERAWaV/leexZPQET5orHeV+JEKJUWjGaSdEwWm1T 1DT4LhWerpxrr6SJtOnwgIN4lMjAdu0vjLhIppKm0AoCZGNj0OvNxTazKu6XwLdSdBKPnt fxw3kcmqt9IRLDauYF6jFDv0uifcEQZx6/iDqJOKg23JB4E7iye7KaiaZNdfSqjfjfoEA6 8dAnsi+CIOQCkpcF45l/P1xQEIzsHIh3Jjg2PK0k3oTvxRDCMZhRmJK2gs8nng== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1643391884; a=rsa-sha256; cv=fail; b=HqEdaHjNofbTD+zOlB2bZTBQ13HkIZuwy0PL6SHR0phPYyYCOliVeFo059ji/gcu4bpwbg CMqtLzixkDXYl6FKyY1olTJub2fpedLUSyfsh03eyDuHFnIupMCvG0JqB388156o+NLaxB vLiZNx2umygf4VdxGy27YEXiiJiGrMUl+jw1AY0RJaRV9u0TS/3tyhx213cWmM8VpS66EH mg+F1hxVKWKgcAo/Tfg0uxT0sIzVJK64P0S4UjkTVt8irnydqYcfG4KgWcgGgNg44K8HKA M5GkzNQo+CJ3/zPMXgrz/Vr6+KDQtYLtzxf/ahF9UztYDamJ9jP+fIBLL2IpWA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=cTJVBzIK; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=cTJVBzIK; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 417D83E457 X-Spam-Score: -2.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: Vw4YpnGUaAna This patch adds GHC 4.08.2. GHC 4.08.2 is sufficient to build GHC 6.0. GHC 6.6 was released in April 2007. To build 6.6 you need GHC > 5.04 (http://web.archive.org/web/20070426051520/http://hackage.haskell.org:80/tr= ac/ghc/wiki/Building/Prerequisites) or maybe 6.0 (http://web.archive.org/web/20071224035747/http://hackage.haskell.org:80/tr= ac/ghc/wiki/Building/Prerequisites) To build 6.8.* you need GHC >=3D 6.4 To build 6.10.* you need GHC >=3D 6.6 To build 7.4.* you need GHC >=3D 6.12 To build 7.6.* you need GHC >=3D 7.0.1 So with this chain we should be able to bootstrap GHC: 4.08.2 -> 6.0 -> 6.6 -> 6.12(?) -> 7.4 -> 7.6 Back to 4.08.2. It=E2=80=99s ancient and it=E2=80=99s not possible to buil= d it even with GCC 4.9; it will not fail, but it will print a bunch of serious errors. So I=E2=80=99m using GCC 2.95, which we already have for the early GCC bootstrap. That=E2=80=99s why all of this is in commencement.scm= =E2=80=94 it may be worth exporting GCC 2.95, so that this whole GHC bootstrap can go to haskell.scm instead of cluttering up commencement.scm. I also need to use Perl 5.14, as one of the Perl scripts uses $*, which used to enable multi-line regexp matching. It=E2=80=99s not easy to just r= emove this and update the regular expressions with the /s or /m modifiers because there are dozens of non-trivial regexes there that are affected by $*. It would be very nice to patch this though. Building with a more recent (but not latest) Perl works, but prints a warning. That=E2=80=99s not okay, because $* simply has no effect in these versions of Perl. Later this silent change was turned into a visible error, which is why the build would fail with the latest Perl. I used the =E2=80=9C--enable-hc-boot=E2=80=9D configure flag, which lets us= bootstrap from hc files. I don=E2=80=99t see a reason not to use them as they are pr= oper code; they don=E2=80=99t look generated nor are they unintelligible. Comments on all this would be very welcome! --=20 Ricardo