From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UDxTKh50v2APzQAAgWs5BA (envelope-from ) for ; Tue, 08 Jun 2021 15:43:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SDWjJR50v2AJPAAAB5/wlQ (envelope-from ) for ; Tue, 08 Jun 2021 13:43:58 +0000 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 DA9B61886C for ; Tue, 8 Jun 2021 15:43:57 +0200 (CEST) Received: from localhost ([::1]:60282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqc1M-00025Y-DH for larch@yhetil.org; Tue, 08 Jun 2021 09:43:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqc1C-00022k-Sz for guix-devel@gnu.org; Tue, 08 Jun 2021 09:43:46 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33598) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqc1C-0002Ae-Gp for guix-devel@gnu.org; Tue, 08 Jun 2021 09:43:46 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34264 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqc1C-0003SP-8T for guix-devel@gnu.org; Tue, 08 Jun 2021 09:43:46 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: guix-devel@gnu.org Subject: Re: RISCV porting effort References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 20 Prairial an 229 de la =?utf-8?Q?R=C3=A9volution?= 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, 08 Jun 2021 15:43:44 +0200 In-Reply-To: (Efraim Flashner's message of "Mon, 7 Jun 2021 10:09:44 +0300") Message-ID: <877dj4fp4f.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623159838; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=2dTeATIikMld13M1kuh1uh2quuP8L6eTugkpP5myifI=; b=pGDPBGlKcsx9GDAGMPjmooMDXXxg/t7CZaUWmhxjrGjmUNUnlyQCW5q+W7+qWtt1BYhSvR BzTdsEHW13N7UK326O7T0P1esU7nVMOEFQa+ljWZ7ht5SYd1GMvx1owi/Jg1QMTEAPzmiz 2k3BGzn1KZf/FGs1dJO5kBnm5r6811n5MXgqdpOAlgz7++MusS/vhCeda9ZkxRzi3woZBq LNu7AOiIdmIFU/5Wbg5YUnWT3v9M50JEVqkLtQKT83w3G9wz9F9ufXtgI6Z0CRYbie6PwJ GbFs3nAv5aW4qDJhYFrImyT0RyyjVckKjrhAknJx0tJLHZ9P0kWBs/31mai/xA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623159838; a=rsa-sha256; cv=none; b=LlXqcMjchWFv6wB6YYUd4XzaGPCO2Cy4AmMw23m465m843aLqwijPUGTMc3XA69eutEB2+ rEB4PjT7BnxqVsj3oM7x17kTAHJ1MZgWRZt1GDM0wx5uHW8qVEdNEljVKAActeVdaHXNtX IS7Z/wLRBcXENjRUBeD0nDsrqMYdcnQstGixzwD/iNOksganxyn2Zo07k65XxMtA9xQeqn vlpCNVihQ7JKUlmjsALkzAU5ESM4Kjtkoyzu7irElRsYDpIu6yNXZ/1UfMe+hIvq+hD9IE 7Ziv79e+6YWSjfeMu0RgprxYjEFz7wTdKbpXmQ9oD4Nvz/QnhpC+7InWTR+T3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: DA9B61886C X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: ge35eLjrAakQ Hello! Efraim Flashner skribis: > Porting Guix comes with two parts: building the bootstrap-tarballs and > adding support for the new architecture in (gnu packages bootstrap). > Support for riscv was added to GCC with 7.1.0 so I had to bump the > bootstrap GCC to 7 (and adjust some inputs), and guile-2.0.14 didn't > known the endianness of riscv64 so instead of patching it I bumped the > bootstrap guile to 3.0. I uploaded my bootstrap-tarballs to my regular > spot after signing them and switched over to the riscv machine. > > Building Guix from sources is much easier thanks to the work of Vagrant, > I was able to apt install most of the dependencies on riscv. The > packaged version of guile-zlib was too old in 21.04 so I built that from > source (0.1.0 is available in Debian experimental), and I also had to > build gnutls from source for the guile-3.0 bindings. I added the riscv > binaries to (gnu packages bootstrap) and temporarily switched the > raw-build function to look for 3.0 guile libraries instead of 2.0. > > Where I'm at right now: > Downloading using the daemon (builtin:download) fails currently, it says > it doesn't have permissions to open-file to write downloaded files to > the store. > I haven't built anything using the bootstrap binaries to see if they > actually work yet. Exciting news! I saw discussions about this =E2=80=98guix perform-download= =E2=80=99 issue on IRC. Did you eventually find what the problem is? If the HiFive works fine, let me remind you that we have budget to buy hardware, so we could just as well order a couple of these right away (maybe you=E2=80=99ll have Guix System running by the time we receive them = ;-)). What we need is someone to order the machine(s) and to host it afterwards, with stable connectivity. This must be agreed upon by the Spending Committee (currently Tobias, Ricardo, and myself; email guix-finance@gnu.org). You=E2=80=99ll then be reimbursed by the FSF, our current fiscal sponsor. Any takers? Or should we wait until you have more experience with yours, Efraim? Thanks, Ludo=E2=80=99.