From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iM6PHjMD6WWnFAAAqHPOHw:P1 (envelope-from ) for ; Thu, 07 Mar 2024 00:58:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iM6PHjMD6WWnFAAAqHPOHw (envelope-from ) for ; Thu, 07 Mar 2024 00:58:43 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=YzRC9aHi; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709769523; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9g6orrrzAjBpRBhzIK0r/EAKhOqBw+ICJoDEYY26jCQ=; b=JrZBmC+ciNsmTlAf6ZQUFuKU+9yWdH++P/VEiT4jAhQe9cyGJECO9S7mHVys8yIqsP40tL PHSUgkauQy8fNzbiJ3T/aIdRORxMPAfIDk3MX9GHbsaj4O4wiL6otEbWIkYx/oJ3KcNqnu STlFDiRbJrXK4HRwvrNJcuxMhlNBLdak9xvXUDq3P0wCUm+06wfisyFzbfaKHfsm2yj7QQ AVtlo05dlG6MzThKLVmI2P9Z0IXA7VB5zdTZ6eIdFv17DTuo/HO8CRBxNUAxY40kEe2++Y lkMcTYScM15bf9T1Te3vwuXWkODiT0Ib1k5+UXWgaP/mTFr/1nt2FiBKHlBUhg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=YzRC9aHi; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709769523; a=rsa-sha256; cv=none; b=ucTw+LRD8u+EbW+9NTc1Hv/j2Gd6qKfnqNlHPbmga2NDYm4jheer3PTQQBrhNZg4wJDVdz isnO7MAjZYoZ6c+4+F/z8rEuGn9DKPc5ozkwSkia/dIVxaQwuSPvGXDk8hQ6pBlVyqMMYR 6w0B9mhE85qXddax7aKTsYOR8No3101/544vvs35Qjgpgw0dZIMRRgkdv2T87HFsiOw8+q inKLWCHox2As1JwNVqcfJCqPUujJiDEejLmJVQcfIFgv/AO5bqJVt+9mn0hVLM7IUX/cjb aHocPLa4qVhJjSwWjvN5EXd/an3J72l46mVMnG2oVxa4EaS56PMZdrGet4odVw== 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 153EA46C24 for ; Thu, 7 Mar 2024 00:58:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ri19g-0000Ha-D8; Wed, 06 Mar 2024 18:58:36 -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 1ri19b-0000GH-F0 for guix-patches@gnu.org; Wed, 06 Mar 2024 18:58:31 -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 1ri19b-0003pn-6l for guix-patches@gnu.org; Wed, 06 Mar 2024 18:58:31 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ri1A6-00015J-80 for guix-patches@gnu.org; Wed, 06 Mar 2024 18:59:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69552] [PATCH vREVISION 1/2] gnu: Add cyclone-bootstrap. References: In-Reply-To: Resent-From: TakeV Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Mar 2024 23:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69552 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69552@debbugs.gnu.org Cc: TakeV Received: via spool by 69552-submit@debbugs.gnu.org id=B69552.17097695054099 (code B ref 69552); Wed, 06 Mar 2024 23:59:02 +0000 Received: (at 69552) by debbugs.gnu.org; 6 Mar 2024 23:58:25 +0000 Received: from localhost ([127.0.0.1]:52018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ri19U-000142-IZ for submit@debbugs.gnu.org; Wed, 06 Mar 2024 18:58:24 -0500 Received: from layka.disroot.org ([178.21.23.139]:39096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ri19R-00013o-S1 for 69552@debbugs.gnu.org; Wed, 06 Mar 2024 18:58:23 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 67F4241132; Thu, 7 Mar 2024 00:57:49 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1k6OoHYXmjXS; Thu, 7 Mar 2024 00:57:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1709769468; bh=FtqCPmLXG5nFCLKq8tiV8xzjxWsX/R/yVfF0maYfphE=; h=From:To:Cc:Subject:Date; b=YzRC9aHiH3xwAgj3qZeaKVe6upOpO+MyG+OCLmtlgAHV3Eb5jyEFq0/ZKiFGCejI7 L5iXV1I92wqm+9SDvFvy2vJS4ZWnHd6BLE6/C4EqXOK9X4+hcS9ua+f1Ci2ZmCG4B5 LVU8CcjWEzqP+/yJilRe2hwB1+eyOpUI8T6ZRzL6aWLCyMwtSxMU1KCaL5Kh9FDn/z 0+2yFCj6TeCkys5F6UXVCFehX/6v+TpS7DC+bGKTqpe4FWs6vtx5Qs7XCTAV3C/WhX sD6hhFIKd8orKkSjkH5fM7nmJ1X+V6ipdwAKhyoAznC7aE8GUL0YY0iSl1sSPnAqye CnCdO59ho30VQ== Date: Wed, 6 Mar 2024 18:56:58 -0500 Message-ID: <9e15650dea41ee388dbbb01bf09c59758a0e34f4.1709769419.git.takev@disroot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: TakeV X-ACL-Warn: , TakeV via Guix-patches From: TakeV via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.77 X-Spam-Score: -6.77 X-Migadu-Queue-Id: 153EA46C24 X-Migadu-Scanner: mx13.migadu.com X-TUID: pdZd4itjGSOA * gnu/packages/scheme.scm (cyclone-bootstrap): New variable. Change-Id: I85d37ebc48882d4b830ef34851ae6d37ecf2e6e5 --- gnu/packages/scheme.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm index ad06d7db06..e0151e954c 100644 --- a/gnu/packages/scheme.scm +++ b/gnu/packages/scheme.scm @@ -23,6 +23,7 @@ ;;; Copyright © 2023 Andrew Whatson ;;; Copyright © 2023 Juliana Sims ;;; Copyright © 2023 Maxim Cournoyer +;;; Copyright © 2024 TakeV ;;; ;;; This file is part of GNU Guix. ;;; @@ -59,6 +60,7 @@ (define-module (gnu packages scheme) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages bdw-gc) + #:use-module (gnu packages c) #:use-module (gnu packages compression) #:use-module (gnu packages databases) #:use-module (gnu packages emacs) @@ -1276,3 +1278,42 @@ (define-public stklos Machine. STklos can also be compiled as a library and embedded in an application.") (license gpl2+))) + +;; Cyclone is self-hosted. To build it, we require the bootstrap compiler. +(define cyclone-bootstrap + (package + (name "cyclone-bootstrap") + (version "0.36.0") + ;; TODO Use system's libtommath after + ;; https://github.com/justinethier/cyclone/issues/458 is resolved + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/justinethier/cyclone-bootstrap.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0fv0mnrn5shbx77383f4mbkvc4i9yyj1bjm3dfyhipnaqapbhqpi")))) + (inputs (list ck)) + (build-system gnu-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (delete 'configure)) + #:test-target "test" + #:make-flags #~(list "CC=gcc" + (string-append "PREFIX=" + #$output)))) + (home-page "https://github.com/justinethier/cyclone-bootstrap") + (synopsis "Cyclone Scheme bootstrap compiler") + (description + "Cyclone Scheme is a brand-new, R7RS Scheme-to-C compiler that uses a +variant of Cheney on the MTA to implement full tail recursion, +continuations, and generational garbage collection. This package uses +intermediate code generated by compiling the Scheme source files to +build and install Cyclone Scheme. The compiler is self-hosting and +cannot be built directly on a system without Cyclone binaries +installed.") + (license expat))) + base-commit: 201f90f34f90242bb74baa5ca44bda6131b3a035 -- 2.41.0