From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UEE3MpBGw2AulgAAgWs5BA (envelope-from ) for ; Fri, 11 Jun 2021 13:18:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QOebLZBGw2DRJgAA1q6Kng (envelope-from ) for ; Fri, 11 Jun 2021 11:18:40 +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 10DE19EA4 for ; Fri, 11 Jun 2021 13:18:39 +0200 (CEST) Received: from localhost ([::1]:60224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrfBO-0001f1-Mt for larch@yhetil.org; Fri, 11 Jun 2021 07:18:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrf9w-0008Ps-DL for guix-devel@gnu.org; Fri, 11 Jun 2021 07:17:08 -0400 Received: from flashner.co.il ([178.62.234.194]:53520) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrf9u-0000ni-Ig for guix-devel@gnu.org; Fri, 11 Jun 2021 07:17:08 -0400 Received: from localhost (unknown [31.210.177.125]) by flashner.co.il (Postfix) with ESMTPSA id 0FF684018B for ; Fri, 11 Jun 2021 11:17:04 +0000 (UTC) Date: Fri, 11 Jun 2021 14:16:13 +0300 From: Efraim Flashner To: guix-devel@gnu.org Subject: Re: RISCV porting effort Message-ID: Mail-Followup-To: guix-devel@gnu.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lxiTQdfjz2wk4fir" Content-Disposition: inline In-Reply-To: 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=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il 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_PASS=-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.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=1623410320; 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=IBiUUIuFtLSRlctiWY3w1cRytvdY5uG93jAG/lDsLjA=; b=KlxdLlLnXWspjejErWiuemK61UF334+5wM91inn/NpewR0nwg+u01cjBZuCqp1PD0FrjDO P+BnfGoluwPQQWneVG+ZuYtg+UyjHvv9nUAvXYk08L/fdvZO+AL37Ndgk1MvyriuRyCaVX gkhNlZZQPGQvWHlPinpiOABDwnHPlwzR+bkVnFQvMtWURpomRZujSBJdLqUMsfDidY1zGy XwoR9q2OkIGre4AVzhtJARjvXk9OM2won24KjCTpUr9kEvePqGRUjuiFQcsEjgqaLobzG0 nsvoQUj6bBOuVNrGNAuiG7pbdto5umO/eEf0/CQgCqOb+ufht9iXM1EzyVEvcg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623410320; a=rsa-sha256; cv=none; b=ak5jZKM3xVV0+4R6LbW0SdaYW3/OCmJ0RL7l6cHYcz5ZNuEIThOuL0GeV61QrY4iCRMMRu FzaZ3zI+w6VolJncxTUI3/V6MUYvKRG25+/ZLdhCdQvp4PLytUIPg0Yarrb/xea38Ag41E RLNOUznznX+1rp9YASA5qAq+ZLAqt2s8khbqQLFop1JJS3Ta4AJnr06VtOW8BWDCQPeHjm HEHbp8IcvumaIFPNGJf8oS2cWly3nWJCvU/777edeTQvatL9aT+CViFRZLAxbGSELWOYgb mGCTRQzuPqlMbPs55WnWf9cWzyn6Mu0JgYikeFKQMPG7MlQ0EbkNFR2g8B43hg== 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.03 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: 10DE19EA4 X-Spam-Score: -4.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: K0XD+awbQ0Ng --lxiTQdfjz2wk4fir Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 07, 2021 at 10:09:44AM +0300, Efraim Flashner wrote: > 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 added u-boot-sifive-unmatched, although Vagrant pointed out that I may be missing opensbi as an input. I haven't had a chance to test it yet. > 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. I've had some time to play with these parts. I tried the qemu-binfmt emulation on my Guix System machine and I was able to start building out the packages while emulating riscv64-linux, so that's a good sign. As for writing to the store goes, I believe it's a permissions issue somewhere. With some help on IRC I modified the downloading code and wrote out some files using the builtin:download function to a file in my home directory. I also used a minimal reproducer to write a file to the store: scheme@(guile-user)> (use-modules (guix gexp)(guix store)(guix monad-repl)) scheme@(guile-user)> ,enter-store-monad store-monad@(guile-user) [1]> (text-file "foo" "Hello!\n") $2 =3D "/gnu/store/r4bq7f7aikj0dlzjcl2cjgal5wvdhvk1-foo" (ins)efraim@unmatched:~$ cat /gnu/store/r4bq7f7aikj0dlzjcl2cjgal5wvdhvk1-foo Hello! So that works. Could it be that I messed up creating the guixbuild users? I copy/pasted from the manual, command history shows me I ran: root@unmatched:/home/efraim# for i in $(seq -w 1 10); do useradd -g g= uixbuild -G guixbuild -d /var/empty -s $(which nologi= n) -c "Guix build user $i" --system guixbuilde= r$i; done --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --lxiTQdfjz2wk4fir Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmDDRfoACgkQQarn3Mo9 g1HN7hAAu/KutdcffGAPBDty7H/VJzLG2Gtiy7fkkk3eK6ZJYrhwKmFuslQCkmuo 3JgnmxJNoh0dCf4D/4MEP8RJz+yWSpZd6vKJ0qOU4CjMV7WYUmaVRZSvdd94eUn7 2dPfIGIP8DcnbUxCQB6jq7e3beXNP+z+ywbHCIFFSCDI0hnTgHukXx0TCPDl0wdn p1j1WkGNFZgb3AZDrT5tVDWRbnCaH1lxzCXvu9xN+hYcK/Eyr1WrXHZWTr4tfo/t Tdt/pcgNV008zUcEOGCyhBcnftHJNSOdKp0/aAFonY8yn9p304nFXbr365nDo2QQ R3rXf97h9dm4GQbGbnxl1a75NPeHxVUwX11Ib/3gWHWFFl3zaDeiAJDIVR6xJGGB CLiEVMXlzel6UkeROpd8Ola3bOAI2Ce2fOGzZPvB2VWfZxAo7wOqqJWyF2bM+suh y0Rb1TOAhBaI4Lh8jbmYUB8LWNYwzvAAIhXNvSfpi+F8AY11cIae0ojx91fUo5Cw 7ILx7AehYbN2QGkSvphEmGipIRoDirMuy9AnNxLkAd2k1NPOmE5SWn3yas2S0Lb9 l190IfUoYTOB2EPZ0BbqmMSOAA8t2QLEvlDKfFGWVe86aFfmcYGT0d3vAIGbzmPg CCd/dstaYZYXMTMeSEhpEuY2oX0s1JAK9QlEBeOyd0mXFAUHCfk= =5d09 -----END PGP SIGNATURE----- --lxiTQdfjz2wk4fir--