From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gPwOKZKMDmf/yAAAqHPOHw:P1 (envelope-from ) for ; Tue, 15 Oct 2024 15:38:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gPwOKZKMDmf/yAAAqHPOHw (envelope-from ) for ; Tue, 15 Oct 2024 17:38:58 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=UecLr7C1; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729006738; a=rsa-sha256; cv=none; b=KbZOoHZtxdy1AseFptrD1vGDDQRRZ8E1+u2nqAiJ+SgQ4FyTw/n8/2wpxwM8gqey0k6tHB q4C+dnAkiQxAGHlbHSZnKjq33I+gjKUKIxJkrd914d95VSBiTEGk2gXwp2M/I0G3YQHTRR +O9fqVNLUS8F8qD9i2r+kfgTwnBaa+J3I9vsikZdmW23ARsbHizxaYy5LSuK/BEJfgRsY6 ARD7k0T9vHr4xI68SWZ+s/2Q//nJ31K+RgMSEsORu072wruakK2pEwM6RxaxZqfss5YmSD 0aufYJF5hNyZYqrf1yS6dJSkBIoBta8CJaCTXcT3Gb2IBFcWHP7EJRLhQUeqGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=UecLr7C1; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729006738; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=J7qh7/UUIO0YvbqfZd4Ah+A+WZipfLWDEN98cfvwC5U=; b=BXLsTTAHbTbELSp0koix6E+tKgzVFF4WF8pInWltidB5V8/Rb5fmjBsAA0wufY5RPCXE/x Aqi0DAyW92CLoPxfnFrrHBCgBoq2ef7CEMRrApMbcBMFnBCWdTd7HExOSqQNpc4Kp74rbF EqHuao7e3wM4HxHg04+B90M4FJshIbSF1N08ItlJBW90eoiF5xxS3Vj41qXME4+hk3GiSE HrzkRBpaxfxlI7nplKZarU090xnbF1ymDGdFu/4GCG25128MMazjCadeXvWx6g9+tHGkex 27zbsi9CKqHT6vWS+kIU9AmdJDyIXtZOo4PcKY6884xbXJz4Oi5wRA8MEqrZqA== 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 7E1A41B6F9 for ; Tue, 15 Oct 2024 17:38:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0jcy-0003Q1-3e; Tue, 15 Oct 2024 11:38:28 -0400 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 1t0jcw-0003PT-Q1 for guix-devel@gnu.org; Tue, 15 Oct 2024 11:38:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t0jcv-0007VM-LU; Tue, 15 Oct 2024 11:38:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=J7qh7/UUIO0YvbqfZd4Ah+A+WZipfLWDEN98cfvwC5U=; b=UecLr7C1aUXu7h v0sa97Y/+NFvNzVMMM8bpmVN/IgoTwp/jPEQdoW5aUPVUJnsywJNjMTImvD1n2F+XE91FtxGZxa5j l0EYx7ATe9cwUxyP9EpvXvNwuoaaDO3ujSV/rgyNE7KlWhwdrkK2vcbEE8Sy2pTg/qyCAbtpzC+AF +xAlONihGkOeixb6PGhTn2AXwEP34gCggAgvDKO5plrY0DDXIDUlp4CxNhtsmWIhQynJ2KsSymZWp vnJG51XI5oZZLcMpLPgoUT/f5qeEN1uE4MA+iGFOBtoSQKHbE7zrG95mfHEA0350gpyVbX1fEQ8VF +wG/NyJK20D6kSumAOiA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: guix-devel@gnu.org Subject: Possible path to bootstrap GNAT, the Ada compiler CC: Cayetano Santos X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 24 =?utf-8?Q?Vend=C3=A9miaire?= an 233 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de l'Amaryllis X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 15 Oct 2024 17:38:23 +0200 Message-ID: <87a5f5xtow.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.65 X-Spam-Score: -1.65 X-Migadu-Queue-Id: 7E1A41B6F9 X-Migadu-Scanner: mx12.migadu.com X-TUID: BRscP6PD7LPx Hello there, Recently, Alexandre Oliva kindly sent me this message, which I=E2=80=99m forwarding with his permission: > The other day, we talked on the Fediverse about bootstrapping GNAT in > Guix, and I wasn't aware of any way to accomplish that. I've had > occasion to talk to some AdaCore old-timers this week and learned about > two paths: >=20 > SETL is the older one. It was the environment used to get GNAT from the > ground up. I'm pretty sure I've seen mentions thereof in Guix > discussions already, so I'll assume you already knew about it. >=20 > The one that may be more promising for now, but that I'm not sure solves > the problem at all, is CCG. > https://docs.adacore.com/live/wave/gnat_ccg/html/gnatccg_ug/gnat_ccg/gnat= _ccg.html >=20 > IIUC, it's GNAT-llvm with the backend set to generate C code. So, with > a preexisting CCG, one could (presumably) translate GNAT to C, verify > the translation as much as desired, and use the result to build a > bootstrapping compiler, that could then be used as a starting point to > build recent and future versions of GNAT. Food for thought! Ludo=E2=80=99.