From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id OIekHjFdaWbU2wAA62LTzQ:P1 (envelope-from ) for ; Wed, 12 Jun 2024 08:32:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id OIekHjFdaWbU2wAA62LTzQ (envelope-from ) for ; Wed, 12 Jun 2024 10:32:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=icepic.de header.s=x header.b=Wovs0Ubg; 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=1718181169; 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=l+MJDHwXjwnDMa4CuaaPiGtMONnWOkDQ2UXwWSbXMZg=; b=mwennmBEupGlall1M0IcB3tGQ0lC2CBn+LhwmNIZUnRXIJSyB4iifADQaGatNpEnxD0CZw 0QvP1Io3ro8ULFn9mEAfngIQxdqdjEWWxGUsuGmQ8wlvNGOjBGWKgHCtQOKBcjYjsDCfx8 ERoN/bHyEIuVUpRt7ETaoknTxyMIObApXXBPEaYe7UPk2EqpG3WVpHyi7KSYnfF84wwmxM IUp5CZufAZ4JlKXWKEJ3Wv+keyls8ByPqkfiQ/E0zjaDXrrr2Zv7uhm4sIr0D9fqNMQIQ2 tzr6KG2wAviYiOmPYEVwGDmQHfnXsR/YCLb8Q6hCQWIHmUgOviw14fGPRhwQlw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718181169; a=rsa-sha256; cv=none; b=DKZdFH/BUaqjFJ68LXRhDuJw4fyq7CIL2bt1mxQz1wTEzdH5oh9HZWYfi8YG9CIYTxka8z p7CcxuFf3FgTALzcDr6Zr2igWNLjhr7VLjL9GSFjG86xjOHX+/2NVvZAX+pOeKj4flOe6y W2B0eBkZK00/52lbfC+/W5Dmmaqp9/Z+VdtS3ifySY6aCd/hSQ2sPGtfN8nNJy51OOjMrr 3i4/REf2yRvqBcmyh0t8sZ5/Tu+f8XqmsSg2Kp5sXfleLgG10OoRnlZfOfwKlnOMpqFBn9 Ni3aecK2m9pWEdZLZGIclFCtMo+PhD3Yp5eZgBIcRQO9JyKC5NVsUy66MhtAjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=icepic.de header.s=x header.b=Wovs0Ubg; 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" 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 348D373678 for ; Wed, 12 Jun 2024 10:32:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sHJOx-0001dz-7s; Wed, 12 Jun 2024 04:32:15 -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 1sGddk-0005tZ-RP for help-guix@gnu.org; Mon, 10 Jun 2024 07:56:44 -0400 Received: from mail-108-mta110.mxroute.com ([136.175.108.110]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sGddi-0008GH-Q3 for help-guix@gnu.org; Mon, 10 Jun 2024 07:56:44 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta110.mxroute.com (ZoneMTA) with ESMTPSA id 19001fd3de600017a3.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Mon, 10 Jun 2024 11:51:32 +0000 X-Zone-Loop: e06032832ea96dfc62f3255b438cc578200af0561ca4 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-Type:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: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=l+MJDHwXjwnDMa4CuaaPiGtMONnWOkDQ2UXwWSbXMZg=; b=Wovs0UbgBMdCUKmmLwJXDaQcV/ CY0tr0CNighB5bE9ObBw78iednQVasRcBJ7TjcIawYinzEP94nioG5L8yLzyBJjTfwN/4VtP/0QyC Km32xTVxZ94BqhJAYtoylAEo0x1dCGmx5STpZ87t0KG07n1GEQUVYxVqDGgexhSNqezNky/pau2lK 1OSM+IVAR4NPa1TfAy+5a9pZhteervRfuP+Ic3HE/b7fkQSwLfW0GbAyy2YLdNNiOUtIm41w340M2 RypxW/VoCs+zl3Z+E3N59vasDIe0pw7DBN0/mkDzCAOs2pSBE5yNvR1l0S6eIqoL0Nqm9ZtHyUUPH LVqkc2KQ==; From: Christoph Buck To: Richard Sent Cc: help-guix@gnu.org Subject: Re: Installing cross-compiled packages alongside a cross-compile toolchain In-Reply-To: <87ed98rw6g.fsf@freakingpenguin.com> (Richard Sent's message of "Fri, 07 Jun 2024 22:43:35 -0400") References: <82jzjny2qo.fsf@googlemail.com> <87ed98rw6g.fsf@freakingpenguin.com> User-Agent: mu4e 1.12.0; emacs 30.0.50 Date: Mon, 10 Jun 2024 13:51:27 +0200 Message-ID: <877cexxbgg.fsf@icepic.de> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: dev@icepic.de Received-SPF: pass client-ip=136.175.108.110; envelope-from=dev@icepic.de; helo=mail-108-mta110.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, RCVD_IN_MSPIKE_H2=-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 X-Mailman-Approved-At: Wed, 12 Jun 2024 04:32:07 -0400 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-Spam-Score: -1.34 X-Spam-Score: -1.34 X-Migadu-Queue-Id: 348D373678 X-Migadu-Scanner: mx11.migadu.com X-TUID: oMTiu4P941p1 Richard Sent writes: > Hi Christoph! Hi Richard! Christoph here (writing from a different mail address to up my mailing list game). > (I assume your inspiration was [1], but in my opinion this is > different enough in both context and content to deserve its own > section.) > [...] > [1]: https://guix.gnu.org/en/cookbook/en/guix-cookbook.html#Build-Manifest Exactly. This was my inspiration. > I also unfortunately don't know of a better solution. I'm not fluent > with how cross-compilation works in Guix, but I think it would be > valuable proposing this (or something like it) as a patch and/or > cookbook entry! It seems too useful to leave hidden away in the mailing > list. I agree. If my hack is the technical correct way to achieve this, it should probably be documented somewhere. I took me (a newbe) some time to figure it out. I certainly can help writing an entry for the guix cookbook if desired, but i am not sure if i am the correct person to do so. My technical understanding and jargon of guix is currently quite limited. I don't even understand my hack in full, it was more or less try and error and guestimate engineering. > The closest I can think of is wrapping your Guix software as a package > and using --target, but this is often too much of a barrier to entry > when all you want is a simple development environment. Interestingly there is no `--target` option for the `guix shell` command, only the `--system` option, which result in using qemu to emulate the target platform. I guess because it usually does not make sense to instantiate a development environment with cross-compiled packages which can't be used/executed on the host platfom if host != target platform? If i had to come up with a feature to support native cross-build toolchains in `guix shell` i would probably add the `target` option. This option would instantiate the gcc toolchain with a cross-compile configuration for the host platform, but treat any package as cross-compiled version, so that i can specify the additional dependencies in a manifest file like i normally would. > Anything making cross-compilation easier is a good thing in my eyes. Yes i agree. Unfortunately cross-compilation still seems to be very "experimental". I stumpled upon multiple bugs ([1],[2],[3]) in order to get it to work at all. Luckily they were well known and documented ([1][2]) or easy to fix. ([3]). All in all not a production ready replacement for yocto, but imho the potential is there :) Best regards Christoph [1] https://issues.guix.gnu.org/68058 [2] https://issues.guix.gnu.org/66866, [3] https://issues.guix.gnu.org/71174