From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id qAFDNpp1hWb/lQAAqHPOHw:P1 (envelope-from ) for ; Wed, 03 Jul 2024 16:00:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id qAFDNpp1hWb/lQAAqHPOHw (envelope-from ) for ; Wed, 03 Jul 2024 18:00:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=K0Np5Nv5; dmarc=none; 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=1720022426; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=b1oirfN6USFDMB8hOsG6D/p8yZVSKjiHSvUoWCV3Nb0=; b=bGrowM+PYpvJ9KghNuGjLWWrXfVh+BXsIBE5WE15HeWx4CRz4Maof9VFvLdO0PrCM7G+bX x4zMFO5sJJaeCFdEg5+si7/fTA0RkPsgKc20PxIqBY3xT2DB9mAlNuKovkLk9VWcjBfvVM lN2c4CLabut9R+wbK20sFfiWi6nHJ0lB/6Ssp6d2JwLUFrOxWVR8DCPJXZM0qEP7VJi+TW mfGYWpsk8mhY/Sh/JyTvRTYNoHhkOxTAIvEV4VlCaeTs2c9QnFYueMLmXekublDSA+WK5f ALqy+eBPHS26gZPaWd6lAwkupxh2NOpg2KNVRfC2k3IocClhgq9Avg8pA3tXCQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720022426; a=rsa-sha256; cv=none; b=AzXAXVOsRfMRDp5xIUahugsaI7tuN/xrVA6P9NLvwtlsALjn/K5dZ8h5Dk0JZ4N7a+JVyV utjdIGu9jNWeKAl7EfF4m/khq7jYAJUjQBCfENQUYEG2W4qOhsTFHeKSGjzsjwxkWJOYo7 m0qaQgYIDfGrATKNvaS801ifzkYF3XfPbQ/SWF2TUxkTEc77mU8m1z5lX4h+cOstH+PNgf vLHxMywqkpKi8H2u7p+hhroJ+Pg6NdWa2e3lm3WvPXq1dY5f1QNAC9iPRFLy4ijpO1cRAC CZROrAjdA1NWguFMRX8Uf4xW5pMk/P60imRjsy0q96kCVVVcWQIIJ6XwreB6Cg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=K0Np5Nv5; dmarc=none; 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" 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 6DE5E76C26 for ; Wed, 03 Jul 2024 18:00:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sP2Oj-0004hK-9B; Wed, 03 Jul 2024 11:59:57 -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 1sP2Og-0004gp-NT for guix-devel@gnu.org; Wed, 03 Jul 2024 11:59:54 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sP2Oe-00020y-KT; Wed, 03 Jul 2024 11:59:54 -0400 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2ebe40673e8so68013281fa.3; Wed, 03 Jul 2024 08:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720022389; x=1720627189; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=b1oirfN6USFDMB8hOsG6D/p8yZVSKjiHSvUoWCV3Nb0=; b=K0Np5Nv5HOfsIIlIa8SMr1zepczvOyrldHJxWjGqTXi/gh6Ti3QG1v9As8uFPioA4e pFlUluebM9umlCRi3PHmPdieRIiV7cMRgsqpL+knaT8FtSlFel4AZ8z24SNqAxZr8hIU E+gKEICwhPaNNJoboE0q9Qra0ERUPtMFLRJlskO0g5hUYBGw3S9a728MbzVkuTfMs0OY TRDSJYyNUx+hY1Zv/CzQm48dIGDJ5avCgttGDgvirJct/IftmdF2xICPXSxVyJD0G267 Kz42rKLXGlQvuPyq1hogFZVGsLhHHPr2Te4bL/gP4fRuEJR6bHPO1K9UBGJiLIieycL9 DJxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720022389; x=1720627189; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=b1oirfN6USFDMB8hOsG6D/p8yZVSKjiHSvUoWCV3Nb0=; b=P+XBF4kLA3Fxnb2bHEejiuJbPNnIH1TbTjoNtlsZjkXNkwunNTjiYsTXnaqtm8O58f JSIPWifk+cvPI4zunBM57mLaRoUwo66D1oF9h77YRmMSrBQNkiX6syddQa84ufd+va0L qxPq+vsxVllu6/WED/wjY5on+ynaQmxIiMRV4MKzVnZyMp/0hPu/6UiNZiR4FXD5FChW P8OJywDzpFH8Xup1ti1i06R7L1pf+O4WK43XnIyaQvpPGW+W2Jd+D6yMNZ8oV0fS3ce8 khvnLxPWdPVmMYG/GB6qaZhjOZA1WoVXFbNv90RmWS5B1LJ+0XB+Fb6GkGcthAIjjCze Ye2g== X-Forwarded-Encrypted: i=1; AJvYcCULLOBB3socoNwM8U8s/HHqNfMIke3R4AT0co30EsOkE4BIquCI9M7oyNNT+yTbA1kIU4AAbuV53ckYvrl5tqcUSHbcCFDHQn4pQHTUHvXMlUdb0g== X-Gm-Message-State: AOJu0Ywl3li6Zra9iA7CB8cmL5IBKXOkJXq0o/+eIWHIa83UhtzW4d5f SjTKOMfRwKybNPSJzJLOc1yvxw+ayYm14T5Vkx6nINEbwPuws1opIB+NtGZO X-Google-Smtp-Source: AGHT+IFLH5aCgnU+5JS1nKajvNpJjUoGwQa0+fFmt33teQ1Nkuw/9jgWzPaArxueqLdLkzppg4sn2w== X-Received: by 2002:a2e:81c6:0:b0:2ee:87c1:3c94 with SMTP id 38308e7fff4ca-2ee87c13e89mr10516591fa.40.1720022388810; Wed, 03 Jul 2024 08:59:48 -0700 (PDT) Received: from localhost ([141.226.13.214]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3675a10337csm16134930f8f.97.2024.07.03.08.59.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 08:59:48 -0700 (PDT) Date: Wed, 3 Jul 2024 18:59:46 +0300 From: Efraim Flashner To: Ekaitz Zarraga Cc: 71921@debbugs.gnu.org, Andrius =?utf-8?B?xaB0aWtvbmFz?= , Jan Nieuwenhuizen , "guix-devel\\@gnu.org" Subject: Re: Bootstrapping path discovered for RISC-V 64bit Message-ID: Mail-Followup-To: Ekaitz Zarraga , 71921@debbugs.gnu.org, Andrius =?utf-8?B?xaB0aWtvbmFz?= , Jan Nieuwenhuizen , "guix-devel\\@gnu.org" References: <26411bab-0d65-dc55-e55d-7d0a0c96de50@elenq.tech> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RiMKe8wDiaN+5+Dg" Content-Disposition: inline In-Reply-To: <26411bab-0d65-dc55-e55d-7d0a0c96de50@elenq.tech> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=efraim.flashner@gmail.com; helo=mail-lj1-x22d.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: -3.99 X-Spam-Score: -3.99 X-Migadu-Queue-Id: 6DE5E76C26 X-Migadu-Scanner: mx11.migadu.com X-TUID: is6nQGWEVcBq --RiMKe8wDiaN+5+Dg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 03, 2024 at 05:16:55PM +0200, Ekaitz Zarraga wrote: > Hi, >=20 > Thanks to NlNet we have found a bootstrapping path for RISC-V 64 and we > created an alternative `commencement.scm` draft that builds from source up > to a GCC-9. >=20 > At the moment, that GCC-9 does not provide C++ support in my Guix package= s. > I tried to add it but I had issues. We made it work for live-bootstrap > (Andrius did), and now it's time to move that to Guix but it's getting a > little bit difficult with GCC's build-system. >=20 > I'm opening this issue to make the handover to Guix. I have already worked > with Efraim and he agreed to continue with this work until it's upstreame= d. > Also Janneke is working on a version of this commencement module that adds > support for x86, so we could use that for everything instead of relying in > two different bootstrapping paths. It may be possible that we end up diverging slightly in parts of the bootstrap; glibc didn't get support for riscv64 until relatively recently, although we will have to see about combining your work on backporting (successfully!) riscv64 support to gcc-4.6.4 with the existing version of 4.6.4 in commencement.scm. In reality I foresee it with more comments in commencement.scm and some conditionals to try to keep the different architectures working within the same packages. > This will take some time to integrate. There are a couple of packages tha= t I > didn't bootstrap yet (but it's possible to bootstrap them): `flex` and > `bison`. Mostly because we wanted to fix > , too. Piece by piece, we'll get there :) Plus we have live-bootstrap to look at for inspiration. > The Gash package is replaced with a non-bootstrapped Bash because there's= an > issue in Gash that hangs the bootstrapping process. We have reported it > upstream. We should use Gash once the issue is fixed. >=20 > Also, we only made the path until a modern GCC, not all the rest of it, t= hat > we should be able to reuse from the current `commencement.scm` module. >=20 > This is the link to the repo: >=20 > https://github.com/ekaitz-zarraga/commencement.scm >=20 > I'm more than open to help Guix include the RISC-V bootstrapping process > upstream, so if you have any question, suggestion or anything else, feel > free to directly contact me. >=20 > As a note, in this series of blogposts I shared the 2 year process until > today, and almost everything is documented: >=20 > https://ekaitz.elenq.tech/tag/bootstrapping-gcc-in-risc-v.html >=20 > Also, I'd like to publicly thank everyone who took part in this process. > Especially Andrius, for all those sleepless nights we spent fixing weird > compiler errors. >=20 > Let's make this finally happen! >=20 > Ekaitz So close! I have a couple of changes I've worked on at https://github.com/Millak/commencement.scm but I'm also still working on getting that modern GCC to build. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --RiMKe8wDiaN+5+Dg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmaFdW8ACgkQQarn3Mo9 g1HEwRAAjT+QIh0RmziAu5l0eS1atk92vfnNRVaOwGsw8zGNiADoG73/D6JLl5QA zQnCjrsADSaIYyZeFqskRj9eto2QIqNs0TT0LjdMe0a4tStRX9cHzTmWBLyzDOTM KnTRckjGeEfWLhAJYjJsSv2T6DerrWCtbZLGCQV/nxlocNlMaYB2HDwyuvU85gKk cdVS91/jHuTTVXEXI7ba1gNmlQq9lpdS64zFpveReNc8FLfCbM8f6X3IkwbIsCPc anRR3efVJ4tsblxZBrsZYNRnJFVDSxyKnoa6nhFgDkhRnx/cBNhrdkrC7ZuB6gm1 QfRhE/UY9pxbjOYJ7ezrTM0WCMXGCZ2P7hkA3nEMCYt4Ck8pYHnyYoPbwUXRXvKT t3IgDCDYA2WrjpDOi1sEH6hAyj1xaDUh5oTh4tY8JFbsEbW0yWLG56Z3KxkIMK6M ZnJlzd3BFPTMqWcWzFGp3+UuZwSm/dzvPFR5N7Pr+GTDa8SwDfpwy6NuGY/Q/5x4 JBXfEoTK89iSwcpfe+JulIs+nqHkKeQhVqUnUbpkEVc+cJDEKDsTjVoq/tK9Kup2 FMT0ahW/GJJWkKwpuYRNO52Lmh2sWIwhigFc4z4T40FUdz9EPxojHRPbbjsfGSd0 LHwt6oRlRefS9r6MqTRM7kVGkdchQpTfV2E4CsFtphLom1X7AZs= =LB1z -----END PGP SIGNATURE----- --RiMKe8wDiaN+5+Dg--