From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gAcYASeJ/WQ+HwAAauVa8A:P1 (envelope-from ) for ; Sun, 10 Sep 2023 11:15:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gAcYASeJ/WQ+HwAAauVa8A (envelope-from ) for ; Sun, 10 Sep 2023 11:15:19 +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 95FA744A5B for ; Sun, 10 Sep 2023 11:15:18 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=cC+1igN3; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694337318; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wH8li9ddSBYZYJ/oy4CVjlRKkw4wb8N1aWMY17aY19E=; b=l0NXbSJbJZmWfbWlTB5Ob/PwmItOP+G+MaNQN54BvP3ZpBA31v6krHEE33EsR0++IMp1XU CHxgiYPslK7KVow9O38jx4lBPcmFGta6R553GXschxz4TzAFNvqz5dQ1M0ElFLbQV46Jd3 ovpD7z9pJoiu0rKQYQ8z9JYfUV2cqHV8G9ikzIuBilki87ht6ppelAFwVnvZABX0UOsW6w Av7vmgkFRqBE0/WMS83upxIrVz9oXlNocKv4mfd3vesLGy2a3JW7L311R3gIL0NGjst+Ie CDaieaoyeIGJpoiEVVZIXVlBbbohMZ2dMC9q2luOR1poAvl4yzeQ2m8oHW9mFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=cC+1igN3; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694337318; a=rsa-sha256; cv=none; b=vA72CaYYctOJVmsKeEHz0rAnZC9c+S2Vrt+l3zOq/DOnmskyjD1mrjJM23raoircXyjdwE fs7+TSvZAu8pURqS5VfEeV1ECu9/HUQ+2/c6Ir8nvIKBbH0Ob3qME83WXgM87RlVLlIECU FGsdy8ctISuvC4oj2QTnr29DTAI18B6ElmRN/WTULhLylZfU5gt3BXlZkjTo405v683A+q mkqQMZzM+Ny4+GRniwu7MFyqdCtBpXYot+UE26aQ0DukMMmEMhCpLNkkGOr5US8dSCn5+P fpicFJwWjqq33JB8i5v4P7GQ7haWVX+P4MaocFVe58eskEgcJThujGr1D1NQfA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfGWj-0004xu-Jw; Sun, 10 Sep 2023 05:14: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 1qfGWe-0004xl-4K for guix-devel@gnu.org; Sun, 10 Sep 2023 05:14:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfGWV-00043c-Jj; Sun, 10 Sep 2023 05:14:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=wH8li9ddSBYZYJ/oy4CVjlRKkw4wb8N1aWMY17aY19E=; b=cC+1igN3nsBj3o raLNa3YvWa4VQbjkmuU8AnCrv1sixfL/MvU0YzsNyKdB/+9AgIHph/4aYooCyFybR7HI1k79VsFeO jJsLtmVjWk+4uq2YAZjX2BLgImIHXCq7lGq1UpNdwwqbjTxxWWccYsx91+DAbmt6dQHS/UcM1t+bg 62gThfjUIznDf+v5Z6ec0Abfcr6Vj7ldP0CUXPn4ZooGbquXDnRW+8mKRTTlKIHDVsxNSENGMxhpO Aw53zcXSk3UvYGr9uvwgQaAsG6kPmZ71xv209WRHnYwlaTkvbmRcCnv8uNINF/F59PbJ3paBX0euy pEYGF9Iz9uyX2YUgvLjQ==; From: Mathieu Othacehe To: guix-devel Cc: andrew@trop.in, bjoern.hoefling@bjoernhoefling.de, guix@cbaines.net, efraim@flashner.co.il, julien@lepiller.eu, cox.katherine.e+guix@gmail.com, lars@6xq.net, liliana.prikler@gmail.com, rekado@elephly.net, jgart@dismail.de Subject: Cross compilation status Date: Sun, 10 Sep 2023 11:14:29 +0200 Message-ID: <87lede2xvu.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 95FA744A5B X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -4.13 X-Spam-Score: -4.13 X-TUID: 1q8DGyvkQ62D --=-=-= Content-Type: text/plain Hello, 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. Here is a status of cross-compilation in Guix. For cross-compilation to work, the build-system needs to support cross-compilation. The following build-systems explicitly refuse cross-compiling packages: haskell, agda, waf, chicken, rakudo, julia, python, emacs, rebar, cargo, ruby, renpy, dub, android-ndk, scons, dune, ant, pyproject, maven, asdf, r, ocaml, node while the rest of the build-systems do accept cross-compiling packages: clojure, qt, copy, minetest-mod, tree-sitter, raw, linux-module, glib-or-gtk, asdf/source, go, cmake, minify, perl, trivial, guile, elm, font, gnu, asdf/ecl, asdf/sbcl, meson, mozilla, texlive It does not mean that all the packages relying on those build-systems will cross-compile OK. It just means that we will at least try to build those. In term of numbers, the attached script produces the following output: --8<---------------cut here---------------start------------->8--- Total packages: 28076 clojure: 13 qt: 317 copy: 134 minetest-mod: 22 tree-sitter: 35 raw: 2 linux-module: 17 glib-or-gtk: 139 asdf/source: 794 go: 632 cmake: 1278 minify: 12 perl: 839 trivial: 250 guile: 49 elm: 30 font: 101 gnu: 4178 asdf/ecl: 753 asdf/sbcl: 814 meson: 504 mozilla: 2 texlive: 4150 Cross-compilation OK: 15065 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--- 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. Overall 46.5% of our packages will refuse to cross-compile with errors such as: --8<---------------cut here---------------start------------->8--- mathieu@meije ~$ guix build --target=aarch64-linux-gnu librsvg guix build: error: gnu/packages/gnome.scm:3500:2: librsvg@2.54.5: build system `cargo' does not support cross builds --8<---------------cut here---------------end--------------->8--- I'd like to help converge towards the situation where all build-systems support cross-compilation. 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? Thanks, Mathieu --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=cross.scm Content-Transfer-Encoding: base64 KHVzZS1tb2R1bGVzIChndWl4KSAoZ251KSkKCihkZWZpbmUgYnMtY3Jvc3Mta28KICAnKGhhc2tl bGwKICAgIGFnZGEKICAgIHdhZgogICAgY2hpY2tlbgogICAgcmFrdWRvCiAgICBqdWxpYQogICAg cHl0aG9uCiAgICBlbWFjcwogICAgcmViYXIKICAgIGNhcmdvCiAgICBydWJ5CiAgICByZW5weQog ICAgZHViCiAgICBhbmRyb2lkLW5kawogICAgc2NvbnMKICAgIGR1bmUKICAgIGFudAogICAgcHlw cm9qZWN0CiAgICBtYXZlbgogICAgYXNkZgogICAgcgogICAgb2NhbWwKICAgIG5vZGUpKQoKKGRl ZmluZSBhbGwtcGFja2FnZXMKICAoZm9sZC1wYWNrYWdlcyAobGFtYmRhIChwYWNrYWdlIHJlc3Vs dCkKICAgICAgICAgICAgICAgICAgIDs7IElnbm9yZSBkZXByZWNhdGVkIHBhY2thZ2VzLgogICAg ICAgICAgICAgICAgICAgKGlmIChwYWNrYWdlLXN1cGVyc2VkZWQgcGFja2FnZSkKICAgICAgICAg ICAgICAgICAgICAgICByZXN1bHQKICAgICAgICAgICAgICAgICAgICAgICAoY29ucyBwYWNrYWdl IHJlc3VsdCkpKQogICAgICAgICAgICAgICAgICcoKQogICAgICAgICAgICAgICAgICM6c2VsZWN0 PyAoY29uc3QgI3QpKSkgICAgICAgICAgIDtpbmNsdWRlIGhpZGRlbiBwYWNrYWdlcwoKKGRlZmlu ZSAlYnMgKG1ha2UtaGFzaC10YWJsZSkpCgooZGVmaW5lIGNyb3NzLW9rIDApCihkZWZpbmUgY3Jv c3Mta28gMCkKKGRlZmluZSB0b3RhbC1wYWNrYWdlcyAwKQoKKGZvci1lYWNoIChsYW1iZGEgKHAp CiAgICAgICAgICAgIChsZXQqICgocyAoYnVpbGQtc3lzdGVtLW5hbWUKICAgICAgICAgICAgICAg ICAgICAgIChwYWNrYWdlLWJ1aWxkLXN5c3RlbSBwKSkpCiAgICAgICAgICAgICAgICAgICAocmVm IChvciAoaGFzaC1yZWYgJWJzIHMpIDEpKSkKICAgICAgICAgICAgICAoaGFzaC1zZXQhICVicyBz ICgxKyByZWYpKQogICAgICAgICAgICAgIChzZXQhIHRvdGFsLXBhY2thZ2VzICgxKyB0b3RhbC1w YWNrYWdlcykpKSkKICAgICAgICAgIGFsbC1wYWNrYWdlcykKCihmb3JtYXQgI3QgIlRvdGFsIHBh Y2thZ2VzOiB+YX4lfiV+JSIgdG90YWwtcGFja2FnZXMpCgooaGFzaC1mb3ItZWFjaCAobGFtYmRh IChrIHYpCiAgICAgICAgICAgICAgICAgKHVubGVzcyAobWVtcSBrIGJzLWNyb3NzLWtvKQogICAg ICAgICAgICAgICAgICAgICAoc2V0ISBjcm9zcy1vayAoKyBjcm9zcy1vayB2KSkKICAgICAgICAg ICAgICAgICAgICAgKGZvcm1hdCAjdCAifmE6IH5hfiUiIGsgdikpKQogICAgICAgICAgICAgICAl YnMpCihmb3JtYXQgI3QgIkNyb3NzLWNvbXBpbGF0aW9uIE9LOiB+YX4lfiV+JX4lfiUiIGNyb3Nz LW9rKQoKCihoYXNoLWZvci1lYWNoIChsYW1iZGEgKGsgdikKICAgICAgICAgICAgICAgICAod2hl biAobWVtcSBrIGJzLWNyb3NzLWtvKQogICAgICAgICAgICAgICAgICAgKHNldCEgY3Jvc3Mta28g KCsgY3Jvc3Mta28gdikpCiAgICAgICAgICAgICAgICAgICAoZm9ybWF0ICN0ICJ+YTogfmF+JSIg ayB2KSkpCiAgICAgICAgICAgICAgICVicykKCihmb3JtYXQgI3QgIkNyb3NzLWNvbXBpbGF0aW9u IEtPOiB+YX4lIiBjcm9zcy1rbykK --=-=-=--