From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8Le5Fm3re2JaBwAAbAwnHQ (envelope-from ) for ; Wed, 11 May 2022 18:59:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kC6UFm3re2JoRAAA9RJhRA (envelope-from ) for ; Wed, 11 May 2022 18:59:25 +0200 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 DEA4C17BCA for ; Wed, 11 May 2022 18:59:24 +0200 (CEST) Received: from localhost ([::1]:42848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nopgJ-0004kv-Uo for larch@yhetil.org; Wed, 11 May 2022 12:59:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nopfz-0004jv-RQ for guix-patches@gnu.org; Wed, 11 May 2022 12:59:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44399) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nopfy-0004u4-PT for guix-patches@gnu.org; Wed, 11 May 2022 12:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nopfy-00019G-NR for guix-patches@gnu.org; Wed, 11 May 2022 12:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55343] [PATCH 2/2] image: Add new efi32-raw format for 32bit UEFI on 64bit systems Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 May 2022 16:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55343 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Maxime Devos Cc: 55343@debbugs.gnu.org Received: via spool by 55343-submit@debbugs.gnu.org id=B55343.16522883424411 (code B ref 55343); Wed, 11 May 2022 16:59:02 +0000 Received: (at 55343) by debbugs.gnu.org; 11 May 2022 16:59:02 +0000 Received: from localhost ([127.0.0.1]:38296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nopfx-000191-NG for submit@debbugs.gnu.org; Wed, 11 May 2022 12:59:02 -0400 Received: from cyberdimension.org ([80.67.179.20]:35874 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nopfv-00018q-M4 for 55343@debbugs.gnu.org; Wed, 11 May 2022 12:59:00 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id aecab07b; Wed, 11 May 2022 16:57:53 +0000 (UTC) Received: from primarylaptop.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id aefaca97; Wed, 11 May 2022 16:57:53 +0000 (UTC) Date: Wed, 11 May 2022 19:00:23 +0200 From: Denis 'GNUtoo' Carikli Message-ID: <20220511190023.527dacfa@primarylaptop.localdomain> In-Reply-To: References: <20220510011812.15710e0b@primarylaptop.localdomain> <20220509232451.30605-1-GNUtoo@cyberdimension.org> <20220509232451.30605-2-GNUtoo@cyberdimension.org> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Fpn7Cm9Nx7=O9MB7qO_cxMI"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652288365; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=NlRxEVieGvgVrh9lomf3FKOhFPM2BHLQq1bnKZKH+nQ=; b=RL0xKfhIwrP5cairELnHQ28s9Q1PNtWTWmsn2qAY5YYrnrhD25r49WzoQJRUJtb35RsHa8 NfDDSVXhnUlMjEF7hjr4Hevl0aGlhigrcKPumSc+7V9Idj1a9R/UHLCTTLa152iJDRgkGH d+uQVRJ9dtb1MjalF7jiIAMy+1CrCmYaj9an0PcPe+OcaBHrI+IwLkWHw4zHyIbak4zBEZ azGz11vsrwSeqVTgPuBU2STT2499I8SsGOAc/FKaqHXqk2WaUnt/hOszQKvdDs6mauAq7I 7AtfXEUXJZLW4et3lLdHE84kbO/UnOozM9eHVWNqJxVvyN+w9pbXeULXb7MD2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652288365; a=rsa-sha256; cv=none; b=P2uPzcRqMsi2/8SL2b/GhNKqriVlPyZ6lBATBAK2sv9zPCcLJ6pftve/66auExsQ0RR6uh QNqt4nGazbDZLZQNflT6tSfJf1P5vsyXj/r/+hcExw7+nr7d4QLhKdvDRO0r2dHo0BeTwb lQCdnSk76SSdQqt7ylaVtXQ5fgvE5azAIc97zipocQ8edCuN8Phy+6KItBtYjsIYcGVjrz /3rvdnDuVWr2yQplEaDs45tc52rmuM/RKFVx+0rFZTM29Ls+PwQfRtVe2u0pUKTTJwk8PA B3ISs+KZcD9eQ2lN+8pFL1qdZQquaPZAmugFGFJfaqKhcnecjhwIZXwmjC1rSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: DEA4C17BCA X-Spam-Score: -5.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: mmbFUV7C/aNl --Sig_/Fpn7Cm9Nx7=O9MB7qO_cxMI Content-Type: multipart/mixed; boundary="MP_/Zlqj4gcn_wUtnsLpP_6_HQj" --MP_/Zlqj4gcn_wUtnsLpP_6_HQj Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, On Tue, 10 May 2022 11:32:52 +0200 Maxime Devos wrote: > (list #:target "i386") I've tried that I get the following error: > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > dynamic linker name not known for this system "i386" This means that I have to use "i686-linux" because only "i686-linux" is in the list of allowed values. I've tried and this adds a cross toolchain to the list of dependencies[1] and this doesn't work because efibootmgr which is a dependency doesn't compile anymore as it doesn't find some of the headers like efivar.h and efiboot.h. This could probably be fixed somehow though. In addition I've found the following issues with that approach: - It hardcode the kernel (Linux or HURD) so we'd probably need extra logic to handle it well. With --target=3Di386 that is transparent. Note that I didn't test grub-efi32 with HURD in either cases. - It doesn't support "canadian" cross compilation where the builder (for instance x86) builds a cross compiler to run on another architecture (for instance ARM) to then compile programs for another architecture (for instance riscv). With --target=3Di386 we can in theory do that (though I've not tested it). And with it, I see the following advantage: since it's wrapped somehow Guix can probably do things automatically (like checks or change things) on all the packages that are cross compiled. What approach do you think is best (I don't know the implementation of (list #:target "i686-linux") so you probably know way better than me which one is the best) ?. If (list #:target "i686-linux") is the way to go, do you have any pointers to make it find the headers it needs? I've attached its build log in case it is useful. References: ----------- [1] Here's the output when trying to build grub-efi32 with (list #:target "i686-linux"): > $ ./pre-inst-env guix package -i grub-efi32 > The following package will be upgraded: > grub-efi32 (dependencies or package changed) >=20 > The following derivations will be built: > /gnu/store/j4divh7pf1bxr11ivzddqhsihan6ij4p-util-linux-2.37.2.drv > /gnu/store/h86glf6qlyfmf214qj6xsqbj8vmrfss9-zlib-1.2.11.drv > /gnu/store/hy4x62rrx3gqdnn476dja6im74pxzkpk-glibc-cross-i686-linux-2.33= .drv > /gnu/store/1qynvffnfnf7dlzmrkrkx7nzxq6mkz1k-gcc-cross-sans-libc-i686-li= nux-10.3.0.drv > /gnu/store/kyr74wyvikyldkx9a0zd55fmxjs6862c-binutils-cross-i686-linux-2= .37.drv > /gnu/store/wc7zhlgnzrg9z5w5wqyvkwlg0ninavs1-ld-wrapper-i686-linux-0.drv > /gnu/store/i4h82qxwyaj3i97rgcvh6khfibbj4x3p-linux-libre-headers-cross-i= 686-linux-5.10.35.drv > /gnu/store/j4w5c2iqvm9ylfnc2gsadipngl00labp-gcc-cross-i686-linux-10.3.0= .drv > /gnu/store/y15y0pici7yhgycjv13a4hm9jjshdzzm-ncurses-6.2.20210619.drv > /gnu/store/l5jdw7k9mdm0af4gyklhixw447fgsnxn-pkg-config-i686-linux-0.29.= 2.drv > /gnu/store/zg2fyiwc4i4vwarbk8imi9wsgzp8z90h-file-5.39.drv Denis. --MP_/Zlqj4gcn_wUtnsLpP_6_HQj Content-Type: application/x-xz Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=s1q7llv6m4nn8256hjcjx997rjf0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daEq0o7EzmmkbNv+38FarvSHj0gxaa7KlVoQod3XPVyJFrrYfTPvdrv7c6cO/mp njeuFqLSrAdJL0AtIWlNEDwSiNASXZ+r/UxS3zS+BBG8jkwgyhEKKnflTOGknZ3K+QZeSX3H2xpj DMamEM6XZEE+cdHIj9yNVjw55vmG74xKL62QODLsXg0eR/g22//qnudUUiZ1KUCa5TXnUNPrA2dx ECohFP8vo1LDnRNNqJ2lL1D3ivfcG+9k+UP0gJPbB6rt3vaBV0sv8aYGOrWDIflJMiQTkBRpraxy oMAIyl6nkr0u0ONWaHs1YEBJzbUsTWDSYtJjlyFrGWJS0UrjGgU9afZLMGVrHwUbKurVIw2+gOgq nVbTiYfvxTNN74byBc7aQ39FQWFvEf0138M8FkAZr8wxMHE7RkNmkYp0e/1XgyNIq029VxKRmjID eL+j2wi5vo9ZFa5xsPJzCnmwBLdfrttNULgeSC7JH5q/NGw08FI197Y7xjxozXYL2kFVj6b/5Q7M 5d2xdk+mQQAOlFV2S1PKk0Zk1R/yEgbDzWV5r01ML2ykrWgAAAAAw8D2OI3FCRoAAYoWnIABAJz1 ZpyxxGf7AgAAAAAEWVo= --MP_/Zlqj4gcn_wUtnsLpP_6_HQj-- --Sig_/Fpn7Cm9Nx7=O9MB7qO_cxMI Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmJ766cACgkQX138wUF3 4mPsBA//bChTtJmadVoMiC/rPurQWMArq4f0BiiQykkcJLu5ZZg/yhOvReXCRTOy 7xH8FxcNoiKePpxUHXWSa4azFSLgYccKuky+LvJoC29DIZq11/sDu8bhEwf86NtL MmmtWGyKi9vft0DYc5IzBQlBgNdolOqjayluLoJF823rnZrTlZX4VFs3UYpwX4M5 OphTPdSI+6NxqC656oVpfkhj4f1Eaytg8LEAefGqTkTOecQg6RzO4YIV+pKVp+5R cDCHaSZ2WRIW3cRgMZ8NHt422DGA6ZPuYDZ/e9xpD9yAUIbSiOuq22CVMyxuuvb8 OXaunYAkc+gKjKrDvlQQoVT3S8IOGKFhVcRtix+AdOtu2wZAHvSvyF9o/kGXW4RN 9GnDZlEOO4skrm0odlRU/x8PXown93wRx4n63ugq3shZ7FiKuE97D8yHMaiKlGPO yPf5FRHjJceIr3qYZQNsEhr54FOM0Z92jdROv+d3fdzn5Ibdy6HZ0mzA0QbiPVKm 1EePIt4+BCupFhHlQ0PQPIQnmWp26c68DiQDMpPyqKq2CGN5lnJMkRzW80RgHb5E Ik/9H5tTb777Sfq7pOyrVFhDK6glZgMQDq/euXkA3pzM3621YMyinOt3YEfkqWf8 RZi4afa2ifTcDRrMJVIjp7ZklbeLj58rgr3SFODn1Z63SvBJxa8= =Fpd8 -----END PGP SIGNATURE----- --Sig_/Fpn7Cm9Nx7=O9MB7qO_cxMI--