From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id gMAUAPWMY2bCMwEAqHPOHw:P1 (envelope-from ) for ; Sat, 08 Jun 2024 00:43:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gMAUAPWMY2bCMwEAqHPOHw (envelope-from ) for ; Sat, 08 Jun 2024 00:43:01 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20240523 header.b=cMvZZml7; dmarc=pass (policy=quarantine) header.from=kolabnow.com; 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=1717800180; 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=1wRmZGxFtexshU0s1C1kLt6EtLwj+6z+BVUTLMQVvR8=; b=XOFwTEAGVge5+2yWPX52nZXLmq3+HIfmHGZIx/3UtCF9GCqxSjy7tKp9nYktCvy1LD6rWV /FC4wvDaR8hD9X7XKb8xrT4NXFD+2O0ILIdAVr2YhIAyoxt0X1MmPYCIp9jozRZ6+365aE 3aG5v8YLaDV0NIqsgMxw0eYVGfbix5vvZi2v6ZQqfmf9YxccJ0GZJ5lJ3Wt0fsEzARQFll ezjjr901W81ZZjVXCSDoCPlKCl0Jx/Hoy6iCYFvqRzvDzy67H0vyLbpVwnn7HQvMxE0Tg1 9bCna8hxuiJPA1sK0QjD9ahSHjsaxCDR8CXceg+Q0Do6/t+5b96VLbdB2EHxMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717800180; a=rsa-sha256; cv=none; b=iyrTktxsv3+RILH6VqHOWSBJ4YvNweoDiUFUWdrrwHnlgYWzwyKCZlLXgUeOKGSP2kMpOZ UW4mau/SJ0vgkCRLbtwwhvQ769V0v4fDwPtHDcznPXHBXxCUdiJ4ULM2hCgdDn2EtTG9MI HUqaEmQHJt4Mw+WRAc8/eOXmdO9AunqTtkRjAlitM98yotqxlj5PWztXITLpp7ly8rxuxp +FXt/Sbd262s+efNflI8Rrt/z7YKqyGAV7vFtqATxdRGyQQkqBPQQVRpKusVKxP0T0oovw R7rUXuq+YZDqYErfr7td6IjmhZGTUYxIthtAKpTF1PcjiId1Y4rVSkHPuu8b6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kolabnow.com header.s=dkim20240523 header.b=cMvZZml7; dmarc=pass (policy=quarantine) header.from=kolabnow.com; 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 63C43C179 for ; Sat, 08 Jun 2024 00:43:00 +0200 (CEST) Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFgSW-0000P6-V5; Fri, 07 Jun 2024 16:45:12 -0400 Received: from [2001:470:142:3::10] (helo=eggs.gnu.org) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFgSV-0000Ok-7w for help-guix@gnu.org; Fri, 07 Jun 2024 16:45:11 -0400 Received: from mx.kolabnow.com ([212.103.80.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFgST-0008Pi-FJ for help-guix@gnu.org; Fri, 07 Jun 2024 16:45:11 -0400 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 481AE20827A3; Fri, 7 Jun 2024 22:45:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received :received:received; s=dkim20240523; t=1717793100; x=1719607501; bh=1wRmZGxFtexshU0s1C1kLt6EtLwj+6z+BVUTLMQVvR8=; b=cMvZZml7xpa8 7F3XhCbOKySZ1GqhjeHS0Uuf5m7PkJZx7wNK18QyKrJb9bPlZ5HFzAAOxSshOEyd M7syJSfAakgyWkcOOlPNh9xXgY1th0ZPeQxVhIwdDlPIO/zsuM2kZjHPvZFhZ8I/ uakoeGuF05ql4mkH6NDAs5QTjuqBbgPJyCVfuSNNDb95pqc/3Y7vFOk6hi8sM57d WxHAXHTNXwy5PlQR14AgtJDWsiztf61MdI57+LE1nUicHzIIFN1R02Hrpq8hC9R9 ZjeIgVGzKW5wgV25axybNQUrWr/xIR9ix51vymrU+XRHLNpR26xfmozgeTT4pfLb ZpJsWbzVYA== X-Virus-Scanned: amavis at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id 4NMl_JymVZzZ; Fri, 7 Jun 2024 22:45:00 +0200 (CEST) Received: from int-mx011.mykolab.com (unknown [10.9.13.11]) by mx.kolabnow.com (Postfix) with ESMTPS id 708B820D517B; Fri, 7 Jun 2024 22:44:59 +0200 (CEST) Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx011.mykolab.com (Postfix) with ESMTPS id D0399317CC5C; Fri, 7 Jun 2024 22:44:59 +0200 (CEST) From: Thiago Jung Bauermann To: Christoph Buck Cc: help-guix@gnu.org Subject: Re: Installing cross-compiled packages alongside a cross-compile toolchain In-Reply-To: <82jzjny2qo.fsf@googlemail.com> (Christoph Buck's message of "Tue, 21 May 2024 10:43:11 +0200") References: <82jzjny2qo.fsf@googlemail.com> Date: Fri, 07 Jun 2024 17:44:55 -0300 Message-ID: <86tti4iit4.fsf@kolabnow.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=212.103.80.155; envelope-from=bauermann@kolabnow.com; helo=mx.kolabnow.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, 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-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: -6.78 X-Spam-Score: -6.78 X-Migadu-Queue-Id: 63C43C179 X-Migadu-Scanner: mx11.migadu.com X-TUID: WeGLEpiBjX70 Hello Christoph, Christoph Buck writes: > Total guix newbie here. Currently i am evaluating if guix could be a > better alternative to yocto. My use case is as follows. I want to > declarative define a system (for aarch64), generate an image and deploy > it by flashing it to an sd card. Additionally i want to setup a > development environment on my x64 dev machine, which i want to use to > develop native applications for the aarch64 target. For this i need a > cross-compile gcc toolchain (host: x64 target: aarch64) and > cross-compiled packages of all libraries my application will use. Sounds > like the perfect use-case for the `guix shell` command. I'm very interested in the second part as well but unfortunately it's not something supported by Guix without resorting to hacks, as you found out. I never had the time and/or energy to dig deep into it. You went a lot farther than I did! This is a pity, because it doesn't look like this use-case would be hard to support in Guix and I think it would be a killer feature for developers, allowing it to gain more popularity as a development tool. > Is this the correct way to set this up? Is there a simpler way? It is > such a common problem and my solution looks rather complicated. Are > there any insights and tips of people with similiar uses cases? I don't know the answer to these questions, but your solution is ingenious! -- Thiago