From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 cP5pMYcVamYpQAAAqHPOHw:P1 (envelope-from ) for ; Wed, 12 Jun 2024 21:39:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id cP5pMYcVamYpQAAAqHPOHw (envelope-from ) for ; Wed, 12 Jun 2024 23:39:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=icepic.de header.s=x header.b=XyKPwD25; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718228359; a=rsa-sha256; cv=none; b=FGfYU8poop1OpR/mgopAmqXRpKS+7XECtP3SCMJvBPkeDg7rFrPwOV1HnK0VGTlOnPSL+N x+a1yge7kjP7IDHHdX+vhu1yX6zBRWJrdQmMbLDMA++1FOt6MsYWy6HDDQkN6b3W5DOi2M s7EyMHaRFbfnC6zK3ftLXXfWqjNVTneIwODU42SYwUPoPCZ8w2+ZxD/5ptQ/YVfW1OrQRA cIdE+zAw0mBBRcqHVRu5Yhe9Z4XWAnjfHUhzZ3QUbadppDmeTag8xm7sRURV3dX4dZkcVV fQ7HZWpbsfHDThw7BPGCiJgaNKrxo5fdyCWIeTnPUpzZB1kkIg2fqD4x3Zi0IA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=icepic.de header.s=x header.b=XyKPwD25; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718228359; 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=u3eghQCI/Ya3QmQAlrkubqd9+hTrGga6y7rrTdU62sA=; b=CeS8VVkgJiYiG+R70JrysWtZ4cjNBqbupBhRlgDdWHK3C40MmOMkLUqCAgBINPleHd1iVv Ir0LQpB0Htkk4M9M2RnmpWoKy/YvKfr13mp66Zoq8V+FAfuVrzcs3Kibi06crxgKmVV7RQ 6MqXb6+m81WaroaguzPqJqRlPJY2I0dAP+PWFuMk91xKISibf+/m9e7Zrz77l+ZK9VZMOG 4whB3oCw+GqeE3AgP47b3keRYwf/EOFTU2PdEiY2HTeqJ2Il2K1msswV6kJPBX41YXbNFV iE1YnLhdD8DfpDeEVzFzgvwohhleA/aqrrt2DxAcV1iiOoC446WZerwcj5br4g== 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 8A2A813D92 for ; Wed, 12 Jun 2024 23:39:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sHVgF-0001nJ-3t; Wed, 12 Jun 2024 17:38:55 -0400 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 1sHVgD-0001n2-DL for help-guix@gnu.org; Wed, 12 Jun 2024 17:38:53 -0400 Received: from mail-108-mta252.mxroute.com ([136.175.108.252]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sHVgA-0004xP-OO for help-guix@gnu.org; Wed, 12 Jun 2024 17:38:53 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta252.mxroute.com (ZoneMTA) with ESMTPSA id 1900e639afc00017a3.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 12 Jun 2024 21:38:47 +0000 X-Zone-Loop: e76680544a6c85e89daa31c14888b95978576abeb710 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=icepic.de; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: References:In-Reply-To:Subject:To:From:Date:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lb/NwWNgisBzfZJAjv7uer22iGET+xozjFOTK/cXjQk=; b=XyKPwD25/++O3hJwHBC0o//B7U YzAFaD+MoL85U1HZsYdoKM7bkXTdxZDY4zs2jRBAf+SkhM3sUh07DaJONgHzwhcXfeLvj1RoSrXtZ f/YJD+DUVAv5jHSvSgIKqjjJAfC0yWmnA4q2LI6CfwzIf3h8AU94iu4PHlPR0PjM0whmba5t5ge1s gcRP+cym62aWjdPQxG1fnXPH4y9XUM4C+tO1C3QGxntMtKspaIn+LB3iFLfshnXgefkHLrKos6+0c NPmShdljM3HPOIlohYWTzMOseWGMJQPWbA9z1dAsBDLnaFf0YBV97AUP3JAkE7eGo+jNArvhmd5Rj NEo2dOXw==; Date: Wed, 12 Jun 2024 23:38:35 +0200 From: "Dev@icepic" To: help-guix@gnu.org Subject: =?US-ASCII?Q?Re=3A_Guix_Deploy_not_respecting_=60build-loca?= =?US-ASCII?Q?lly=3F=60_field_in_=60machine-ssh-configuration=60?= User-Agent: K-9 Mail for Android In-Reply-To: <76a7dfa6-ee2a-42f4-9784-a0e62bd20790@app.fastmail.com> References: <76a7dfa6-ee2a-42f4-9784-a0e62bd20790@app.fastmail.com> Message-ID: MIME-Version: 1.0 X-Authenticated-Id: dev@icepic.de Received-SPF: pass client-ip=136.175.108.252; envelope-from=dev@icepic.de; helo=mail-108-mta252.mxroute.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: 8A2A813D92 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -1.14 X-Spam-Score: -1.14 X-TUID: R7wRYeF+bil9 Hi Torres=2E =20 Some weeks ago I posted a similar question to this list=2E See https://lis= ts=2Egnu=2Eorg/archive/html/help-guix/2024-04/msg00026=2Ehtml=2E My setup is quite similiar to yours=2E I want to deploy a custom kernel/sy= stem image from an x86 host to an rpi4 (aarch64)=2E Using 'guix deploy' with configuration 'system' set to 'aarch64-linux' w= ill compile the packages using qemu which is too slow=2E Compling locally o= n the pi4 is imho too slow as well=2E Unfortunatly the deploy command don't= have the 'target' parameter/configuration to enable real crosscompilation = using a crosscompile toolchain (anyone knows the reason?)=2E However i thin= k you can work around this, at least theory=2E If you first build your syst= em with=20 > guix system image --target=3Daarch64-linux-gnu my-image=2Escm --no-graft= s --skip-checks the kernel should be build using a crosscompile toolchain (which is pretty= fast) and put into the store=2E If you now deploy, the kernel shouldn't be= compiled again but instead taken from the store=2E This is at least my cur= rent understanding of guix=2E=20 I said "in theory" because this didn't work for me on the first try=2E 'Gu= ix deploy' still rebuild the kernel with qemu even though it was already in= store=2E However, after some trial and error it suddenly worked=2E Unfortu= nately i don't know what I did to make it work=2E Maybe you can give it a t= ry and report back, if this approach works for you?=20 Anyway, please take everything I said with a grain of salt because I am a = guix newbie=2E I would be happy if someone clear things up if I am mistaken= =2E Ps: Sorry for the horrible formatting, I am on my mobile atm=2E Am 10=2E Juni 2024 17:00:14 MESZ schrieb Lobo Torres : >Hi, > >I'm using the deploy utilities to manage a Raspberry Pi 4 running Guix Sy= stem=2E > >The configuration for said system[1] involves compiling a custom kernel, = which I first tried to do normally (by running `guix deploy rpi4-deploy=2Es= cm` [2]), which compiled the kernel using the native compilation, which was= awfully slow=2E=2E=2E I didn't bother to let it finish, I left it overnigh= t and after 10 hours it was still building=2E > >[1] The system configuration being deployed: https://quiltro=2Eorg/junk/r= pi4=2Escm=2Ehtml >[2] The deployment file used: https://quiltro=2Eorg/junk/rpi4-deploy=2Esc= m=2Ehtml > >I asked on the #guix IRC channel and I was told that adding `(build-local= ly? #f)` to my `machine-ssh-configuration` object would work, as it would t= ell Guix to build any derivations on the target machine, so I added that, w= ent to deploy again, and Guix was still doing the build locally via QEMU=2E > >Out of the bat I'm not sure why this is happening, disabling the `qemu-bi= nfmt` service of course fails to build because the host machine is not aarc= h64-linux=2E > >If something needs more explanation, please feel free to ask! English is = not my native language so I might have explained some things weirdly=2E > >Thanks! >--- >Lobo Torres >https://quiltro=2Eorg >