From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oPYdFGCA8mPzYAEAbAwnHQ (envelope-from ) for ; Sun, 19 Feb 2023 21:02:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AFggFGCA8mO/NAAA9RJhRA (envelope-from ) for ; Sun, 19 Feb 2023 21:02:40 +0100 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 901421083A for ; Sun, 19 Feb 2023 21:02:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTpt2-00047e-Mo; Sun, 19 Feb 2023 15:02:16 -0500 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 1pTpt0-00047H-Ho for guix-devel@gnu.org; Sun, 19 Feb 2023 15:02:14 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pTpsy-0002xK-6W for guix-devel@gnu.org; Sun, 19 Feb 2023 15:02:14 -0500 Received: by mail-wr1-x430.google.com with SMTP id b10so823831wrx.11 for ; Sun, 19 Feb 2023 12:02:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=GrJ5dK2DQK2F8TuUJlL6WZlMlbuDLbanT6lt5M6McD4=; b=HjrV5E0RguTRALtzrDzMkaO2l32+Wbp9avK13VpCGOW7JG+zYpL0Fp9RQsYTVzgZid YpeUk3FjDaI7OTY8af0USQ7WhiHkLiICivg2vXri8Z84Ah+Oxvx6flONb/bSxFJpOEm0 OHX/vEXlF103v0gv8LdNc57mhkSTeWtyrG2ZFls6EuG0XEAN+0DU5RrNL6JA6GwW6kqq q9qtn2d7E1pY4RBj+gus9wft21DOeZBUtRdX+Qfqh2z8BqK1FRLs8Wi2sK73uGEjDXWx XIxqOuQGc2DRlihoaBLIDsB53MShIiv6G5RKd9w+i1yk/2CGk0uss398qDdGUOogoD4k KpkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GrJ5dK2DQK2F8TuUJlL6WZlMlbuDLbanT6lt5M6McD4=; b=PWOjJwV4DZmXZNBEC+OVCPnWHCc4r+e8tieGNpos5a9Px1njDuz072SeLB6jZYUPTu LaqpxS0aji0Q3UR406Pm6g1wXVFH8wvkxTZN9/vUSZKwqrVGt4zG8MOWfOWE2oMVq8cI 9VqDVNJelJk4FSXBWlB9eX79wZt1JyFaaYHGDdH3wQZoOlg6vOX52sLoKxBthFWqFx3W RhhC43iDyAjutns3HT5QagPF7zX/WBsslSXfJ8pOlyGXlTNvChP/9wEASwtSlcAcxGf7 g+7bwNzrRtJ7E5oVTo3pIAH4DFEsKWKzwoXPsHUW9ooAMxefgR0YnY3gmPiDu+C/fprt Ab2w== X-Gm-Message-State: AO0yUKVgbj5KIkZvvisncbzAhu8deZEc+DoeM7qVtjVmyTtMQcpeTDgt 4ys/LtDS6JxpETFh6bcu82Ps8roXJBpqMA== X-Google-Smtp-Source: AK7set9feJpQxyrEt9tlpUuOEWVhbkvpf1j46sTLxp5YJ2OkgauaaEViAv62mE7yNQ1O5fF9JVXOjw== X-Received: by 2002:adf:ed87:0:b0:2c5:9fd4:1bda with SMTP id c7-20020adfed87000000b002c59fd41bdamr2724724wro.48.1676836930340; Sun, 19 Feb 2023 12:02:10 -0800 (PST) Received: from localhost ([141.226.15.115]) by smtp.gmail.com with ESMTPSA id c15-20020adffb4f000000b002c55b0e6ef1sm153787wrs.4.2023.02.19.12.02.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Feb 2023 12:02:09 -0800 (PST) Date: Sun, 19 Feb 2023 22:01:45 +0200 From: Efraim Flashner To: guix-devel@gnu.org Subject: Re: Building arm64 guix system image Message-ID: Mail-Followup-To: guix-devel@gnu.org References: <86v8k0d79s.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kjqPf3N7ft6kckJh" Content-Disposition: inline In-Reply-To: <86v8k0d79s.fsf@gmail.com> 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::430; envelope-from=efraim.flashner@gmail.com; helo=mail-wr1-x430.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676836959; a=rsa-sha256; cv=none; b=rxi74E8IPKQTOOjczzlPFm/HK9DrEWaYd5o3UUu/HSwlcHpUnhdTxw3roH8di2U1c6Nl1c /Yzo2GGgUo1kJpHFn9HchjM8NQjhzv27VBFAwxzClWAXsP9aU0QmVF2D9vgMgIZTL4/cZq HceGv0NJoJocc7QHLj8j3imbLxFaTpEzxHpYLaeUmtDthMenjGC9T9HVW2GgMT5+l3EWhc Rc8PrzKIodv8VTgWZmCO1XxqnZssBoKM6dAFEkBJEzU/3NM0m07Yziw9g02qYymlybiBFt ULq5liRyMrogOL3EuwAYp4M6QwFHL7U1A1dXIErWN87fKkLlQ6hs1g0OvZnfng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=HjrV5E0R; 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=1676836959; 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:dkim-signature; bh=GrJ5dK2DQK2F8TuUJlL6WZlMlbuDLbanT6lt5M6McD4=; b=YDYCZxKYH0NuIuHuJT8B7U0/qqSn/pvaFu+3LIAzuckZEljceTHJwjdNH2yWb5RinFJPvp vH/QuYpmcZ+B2Fdwy29nVMjzeXr+spO6f/nVW9vDdQYoqzQ12WY4dU99zztSef4ONESwyy RwUNfmXeSlTQ65nr27uD1EFYbE1gMWJKwktuim8jOJDHBGllnIryesUgoxs9ucNlcOC5IF SUtKKEykNQrLbw2imGtFAhsH/3rTGE+YpA1suC6lg0gV6FQWVSBr28Frjod0S/51p1g3P1 rFbU4NIGh/pK0bTEbzC2IxfFvkK0LdMePEae2K6icUeiThp+MrQ+5hFbXDsgbA== X-Spam-Score: -4.28 X-Migadu-Queue-Id: 901421083A Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=HjrV5E0R; 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" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.28 X-TUID: 9XXbH2eQLbbT --kjqPf3N7ft6kckJh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 17, 2023 at 10:29:35AM +0200, Max Brieiev wrote: > I want to run Guix on Apple M1 as a Qemu virtual machine. >=20 > On the Mac machine I run arm64 dedian image. I installed there guix as a > package manager. Now I am trying to create a guix system image to use > with Qemu, but it fails. >=20 > Here is what I do: >=20 > max@debian:~$ guix system image --system=3Daarch64-linux -t qcow2 ~/c= ode/guix/gnu/system/examples/bare-bones.tmpl=20 > guix system: warning: Consider running 'guix pull' followed by > 'guix system reconfigure' to get up-to-date packages and security upd= ates. > =20 > substitute: updating substitutes from 'https://ci.guix.gnu.org'... 10= 0.0% > substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'= =2E.. 100.0% > The following derivations will be built: > /gnu/store/dhknasynfsx9ffsv2m188mmhfvz4l1cl-grub-2.06.drv > /gnu/store/875pz541zymv6vhl0hkfll151jv8sd2p-qemu-minimal-7.2.0.drv > /gnu/store/2vbjnb0f6dzcnvvyaaqjzww0146fpwmj-openbios-qemu-ppc-1.1.d= rv > /gnu/store/dclmdk80rbqqpix98vh6srhdbgscyiwb-qemu-7.2.0.tar.xz.drv > /gnu/store/g9crxhl9j2pw35kwgx9bdcjg3jrvi77v-linux-libre-6.1.9.drv > /gnu/store/blyj3j5v3p2lh6pj7mw81xjg58d1k4zb-shepherd-0.9.3.drv > /gnu/store/r517qlsjsl877kpjfl9ixay9mzh0n923-grub-efi32-2.06.drv > /gnu/store/pyv1w00f9c0q291qhi6y0911sqlvfcrv-grub-efi-2.06.drv > /gnu/store/875pz541zymv6vhl0hkfll151jv8sd2p-qemu-minimal-7.2.0.drv > /gnu/store/brzpisxg4dkvad07pd95riwn7c8559j6-genimage-15-1.ec44ae0.d= rv > =20 > 1.0 MB will be downloaded > alsa-utils-1.2.4 987KiB 4.5MiB/s 00:00 [###############= ###] 100.0% > building /gnu/store/g9crxhl9j2pw35kwgx9bdcjg3jrvi77v-linux-libre-6.1.= 9.drv... > building /gnu/store/2vbjnb0f6dzcnvvyaaqjzww0146fpwmj-openbios-qemu-pp= c-1.1.drv... > | 'build' phasebuilder for `/gnu/store/2vbjnb0f6dzcnvvyaaqjzww0146fpw= mj-openbios-qemu-ppc-1.1.drv' failed with exit code 1 > build of /gnu/store/2vbjnb0f6dzcnvvyaaqjzww0146fpwmj-openbios-qemu-pp= c-1.1.drv failed > View build log at '/var/log/guix/drvs/2v/bjnb0f6dzcnvvyaaqjzww0146fpw= mj-openbios-qemu-ppc-1.1.drv.gz'. > cannot build derivation `/gnu/store/875pz541zymv6vhl0hkfll151jv8sd2p-= qemu-minimal-7.2.0.drv': 1 dependencies couldn't be built > guix system: error: build of `/gnu/store/875pz541zymv6vhl0hkfll151jv8= sd2p-qemu-minimal-7.2.0.drv' failed >=20 >=20 > The relevant part of the build log shows the following errors: >=20 > Building OpenBIOS for ppc > Building... > error: > /gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.= 35/include/asm/sigcontext.h:128:2: error: unknown type name =E2=80=98__u32= =E2=80=99 > 128 | __u32 size; /* size in bytes of the extra space */ > | ^~~~~ > /gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.= 35/include/asm/sigcontext.h:129:2: error: unknown type name =E2=80=98__u32= =E2=80=99 > 129 | __u32 __reserved[3]; > | ^~~~~ > /gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.= 35/include/asm/sigcontext.h:136:2: error: unknown type name =E2=80=98__u16= =E2=80=99 > 136 | __u16 vl; > | ^~~~~ > /gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.= 35/include/asm/sigcontext.h:137:2: error: unknown type name =E2=80=98__u16= =E2=80=99 > 137 | __u16 __reserved[3]; > | ^~~~~ > make[1]: *** [rules.mak:83: host/kernel/bootstrap.o] Error 1 > make[1]: *** Waiting for unfinished jobs.... > make[1]: Leaving directory '/tmp/guix-build-openbios-qemu-ppc-1.1.drv= -0/source/obj-ppc' > make: *** [Makefile:19: build] Error 1 > error: in phase 'build': uncaught exception: > %exception #<&invoke-error program: "make" arguments: ("-j" "4") exit= -status: 2 term-signal: #f stop-signal: #f>=20 > phase `build' failed after 0.2 seconds > command "make" "-j" "4" failed with status 2 >=20 > I don't know where to look to fix this error. Please, help me. >=20 > Also, I thought I could find somewhere arm64 guix build, but apparently > there is none? >=20 > I found only a raw image for Pinebook Pro: > https://ci.guix.gnu.org/eval/196495 >=20 > But for some reason it says it is x86_64 system, and this confuses me. >=20 > Thank you in advance. I have two patches on the core-updates branch that should allow building openbios-qemu-ppc from aarch64. I'll try cherry-picking them to master and see if that allows building qemu-minimal. --=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 --kjqPf3N7ft6kckJh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmPygCkACgkQQarn3Mo9 g1HQBw/7B+SzOJgNpXFdAGWpAq0R/P2mzwIxLf43fTLGJw0iDaSQW256df7ZYC3o K93PVCyksi0ZcVWfshlWs0o10hi5FkeRKzAZ46Em3EHfpnae5ovBTFtsHxHBeQmA JuoohX/7CcLYDN169h0NB58hm4OdoJ/OyBzIyaCQoUE0E1GiqEQ6sJmPRF5Rs5wI mZldZ7wNVkdOa7HNlQWc15FtpvohVxQ4rcxY7FiN+/KT/jvM23s5dgSw1zJh+uSx 99F+tuwUp93ebPJiP8uDVo5pAJmAJIEUovMXHAvEIDpQJjHal5oVuJfZDiOeCzo4 VUlKtiwRRdC+mWPmrhQo+aHFOwV8kUbjY9a5jAtwU9Lr7nPweH8xHJGlIOcekhp/ kVBBtU+KssSganXAsU+ga4SQSbV0P1cbMptIahCzAnNI/l/EFEGFupC5zb9K2xbt K/ZGL6kp3aMz/aGBgU5zC5U9OVzi+FnDyRWP78Ai8xKDo5G9XSHXnxk98+AE232U h1+VK9aEn4JmlYpdWn9uYwMj30KmXMnFNAm8Bv9zieRIG1bTn3VM+Cgnzvm0nmVH tyxJxefbfVuAGiiD94xxOhXBdEBPB9f4yo8UJICRCjwpeFp5/XCK3DG15kt7w+wW KRJF9ghs1XGfOwGNwcoAMGGVb1EODvFHQRnWnTi1DkseAgh5KvU= =2bSj -----END PGP SIGNATURE----- --kjqPf3N7ft6kckJh--