From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uLRhO5LJemeBqgAA62LTzQ:P1 (envelope-from ) for ; Sun, 05 Jan 2025 18:04:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uLRhO5LJemeBqgAA62LTzQ (envelope-from ) for ; Sun, 05 Jan 2025 19:04:03 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm1 header.b=zWBTERI8; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=cHyqr9st; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736100242; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=5wdX0gq7eDxUYd4gvU5h6TXntowk9wXX2Ac+mhFP2k0=; b=OY/qJWcFIE5DDeArDU+cweCs/zgHj+kAAoRrhzeg7yzPjmUSj88CVLxxPlquNbogBZTctj M3IIaKBxJeH/AFYpbHO+5BL1R/gXg08U56eJwavkU6T8C8k/zRIw6Oxkn2wOD3lZTvQV+i EjuR8SvoubWrYwa3iPDZCjY0qXtPAOes0MLo54dZapt20tPaDV0tnVxQTNx9OkgD4iawpo fPhPl0D66qNfYfdF1+RL66BIagLcsvR3YqISfA5xUoVIrEcwnrtuQVvXDCbWY5QlQY4qqv PbHsXvc8BkDmn2pGBYjsu/veJmU1Tw2f2Bc3WxZbKjRauU3QDC3xoWMic1Fa6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm1 header.b=zWBTERI8; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=cHyqr9st; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736100242; a=rsa-sha256; cv=none; b=im4xBcCscXN7TxkIb7mgV/yPKPXdDOtTVwpNJ8rkhHy4z9LjE4LeHs3BzGdKbyXH3/nwga OIDxhI45xuQVCwe3UYWN6Q48uwhqjyhu8ap8HGyExPyzwCZm3M0LYIgXxiSAmhV5AEw8XK InEbAJ49XZv3zJJAheV2UbTpNuWn8G6bjFBDI2y++JpTSi3B2VVNxUpaU3wsB9QIpFrEPe LJ0U1svNGyCCfd2rd/hxYYHvvXOKcXi8yYAcCOwyBNGmcg4EacWX51vlgDP8i1+kgG5Hzz lDanR747n5C7FgWXjUMJNBh6khyxDSfdtG5ljHNlMyaoy+ChAUsqB1seIUPLPg== 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 3EFF31E064 for ; Sun, 05 Jan 2025 19:04:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUUyE-0000rQ-I0; Sun, 05 Jan 2025 13:03:26 -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 1tUUyB-0000rA-RK for help-guix@gnu.org; Sun, 05 Jan 2025 13:03:24 -0500 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUUy9-0007o9-N8 for help-guix@gnu.org; Sun, 05 Jan 2025 13:03:23 -0500 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 98F711140098 for ; Sun, 5 Jan 2025 13:03:20 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Sun, 05 Jan 2025 13:03:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=retrospec.tv; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm1; t=1736100200; x=1736186600; bh=5wdX0gq7eD xUYd4gvU5h6TXntowk9wXX2Ac+mhFP2k0=; b=zWBTERI8JPSppowKLzZge2mWNr QeLIrv9JPbyz5PR8rL5JzegNRPar+Yobg+CiarC+VHg3jazAIJ7YIwJo8OtfVTG6 gSviT0TpaFuXjndtpZiy1g1vFw3PK442Q026bGo9XKnPMWa2saeu6h7IVYdwCENa pUz7mdYNBm7TIGfvoF936h+F3S1YL4Ha/bJ3/AUVjFn1Wa83Qf9xgSQkdSgbAWd2 ZikwKkZrOf6EGD0GI7k4lDteVOi6kDV81bYDnvshSHLWgY2nJPxVk2Rr0GG+j9Fh zb+WBfD/FONLF0h7a9xlZg/2IvotWicKCAUQazhnMgBuQtUusQmcJhM08FQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1736100200; x=1736186600; bh=5wdX0gq7eDxUYd4gvU5h6TXntowk9wXX2Ac +mhFP2k0=; b=cHyqr9stVane+uwqeT+5QOfmQ9KsKwKPnqDstBsNUOp4Ne0y5C9 ZbyIp9fzEbifAbSTajiyKKBHBd8IRFAx9hIkHOVaEx9eI+Syi4FwmTcvepUc2X43 0cl7ozR31NHou9hDU9HR0WFbrH0JuPAnC+WoRd9oXAwrDhDvMGkEFjJhthHhxuew qlc7ZevkztJFBwCy6379irXBbcmZxJvtnC+wYtSIjhLrvID74BnTUH9OHU/k3FyK tRBdMJAtYKthi3R6fvvAhRCaS+Uw2BaevbkstTxzYWGl3RC/VG5NqB4xo5xeT6bU LKlV4CD+4+i4CI03mrfxoopzv1x6LQZKkSg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudefkedguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvuf gffffkgggtgfesthhqredttderjeenucfhrhhomhepkfgrnhcugfhurhgvuceoihgrnhes rhgvthhrohhsphgvtgdrthhvqeenucggtffrrghtthgvrhhnpeeifeefkeekgeetuddtie etgedufeegtdeiveeufedtgeeggfejleduveejvedvjeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehirghnsehrvghtrhhoshhpvggtrdhtvh dpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohephhgv lhhpqdhguhhigiesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 5 Jan 2025 13:03:19 -0500 (EST) From: Ian Eure To: help-guix@gnu.org Subject: Compiling aarch64-linux packages on x86_64-linux User-Agent: mu4e 1.12.7; emacs 29.4 Date: Sun, 05 Jan 2025 10:03:18 -0800 Message-ID: <87sepxb0k9.fsf@retrospec.tv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=103.168.172.158; envelope-from=ian@retrospec.tv; helo=fhigh-a7-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.75 X-Spam-Score: -6.75 X-Migadu-Queue-Id: 3EFF31E064 X-TUID: AtmkdephYT9L In "(guix) Additional Build Options", documenting the --system=20 option, the Guix manual says: Similarly, when transparent emulation with QEMU and=20 =E2=80=98binfmt_misc=E2=80=99 is enabled (*note =E2=80=98qemu-binfmt-service-type=E2=80=99: Virtualiz= ation Services.), you can build for any system for which a QEMU =E2=80=98binfmt_misc=E2=80=99 handler is installed. So, I added this -- the exact configuration from "(guix)=20 Virtualization Services" in the manual -- to my operating-system=E2=80=99s= =20 services: (service qemu-binfmt-service-type (qemu-binfmt-configuration (platforms (lookup-qemu-platforms "arm"=20 "aarch64")))) And `guix system reconfigure'd. The service is running: # herd status qemu-binfmt Status of qemu-binfmt: It is running since Mon Dec 30 20:47:07 2024 (6 days ago). Running value is #t. It is enabled. Provides: qemu-binfmt Requires: file-system-/proc/sys/fs/binfmt_misc Will be respawned. If I try to build a package with --system specified, it fails due=20 to the wrong architecture: $ guix build --system=3Daarch64-linux guix The following derivation will be built: /gnu/store/6wwbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121e96d.drv building=20 /gnu/store/6wwbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121e96d.drv... @ unsupported-platform=20 /gnu/store/6wwbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121e96d.drv=20 aarch64-linux while setting up the build environment: a `aarch64-linux' is=20 required to build=20 `/gnu/store/6wwbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121e96d.drv'= ,=20 but I am a `x86_64-linux' builder for=20 `/gnu/store/6wwbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121e96d.drv'= =20 failed with exit code 1 build of=20 /gnu/store/6wwbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121e96d.drv=20 failed View build log at=20 '/var/log/guix/drvs/6w/wbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121= e96d.drv.gz'. guix build: error: build of=20 `/gnu/store/6wwbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121e96d.drv'= =20 failed The "(guix) Native Builds" part of the manual mentions that this=20 error will occur "If the =E2=80=98binfmt_misc=E2=80=99 mechanism is not set= up=20 correctly..." What is the correct way to set Guix up so I can build=20 aarch64-linux packages on x86_64-linux? Thanks, -- Ian