From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6HABI34Ve2caYAEAe85BDQ:P1 (envelope-from ) for ; Sun, 05 Jan 2025 23:27:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6HABI34Ve2caYAEAe85BDQ (envelope-from ) for ; Mon, 06 Jan 2025 00:27:58 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm1 header.b=mF5qdsyD; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=HWVAwkO8; 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=1736119678; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=lxJmdJSAq8C9QGBu9PmIiahSUIsg4DvLS8IlZ1btcDE=; b=aRJV6oClcZvIVhpIr2WIWirWR18kRQjpnas+33Qf8D+MZudZtQr9qzSxxTpRmweIQ+6b4w EVbX7z7LjIQkgkKiLxCxvfXRRepoadcLIf8AhtvhNabE9SsklCGbLUR3sh2B+bXMCpqLJo Beo4St7L3vjql6yerCB0MpXeerqWL65LWFpZdtY6bZnnK1ZCyWNy+bc2bAKyLw77MwPGKI +ufPhbko5BZD30KqRfUK/3BWAX2aftAA+vPZnp4bmzZmccCUZMm4yr+nX2s7dKvSqz+QUy NpI5MlS23t7T0lY/oQ8ahkxEoNEmPQ7P2CHfZ/PUwZ6r9mzRvDZpEYhBHi8HQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=retrospec.tv header.s=fm1 header.b=mF5qdsyD; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=HWVAwkO8; 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=1736119678; a=rsa-sha256; cv=none; b=idsh8Ls/q/ZR2JgI3KctdNCr1V2DUOnuX7Uxh0W6taQTICKQprYdKxofZE2g/Qwhc8Wh/M ZVy47ujpWXCm8Dk2Ci/B41sFayEJG46qh3JLLBqAwlL/pOhJ2MRcA5gB39AGialbxSj33p 0FA+FI5tO9As0oYa97+ygZ4AkBGcHDZnnX4D0voJFACaf1uJNSXMaQ+M1zXELNg8cd9v0s QGvwV0boVDRkA+jXwiIgFgQPSEIqxCpZE7121BJr2GrIP5RpOGI4xxlkLTMdC1qUIjqF2u 2v/sG0B1a0KtoUQAcawrSMrIbav0ghjoXhoI7brkpld8OuIqQER7IKqIj7j5tQ== 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 171F246DD0 for ; Mon, 06 Jan 2025 00:27:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUa1j-0002ZH-Bp; Sun, 05 Jan 2025 18:27:23 -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 1tUa1g-0002Ys-It for help-guix@gnu.org; Sun, 05 Jan 2025 18:27:20 -0500 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUa1e-0001nK-Ed for help-guix@gnu.org; Sun, 05 Jan 2025 18:27:20 -0500 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id 45B441380195 for ; Sun, 5 Jan 2025 18:27:16 -0500 (EST) Received: from phl-imap-08 ([10.202.2.84]) by phl-compute-04.internal (MEProxy); Sun, 05 Jan 2025 18:27:16 -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:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1736119636; x=1736206036; bh=lxJmdJSAq8C9QGBu9PmIiahSUIsg4DvLS8IlZ1btcDE=; b= mF5qdsyDUCZVgXcFb84y9m/n7QhofgOwAuXhikcJ5XpaNWt0WJvBkl0XHRarGj2g 8UQXEHBrfs0LxqpnA1GFeXiqYpoEt562FTjqELPEvxubHFb5y8HMzsRpWQLiLOFg UlxDwqm2H7pB2Wgt482wmE/lmjG/jHExZw+TmQLyN89JIAiNh4ZS5hMnM7+Yw2Oh AdLWxSf6GlGoATqfphy69P++Mm5klhTs21OSLaR4PGZFFTrILg6sJ1rI0nftepXM Fu93/TDHxX/j6E4Vkl5p57bSEAihPBukDW/JSPDtLQD2JsbfYEnaQS+S8v8NFg1H 4GYlpLMsw+sCipbHzLa78A== 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:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1736119636; x=1736206036; bh=l xJmdJSAq8C9QGBu9PmIiahSUIsg4DvLS8IlZ1btcDE=; b=HWVAwkO8Cm9RDiYcb Tiay9Y8dxm1HZHKiF06IkslSJJkomsIk8APeC91Fh1S/VaobejEwzQ6r67dH1YjA BtwGp+RuCyZG+VKjXIfEP+NrpoHbvA4U0T8Atyt5v8OMnn6f32GDR3scn84TGB4M 6CDgz04L/dp8Nb5Cmg6lMRc4KGVP29ndOLq40TsVTUodOPa5oX9v9eShqyL/M4qI WgS/fFWVzsAs6aN74lJ8Vl4Yly+VewZoiNAEbAg6PvL7IXpGbzxFzF7MBeP9W+am LO1SIn132YeaqhWhrzrgH4CDJf+6jcrBA2KemXgALd+E9FHWV6J4RygFHkBr26l+ HXA0Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudefledgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefoggffhf fvkfgjfhfutgfgsehtqhertdertdejnecuhfhrohhmpedfkfgrnhcugfhurhgvfdcuoehi rghnsehrvghtrhhoshhpvggtrdhtvheqnecuggftrfgrthhtvghrnhepvedttdeitdevhe fhgfejudeihedugfekfeevvdetteelhedvgfefgfekheegteefnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihgrnhesrhgvthhrohhsphgvtg drthhvpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthho pehhvghlphdqghhuihigsehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: id9014242:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id EA9E118A0068; Sun, 5 Jan 2025 18:27:15 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Sun, 05 Jan 2025 23:26:54 +0000 From: "Ian Eure" To: help-guix@gnu.org Message-Id: <3234a23a-580d-41da-a025-a5772bf97eda@app.fastmail.com> In-Reply-To: <87sepxb0k9.fsf@retrospec.tv> References: <87sepxb0k9.fsf@retrospec.tv> Subject: Re: Compiling aarch64-linux packages on x86_64-linux Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=103.168.172.149; envelope-from=ian@retrospec.tv; helo=fout-a6-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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 171F246DD0 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -0.47 X-Spam-Score: -0.47 X-TUID: FGUxkyK9bLWi Hi all, Not sure why this was needed, but running: $ sudo herd restart file-system-/proc/sys/fs/binfmt_misc ...solved the problem for me. I assume a reboot would have as well. I'= m not sure why this was needed -- seems like it shouldn't be -- but at l= east builds are building for me now. -- Ian On Sun, Jan 5, 2025, at 6:03 PM, Ian Eure wrote: > 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: Virt= ualization > 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: > =20 > /gnu/store/6wwbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121e96d.drv > building=20 > =20 > /gnu/store/6wwbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121e96d.drv.= .. > @ unsupported-platform=20 > =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 > =20 > `/gnu/store/6wwbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121e96d.drv= ',=20 > but I am a `x86_64-linux' > builder for=20 > =20 > `/gnu/store/6wwbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121e96d.drv= '=20 > failed with exit code 1 > build of=20 > =20 > /gnu/store/6wwbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.121e96d.drv=20 > failed > View build log at=20 > =20 > '/var/log/guix/drvs/6w/wbzsry0c3sm5s0aifgj4sfzahmkk30-guix-1.4.0-31.12= 1e96d.drv.gz'. > guix build: error: build of=20 > =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 no= t setup=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