From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aNMMNW0/xmB2NAEAgWs5BA (envelope-from ) for ; Sun, 13 Jun 2021 19:25:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IBqzMG0/xmDAZgAAbx9fmQ (envelope-from ) for ; Sun, 13 Jun 2021 17:25:01 +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 41D3519516 for ; Sun, 13 Jun 2021 19:25:01 +0200 (CEST) Received: from localhost ([::1]:60462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsTr2-0000nk-2L for larch@yhetil.org; Sun, 13 Jun 2021 13:25:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsTqV-0000nX-RN for guix-devel@gnu.org; Sun, 13 Jun 2021 13:24:27 -0400 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:51034) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsTqN-00050T-Ej for guix-devel@gnu.org; Sun, 13 Jun 2021 13:24:27 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 530D61AFE2; Sun, 13 Jun 2021 10:24:17 -0700 (PDT) From: Vagrant Cascadian To: Efraim Flashner , guix-devel@gnu.org Subject: Re: RISCV porting effort In-Reply-To: References: Date: Sun, 13 Jun 2021 10:24:13 -0700 Message-ID: <87o8c91xvm.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=2600:3c01:e000:267:0:a171:de7:c; envelope-from=vagrant@debian.org; helo=cascadia.aikidev.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1623605101; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=5PxJsfvbinGgjP/nOr/HBlg2hLr9UYPU4t5XiJ2n6lw=; b=qunFmCD2F0WTjA1+qo9ruKiEB7AMQCwvey32w6ZEBKBti8yg/8V8Rs+7LDpyHrdTGwcj6F eOOiLLaZ4PP+Ig+p5QgM5efs/G/leRLSIUb5rtgGEimZXSeD4/ywlczIsHKdEVnpvIY8VJ j6lSr9wWXIoiTYBymtqvFaqRhBFtyoPv5QJ+JfN4tcvtP/LgEIZQ9WD99D7SNw/iWQ9GM5 hsqgAt1yneFkgGm79fadgHXjWyk4vnWPaFlJblrPMUn0IodCwS1e8r7uFz1VOAdGkeIXaV Yoanv92d6pYgd+lpmtZcXmpmo+5DaYAmuk6WgGwUlTjcHWtyFwP+FbXMMiykEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623605101; a=rsa-sha256; cv=none; b=ghLFFr69bCeKF8MEpgkolQZoqIRinfrgrzXf1JK7lPoBYjKLn/hOgJwDkbEMTo55JVeLlL v9+oMHuniapj95rPV8ohmQgBONbzOmYfZCQujEbYTAhC+3yfxHqMaurJfbm41S6pvgoIEU PNTyWYm6Jvv+xjc7IYPIXJ82Y/gFY2pgEGelVsmI9/H+0shqffoSgyfFD7vwYgf+T4NGGj jyZZ57UFMNOGXuG0HBp705fIt1KgIxsMYHJBSCV3eYj+cjr2mMCy5PdW61qF7XwOn5SbBC tHeIxWe6RORIk1wUw03bC67Y0vBxEkIbpYdWq0yB9kLKlwlMzjyWkZPhxMOlfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -4.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 41D3519516 X-Spam-Score: -4.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4oHuLqQXO2kX --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2021-06-07, Efraim Flashner wrote: > Last week my HiFive Umatched=C2=B9 board came ... > Ubuntu has an image for the board=C2=B2 which booted up just fine and I'm > using, since I didn't want to spend too long getting Debian to run on > the board. I, on the other hand, went straight for Debian, of course! I stole the vendor kernel and u-boot and built a Debian rootfs... and after a few tries got it running. > Upstream u-boot support was merged days ago=C2=B3 so we should be able to= add > support to our u-boot package soon-ish=E2=84=A2. I haven't gotten u-boot working on Debian yet; builds fine, but has some problem setting up reserved memory in the device-tree when booting. I should try updating the guix u-boot-sifive-unmatched package and see if that works any differently (different toolchain versions sometimes has an effect). There may be patches not yet upstreamed from: https://github.com/sifive/meta-sifive/tree/2021.05/recipes-bsp/u-boot/fil= es/unmatched Those are applied against u-boot 2021.01 ... and I haven't found any that are likely related to the issue with reserved memory in the device-tre= e. > 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. I've managed to get so far as applying the patches from wip-riscv to the guix 1.3.0 package in Debian and built it! It even runs, for the most part! That said, it was absurdly slow ... ~5 hours to build guix (not including tests, which I disabled!) even though it was built entirely within a tmpfs filesystem (what else would you do with 16GB of ram?). Makes me worry how fast guix pull will perform... I tried both with guile 3.0 (which required rebuilding guile-gnutls against guile-3.0) and guile 2.2 (though I missed some of the patches, so it didn't work too well). I did get so far as trying to build hello, but fails building diffutils-boot0: guix build hello ... config.status: error: in `/tmp/guix-build-diffutils-boot0-3.7.drv-0/diffutils-3.7': config.status: error: Something went wrong bootstrapping makefile fragments for automatic dependency tracking. Try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See `config.log' for more details command "/gnu/store/0bxdn94rl7fvqksgf60vffsjn6h8fky8-bootstrap-binaries-0/bin/bas= h" "./configure" "CONFIG_SHELL=3D/gnu/st ore/0bxdn94rl7fvqksgf60vffsjn6h8fky8-bootstrap-binaries-0/bin/bash" "SHELL=3D/gnu/store/0bxdn94rl7fvqksgf60vffsjn6h8fky8-bootstrap-binaries-0= /bin/bash" "--prefix=3D/gnu/store/5x2c8fgmw6hw5njish7n5ll28wink9fl-diffutils-boot0-3= .7" "--enable-fas t-install" "--build=3Driscv64-unknown-linux-gnu" failed with status 1 note: keeping build directory `/tmp/guix-build-diffutils-boot0-3.7.drv-1' builder for `/gnu/store/a3dn372lr9pgn3mb7j5s423x0ja1893q-diffutils-boot0-3.7.drv' failed with exit code 1 build of /gnu/store/a3dn372lr9pgn3mb7j5s423x0ja1893q-diffutils-boot0-3.7.drv failed View build log at '/var/log/guix/drvs/a3/dn372lr9pgn3mb7j5s423x0ja1893q-d= iffutils-boot0-3.7.drv.bz2'. ... cannot build derivation `/gnu/store/62l68kz6zz8m008qa8d0c5ariz7fd97z-hello-2.10.drv': 1 dependencies couldn't be built guix build: error: build of `/gnu/store/62l68kz6zz8m008qa8d0c5ariz7fd97z-hello-2.10.drv' failed I didn't find anything obvious to me in the build log or config.log, but maybe someone else will: https://www.aikidev.net/~vagrant/riscv64/guix/ Some other boot-* stuff downloaded and/or built successfully, but this appears to block any further progress for me at the moment... live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYMY/PgAKCRDcUY/If5cW qnV6AQD+Ku7OwfguIwpTuij3IjGCkmkaTj3orAJc7RcFaW6w7AEArcThMu/3Tlgh /Qmuw9hANqHL0XlQV5kzk3BFeej6GQo= =ULZZ -----END PGP SIGNATURE----- --=-=-=--