From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 CLOwG1G092N5fQEAbAwnHQ (envelope-from ) for ; Thu, 23 Feb 2023 19:45:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0DOkG1G092OCMAAAauVa8A (envelope-from ) for ; Thu, 23 Feb 2023 19:45:37 +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 CDBA03F11B for ; Thu, 23 Feb 2023 19:45:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVGae-0005uP-Ud; Thu, 23 Feb 2023 13:45:12 -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 1pVGad-0005uG-JC for guix-devel@gnu.org; Thu, 23 Feb 2023 13:45:11 -0500 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVGab-0000Zc-14 for guix-devel@gnu.org; Thu, 23 Feb 2023 13:45:11 -0500 Received: by mail-ed1-x535.google.com with SMTP id ee7so30588056edb.2 for ; Thu, 23 Feb 2023 10:45:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=7FB2O1UXQFvCm5B00Is7vjlFlGPYb0gyuW2fng/xXmM=; b=eHibBufE2OW49eYZtUgGdRpO/XBzjVefstdpPycpUGoffCWN5LSzbFs0uCIPUfA+e6 s64YeFpeKOzY+jUUrl2EIOB7u0HyadO9Jgn1OtuezEgS3p+CdkQ4QbQ1IrvYCiY2Zlxv IqGRArkCCLV4g4CiVrZgKT1+f7owRDOylZJa81pocMtSNgY9Zd1L/BEAF/8z/pBZJC77 yFbxujvcUl8MKmhtMbBZ5MiwwVROcugNID8TIhps1nnSyBAFFBYFMnFJ96Y6mCMuZrL/ UhcIM3bc7veKj2GsfY4Q4ydw3pZrwAK+Szc0XDYaSUOIOoqFSMMiPoy5ufkDFNiCBOXU E38g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7FB2O1UXQFvCm5B00Is7vjlFlGPYb0gyuW2fng/xXmM=; b=OzdFqTxcT87c3iq/a7dVT4UVcO/g0xKJTzQAsZ4AheqZePekJ81wcvqOWEzvhOvdyS ErHp9q3eGUEu1Fr9aLY59TGG2Bu1DwlLpueCXRgdS0wZz23VI7eZM6SABmE5IsYArUk2 6w/gLa0bJBkdiEHu4XiC5ebaGefi4M0/QEgI2TruMH1ziIgHjgcNbldeUUCMpj/h6/48 gqSbnQsqK7oPKxdh3N3VAzpnxyauLcx9TMPYjPOQmpIxJfNKutxpGwu0kWf6KjOIHwec AwWgbBw2wcJL7OL3/ZUdVPmiNln2IJUu26RVAM4PxVbs5HbkA/N/nyWap67hPxrLJyDm 8kgQ== X-Gm-Message-State: AO0yUKV23jJ/Z5imhTTgMJTKFZvnPDnFDR1KSXwj6eloL4pHMept8Re1 3u08neshlyHARfcdAE/+Cl5m10r+0NYqM5+fsVw= X-Google-Smtp-Source: AK7set+QkDL4t9Mglkz1XX15zZwSwGIonvz4mMugHCjxlbDOvRk831zvtpQ+MQ8TuULiPREGvc6FMg== X-Received: by 2002:a17:907:76ad:b0:8b1:749f:b2bc with SMTP id jw13-20020a17090776ad00b008b1749fb2bcmr20769144ejc.11.1677177904304; Thu, 23 Feb 2023 10:45:04 -0800 (PST) Received: from bombaclaat ([2a01:598:b1b3:a67c:8672:3c49:68fd:faa4]) by smtp.gmail.com with ESMTPSA id y14-20020a1709064b0e00b008c979c74732sm6390964eju.156.2023.02.23.10.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 10:45:03 -0800 (PST) References: <86v8k0d79s.fsf@gmail.com> User-agent: mu4e 1.8.13; emacs 29.0.50 From: Roman Scherer To: Efraim Flashner Cc: guix-devel@gnu.org Subject: Re: Building arm64 guix system image Date: Thu, 23 Feb 2023 19:41:17 +0100 In-reply-to: Message-ID: <86356wjk5u.fsf@burningswell.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: none client-ip=2a00:1450:4864:20::535; envelope-from=roman.scherer@burningswell.com; helo=mail-ed1-x535.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.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-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=burningswell-com.20210112.gappssmtp.com header.s=20210112 header.b=eHibBufE; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677177937; a=rsa-sha256; cv=none; b=LeSobvL5QbWXLAHkMZ3hAt96hNPpVJe0q7eP6qeYINTITOEZFMQoiKE7irOa1jaecq7NjG EDzfPrkRUNoebw648frxXYqxtDNOXmozfADp2t4pTvaqxjjQqxWeNCKrHC2oyIzOY75L5+ pnoGTYqSk7DOir5UtBB5zx4h18UleRKLnPGmmnsCVp5eDahJnCvlf+DvxoOC8wsTDPMn2U CD8HpnaYbkaQnSThV7gx4FouOqSPde1AL5pLE4ZsMd9kts9+Jx8h8+VcA7bVcy+kJMiyte GbQTMdBHBbjusHTkIS1kVpntGUNFnMGxyfDPy5OkNVigPrLmOXHMTt/YR6YbIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677177937; 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=7FB2O1UXQFvCm5B00Is7vjlFlGPYb0gyuW2fng/xXmM=; b=eoEBR2kN4wRZz1IG/JG7glMYg53+4fTK16Kuh4jebp1I3GKWGIlqhl7nOuoND7EVs/bN2S olI1rWBrEqR6z0+nHku1hrVe+7UX05pE48JwlhED6Z2jfKu3i8LNpTh7zbVLMfvRIz/hs1 LcIwHnrVtcp6UQ9taw2wu0HLhdO4x/PNHq4wU6R08Zr5FXgoK61F6Xwn44w09m6m74xXWr xffxk9OXSh7bK9ynXaxYWTPHxpoUVVFLvh4E0gknQxXePd9WJGv7GD0wlaOxPoYV5mwCRx 4aAguV0wjvzKUsLAzy3gePCQo/kdh4bRNuC4tsMIG9waFFaHHKpLkMCXkOKfbg== X-Migadu-Queue-Id: CDBA03F11B X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=burningswell-com.20210112.gappssmtp.com header.s=20210112 header.b=eHibBufE; 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"; dmarc=none X-Migadu-Spam-Score: -8.60 X-Spam-Score: -8.60 X-TUID: QX/6M5A/vlli --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Efraim, I just pulled master with the patches you applied, and now I'm able to build my Guix system again with the latest and greatest. :) Thanks for your work on this! Greatly appreciated. Roman Efraim Flashner writes: > [[PGP Signed Part:Undecided]] > 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. >> >> 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. >> >> Here is what I do: >> >> max@debian:~$ guix system image --system=3Daarch64-linux -t qcow2 ~/= code/guix/gnu/system/examples/bare-bones.tmpl >> guix system: warning: Consider running 'guix pull' followed by >> 'guix system reconfigure' to get up-to-date packages and security up= dates. >> >> substitute: updating substitutes from 'https://ci.guix.gnu.org'... 1= 00.0% >> substitute: updating substitutes from 'https://bordeaux.guix.gnu.org= '... 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.= drv >> /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.= drv >> >> 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-p= pc-1.1.drv... >> | 'build' phasebuilder for `/gnu/store/2vbjnb0f6dzcnvvyaaqjzww0146fp= wmj-openbios-qemu-ppc-1.1.drv' failed with exit code 1 >> build of /gnu/store/2vbjnb0f6dzcnvvyaaqjzww0146fpwmj-openbios-qemu-p= pc-1.1.drv failed >> View build log at '/var/log/guix/drvs/2v/bjnb0f6dzcnvvyaaqjzww0146fp= wmj-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/875pz541zymv6vhl0hkfll151jv= 8sd2p-qemu-minimal-7.2.0.drv' failed >> >> >> The relevant part of the build log shows the following errors: >> >> 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.dr= v-0/source/obj-ppc' >> make: *** [Makefile:19: build] Error 1 >> error: in phase 'build': uncaught exception: >> %exception #<&invoke-error program: "make" arguments: ("-j" "4") exi= t-status: 2 term-signal: #f stop-signal: #f> >> phase `build' failed after 0.2 seconds >> command "make" "-j" "4" failed with status 2 >> >> I don't know where to look to fix this error. Please, help me. >> >> Also, I thought I could find somewhere arm64 guix build, but apparently >> there is none? >> >> I found only a raw image for Pinebook Pro: >> https://ci.guix.gnu.org/eval/196495 >> >> But for some reason it says it is x86_64 system, and this confuses me. >> >> 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. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmP3tC0fHHJvbWFuLnNj aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmYfRB/0Qj+Dvuf8MZ2VJ 09mmbMu1Etjg3j8ziApkC+EQ2ykGq+ZeOADKVDnPgInqFtfGe7luinLjHtVwt1OX IcUHNQkZ1WhW3aLGRtBizNC6Rum9tSjgQkuewdvSgfZc/8sOXWDpSld4wBR3Mrak p4taQrzZOfgxNlC5GLrzrrZZzmEPu7QYK/31JN+Nzwyg/uq4szduTEURXbv4aFh1 LQBSO79M8Sxt5ubmiIxtu4g6TFw8fzUqV/wY30gZjAq61DFuVBK86HSrqlb84uOH t3JKJ/pb9BGXzZeTNDE9+MCAjh4HQMk1irWdGhGxHH+ZJUpze/QIBKoknMkUYe+U vLetJBzr =yVFZ -----END PGP SIGNATURE----- --=-=-=--