From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6CHjAyiM/WQV2wAAauVa8A:P1 (envelope-from ) for ; Sun, 10 Sep 2023 11:28:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6CHjAyiM/WQV2wAAauVa8A (envelope-from ) for ; Sun, 10 Sep 2023 11:28:08 +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 9229B59BFD for ; Sun, 10 Sep 2023 11:28:07 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="TBb7/Qnz"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-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=1694338087; 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=492Qtwz4R/mYGggjPEK9KgbfkMV+gjS5U9IPHjADjLs=; b=oWW2iovwUYcT/+YvUkqEinEwSMyAxnfludJqtXOqUmyoGXD3KyJFedsG8WjHHQFoH3StQt q+DXn2h/xFg0g5SvDqCcpcUY6cY6XUHjiQDj0jXlh6s/sxV4iNdsqpyMSaENaw1vBE9NCS Dg0DR2rrxzy8IoNoNH3LmRkL7i5L3w9gFFSiLqDwbuc4DaPLFz284mjypK7NfFtqHnz0Xp wc0n53HetdUK8l7VwwOuaZKOAQegJNzJmI08I13vIZzK5OEzgw8cy3BQuKbYf1srTJC/TK SKueIzsw+12Ja2OrFsfD8m5CxqP1Sxg06DkOlfISbRoiPoYxL38/X/ZMwVWv1A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694338087; a=rsa-sha256; cv=none; b=HgpmP0umWXKWb1hFnrzP2bVv7B6ztmQjIlmx2c6q5qbRrnf6AkGwjI7JS42J9qAxxcin7H bcrQxEaBZWHFHTAKC5EbAW5ZAsSuODS8xHYKXJh+fs7GO1EgTNm0iNl/vmFzgN/dMe0RCT qAkzBk1qaUufzYWZyfvWvVy6YdwhRdJjLIOySh769mLBXkc/5rf6+pGFLLcWmvhlrbW5rx DMO2IoOQLWoqI2tnUvy1vhWIQzkk4sOCBlpdkpKI2qlBBXz7TokAl1c26mw2jqBrToyBic cu92IMUjBaqJEB1e2vzNm01CBJATXj4+X6n6hhg64HL1PygC5Or6SpqyM7rFQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b="TBb7/Qnz"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfGjJ-0001FV-Ut; Sun, 10 Sep 2023 05:27:45 -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 1qfGjI-0001FN-Ti for guix-devel@gnu.org; Sun, 10 Sep 2023 05:27:44 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qfGjC-0006EM-RH; Sun, 10 Sep 2023 05:27:44 -0400 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-68a3ced3ec6so3000068b3a.1; Sun, 10 Sep 2023 02:27:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694338057; x=1694942857; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=492Qtwz4R/mYGggjPEK9KgbfkMV+gjS5U9IPHjADjLs=; b=TBb7/QnzWTrCzoGkUF4gRLh6cdHWnOWZUIv93Y84LmeBkY6+NX1Eu6a5+8a9mpe+Hy TRxWAydH+X1v8rhcSWQSAdZu770gCzVvyAcDhHKXBuvuGwRSt0aQgQHmdPGmIUw2Ivf5 4mBWBbymot4Qy0BluKFfHEMTXpUgYy5RIPW/2zxfUeXEE8WaA+8L83mqsD0sQKrFwwWx 0uc7xV9ywGd0jPbZQDE++ThJEXyYneIDua5e42R2TItKxZ08vE7heIl6yhKoDCrnJaBO iaa4Ovex7sHGmQp5bUW/KIrR96ZpZa4ON74EvadSAM9AU3oEoyQb7dN/MCpV1njXwztg qndQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694338057; x=1694942857; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=492Qtwz4R/mYGggjPEK9KgbfkMV+gjS5U9IPHjADjLs=; b=U07Clc9VBx+BD9vupqt35H2bzoG1Fq1iC7DPnh2JX0atr5WSgR3sWyj0CPDegx07bG g59YaxZJwLTNRk0nw6PTkKSuUdFFoO87o2YQw7hn+Dw2sLtl9b64ChAXoUYpQ/iW0qP4 BWItU2OSVfVBY7+N4nc48U3FKHJi3iiawdbV/+bOMQzRRZEzVnXYELbvNf4fphj1THhF 08ns7efjLhXQnsDaGKYdYs693qZy7TzTYiLURVfBpes34JE4bSzAR3w8gNoRTaUlWaAU a/a46Jxex+23eqDKAehHSWfwBl/t4giISIroSl65U5YLR/VEEj37u8J1kh0u2SeSSum1 ZZKQ== X-Gm-Message-State: AOJu0Yzcy0UXVTZSAPAHCU+SCdtEjxEodsrN7crnlgM+XML17yvnShHY Q20/p/H5EcXQnuzOg7TPKtbFuQ/mMN7kvA== X-Google-Smtp-Source: AGHT+IHUMlGKXGejovHOvAFU/aBd3eY9uxGVd/gQ4yVB6u0G48t7pYFCIGAqVl4E0x3due9nwvDrPQ== X-Received: by 2002:a05:6a00:1c97:b0:68f:b8ca:af2 with SMTP id y23-20020a056a001c9700b0068fb8ca0af2mr1468994pfw.13.1694338056774; Sun, 10 Sep 2023 02:27:36 -0700 (PDT) Received: from localhost ([115.110.84.132]) by smtp.gmail.com with ESMTPSA id y8-20020a056a001c8800b0068be216b091sm3606836pfw.24.2023.09.10.02.27.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Sep 2023 02:27:35 -0700 (PDT) Date: Sun, 10 Sep 2023 12:27:12 +0300 From: Efraim Flashner To: Mathieu Othacehe Cc: guix-devel , andrew@trop.in, bjoern.hoefling@bjoernhoefling.de, guix@cbaines.net, julien@lepiller.eu, cox.katherine.e+guix@gmail.com, lars@6xq.net, liliana.prikler@gmail.com, rekado@elephly.net, jgart@dismail.de Subject: Re: Cross compilation status Message-ID: Mail-Followup-To: Mathieu Othacehe , guix-devel , andrew@trop.in, bjoern.hoefling@bjoernhoefling.de, guix@cbaines.net, julien@lepiller.eu, cox.katherine.e+guix@gmail.com, lars@6xq.net, liliana.prikler@gmail.com, rekado@elephly.net, jgart@dismail.de References: <87lede2xvu.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0fbNge2oXu9eA742" Content-Disposition: inline In-Reply-To: <87lede2xvu.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2607:f8b0:4864:20::42c; envelope-from=efraim.flashner@gmail.com; helo=mail-pf1-x42c.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -0.51 X-Spam-Score: -0.51 X-Migadu-Queue-Id: 9229B59BFD X-TUID: CM9oeh7U1KpU --0fbNge2oXu9eA742 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 10, 2023 at 11:14:29AM +0200, Mathieu Othacehe wrote: >=20 > Hello, >=20 > In order for Guix to become an alternative to tools such as Yocto and > Buildroot, having most or all our packages cross-compiling is a > prerequisite. >=20 > Here is a status of cross-compilation in Guix. For cross-compilation to > work, the build-system needs to support cross-compilation. >=20 > The following build-systems explicitly refuse cross-compiling packages: >=20 >=20 > ocaml: 61 > haskell: 812 > maven: 2 > chicken: 12 > node: 57 > emacs: 1370 > dune: 289 > android-ndk: 12 > waf: 21 > julia: 300 > pyproject: 433 > r: 2441 > cargo: 3535 > ruby: 597 > rebar: 22 > scons: 15 > rakudo: 22 > agda: 6 > ant: 559 > python: 2488 > Cross-compilation KO: 13054 > --8<---------------cut here---------------end--------------->8--- >=20 > Over the 28076 packages in Guix, 15065 are part of build-systems with > cross-compilation support and 13054 are part of build-systems without > cross-compilation support. >=20 > Overall 46.5% of our packages will refuse to cross-compile with errors > such as: >=20 > --8<---------------cut here---------------start------------->8--- > mathieu@meije ~$ guix build --target=3Daarch64-linux-gnu librsvg > guix build: error: gnu/packages/gnome.scm:3500:2: librsvg@2.54.5: build s= ystem `cargo' does not support cross builds > --8<---------------cut here---------------end--------------->8--- >=20 > I'd like to help converge towards the situation where all build-systems > support cross-compilation. >=20 > I have CC'ed members of the python, java, ruby, rust, r, haskell and > emacs teams. Any plans adding cross-compilation support to your > build-system, barriers to overcome? I suspect librsvg is especially a problem since it is almost always pulled in with any sort of image building. I haven't looked at it closely yet, but I believe that in order to support cross-compilation support in rust we'll need to enable more targets, which will increase the build time for the final rust and the final output size. Considering that nothing built with rust links to it, I'm not convinced this is a problem. We will likely see people confused that we have a rust with cross-compiling abilities but with windows- and mac-specific (pre-compiled) libraries removed, so it wouldn't be able to cross-compile to those (or some other) platforms without changes. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --0fbNge2oXu9eA742 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmT9i+8ACgkQQarn3Mo9 g1G5ag/9EOZFdDvtqAjt9GJQfmIvpioJ25uPFscrnR3BfaFpI+fUiaByH9enoN+v QLyA1YSU1l56t+YlWxFxv5+XCVleFzwAl9NpEDxRs4ewGc7e9NnNImKKqDxwlSho 5Qahxvpqn81eipZ0VW5kcVmQHStSjOoOp83Ju+JYfEv0osdhzj65lopw1MV+Tpqz jjo2tuI2HxHQyQ0PNw4Tmg7Cu6SPP4GAhKvKB7NTNzeyLxZM3CUh5rwhk5ocZvZR hnPWXoC7NK05J4HTGZ3WkI0Od8KfI3WMzWuZC8sf6Vocekyb/OZr/c0UZPHqf3x2 EKqJIHv1bGJAH1Kqdmry5UuofH7J3vgG35ZebNo/Z+GsB7IZ5joVxKLGeb23uRZT elLBE5gSzIHw2EQsTiWdFZH6lCxYWwvnvUVIn2Mp4aWlXWLLBigWE2ewrftc3/IJ lpFcQsqQPWRhCtR2A+WDOjeJfOLe5VjkfkfS0F5wF/CxuizBzAMCPbsxbi/zPhpr eCN1IJTedO+QoVX8sbuRF0knMw+n1s2LGcaX3ipXZxR7R0mZRvfNJpQLgkz1ZF20 RqaZEDVDFJgzWgfYpKqf97yPlmCDdv3LP6Hw637gHuRQn7QQvDUBvTa70BUEGyOG Kvvl90i6z0xwynWX1dTM64KGvePfJtakRyIBswRSVObxPrAebB8= =vpAd -----END PGP SIGNATURE----- --0fbNge2oXu9eA742--