From unknown Sat Jun 21 03:22:02 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#66866 <66866@debbugs.gnu.org> To: bug#66866 <66866@debbugs.gnu.org> Subject: Status: Grafting breaks cross-compilation Reply-To: bug#66866 <66866@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:22:02 +0000 retitle 66866 Grafting breaks cross-compilation reassign 66866 guix submitter 66866 Denis 'GNUtoo' Carikli severity 66866 important thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 31 21:56:35 2023 Received: (at submit) by debbugs.gnu.org; 1 Nov 2023 01:56:35 +0000 Received: from localhost ([127.0.0.1]:49566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qy0TA-0006fZ-2u for submit@debbugs.gnu.org; Tue, 31 Oct 2023 21:56:35 -0400 Received: from lists.gnu.org ([2001:470:142::17]:56370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qy0T3-0006fC-VB for submit@debbugs.gnu.org; Tue, 31 Oct 2023 21:56:30 -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 1qy0SP-00010s-A1 for bug-guix@gnu.org; Tue, 31 Oct 2023 21:55:45 -0400 Received: from cyberdimension.org ([80.67.179.20] helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qy0SM-0002vj-Cg for bug-guix@gnu.org; Tue, 31 Oct 2023 21:55:45 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id da4b97a0 for ; Wed, 1 Nov 2023 01:55:37 +0000 (UTC) Received: from primary_laptop (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id eb007b73 for ; Wed, 1 Nov 2023 01:55:37 +0000 (UTC) Date: Wed, 1 Nov 2023 02:55:17 +0100 From: Denis 'GNUtoo' Carikli To: bug-guix@gnu.org Subject: aarch64 system cross compilation + pinebook pro image broken? Message-ID: <20231101025517.5cce4d7f@primary_laptop> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/AUwmhF8_3+2ZyTVzoa6..iA"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=80.67.179.20; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) --Sig_/AUwmhF8_3+2ZyTVzoa6..iA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, With: > $ guix describe > Generation 311 nov. 01 2023 00:03:34 (current) > guix 938a47c > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: 938a47c86d7bea785f33f42834c5c1f3dfa594b0 And the following minimalist system configuration: > ;;; Copyright =C2=A9 2023 Denis 'GNUtoo' Carikli. SPDX-License-Identifier: > GPL-3.0+ (use-modules (gnu bootloader)=20 > (gnu bootloader u-boot) > (gnu system file-systems) > (gnu packages linux) > (guix gexp)) > (operating-system > (host-name "g") > (bootloader (bootloader-configuration > (bootloader u-boot-rockpro64-rk3399-bootloader) > (targets '("/dev/mmcblk2")))) > (kernel linux-libre-arm64-generic) > (file-systems (cons (file-system (mount-point "/") > (device "/dev/vda1") > (type "ext4")) > %base-file-systems))) that I built with: > guix system build --target=3Daarch64-linux-gnu noconfig.scm I end up with: > [...] > checking build system type... x86_64-unknown-linux-gnu > checking host system type... Invalid configuration > `aarch64-linux-gnu': machine `aarch64' not recognized configure: > error: > /gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash > ./config.sub aarch64-linux-gnu failed error: in phase 'configure': > uncaught exception: srfi-34 # "/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" > arguments: ("./configure" "CC_FOR_BUILD=3Dgcc" > "CONFIG_SHELL=3D/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3= .0/bin/bash" > "SHELL=3D/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/= bash" > "--prefix=3D/gnu/store/mn43k8aldd7h9jcx8q5ryij29kdqriz0-gawk-mesboot-3.1.= 8" > "--enable-fast-install" "--build=3Dx86_64-unknown-linux-gnu" > "--host=3Daarch64-linux-gnu" "ac_cv_func_connect=3Dno") exit-status: 1 > term-signal: #f stop-signal: #f] 1700400> phase `configure' failed > after 115.3 seconds command > "/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" > "./configure" "CC_FOR_BUILD=3Dgcc" > "CONFIG_SHELL=3D/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3= .0/bin/bash" > "SHELL=3D/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/= bash" > "--prefix=3D/gnu/store/mn43k8aldd7h9jcx8q5ryij29kdqriz0-gawk-mesboot-3.1.= 8" > "--enable-fast-install" "--build=3Dx86_64-unknown-linux-gnu" > "--host=3Daarch64-linux-gnu" "ac_cv_func_connect=3Dno" failed with status > 1 builder for > `/gnu/store/9xwp6pi7ssi9jhhj50dd1apryidcz2hk-gawk-mesboot-3.1.8.drv' > failed with exit code 1 build of > /gnu/store/9xwp6pi7ssi9jhhj50dd1apryidcz2hk-gawk-mesboot-3.1.8.drv > failed View build log at > '/var/log/guix/drvs/9x/wp6pi7ssi9jhhj50dd1apryidcz2hk-gawk-mesboot-3.1.8.= drv.gz'. > cannot build derivation > `/gnu/store/jgd1kl2zavkxsvxa875r8lpndq292vgb-glibc-2.35.drv': 1 > dependencies couldn't be built guix system: error: build of > `/gnu/store/jgd1kl2zavkxsvxa875r8lpndq292vgb-glibc-2.35.drv' failed I've tried to bisect that with: $ guix time-machine --commit=3D -- \ system build--target=3Daarch64-linux-gnu noconfig.scm=20 but strangely I failed to find some working commit, so I end up not being able to bisect. As I understand the Pinebook pro image is also cross compiled, so normally that should fail in the same way. But here something is really strange as well: - The CI says everything is ok here: https://ci.guix.gnu.org/build/2279759/details - The download image doesn't exist but return '{"error":"Could not find the requested build product."}' instead. That correspond to the commit e6af40d7b46b5c9e397a38c62c885fb42ccd9d26 . So if I use: > ;; Adapted from Guix manual, GFDL 1.3 (+?) > (use-modules (gnu system images pine64)) > (operating-system (inherit pine64-barebones-os)) with: $ guix time-machine \ --commit=3De6af40d7b46b5c9e397a38c62c885fb42ccd9d26 \ -- \ system build --target=3Daarch64-linux-gnu pine64.scm=20 I still end up with: > checking build system type... x86_64-unknown-linux-gnu > checking host system type... Invalid configuration > `aarch64-linux-gnu': machine `aarch64' not recognized configure: > error: > /gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash > ./config.sub aarch64-linux-gnu failed error: in phase 'configure': > uncaught exception: srfi-34 # "/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" > arguments: ("./configure" "CC_FOR_BUILD=3Dgcc" > "CONFIG_SHELL=3D/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3= .0/bin/bash" > "SHELL=3D/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/= bash" > "--prefix=3D/gnu/store/mn43k8aldd7h9jcx8q5ryij29kdqriz0-gawk-mesboot-3.1.= 8" > "--enable-fast-install" "--build=3Dx86_64-unknown-linux-gnu" > "--host=3Daarch64-linux-gnu" "ac_cv_func_connect=3Dno") exit-status: 1 > term-signal: #f stop-signal: #f] 170f400> phase `configure' failed > after 209.2 seconds command > "/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" > "./configure" "CC_FOR_BUILD=3Dgcc" > "CONFIG_SHELL=3D/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3= .0/bin/bash" > "SHELL=3D/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/= bash" > "--prefix=3D/gnu/store/mn43k8aldd7h9jcx8q5ryij29kdqriz0-gawk-mesboot-3.1.= 8" > "--enable-fast-install" "--build=3Dx86_64-unknown-linux-gnu" > "--host=3Daarch64-linux-gnu" "ac_cv_func_connect=3Dno" failed with status > 1 builder for > `/gnu/store/9xwp6pi7ssi9jhhj50dd1apryidcz2hk-gawk-mesboot-3.1.8.drv' > failed with exit code 1 build of > /gnu/store/9xwp6pi7ssi9jhhj50dd1apryidcz2hk-gawk-mesboot-3.1.8.drv > failed View build log at > '/var/log/guix/drvs/9x/wp6pi7ssi9jhhj50dd1apryidcz2hk-gawk-mesboot-3.1.8.= drv.gz'. > cannot build derivation > `/gnu/store/jgd1kl2zavkxsvxa875r8lpndq292vgb-glibc-2.35.drv': 1 > dependencies couldn't be built guix system: error: build of > `/gnu/store/jgd1kl2zavkxsvxa875r8lpndq292vgb-glibc-2.35.drv' failed Denis. --Sig_/AUwmhF8_3+2ZyTVzoa6..iA Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmVBsAUACgkQX138wUF3 4mM5uxAAhLoBxaB8TzekmwIP8u47E59nmuygsN4dSHfqxMMSSZGu8dZvDBskSLvl vFcOS5CAV2QLFtQULYpvuAHIDnzejjs7jAk1NNpTdUIh/HWGpm8Yx95vHRXxXBHk 5I39SX3i3ItbEa8dbjD8CtDF1B7H5aHo/hWq9z9LeEhH9alTMAD0PKGDcEW10V/Z 3gh547XcUiP5Atss9XyFmuo3jX3WxZeDV3dapmQ+mUfU7Esd5VX6/42c1WVNnmiq zoCIhK7GGYpJxGoKp1rxXjaJccYDh9VZhpQdQqmPtRbhZrEGrVyKGjW0tWR+aksi AJ/6YT2ZLBGMcAQL5fYXNo6cBQLadJDTmWoyxm3BLi6a1wBcYiK1oKpzQzzi/elI obi1KlPoaAf5pJgR44/QplEpJwNsKx83j6Z9TE/8nPvQKRzerHK/m7UMgJpB3hEN VebPPUkbE/Vsq9MrFeuW/TvzGpGbOUn7Jonm35K7MJiUSpOq4hsqjWy0pWrJECip kz2JnA2eiLiFTTY52EKRNBql9mE7crMtlvIfNNH8sV24GaYQVTsZZA+mqlqGCphE hOBw9VIU4oZ+w2HBf8CHeEdQK4QB93LFUvREExGEyobreYHhjYlVP5qqWGJfiv6k x6sL0DjcbJLAQpFn5N5aF0uYnIOUgUZdBRmIC8ULGzAKRGi69aI= =HWRm -----END PGP SIGNATURE----- --Sig_/AUwmhF8_3+2ZyTVzoa6..iA-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 06 12:58:52 2023 Received: (at 66866) by debbugs.gnu.org; 6 Nov 2023 17:58:52 +0000 Received: from localhost ([127.0.0.1]:40681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r03sB-0006hj-VW for submit@debbugs.gnu.org; Mon, 06 Nov 2023 12:58:52 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:48589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r03sA-0006hN-4F for 66866@debbugs.gnu.org; Mon, 06 Nov 2023 12:58:51 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id F0E4A3200930 for <66866@debbugs.gnu.org>; Mon, 6 Nov 2023 12:58:04 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 06 Nov 2023 12:58:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t=1699293484; x=1699379884; bh=clkNXl36PQYFdf860rO9l9nfI t+S54LUZSJC7Vyx4Vs=; b=qEDmcmJSbIpGwDu/m3df3E8h4zGzMZoAtu9JdGZrj /7MrYX7qxUlLlnzCWvhXXClOwMaqVSQh8qYiCId8kW853XoB9OlO0tIM2fHPP7B0 oe9oeH6BBDTKQQPwuiLDUEQNZF7Htes606c2/nQtTlny02OCoeewF3Obh/sn4bEs LU3qzZ2PpvO7GlTgbHT+EJimweVnVg99UMvMiwzqnKde4LkVqbXvElsLAd7C1kgD VnfbfB04+7qvVHOaFvv7bq2COfqKkJgY3O6ttd6AtQNYoRyv+DRtoeBW0WjvyfHM /HfBtLi4PEzKOicxC7zCwiCM842uWwRXGQZgULpg00wAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1699293484; x=1699379884; bh=clkNXl36PQYFdf860rO9l9nfIt+S54LUZSJ C7Vyx4Vs=; b=beULux5vq00Fi1ncOQWJCXoZgr0RO9Zj0j8OfsucivLIIdoeMob IFwr8wCGw0+bCZGJSIfFuboqvSJ8vMjDYg6+ne55eG51DqskFUGTIRmH0BYY8lyb 8DyItinyJ5tVpUpSlvTjCaEloJd4MDTh5gra2gaB68RkLoxMC4thSClldiRWsLlR E01mdwutbPD1MUsHCknoExyn8M4ANtbRmJoAf79DY0cLzlV4we+4R8LaSADJsJbs 9b1xg82XcPt3t5wqmW+VsWfTueQDbeho3pFEc0gbrVjgk7omc7+gZ1qOfivpwTQN 4HqHRhJ6pMZ7JIukfc5DwUJ6KR3Fnm64eew== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddugedguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfgfhvffufffkgggtsehttdertd dtredtnecuhfhrohhmpegurghnuceoihesuggrnhdrghgrmhgvsheqnecuggftrfgrthht vghrnhepveehiedtleehueegiefgfeetfeehueeiudefudehkeefjeetheegjedtuddtud dunecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepihesuggrnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <66866@debbugs.gnu.org>; Mon, 6 Nov 2023 12:58:03 -0500 (EST) User-agent: mu4e 1.10.7; emacs 29.1 From: dan To: 66866@debbugs.gnu.org Subject: re: aarch64 system cross compilation + pinebook pro image broken? Date: Tue, 07 Nov 2023 01:55:38 +0800 Message-ID: <87jzqu7oih.fsf@dan.games> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66866 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) with git bisect i found after this commit the cross-compilation couldn't work anymore: http://git.savannah.gnu.org/cgit/guix.git/commit/?id=1328c4cca531318e3ed90c6aecb522a5b22a4bcc i think this is beyond my ability to understand why it breaks, but if anyone could take a look at this it would be really helpful. -- dan From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 09 06:42:20 2023 Received: (at 66866) by debbugs.gnu.org; 9 Nov 2023 11:42:20 +0000 Received: from localhost ([127.0.0.1]:46915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r13QS-0005iy-9l for submit@debbugs.gnu.org; Thu, 09 Nov 2023 06:42:20 -0500 Received: from jpoiret.xyz ([206.189.101.64]:52512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r13QQ-0005ip-8D for 66866@debbugs.gnu.org; Thu, 09 Nov 2023 06:42:19 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 9F145185445; Thu, 9 Nov 2023 11:41:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1699530097; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lDUHlEJZS0s/Cj1QE769jtN/vtb5z8/GdPvCdddrSp0=; b=jmLca8/+ckQ+s7QAeTyYztJyiODYvGshaEhaxkd48VeWqzEXblr2VHoQMqR2ZIXhOmAg/k Cd6jUhBJm8DwqI//oAPP8/qXpqT3Aj1p5MIBuAh+YDYYC0UHggP0B3vxqleFVcMqwiZlSI 6lecnteoyELuIQ8oS78sfpC5RreIQobUdbSyLzEJ9O7LPnTBXyeJ0xu2jRwnlDCwNCwWGJ NgifFQP41cndGFi81rXGQpz31wIVVwrR2K/uipOHnlD9vx6dtRdhaa6YhAShX8yxKHP3VA 4jvRtYJCVKt/hEBbwtU7IJYgSlKS1i+rjexkKEpO0MXVHdCU8aRxg80PauUenw== From: Josselin Poiret To: dan , 66866@debbugs.gnu.org Subject: Re: bug#66866: aarch64 system cross compilation + pinebook pro image broken? In-Reply-To: <87jzqu7oih.fsf@dan.games> References: <20231101025517.5cce4d7f@primary_laptop> <87jzqu7oih.fsf@dan.games> Date: Thu, 09 Nov 2023 12:41:32 +0100 Message-ID: <874jhv6tn7.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Level: * X-Spamd-Bar: + Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 66866 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi dan, dan writes: > with git bisect i found after this commit the cross-compilation=20 > couldn't work anymore: Could you post some more details about what you mean by "couldn't work"? What exactly is failing, and with what logs? Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCgAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmVMxWwQHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5Fhcaity6C/sHaBPm5TI/MieR4Zx/u1NcIWwTzO6VRo1f xJrX+VEYX4KDvakt83L2JVTHnndlH8j9i/UL/lrtuQmpC3dz6KclSycW/+C1GCfI Y/JloUmHEmeeyWWw7xX7MK8qUTkGg3cDsC18GlrTsykmruF+5jvTLJOUjhwfSYHQ sL2gSc9Mv5+Ov6MqbsLOXlF4XuKEVY1TmmqeJqX2YzY5BiHKCTD6S59G7UYWvegP xu7kC5rB54sxEr0sPVF1D4wXQkzF3AYOwFN+X2GpqCbzGWbPdNcWABI/NKx7V7oP /5vaeVakONWk2v5/4G0jF8NSObzf64SS5bEkU70W/ywoTvGnXPIjY2ZV3yWHrOQg 6mNhuBJUZLQhBxSuVBk6gCVIXBNkQNvEmUxYiWoIvaHOhR7m5F67JwMUILDHENqN CmnTxMqzkzuQXJiYfN1GXxeyR0sBM89LD+0xJMejTJcDFCVmU7TRmcQ8QdfnereV vEhzQ2ZdOpF2qRJNtzlG0TbKRfsJwpA= =PZI6 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 09 07:40:06 2023 Received: (at 66866) by debbugs.gnu.org; 9 Nov 2023 12:40:06 +0000 Received: from localhost ([127.0.0.1]:46971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r14KL-0001Yf-RV for submit@debbugs.gnu.org; Thu, 09 Nov 2023 07:40:06 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:56597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r14KI-0001Y2-Hv for 66866@debbugs.gnu.org; Thu, 09 Nov 2023 07:40:04 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 014005C030C; Thu, 9 Nov 2023 07:39:18 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 09 Nov 2023 07:39:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1699533557; x=1699619957; bh=Fu Nt1LGuB26J06xL9b4n4YGz+zzO/+LeRhRnbRFy3O0=; b=iMEX3Ypcwg9a472Pny DrXwj7hXIKsuSRLDL39GOTg1Z/bsCDAVc+SG1xUpZe/aCFaXTqmS2SSIHGIsoN1x 1+C371bkinqyB67yvhdjJ1IBdUfywJ3njBM0QLOsj6O6UUb3rsPmuIhu67GUr4TH CX+UgOUVdELQ9eJrNhIx9o1BSVCQ3Xy1yBJ0XXBeq083fAUZ3KIYiozCn6vGIvVT poPnbNJw1GCM+w7epUySsr628z9uiPiwT6EDsShW1YhFqUqaFoLgvUENZ0e+8lhp 2JSh4lUiEvYQG3+MrgAj5K2blYo1dW35KHEp6pR65prbNUUwxSzUAG143DW6BDS8 1pBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1699533557; x=1699619957; bh=FuNt1LGuB26J0 6xL9b4n4YGz+zzO/+LeRhRnbRFy3O0=; b=HuLClNkUzuy0Y377KOM0cHbxNqD3A 3HbhScVM1Oi7t9syHKdTKWnMpvym3HDSSXpfU5KuAx2MtH6wUQnPBhlrKNttWri9 s+Ew/LGsLNACrealwyzH5c4C4LMx6SGLEYkezkoolUaZMIWs72Ytx4nRBJrFQT68 6nx5zztG12d/6yL0xvUe+Oc4CK9xm3lCoVAOI00aJPWVJ7nRXB3hbw9wDzFCQaZq yJuZtPLT4l82tlLyu6aVm0CH4EIZ6D6fCckV8PavMRLlojfCccKBDcqfNSJSBcMr Qfju+7UcnofMFQtWfy0pJR/QpXrx/DsXpdjtWolw06oWsmya+AHxNyLcw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvuddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfeehmdenucfjughrpehffg fhvfevufffjgfkgggtsehttdertddtredtnecuhfhrohhmpegurghnuceoihesuggrnhdr ghgrmhgvsheqnecuggftrfgrthhtvghrnhepjeduffduveeggffgheduvdeiiedvuefhvd fgvdejgfdvtddtvefghfdvhfegjeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepihesuggrnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Nov 2023 07:39:15 -0500 (EST) References: <20231101025517.5cce4d7f@primary_laptop> <87jzqu7oih.fsf@dan.games> <874jhv6tn7.fsf@jpoiret.xyz> User-agent: mu4e 1.10.7; emacs 29.1 From: dan To: Josselin Poiret Subject: Re: bug#66866: aarch64 system cross compilation + pinebook pro image broken? Date: Thu, 09 Nov 2023 20:23:56 +0800 In-reply-to: <874jhv6tn7.fsf@jpoiret.xyz> Message-ID: <87a5rn6qz7.fsf@dan.games> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 66866 Cc: 66866@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) Hi Josselin, Josselin Poiret writes: > Could you post some more details about what you mean by > "couldn't work"? > What exactly is failing, and with what logs? I was testing it with a cloned guix repo on my disk, opening a shell with "guix shell -D guix git". when checkout to the following commit: > $ ./pre-inst-env guix describe > Git checkout: > repository: /home/dan/workspace/guix/guix/ > branch: HEAD > commit: 1328c4cca531318e3ed90c6aecb522a5b22a4bcc i run "./pre-inst-env guix system build gnu/system/images/pine64.scm --target=aarch64-linux-gnu -n" would get the following result: > $ ./pre-inst-env guix system build gnu/system/images/pine64.scm > --target=aarch64-linux-gnu -n > The following derivations would be built: > /gnu/store/jgd1kl2zavkxsvxa875r8lpndq292vgb-glibc-2.35.drv > /gnu/store/0za1m1xwpzwai1sgq5zwgyk6zg62w6a0-diffutils-boot0-3.8.drv > /gnu/store/1mizwrvfq2f96jjwxbky0q1pbdhfr09g-grep-mesboot-3.8.drv > /gnu/store/9xwp6pi7ssi9jhhj50dd1apryidcz2hk-gawk-mesboot-3.1.8.drv > /gnu/store/bfh1p0wjl0jgy7yyzrl9kxxls08in0z9-glibc-mesboot-2.16.0.drv > /gnu/store/bwx8g1wy9pc4aa5my3c8mqg0cb68hhw3-make-mesboot-3.82.drv > /gnu/store/da5mc3xqc5rqlzc6jyvhgw2nklhcxrxn-gcc-mesboot-4.9.4.drv > /gnu/store/f5l62q2ykp5vc9pvnw7cwp9ymkyb1m0p-tar-mesboot-1.34.drv > /gnu/store/knnik0y9ckaiahhyrc0vrmciz92jfiaf-gcc-mesboot-wrapper-4.9.4.drv > /gnu/store/sdz4dcdd1fnp078m4km980h3q5668w44-sed-mesboot-4.8.drv > /gnu/store/svcq1qj4j5b784z2sykrm5nj6qsv0mly-make-boot0-4.3.drv > /gnu/store/vljsi6fwfpxwf3bivhsv7nvrdilk0c89-xz-mesboot-5.2.8.drv > /gnu/store/1am1zifq9lvlrx7xayzfgq10bzwyi9jz-gawk-boot0-5.2.1.drv > /gnu/store/2fyrmqijwm1kn90iy1n339kip9c4iq7d-bzip2-boot0-1.0.8.drv > /gnu/store/3kcikvc17a4wfh4bz13sibnbbz2ybi8j-sed-boot0-4.8.drv > /gnu/store/879pl2y8f87r7x7p14cxg43qzwrabvhz-bash-static-5.1.16.drv > /gnu/store/9h6w80fckq0pz6h9w7ab6si6x9arw46s-coreutils-boot0-9.1.drv > /gnu/store/b7abpvf7w2yv8qzj9gvrbxqvys3cfvvi-binutils-cross-boot0-2.38.drv > /gnu/store/gjln0wdfin1cd4pa5p05xpgcm18zhbpb-tar-boot0-1.34.drv > /gnu/store/lzyaiv4rri34n3wqyr7sh7as5rm3qscy-file-boot0-5.44.drv > /gnu/store/xkrprcjws5xjanfbyzxvyjrz59dza43l-findutils-boot0-4.9.0.drv > /gnu/store/z9v1jii5ja9y8szrgfyq9vbainldzzrx-patch-boot0-2.7.6.drv > /gnu/store/bansacd0mz6f0jilr2b18na7k41vyd7l-gcc-cross-boot0-wrapped-11.3.0.drv > /gnu/store/c97avnw7ivnsf4zpz2lhpy7gnxvdyi1v-glibc-intermediate-2.35.drv > /gnu/store/f9djhbwy9p706xzkl0r0zx5brqhlm0qd-gcc-cross-boot0-11.3.0.drv > /gnu/store/r4ab2f6hmrd0z630c1isyyq7dd3pr3zd-libstdc++-boot0-4.9.4.drv > /gnu/store/nq5i5b8y411hfzc5a0xcqmjiw6y2f5wq-ld-wrapper-boot0-0.drv but with the previous commit: > $ ./pre-inst-env guix describe > Git checkout: > repository: /home/dan/workspace/guix/guix/ > branch: HEAD > commit: f62737bfee086040fa3ecb26968f6d16f84147aa i run the same command, would get the following result: > $ ./pre-inst-env guix system build gnu/system/images/pine64.scm > --target=aarch64-linux-gnu -n > The following derivations would be built: > /gnu/store/cax2125wghlr5wz8hwllrz6vb3l7wd83-system.drv > /gnu/store/1r0j7c31427lirfdrdggjk9q3jqimf2h-etc.drv > /gnu/store/4wf34mjqdb7bnx6jfyhlyki5v14dzvvg-profile.drv > /gnu/store/3wh899wnr71shq81lnl3kaw1rpnilvrn-linux-libre-arm64-generic-6.4.16.drv > /gnu/store/x7c5jrsg2kv71jb5bdxf4cv107mlnf4p-linux-libre-6.4.16-guix.tar.xz.drv > /gnu/store/gyhzn3j6iqa3yf25fv2crbkssg5b7xn5-linux-libre-6.4.16-guix.tar.xz.drv > /gnu/store/d11phf2n76syynzmrf02va9phjmgr2d2-raw-initrd.drv > /gnu/store/fqnahvhkabz9riaw5ffr3pnpsp1qiyj8-init.drv > /gnu/store/0arw5hrqdvzf2ma370ki2d2sn7gij3j5-linux-modules.drv > /gnu/store/92phv6cpskhywlwv0lqh9ssrmdbm3rls-module-import-compiled.drv > /gnu/store/hgd43fd0b1xgfw23xmq99k75kiq94zpq-boot.drv > /gnu/store/a5gwz9v5l5slihmws7wh9x0ic1ckjrb7-shepherd.conf.drv > /gnu/store/0kiyxgqnjxigfcks0n494apj6wqb6ylg-shepherd-term-tty3.go.drv > /gnu/store/hpjcgw36jypikzj4qqsb8wmlh140gy1f-shepherd-term-tty3.scm.drv > /gnu/store/14f4h28fs49vnqvdc65xr5ddcmsh2i79-shepherd-user-file-systems.go.drv > /gnu/store/njwv1l3hx5lcph4k0d0ld0j3cggc6c3h-shepherd-user-file-systems.scm.drv > /gnu/store/1blrbcbd54yxzc6i57gqba3wf59icc6p-shepherd-file-system--sys-kernel-debug.go.drv > /gnu/store/69i8aqkgqlka4f9ld1dg6bqgykc6ygpa-shepherd-file-system--sys-kernel-debug.scm.drv > /gnu/store/1sriznlp88pvsjl7nc0pjjzbdy5ws3af-shepherd-loopback.go.drv > /gnu/store/rrxcn31zcsnxlaq8zk9gll4iidh0ic1m-shepherd-loopback.scm.drv > /gnu/store/v31z2xn1cppj0a1f3yiyvj644vmwndin-set-up-network.drv > /gnu/store/y6jhmhhi82pmbdajj69bbzmy4k32pdfg-tear-down-network.drv > /gnu/store/2kk9i32m2kb8cnz30j4bwh4mmdndppl5-shepherd-term-tty4.go.drv > /gnu/store/k05d8mgivw164n2y4gjg2x3z7lkqdpqw-shepherd-term-tty4.scm.drv > /gnu/store/520k2gmf1ijjb76ya5w6ygbv4liwp39k-shepherd-sysctl.go.drv > /gnu/store/fib3qy0y43a4a93qyndqbikvqgrhfkxa-shepherd-sysctl.scm.drv > /gnu/store/7s3s1668iaiim9dpgz1a7csff4jwc3xh-shepherd-file-system--gnu-store.go.drv > /gnu/store/bja3yyc9w5hky3r1aq5hdnb1krn7qg4m-shepherd-file-system--gnu-store.scm.drv > /gnu/store/8dq6wd9r3jzvqd0vr8q1glp6mhj6gjpf-shepherd-syslogd.go.drv > /gnu/store/51srqr58bryw03yk270v9mssbfarmpp9-shepherd-syslogd.scm.drv > /gnu/store/99q0vjfzifrfgscc8yl194c9q52fkwyq-shepherd-udev.go.drv > /gnu/store/65df4zhha8cf26n22vyj17gsj9724474-shepherd-udev.scm.drv > /gnu/store/bm7xbhjj5zs2xq23gnq6gnzyilxmbs07-shepherd-user-homes.go.drv > /gnu/store/6hrjiznzhzgjj3adgkq1zwkvlyyj314m-shepherd-user-homes.scm.drv > /gnu/store/bmsjagrlm632hv92gkrpdpjq3n229sna-shepherd-term-ttyS0.go.drv > /gnu/store/z4s7dgif1y0yva5xqbjy34lnf7zv7gf2-shepherd-term-ttyS0.scm.drv > /gnu/store/chwdh3w2dak4p8kgapsxd1lqp9iz62g5-shepherd-term-tty5.go.drv > /gnu/store/s13f3l8xbyilkc0a1yqw7s49h6cq2i13-shepherd-term-tty5.scm.drv > /gnu/store/cxagxv7w84ql14pccfjnb06856a2g9l5-shepherd-ntpd.go.drv > /gnu/store/kivwsv987k6gk6j7p83fj3l01vyx1y7p-shepherd-ntpd.scm.drv > /gnu/store/d3f3dmjx37v0nqbya4jsdghm6v1qrzh5-shepherd-file-system--dev-shm.go.drv > /gnu/store/h21i7lnl53r44gihzyr0fgvddm1s6p46-shepherd-file-system--dev-shm.scm.drv > /gnu/store/fz1rh58hxrjbbapx18rpls7bnakgzhxw-shepherd-console-font-tty5.go.drv > /gnu/store/8mql0kq6kcjd61rwj8bls9m5mlcsq0a8-shepherd-console-font-tty5.scm.drv > /gnu/store/gjvqi9g6yy9qci4p67kyyaam6dw61805-shepherd-console-font-tty1.go.drv > /gnu/store/402zm6hv4lc39z0ykfsx714ib5bcv5wm-shepherd-console-font-tty1.scm.drv > /gnu/store/hngg96ll4kf0z86nhw4ywkzv0lza583d-shepherd-root-file-system.go.drv > /gnu/store/2li00z702m92f0li64s24fqb8976ilfw-shepherd-root-file-system.scm.drv > /gnu/store/i2yxdpd0kkxlvsg0r6lcqh71r9j6v05i-shepherd-console-font-tty2.go.drv > /gnu/store/h8vy9vhijsaaigfqfr72yda1fa6bx592-shepherd-console-font-tty2.scm.drv > /gnu/store/i5l3z1nd148i4nfwqmaa8bm4aj3vg4ac-shepherd-mcron.go.drv > /gnu/store/2mcmgdhxqxpnlw62w34fsiind9wmdkap-shepherd-mcron.scm.drv > /gnu/store/igh05n6cl1j4mbln0pbcigvivy0b9ikg-shepherd-term-console.go.drv > /gnu/store/hf45xs7dg95hxlvy5mgzr97b6ddc6x5k-shepherd-term-console.scm.drv > /gnu/store/ihjlaih6s44qkbbm14f1cy5q19rr1akm-shepherd-nscd.go.drv > /gnu/store/lp1bbipmkc9g3yql4h065i5dhgx5jrc8-shepherd-nscd.scm.drv > /gnu/store/iisgxznxsy92wsjzrqcf6ddwmn28nx4f-shepherd-console-font-tty6.go.drv > /gnu/store/6icw2vx5r4wh3dbsxmnh2w2503qrmqyz-shepherd-console-font-tty6.scm.drv > /gnu/store/ij0lkffa6wdlyl7kj27s2w6zax1rvxd9-shepherd-console-font-tty4.go.drv > /gnu/store/25g92fvbda0yrizzzw8kjadsamm26srm-shepherd-console-font-tty4.scm.drv > /gnu/store/j9k6rmd56bdn15902liwxv48x2bbq11s-shepherd-networking.go.drv > /gnu/store/dvv78as9zahczwah44rmi5rl4s7yg8ax-shepherd-networking.scm.drv > /gnu/store/jk5fymc5jib7w21a7p956pbz852yalww-shepherd-term-tty6.go.drv > /gnu/store/ngzgzpi2bz690q1nskdz2fjrsp331xlg-shepherd-term-tty6.scm.drv > /gnu/store/jx2jppx5dhmnjcwcfxls2kg77x264hx1-shepherd-user-processes.go.drv > /gnu/store/bp8sivwmxa3g9wzdwzpjaa4nwskiwasf-shepherd-user-processes.scm.drv > /gnu/store/k79janpj778l510bgi37wpmxh0ha1hh2-shepherd-file-system--sys-firmware-efi-efivars.go.drv > /gnu/store/y223il22d89isplp1bian122anyjpdx8-shepherd-file-system--sys-firmware-efi-efivars.scm.drv > /gnu/store/mavfkif2mrzs5kl0ki991qw6bjjba0g0-shepherd-virtual-terminal.go.drv > /gnu/store/rdqs6n095b3ik11xssxm5yxxx11pkb60-shepherd-virtual-terminal.scm.drv > /gnu/store/n59zim15hxx6la4dlx1vnzh1yxsb0yid-shepherd-guix-daemon.go.drv > /gnu/store/mr9c3vz52xw91f8f0vdbh4jrcq5rgmrg-shepherd-guix-daemon.scm.drv > /gnu/store/bsg6ch3xba65vbnvzyhziy3yipdl83rb-module-import-compiled.drv > /gnu/store/xj7d31m5al9p9s01js3wm2xzq00yw65k-module-import.drv > /gnu/store/gh8jn7v8g6wjlv7xxd4iwb8s6lf1vi13-module-import.drv > /gnu/store/j4jpv3fz040ib61a5gxmfnkhlmpbxjqh-module-import-compiled.drv > /gnu/store/nbbh16s2mknyqbg2xg0iyv26rlzgvjaw-shepherd-term-tty1.go.drv > /gnu/store/6wfg73yi16y53s4s7hcz5nxwcfxjcaz3-shepherd-term-tty1.scm.drv > /gnu/store/nv97smi17v2karxph7srdrfpwq35rppw-shepherd-pam.go.drv > /gnu/store/v8ff296w21accz3bvqg9jh8wdc82qvga-shepherd-pam.scm.drv > /gnu/store/palakvjqjnj80jbyra4scfyspih1wifi-shepherd-console-font-tty3.go.drv > /gnu/store/y005yjlik5dsixcni8msx9nbqsbipxcj-shepherd-console-font-tty3.scm.drv > /gnu/store/rgbw62hmvkxjlgdfk3f3ry5l5pn4zh75-shepherd-file-systems.go.drv > /gnu/store/dkh818aiaj7avqd8rp5zm9nisl1r3711-shepherd-file-systems.scm.drv > /gnu/store/rrllmghp7q776jywrr75qhmrspg26584-shepherd-term-tty2.go.drv > /gnu/store/897giswvipl2xhgwb9v4yz1y09ivhlhq-shepherd-term-tty2.scm.drv > /gnu/store/sxa2xavxmcdawczwzqfrxvjxai9m9371-shepherd-host-name.go.drv > /gnu/store/xip20gf2vd552myd42ycp2dyhai35xng-shepherd-host-name.scm.drv > /gnu/store/y0ni7a5zjy4nqv4yfxn4bslzsj6v88pm-shepherd-file-system--dev-pts.go.drv > /gnu/store/h7cbhd75fdav2031v155pw0a5zs52jzg-shepherd-file-system--dev-pts.scm.drv > /gnu/store/yqcz9zidxs1kdq77zhap3zkpx3fcp0ay-shepherd-urandom-seed.go.drv > /gnu/store/lqvhnjgzawdpnvljggvrr83hl37aadhy-shepherd-urandom-seed.scm.drv > /gnu/store/vd1l7svckb1fq3nlmzjwbzaqp4cz0x9n-activate.scm.drv > /gnu/store/1vgahz7srvsdzbhjnc702gl7qi60vpf4-activate-service.scm.drv > /gnu/store/gx60xc2lrxgd1fibjcwkvi454ddhq8k8-acl.drv > /gnu/store/8bbiy0lafccd4lzp0af57l0w3psbdzmn-module-import.drv > /gnu/store/nb6fkdy1v30xlkd4p3xs4bwfqfg9dssb-module-import-compiled.drv > /gnu/store/3agzzn8p3zin7vnzhhah8r6r2pgff0ds-activate-service.scm.drv > /gnu/store/znkjpdb6x1sf6vzya7bycvpbgvvlnnmz-activate-service.scm.drv > /gnu/store/k9y3w7adb6g3cp3flgadz4apmly0qq4r-parameters.drv > /gnu/store/x02skzyvfwdrhff50lp0yq25ha9gr5gg-profile.drv > The following grafts would be made: > /gnu/store/y7lx3n5lqkp7vk6nzkhk10bigkgdf8x0-ntp-4.2.8p17.drv > /gnu/store/aqgyf8rnhfir47cgqgh1800fcsqzvm1g-usbutils-015.drv > /gnu/store/3bwg8pc7hd2m735sb1sl5is9ksh44l0m-python-3.10.7.drv > /gnu/store/cv70dvs89zfqfhsah2l0ch0jx3dqx0kc-tk-8.6.12.drv > The following profile hooks would be built: > /gnu/store/4vg65901lji5f69d0p28zgsb9ixsa9wy-linux-module-database.drv > /gnu/store/gm6qi78vsz56rnl69nqyqjjd2i0bn8l6-manual-database.drv > /gnu/store/l2g2ibnrvh9r0xfjjfp3y4qygavj6z54-fonts-dir.drv > /gnu/store/mlnqcgp644h5wbd0sj8xxnfj6ywva91j-info-dir.drv > /gnu/store/qj73yz4kwdp30vk9524sjqr2bng8zbfj-ca-certificate-bundle.drv > /gnu/store/wfpvk0c61qpgyd04qhqn07lh1nry7fqn-emacs-subdirs.drv It seems like with commit 1328c4cca531318e3ed90c6aecb522a5b22a4bcc, when building the system image, it tries to bootstrap the world? When running the previous command without the "-n", it returns the exact same error posted by GNUtoo, which is failed at building gawk-mesboot, which doesn't support aarch64-linux at the moment. Are these logs sufficient? -- dan From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 31 10:50:40 2023 Received: (at 66866) by debbugs.gnu.org; 31 Dec 2023 15:50:40 +0000 Received: from localhost ([127.0.0.1]:46884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJy5H-0004wt-Je for submit@debbugs.gnu.org; Sun, 31 Dec 2023 10:50:39 -0500 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:60515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJvwd-0002yT-HP for 66866@debbugs.gnu.org; Sun, 31 Dec 2023 08:33:36 -0500 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-50e67e37661so8533175e87.0 for <66866@debbugs.gnu.org>; Sun, 31 Dec 2023 05:33:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704029606; x=1704634406; darn=debbugs.gnu.org; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=Niz4WJO972BNvaX0Fk13D3ATkoa7718BNN9Ixx+duIs=; b=iLwROEwXZ/073yf0PJx8tKTZ2ORo5qmnxm7YuZtQ2pK5GCFtAKcIJdDWxE73veG0i3 Kg6tmEH7fVTRpQ3WDWKmxNawYrG88rtVzrgodynhOwkxt+iZvF4XBUNa+3omtu0Jj0kX gCoTYopZSYTTPmOngPqOUUW/KJLExg/ZYtTYfSWHzL3nXX7Hmp9ovDfp/5Q5RHckDXdi 1cCBPaCbSQiOgQkmKVZ0IFIQhMzs7Nc8sdetjBu4vyLVbBcLzeBi7AoxJkaxPQEtL1Qh PCJdrKc6XpOQcWxczZb2GHWVFbHbUqwWNC8DQ8Bmfp4DIEV2HUfRz4K6gr9X2F4HtEgW cbjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704029606; x=1704634406; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Niz4WJO972BNvaX0Fk13D3ATkoa7718BNN9Ixx+duIs=; b=Gjm7zxpVrR919Hhcz5KMe1uO1d+xPOYqDQ3k+DuhxRibi2EjzG4zpQyb/1/wG74pgB Zw+OqdNzAAOh6Wx92N/O+Zkk/HcJCJ+dWz8uv5KFZGLkp754V9E5PCKyP6Wxz3yBLTgY 0YVU0HrjrlFbOrAW1B+cEv5VACtG2jiJ0DMJaxQjzUkGrjJvw+OzZ6q/ftGneGNSUf4B tweIUzDYkHu/00jZuxq1e/3y1bhGGXBgwJFvwAMSI8Ylj2Ge+yiJcX4Fh/6SyfEB6T8u 9L5VC9T0NsJ8RmcO/0Dq/6xm3PRHoSOOp/J0XkUXnS/7qJ7Uy8C191F92Wk2q8g+BirG 9zNA== X-Gm-Message-State: AOJu0YwY/lmEHWLeOV2uyhthjsLn+qLhHjqxkAusr0zrubuRkGdHZRUF F4Sw7QVhb6+V48F87naT1M/YtzedBi0= X-Google-Smtp-Source: AGHT+IFiTd7er8CtHQii9uvRYdRR6MpnaP0ZQ2uH9RRsW4G3Ue6pqnGLG0cU5kWD7NNkcSqld7+/Gw== X-Received: by 2002:a05:6512:b20:b0:50e:9356:86e1 with SMTP id w32-20020a0565120b2000b0050e935686e1mr1633531lfu.69.1704029606088; Sun, 31 Dec 2023 05:33:26 -0800 (PST) Received: from localhost (78.79-160-60.customer.lyse.net. [79.160.60.78]) by smtp.gmail.com with ESMTPSA id m26-20020ac2429a000000b0050e6584f531sm2866021lfh.0.2023.12.31.05.33.24 for <66866@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Dec 2023 05:33:25 -0800 (PST) User-agent: mu4e 1.10.8; emacs 30.0.50 From: Lars Rustand To: 66866@debbugs.gnu.org Subject: aarch64 system cross compilation + pinebook pro image broken? Date: Sun, 31 Dec 2023 14:23:07 +0100 Message-ID: <87wmsuxzrz.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 66866 X-Mailman-Approved-At: Sun, 31 Dec 2023 10:50:38 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, bumping this issue since there has been no activity for a while and this error is still present. I get the exact same error as Denis when building any Pine64 images. Building with --system=aarch64-linux instead of --target=aarch64-linux-gnu works, but this is very much slower. This is what I get: > checking for string.h... (cached) yes > checking whether NLS is requested... yes > checking for msgfmt... no > checking for gmsgfmt... : > checking for xgettext... no > checking for msgmerge... no > checking build system type... x86_64-unknown-linux-gnu > checking host system type... Invalid configuration `aarch64-linux-gnu': machine `aarch64' not recognized > configure: error: /gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash ./config.sub aarch64-linux-gnu failed > error: in phase 'configure': uncaught exception: > srfi-34 # > phase `configure' failed after 38.7 seconds > command "/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" "./configure" "CC_FOR_BUILD=gcc" "CONFIG_SHELL=/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" "SHELL=/gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash" "--prefix=/gnu/store/bl3aq7fnpyxq9w2a7bqa4zqgd8z88y8x-gawk-mesboot-3.1.8" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu" "--host=aarch64-linux-gnu" "ac_cv_func_connect=no" failed with status 1 Other cross-compiled images like Raspberry Pi work fine for me. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 03 04:05:53 2024 Received: (at 66866) by debbugs.gnu.org; 3 Jan 2024 09:05:53 +0000 Received: from localhost ([127.0.0.1]:51841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKxCD-0003Wp-1T for submit@debbugs.gnu.org; Wed, 03 Jan 2024 04:05:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKxCB-0003Wb-5z for 66866@debbugs.gnu.org; Wed, 03 Jan 2024 04:05:52 -0500 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 1rKxC1-0000jH-CA; Wed, 03 Jan 2024 04:05:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=mRZQ+dkb6gKRgXJrRzNw6VMtUB2SczlliFxj49cwFfk=; b=JqM0R3A81uWFghkt+b0z lr468UkRxA0/418ood4091i2BIL4Jdn1qPtl7wKs6I1suNEdZYyjkRvlxlbG3J1EgoVExwl9Y3sNA y5k6MwW3UbhBbgquQyCDWfQP2JnsxaADQSOk+VxBfOxJb74q5+XPqTSxUmFvwe8zrm49+U9DEWH9g 3BqBoLfyDCHrort5V3naCbyeXeP8ooAdcpJuoKz6U3/vr20nlKxee/d9QrREckShp56YJ6A7QT46k PcyM5RhLbLWUHW+x5Gqr25wgw9VsRMV91hGm9qaYxwY0j3T5zWWweoJpC5Hj2uUve38gMbGVTf6Zy XytAWZ7EDBCXww==; From: Mathieu Othacehe To: dan Subject: Re: bug#66866: aarch64 system cross compilation + pinebook pro image broken? In-Reply-To: <87a5rn6qz7.fsf@dan.games> (dan's message of "Thu, 09 Nov 2023 20:23:56 +0800") References: <20231101025517.5cce4d7f@primary_laptop> <87jzqu7oih.fsf@dan.games> <874jhv6tn7.fsf@jpoiret.xyz> <87a5rn6qz7.fsf@dan.games> Date: Wed, 03 Jan 2024 10:05:39 +0100 Message-ID: <87o7e2zt0c.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66866 Cc: Josselin Poiret , Jan Nieuwenhuizen , 66866@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, I can reproduce the error by running: --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix system build --target=aarch64-linux-gnu gnu/system/images/pine64.scm --8<---------------cut here---------------end--------------->8--- which cause an issue in gawk-mesboot: --8<---------------cut here---------------start------------->8--- checking host system type... Invalid configuration `aarch64-linux-gnu': machine `aarch64' not recognized configure: error: /gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash ./config.sub aarch64-linux-gnu failed --8<---------------cut here---------------end--------------->8--- Janneke, do you know what could have caused this regression? Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 13 12:55:38 2024 Received: (at 66866) by debbugs.gnu.org; 13 Jan 2024 17:55:38 +0000 Received: from localhost ([127.0.0.1]:41007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOiEM-00025K-6C for submit@debbugs.gnu.org; Sat, 13 Jan 2024 12:55:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOiEK-000252-79 for 66866@debbugs.gnu.org; Sat, 13 Jan 2024 12:55:36 -0500 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 1rOiEF-0005xa-DI; Sat, 13 Jan 2024 12:55:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=hcOk9H3B0phJFN5G83IhB1WGlmwXuixkkKQ41af3NjQ=; b=dOyJREX8v2pKkEw1Xao8 Ywf4vtiHpGSckbmObzXWkJRBSsUVTGFdELwVwmDDwALF4+6/LMOG7ItgaLK0OTH5v6TJJOXrCkewn vK1YeyMgO5JmBJtPSC+k/J2tIVod6RQyIHwhqGoW8X2EoRLvkjInaavE4F6I4O1Tekv8VeR/utXNH 4lp1WeicBpYNYXS+06Z44nSEryqH3pmLJS+LFHhz4LYhKmQ97XmQiuROHLztv/QcspVp/rwbpeeWh lWQEnfHKmx/zFUDy1Ud6o1BbtSDa9ITLD0aJSi4OEUFBHfWwW4jlnJTHPewYLYGWTUjw2CdlcayMZ ok0fHQL6lbrePw==; From: Mathieu Othacehe To: dan Subject: Re: bug#66866: aarch64 system cross compilation + pinebook pro image broken? In-Reply-To: <87o7e2zt0c.fsf@gnu.org> (Mathieu Othacehe's message of "Wed, 03 Jan 2024 10:05:39 +0100") References: <20231101025517.5cce4d7f@primary_laptop> <87jzqu7oih.fsf@dan.games> <874jhv6tn7.fsf@jpoiret.xyz> <87a5rn6qz7.fsf@dan.games> <87o7e2zt0c.fsf@gnu.org> Date: Sat, 13 Jan 2024 18:55:23 +0100 Message-ID: <871qal6ruc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66866 Cc: Josselin Poiret , 66866@debbugs.gnu.org, Jan Nieuwenhuizen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hey, > ./pre-inst-env guix system build --target=aarch64-linux-gnu gnu/system/images/pine64.scm > > > which cause an issue in gawk-mesboot: > > checking host system type... Invalid configuration `aarch64-linux-gnu': machine `aarch64' not recognized > configure: error: /gnu/store/rb75igdc6daly1mz2ivz7rs8hd85imdz-gash-boot-0.3.0/bin/bash ./config.sub aarch64-linux-gnu failed > > Janneke, do you know what could have caused this regression? This probably has nothing to do with the bootstrap packages. I noticed that the CI succeeds in building the pine64 image: https://ci.guix.gnu.org/build/3265001/details. The difference is that the CI is building without grafting. Disabling grafting locally, seems to do the trick as well: --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix system image gnu/system/images/pine64.scm --no-grafts --8<---------------cut here---------------end--------------->8--- The issue seems to be that grafting ends-up dragging the bootstrap packages into the closure when cross-compiling which is quite scary. Mathieu From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 13 12:56:35 2024 Received: (at control) by debbugs.gnu.org; 13 Jan 2024 17:56:36 +0000 Received: from localhost ([127.0.0.1]:41011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOiFH-000272-Np for submit@debbugs.gnu.org; Sat, 13 Jan 2024 12:56:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOiFG-00026p-BP for control@debbugs.gnu.org; Sat, 13 Jan 2024 12:56:34 -0500 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 1rOiFC-0006Qc-Ak for control@debbugs.gnu.org; Sat, 13 Jan 2024 12:56:30 -0500 Date: Sat, 13 Jan 2024 18:56:26 +0100 Message-Id: <87zfx95d85.fsf@meije.mail-host-address-is-not-set> To: control@debbugs.gnu.org From: Mathieu Othacehe Subject: control message for bug #66866 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) severity 66866 important quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 13 12:57:12 2024 Received: (at control) by debbugs.gnu.org; 13 Jan 2024 17:57:12 +0000 Received: from localhost ([127.0.0.1]:41016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOiFs-00028U-0g for submit@debbugs.gnu.org; Sat, 13 Jan 2024 12:57:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOiFq-00028G-19 for control@debbugs.gnu.org; Sat, 13 Jan 2024 12:57:10 -0500 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 1rOiFm-0006ia-0I for control@debbugs.gnu.org; Sat, 13 Jan 2024 12:57:06 -0500 Date: Sat, 13 Jan 2024 18:57:02 +0100 Message-Id: <87y1ct5d75.fsf@meije.mail-host-address-is-not-set> To: control@debbugs.gnu.org From: Mathieu Othacehe Subject: control message for bug #66866 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) retitle 66866 Grafting breaks cross-compilation quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 13 13:42:23 2024 Received: (at 66866) by debbugs.gnu.org; 13 Jan 2024 18:42:23 +0000 Received: from localhost ([127.0.0.1]:41069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOixb-0002tA-2R for submit@debbugs.gnu.org; Sat, 13 Jan 2024 13:42:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOixW-0002sd-Bf for 66866@debbugs.gnu.org; Sat, 13 Jan 2024 13:42:19 -0500 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 1rOixN-0005oW-Vc; Sat, 13 Jan 2024 13:42:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Wmnijj+qWH8mc11qynvNnvpHy3jxQZBlXwLONeOpl9c=; b=ehaGdEXysFpS2MWLDkwL ovJgfi8RJmCk1EZEs3c28+RyrdGCA6mkd/pz3AgOKauiNbxV09tvA3Fg2H+9QSNNc03h4cTO5Wuvc XUzc2MBhyHdJFWpKr4QAV//qDj05q4AXXZoc50K0I8FjfcfDmBrQRG7MViRDcv6D4vkI6HRGW/yIm wXPuJINw/rfusaiNKmj/Iq0y4DvzIKwMOs1lk842sLGwCilg/SVIXJCSXn3YwI41g1aFe8svMFXfz Rg4tY/CdPz966ToDqFk7muWKfX8cdtLOEHV3gVRr/ZUXKunmWGy3XUutuo6J3WDZDsZYPmjpzwkh+ v4dT5nbZbBqKQA==; From: Mathieu Othacehe To: dan Subject: Re: bug#66866: aarch64 system cross compilation + pinebook pro image broken? In-Reply-To: <871qal6ruc.fsf@gnu.org> (Mathieu Othacehe's message of "Sat, 13 Jan 2024 18:55:23 +0100") References: <20231101025517.5cce4d7f@primary_laptop> <87jzqu7oih.fsf@dan.games> <874jhv6tn7.fsf@jpoiret.xyz> <87a5rn6qz7.fsf@dan.games> <87o7e2zt0c.fsf@gnu.org> <871qal6ruc.fsf@gnu.org> Date: Sat, 13 Jan 2024 19:41:51 +0100 Message-ID: <87ttnh5b4g.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66866 Cc: Josselin Poiret , Jan Nieuwenhuizen , Ludovic =?utf-8?Q?Court=C3=A8s?= , Efraim Flashner , 66866@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > The issue seems to be that grafting ends-up dragging the bootstrap > packages into the closure when cross-compiling which is quite scary. I could narrow it down somehow. This commands drags the bootstrap and fails: --8<---------------cut here---------------start------------->8--- guix build --target= alsa-lib --8<---------------cut here---------------end--------------->8--- while this one doesn't: --8<---------------cut here---------------start------------->8--- guix build --target= alsa-lib --no-grafts --8<---------------cut here---------------end--------------->8--- Not sure how to go further. Adding Ludo and Efraim. Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 11 14:34:55 2024 Received: (at 66866) by debbugs.gnu.org; 11 Feb 2024 19:34:55 +0000 Received: from localhost ([127.0.0.1]:42233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZFbK-0006Rz-Hn for submit@debbugs.gnu.org; Sun, 11 Feb 2024 14:34:54 -0500 Received: from mout02.posteo.de ([185.67.36.66]:37659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZFbI-0006Rc-CW for 66866@debbugs.gnu.org; Sun, 11 Feb 2024 14:34:53 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 5C88A240104 for <66866@debbugs.gnu.org>; Sun, 11 Feb 2024 20:34:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707680070; bh=NCc/JU7ln+MDCL+b5nZj/NV2romf4Uf+7RXJhYb+4tE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=EH2l6DvQCXZprdj/7+QkvpN+tYJmJll1FjScO77HcsL+u1Vm1/hAc+9H9jBBsfEMc iRzkBufipS3JxHt+lq/13ZP1yaFHmJ6q70hWJz+McnDOBKYlhC4vgRJdPg40b6JIb9 GBHHRzu1mKzXtMY8Xhh2nl6PGjVSSWone6OkE7eTlTkMjlSTo4GloW/8mvQ+X9oYUm ZYFyvC+8z0lV5tb7NrAJy8Q0zfJto9KJDUdJebbt8UOc/Yn13lIhosgdhP5VLTb2XM p6KvUebQkBuoPuC4d6ds1uCRB6eHvHd2329uAWyP4WhwbpolGm3UygVBjr+BH/CcZz AnI/GioBARGgQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TXyTJ1sTkz9rxP; Sun, 11 Feb 2024 20:34:27 +0100 (CET) From: David Elsing To: Mathieu Othacehe Subject: Re: bug#66866: aarch64 system cross compilation + pinebook pro image broken? In-Reply-To: <87ttnh5b4g.fsf@gnu.org> (message from Mathieu Othacehe on Sat, 13 Jan 2024 19:41:51 +0100) Date: Sun, 11 Feb 2024 19:34:27 +0000 Message-ID: <86h6ien6bg.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66866 Cc: dev@jpoiret.xyz, i@dan.games, ludo@gnu.org, efraim@flashner.co.il, 66866@debbugs.gnu.org, janneke@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, Mathieu Othacehe writes: > I could narrow it down somehow. Starting from alsa-lib, I narrowed it down further. I found that the problem is actually when an input of the package uses copy-build-system. In the following example, the cross-compilation (with --target=x86_64-linux-gnu) for testp2 and testp3 works fine. Their respective inputs are testinput2 (built with trivial-build-system) and the hello package (built with gnu-build-system). For testp1 however, whose input testinput1 is created with copy-build-system, the same thing as for alsa-lib (which depends on two packages built with copy-build-system) happens: Bootstrap packages are starting to be built if grafts are used. The outputs of both testinput1 and testinput2 do not contain store references, so that is not the issue. It is also no problem to build the packages testinput1, testinput2 or hello with grafts. Is there something special about copy-build-system which is not the case for trivial-build-system and gnu-build-system? I noticed that in (guix build-system trival) and (guix build-system gnu), there is a special case for cross-compilation, while in (guix build-system copy), the same code is used as for a normal build. I don't see why this could cause an issue with grafts though. --8<---------------cut here---------------start------------->8--- (define-module (cc-test) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (gnu packages base) #:use-module (guix packages) #:use-module (guix gexp)) (define-public testinput1 (package (name "testinput1") (version "0") (source (computed-file "testp1-src" #~(begin (mkdir #$output) (mkdir (string-append #$output "/dummy"))))) (build-system copy-build-system) (arguments (list #:install-plan ''(("dummy" "dummy")))) (home-page "") (synopsis "") (description "") (license #f))) (define-public testinput2 (package (name "testinput2") (version "0") (source #f) (build-system trivial-build-system) (arguments (list #:builder #~(begin (mkdir #$output) (mkdir (string-append #$output "/dummy"))))) (home-page "") (synopsis "") (description "") (license #f))) (define-public testp1 (package (name "testp1") (version "0") (source #f) (build-system trivial-build-system) (arguments (list #:builder #~(mkdir #$output))) (inputs (list testinput1)) (home-page "") (synopsis "") (description "") (license #f))) (define-public testp2 (package (name "testp2") (version "0") (source #f) (build-system trivial-build-system) (arguments (list #:builder #~(mkdir #$output))) (inputs (list testinput2)) (home-page "") (synopsis "") (description "") (license #f))) (define-public testp3 (package (name "testp3") (version "0") (source #f) (build-system trivial-build-system) (arguments (list #:builder #~(mkdir #$output))) (inputs (list hello)) (home-page "") (synopsis "") (description "") (license #f))) --8<---------------cut here---------------end--------------->8--- Best, David From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 18 14:10:18 2024 Received: (at 66866) by debbugs.gnu.org; 18 Mar 2024 18:10:18 +0000 Received: from localhost ([127.0.0.1]:36586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmHRB-0000ME-HV for submit@debbugs.gnu.org; Mon, 18 Mar 2024 14:10:18 -0400 Received: from wfhigh6-smtp.messagingengine.com ([64.147.123.157]:36963) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rmHAQ-000852-1C for 66866@debbugs.gnu.org; Mon, 18 Mar 2024 13:52:59 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.west.internal (Postfix) with ESMTP id 3157C18000B3; Mon, 18 Mar 2024 13:42:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 18 Mar 2024 13:42:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1710783760; x=1710870160; bh=ft8KbeiQd1 8fym8a+hh9EtZ1KuyMBYXBXjH3uujJzWw=; b=q9FNm5fXIRFayC7/qxIbKFIqxJ fG8JoAyuOvqnZPzQ1flSv08YFQkQLAZw1u0rbyOfsWZ4SSYRQvO++fZY4kxnF4P9 tXd3OcglLL2XWiSCyF7/rX8GAL+K7nI+/Z8Fc+GrYuTqOq2+sFm9zIcoUsyw0d79 De9ZSJ7xGLa0lvBZjihOCTrixvhOcFGfhZT1sWuaFpSYMBr1X2xKyXJvaZUrxzSa Z76KhMYqkxvMEpSStImhJlIW0G5tLG+0xJY5cT40523ZlE0Kxsj1Z9UpISPsKvoy pwJ/DVjNMe0EDXFWlA7mI73uuX+belv/miGsAgcZ5k8865KUCCJcN0t0cS0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1710783760; x=1710870160; bh=ft8KbeiQd18fym8a+hh9EtZ1KuyM BYXBXjH3uujJzWw=; b=DT5Qw1jTpPQKcGXq+mMVnlZXHDvuDoOLtiZ4M+LK57qX Zj8oobV/QSgXULH7uyVi3YWvKfBFVfGF/71x3U1g6qrgpJxFAcAdy2NEWwRPbIoo Yw33mO4YqD+wQJGCNFW6lFBOMW/fwkaankOYSyPvdTQlzUOl7Nfu6y1P+Z+e4nGH TowNHnWgIlsb+XQds8xVZEHxuKCjYUh/3OQrDWkqfm4787AaFjL2XI9dHwsrn0uA 75JzQtp2ScSl2VSm+WVMcG2W7YkgeNgchuZSYlA4SDH0i+4j0gye/Ef/RUhW9Z3j Us/OY+SfYidj+ulYNOg3ZW9uT/EhScpSz9kiawFWoQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrkeejgddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvvefuffgjkfggtgesthdtredttdertdenucfhrhhomhepuggrnhcu oehisegurghnrdhgrghmvghsqeenucggtffrrghtthgvrhhnpeejudffudevgefggfehud dvieeivdeuhfdvgfdvjefgvddttdevgffhvdfhgeejjeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehisegurghnrdhgrghmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 18 Mar 2024 13:42:39 -0400 (EDT) References: <87ttnh5b4g.fsf@gnu.org> <86h6ien6bg.fsf@posteo.net> User-agent: mu4e 1.10.8; emacs 29.1 From: dan To: David Elsing Subject: Re: bug#66866: aarch64 system cross compilation + pinebook pro image broken? Date: Tue, 19 Mar 2024 01:30:31 +0800 In-reply-to: <86h6ien6bg.fsf@posteo.net> Message-ID: <87frwn308k.fsf@dan.games> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66866 Cc: dev@jpoiret.xyz, Mathieu Othacehe , ludo@gnu.org, efraim@flashner.co.il, 66866@debbugs.gnu.org, janneke@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi David, Thanks for sharing your discovery. David Elsing writes: > Starting from alsa-lib, I narrowed it down further. I found that > the > problem is actually when an input of the package uses > copy-build-system. I spent some time digging into the rabbit hole. After changing the lower function of the copy-build-system to look more like the lower function of the gnu-build-system, I'm able to cross compile alsa-lib without the --no-grafts flag. The changes I made are like: --8<---------------cut here---------------start------------->8--- diff --git a/guix/build-system/copy.scm b/guix/build-system/copy.scm index d58931b33c..74304b4bfb 100644 --- a/guix/build-system/copy.scm +++ b/guix/build-system/copy.scm @@ -66,13 +66,13 @@ (define* (lower name (bag (name name) (system system) - (host-inputs `(,@(if source + (build-inputs `(,@(if source `(("source" ,source)) '()) - ,@inputs + ,@native-inputs ;; Keep the standard inputs of 'gnu-build-system'. ,@(standard-packages))) - (build-inputs native-inputs) + (host-inputs inputs) (outputs outputs) (build copy-build) (arguments (strip-keyword-arguments private-keywords arguments)))) --8<---------------cut here---------------end--------------->8--- Can we put everything inside build-inputs? From my understanding, copy-build-system shouldn't care about cross-compilation at all. Any feedback on this would be really helpful. Best, -- dan From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 10 02:45:22 2024 Received: (at 66866) by debbugs.gnu.org; 10 Apr 2024 06:45:23 +0000 Received: from localhost ([127.0.0.1]:51916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruRhw-0002Oe-Es for submit@debbugs.gnu.org; Wed, 10 Apr 2024 02:45:22 -0400 Received: from wfout5-smtp.messagingengine.com ([64.147.123.148]:60139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruRho-0002MP-CW for 66866@debbugs.gnu.org; Wed, 10 Apr 2024 02:45:18 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.west.internal (Postfix) with ESMTP id 902EC1C0009E; Wed, 10 Apr 2024 02:44:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 10 Apr 2024 02:44:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1712731497; x=1712817897; bh=lChIG2EgsWXCwoCNzeL/S8TgO9PQv9mq+EIum64tiCw=; b= kdUEUVO+Gdy71QmDoRgE6CcwFCj1VcNv3/gfCJsUmN+SF0uap6lVFdiKnRGWk41L NIorvOi4D482Sy/jkSp3lY9LGWwAZ5rDemwR9aoN///MeNZ/KekAFFgz3vdCZLs1 G5dQxitkezh0I69Wb1pBTMn5+ZOf/Qh0LYVPyKkqYBVJUGDzOahb4WSWDjYFkPVW 6kvC1bQLg7kwTbDTfwFdJc8YTEdZJf69SvIy8yIPGObw1eSGu9P52/nWaicePuxd 2va2blbri0gUaIxriRbk+o1JCIVSwCfaHIlvGdgGy8Xg16q5ywP0NAJxa5cwEMFH MPn6fyfqYTcyO44gUVCMEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1712731497; x= 1712817897; bh=lChIG2EgsWXCwoCNzeL/S8TgO9PQv9mq+EIum64tiCw=; b=D nIcFlPL6Gxeu7EtAEIMTVEX9LrdpynBgu65XyqRn8xOgnBPvyuMDdry9Mcce1fx9 HX3pzJIv24QgL59NiYVPr7jor6Qmm59Zh5kqOeDij4fNWTyntZweupVZZoAqeskD WaOe5/bzJXzMd/7txRrlEc93t/aIxpwfgu1uPb8qBV+YZYp2MjPDYUgw2If3f4ft 95XozzqKXKyfR34YlRq5bLIY4Lk+XQzUSHbknMa6IRSqGLfAYPNZGmkOiTSb6XUb EPBfPVcWT900QozF6pvVQ0huT4CFNBqEHssus644vkSAN49Arv9cO9rjyZwPneH/ apJUwHa6KfVHiTAM8geKg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudehhedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuhffvvehfjggtgfesthejredttddvjeenucfhrhhomhepuggr nhcuoehisegurghnrdhgrghmvghsqeenucggtffrrghtthgvrhhnpeefudejhfeljeehhf efheevieeifedtueffffelgfduhfdvhfeigeegfeeitdekueenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehisegurghnrdhgrghmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 10 Apr 2024 02:44:54 -0400 (EDT) Message-ID: <00dace82-545c-4443-8129-42c932e02ddc@dan.games> Date: Wed, 10 Apr 2024 14:44:52 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#66866: aarch64 system cross compilation + pinebook pro image broken? From: dan To: 66866@debbugs.gnu.org References: <87ttnh5b4g.fsf@gnu.org> <86h6ien6bg.fsf@posteo.net> <87frwn308k.fsf@dan.games> Content-Language: en-US Autocrypt: addr=i@dan.games; keydata= xsFNBF6egswBEAC54f2W1T5kjfvNPDrva/0A/GgQswLx3qaznObfUlFeiXByQpsKoUqyTLo+ Y+DVpUKB68ghrvBjjFXBr6j3dJKWe4fpN9mkcENm4z4oQ1fVektOlSxZHtdrYzx63XjopiDX CXe1EvRxQ1LloxZVWnzwvPFGOI+89LOPhXTuRfpUvaYfWol+owN2TBmW8m4UIyFIhlLJKSU7 X7vMH/ZJ/tUReQlesRU6x2BZZu3oZLe6MceHwoXVBQGUsGQ/uMxtT0mOmMtOPw+zqyrl1EPF 2QUkmTLbpOymQmXbJM/nRqPoKP8gPbLwPH3DrSFXJCqDLp16DJfSCjL7AmjKs1OX3tD1H1A+ go5JkbrpIsMBsFG6k8PdW9JzxIN2ao9133ssiHIQ2xg51XuKL8cskH7xauainyq32JQ5bzbd acby3yi5oz+NMXvc/7mNADT/wJ8aNU+TOMM0uWjqNo7SMlpCzj42sEYGBA+g1qrFn9cfOfwd nReOIZ4WdYLwmnPHoxK5gDrXYePoiMlOcOtL/3I5NgUQnSL3eLFzl79GIJEE7ydrkiFcVyYj x2QFJYwjjaoUQR3zvZOajoTYxczU26U9ihig/gzAnOddkUZJdMNbxXg7F0vQgD5yV/O08MKk a3K6D9BwoCSsWRvikSRvRpdxqN94Q7Q4Uvx9C1J6AD+lAjqDmQARAQABzRhaaGl4aWFuIEhl IDxpQGRhbi5nYW1lcz7CwY4EEwEIADgWIQQ3EyCYiE4NDnYmBs6xfnz63tjYHgUCYnM7nwIb AwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRCxfnz63tjYHhHbD/wMAUFkpZF26bPJurpS G+ecdv4yXTG3114wWH9I7cz1eI5FGzv4Fmo0CAxYIWzpPWSq7rwzuUhq8sps32J+f+MhkAo4 /YjPh+XVGmo1a8bn4jlH/Mis0H8Cn4/VEmqY4ifSHMveHhGv28FWh/MBnhtkM2nU02wz4jfj Xi6W6d2Ek6tnDtiA12d1ea+B83VHsQy3uDC0tOIrLLNHUqes5B/FoRpO2Q11RBeS8EINr0Km UqgjLuy2JWZSlJnNQ7EDJP38IXnsWRjlySXVU1DCTwsmrMimRjtv58W4pAG3IqTpy5aNythq c9iwiGnbjU2+AGWFvDZEnABXo2KS8iH6YT29gfgKawHi3qyeiOI7KqL+14Mv3ojWdU8vMfln zBnQH0Xag1xahKEwSJXtxQ6wdqDgyC9h3SIyX8anKtDbzXy7+pm61xq6YQcDsaqHIMlDFoq5 C5EQaANJuLzyASHGtMAkSHi5PCrTkSUuOXJ0B8YXI5sVDBoX0uGl1A/tBPvGPJf15dWiK+LF x/0AfZFL2RuMMJZhNlwVnuP6pLaFr94X33j8t6z9lTSI1HLq7+Xogg74jGf/UKZtdKngmPtW Bvf68a6zKEMQdicSie7LFLrkR+LcyPJGUMUEsjPGraD9dxlqVAAhyPag9Dher/6x01eo/XU1 CHK2Klm4/3UQ3D4Ohs7BTQRenoLMARAAnEbwDpFtrIwl+C+pyzgW1SycdyZ5B9HAxdrwVFha cZ9RDb/+rtjuC9n8ofNmDcRFhfmm7FRElzVN7DdVJxXUYyvd156fLXQqezzJOKDjPNdihQGn f+mLJtrfKAqVLPPXBJEP6mKiXwAVTa4yfz/jSZn6Y/Q2w4TSEvYo/jt0UtTx/6hoATu8QaJ/ Svc0172wLszeBl5VTxkJSXqg6EQyULyC3ZYxcKG6WzOnbsTiJVG7BcjokfCUWx+KJfn7WGA9 25Pvo393RaoOsXnu/E6NH1uYaF/SY53zMdmUXeUx4OKXuY1CjSVw4j56VlmZL2Z+BqArdmnX byCNDuKdjPPH03dOL33NYNIz1QeE9Eaxr+xr11AtQtKQtTo2o4lpl0kXXs3rdZBZ0Tf9/gvH QB7SVvQJFuW6M17ON5ritsI3yZdkEepbNRGeQv9eaGjXSv7CZKGJTSNNQw6XZSsd0xrWJQTl 3i3jFsdeHn3D3pMqN2/7A0sJJCUZbkm2BiaLB9cXfl7vVqt90UwFZn7P7LEo69PO9uRPhJEa VP4/vppxKkL6bj6UZvww8nJ16/eaMEiCo6eqvwD93exqAYAF/yaVu7RFF61W0HUh+Rr6d6Ss aIeZNrYxC8E+IgljHr1dhXF3ot9XL7c1rqZBQ4FOLAduP9DkPZq9kA+II/MQZVs4cusAEQEA AcLBfAQYAQgAJgIbDBYhBDcTIJiITg0OdiYGzrF+fPre2NgeBQJkqiDWBQkH7NGKAAoJELF+ fPre2NgeYEUP/2NAHDQG5rELc1TiZ9s5D57c1z3re346F77ulkyQoaQoOc/8be4RejP/+Y+e 9tTHuIoiLhdns9CzrDsTrgy7pb8u4Qq0AFA2rLb3FhjMDXWIoFR2WWAk5vvqa4qaVtCK4zGH hrxlAjhVmSbecg/BI6zDAyprvgQ4ivBYskZdrqfQ/K+M+wFguptyUqhsrdYmyMwT7Zu74z6E wvAPVW822S7qyQvaI/bFR7kccn/k/aHal+f4ZnoWEolqmunrOocERSyfLX+5HxVmCBmeQjJe S88AJmmqCLaJ8a/ImGCqNOD400U6AVCpYzjfKDPB75JJYzxmoqHFjh3YxT4ohPfrBX5jdsm+ wDr+5Juj9RXmeQlAq2uXBfF9cAj9fYMLSYbeMmhvXPm2Q0ONQSs/LU1ZMIevffQrLZmP4MnZ 7kwCQHQihtlTO2v9fMyjp/mxeKurM92wDS+RjEQQIyhiwjDD5CZfoGUlNMgVQo+0uj1GElHg TDODnQ4UcLnnACfjrCfuG7C72C2CYYLFEE7FjUyLbg/ifWY2tMZkMWQAm2l976piLISXeRwl 2Ls084DrAme8qNMtjGn3uyTv54VFzVd65u5/AmqN0Oh3G3E3U4/m0WrR7zOs5DmD2Qh0EdzD eVng84JMl3Cq0F2Uf1DhNjrOa08/ll0WBs0xWWCwwQVbsD/u In-Reply-To: <87frwn308k.fsf@dan.games> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66866 Cc: David Elsing , dev@jpoiret.xyz, Mathieu Othacehe , ludo@gnu.org, efraim@flashner.co.il, janneke@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi all, I would really appreciate if anyone could give some feedback on my previous patch to the copy build system. -- dan From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 10 16:50:19 2024 Received: (at 66866) by debbugs.gnu.org; 10 Apr 2024 20:50:20 +0000 Received: from localhost ([127.0.0.1]:54433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruete-00048p-Lq for submit@debbugs.gnu.org; Wed, 10 Apr 2024 16:50:19 -0400 Received: from mout02.posteo.de ([185.67.36.66]:48723) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruetY-00046d-Vp for 66866@debbugs.gnu.org; Wed, 10 Apr 2024 16:50:16 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 07634240101 for <66866@debbugs.gnu.org>; Wed, 10 Apr 2024 22:49:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1712782198; bh=1A4LKJaSHw33hHmWVSpgNUG4BC7YRzbnBdVKg6JeIw0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=de02avA+7DgpXyWVfvR+mIrKV1GzAQPc4PhzP3IOfk/5rbgRwwSKn4JVaXT1oooA6 gCOPWk9Hcqrv4qLdQrj7y9FMqx37V3n3OsDoSuyDIYwIllDl0Kw6nt+cmiOU1dP2Za ViFlFbZZ1QbwbbxwZj+jUyEIJpRFmyIAt191uKao3zQs9rD0PrV1eR/k6d+hOL2Y4E 3xYCbwte44WuE9YE8FWeB3GJ37bIBefyWJPN3ZuYuubtHJnWtb+PAHlCsS9eBqna2o hXny3sgbqM1EmpF0VQH5UQ9jcqR5f9r4HAV3dfTzkj/B5tf/gXWeIO3OeT4bQDoJUo 1NGQcKOxZSJsg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VFFM82031z6txv; Wed, 10 Apr 2024 22:49:55 +0200 (CEST) From: David Elsing To: dan , 66866@debbugs.gnu.org Subject: Re: bug#66866: aarch64 system cross compilation + pinebook pro image broken? In-Reply-To: <00dace82-545c-4443-8129-42c932e02ddc@dan.games> References: <87ttnh5b4g.fsf@gnu.org> <86h6ien6bg.fsf@posteo.net> <87frwn308k.fsf@dan.games> <00dace82-545c-4443-8129-42c932e02ddc@dan.games> Date: Wed, 10 Apr 2024 20:49:55 +0000 Message-ID: <86frvtvt70.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66866 Cc: Mathieu Othacehe , dev@jpoiret.xyz, ludo@gnu.org, efraim@flashner.co.il, janneke@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi dan, sorry for the late reply. I didn't yet find the reason why different bootstrap packages are built for the cross build when grafts are applied. This seems possibly like another bug to me, as the package inputs which use copy-build-system do not contain store references and it does not happen when they themselves are built with grafts. dan writes: > Can we put everything inside build-inputs? From my understanding, > copy-build-system shouldn't care about cross-compilation at all. I understand it that way too. In guix/build-system.scm, it is mentioned that build/host/target are used in the sense of the GNU toolchain [1]. There, "build" is the system used for building and "host" is the target system for which the package is built. I guess this was confused when copy-build-system was added [2]. Cheers, David [1] https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/html_node/Specifying-Target-Triplets.html [2] https://issues.guix.gnu.org/39599 From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 11 01:00:06 2024 Received: (at 66866) by debbugs.gnu.org; 11 Apr 2024 05:00:06 +0000 Received: from localhost ([127.0.0.1]:54729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rumXe-0003gT-1i for submit@debbugs.gnu.org; Thu, 11 Apr 2024 01:00:06 -0400 Received: from wfout3-smtp.messagingengine.com ([64.147.123.146]:53321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rumXb-0003ei-57 for 66866@debbugs.gnu.org; Thu, 11 Apr 2024 01:00:04 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfout.west.internal (Postfix) with ESMTP id C05071C00111; Thu, 11 Apr 2024 00:59:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 11 Apr 2024 00:59:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1712811587; x=1712897987; bh=7MExawO0spqSRT7rEvVobI/GHhlYycG27CnGk63lea4=; b= dlImsfGs2NvkgGIxiE/s22FLhB2soO849RW4q0R9DKjmEGISi7P27q7JFy6sHA16 Yw7EDvunFTeJknDF55eVTIjSUhd6fE8hjzHojnHdnDlbS0ZJvPMG+W9YyO8qZLuR IC6Z5OtEEerOp2eyhwbALNAJgAfJVJ10qA1COKE7Ar1tFzz9LsDzHP5NAW7629hH 67bRKlD2+T/CpoI3upXFjaQ49hVyLRqj+a7yM5qksmLhxV8uCNNXah+fYGvvUKGM SgbzYf+r2CydhijDfdwni+Ad4cA9ivauPbQdi+rw7VdW0PGxfxBQTe6S0NHc4vgC FRP+Oqo5+uBO71yGz1sOPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1712811587; x= 1712897987; bh=7MExawO0spqSRT7rEvVobI/GHhlYycG27CnGk63lea4=; b=a ZwojBGX37dR208d7cz0mwmRosif0TtnZ2f+a9flm4sCPEy9ksH5e4cFyNv6zwZui W3mCZ31LmgrLlR/18BArAwcWRenvilqwMaSF03QhQFj0TtvOSqfosv897eW5XAH0 U42Zw+Derft5CteEyIppp0pZ3kwDG6ltOokIy3u2E+5OkbuKCAlztMClAEVQjr1M jdIDcxsfocl/w0Ax0nN8pKRQJfORi51rJPVgDDIYW/TT4nKn9o34Tl0ssdVgfFro UD5VHIfkzUAdNGI5/U5V55sOWUmY58yQH06MAjgH2CVChYeeha+Glmz8XIGRvMmX uPX5xEAyRYOEd+H7OVODA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudehjedgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevkfgjfhfugggtgfesthhqredttddtjeenucfhrhhomhepuggrnhcu oehisegurghnrdhgrghmvghsqeenucggtffrrghtthgvrhhnpeeuieelteeuhfdvfeelte ethfekfeeuudffffegjedtkedtheegleejvefhleehffenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehisegurghnrdhgrghmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 11 Apr 2024 00:59:40 -0400 (EDT) Date: Thu, 11 Apr 2024 12:59:34 +0800 (GMT+08:00) From: dan To: David Elsing Message-ID: <912866e9-7775-484f-8ee6-18eab30cbf36@dan.games> In-Reply-To: <86frvtvt70.fsf@posteo.net> References: <87ttnh5b4g.fsf@gnu.org> <86h6ien6bg.fsf@posteo.net> <87frwn308k.fsf@dan.games> <00dace82-545c-4443-8129-42c932e02ddc@dan.games> <86frvtvt70.fsf@posteo.net> Subject: Re: bug#66866: aarch64 system cross compilation + pinebook pro image broken? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Correlation-ID: <912866e9-7775-484f-8ee6-18eab30cbf36@dan.games> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66866 Cc: dev@jpoiret.xyz, Mathieu Othacehe , ludo@gnu.org, efraim@flashner.co.il, 66866@debbugs.gnu.org, janneke@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi David, Thanks for the reply. Apr 11, 2024 04:50:03 David Elsing : >> Can we put everything inside build-inputs?=C2=A0 From my understanding, >> copy-build-system shouldn't care about cross-compilation at all. > I understand it that way too. In guix/build-system.scm, it is mentioned > that build/host/target are used in the sense of the GNU toolchain [1]. > There, "build" is the system used for building and "host" is the target > system for which the package is built. I guess this was confused when > copy-build-system was added [2]. Then I think I can submit a patch to guix-patches, hoping to bring more=20 attention to this bug. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 21 03:13:09 2024 Received: (at 66866) by debbugs.gnu.org; 21 Apr 2024 07:13:10 +0000 Received: from localhost ([127.0.0.1]:41108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryRNs-0002WO-Fu for submit@debbugs.gnu.org; Sun, 21 Apr 2024 03:13:09 -0400 Received: from fhigh5-smtp.messagingengine.com ([103.168.172.156]:54663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryRNp-0002Uz-SQ for 66866@debbugs.gnu.org; Sun, 21 Apr 2024 03:13:06 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 71F5911400AB; Sun, 21 Apr 2024 03:12:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 21 Apr 2024 03:12:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm1; t=1713683565; x=1713769965; bh=sm jwGDe4mtQX9yoB/9DEM5TgzP0D7EX26RYAQQS9mZk=; b=rkKtZOrncsVH3bw9lJ WGKLTPY1JAvGOXouxSVDW0eBIQIYPO+SED2mat3OUz2A7Uyls8dQXF6TxLl/QWYu sO+UAMuRwllgISD46nqSce19+wpXVpp1z+sb1FCKfyk5zvOaVQgLfzFo1rjyaIQZ SSXOsfHEGfJF5BxcIIPyVhhgDxC+PQUzrzCOCF16ft+sEi393nv7aWjVMsZqTW9v P8enfHiOW07iv0/hnPabMIIRghHOG/yimeHIVxTWDVlFQVAZ9C2ZUEm3dyNA6NxM 4rrfW7/7PwDjXSAW6WcAianBIHpVWXMOPgoYFuyEuNt4YHxbCPbbdov0S26TSoDR 0ysQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1713683565; x=1713769965; bh=smjwGDe4mtQX9 yoB/9DEM5TgzP0D7EX26RYAQQS9mZk=; b=iY1+VkMW0I7SuUiGyrxIsh2DSK3Wh zEB0IgwU66n6AT+G1x8KmfaC7N8YoaharL4ABaYRpCXuQC5+/MulrUPoU3zUDY2M Q6eQ+wULpAnjF8ye/+/G9Vr999ShN7diBAnRZsyHQ2gVxd44MGuQVADxjkC0SQIr 51C1TaGzUhL/w9vSmOegaHwQWNDhGReyh2Rd2H7CoYWBJtAVibKbpvq3YqX1WrP/ cMygVxg9MD9CqSt2lRZU7N8WhULqSl1RS6aP9usauNz8uVEGyljmtgZQh5t82JqC 0uqYRpunjFqw4b362aX0hDcgV3uevKhzJFr/N59dlpZrYPB5l+JDsnmoA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudekiedgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdludejmdenucfjughrpefhvf evufffkffogggtgfesthekredtredtjeenucfhrhhomhepuggrnhcuoehisegurghnrdhg rghmvghsqeenucggtffrrghtthgvrhhnpeefveejteeguedtjefhtdekfeehveevgfekhf ehheekteeutefhtdeiuddthfeghfenucffohhmrghinhepghhnuhdrohhrghenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehisegurghnrdhgrg hmvghs X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 21 Apr 2024 03:12:37 -0400 (EDT) From: dan To: guix-patches@gnu.org Subject: [PATCH] build-system: copy: Fix cross-compilation. Date: Sun, 21 Apr 2024 15:12:30 +0800 Message-ID: <20a614ca2a6064bfa597cd11b7b87ceb926de866.1713682643.git.i@dan.games> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 66866 Cc: david.elsing@posteo.net, othacehe@gnu.org, ludo@gnu.org, efraim@flashner.co.il, 66866@debbugs.gnu.org, janneke@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * guix/build-system/copy.scm (lower): Change arguments passed to host-inputs and build-inputs. Change-Id: I2991854b48587ab00ccc03712304e2850727e6b7 --- This patch tries to fix a issue related to grafting when cross-compiling. See https://issues.guix.gnu.org/66866 for more discussion. guix/build-system/copy.scm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/guix/build-system/copy.scm b/guix/build-system/copy.scm index d58931b33c..64bd61a53f 100644 --- a/guix/build-system/copy.scm +++ b/guix/build-system/copy.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2020 Pierre Neidhardt ;;; Copyright © 2021, 2022 Ludovic Courtès ;;; Copyright © 2023 Jonathan Brielmaier +;;; Copyright © 2024 dan ;;; ;;; This file is part of GNU Guix. ;;; @@ -66,13 +67,13 @@ (define* (lower name (bag (name name) (system system) - (host-inputs `(,@(if source - `(("source" ,source)) - '()) - ,@inputs - ;; Keep the standard inputs of 'gnu-build-system'. - ,@(standard-packages))) - (build-inputs native-inputs) + (build-inputs `(,@(if source + `(("source" ,source)) + '()) + ,@inputs + ,@native-inputs + ;; Keep the standard inputs of 'gnu-build-system'. + ,@(standard-packages))) (outputs outputs) (build copy-build) (arguments (strip-keyword-arguments private-keywords arguments)))) base-commit: 38b88d710ea13ba024aed0543bc2862772cdb645 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed May 01 17:40:08 2024 Received: (at 66866) by debbugs.gnu.org; 1 May 2024 21:40:08 +0000 Received: from localhost ([127.0.0.1]:39599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2HgO-0001Db-1C for submit@debbugs.gnu.org; Wed, 01 May 2024 17:40:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2HgK-0001D2-UZ; Wed, 01 May 2024 17:40:06 -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 1s2Hfs-0001IY-Ky; Wed, 01 May 2024 17:39:36 -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:References:In-Reply-To:Subject:To: From; bh=PKTJuTUWxkH1yaMMlZ+oMbsulqQ7RHSARVY7zE5+BHQ=; b=dTixssOHGGxuezOc38/1 Dz8N/Jgb5ZzwZ9DpXtVZmQcAFnV9pAXMEelzxCV4ZrJjCtcKJAhD8zYG9uL7sKGJ+/DepQ9/FfrD1 ++8A9YwZkdIXMxHGf0f8mQ8e7iYDueSP8hpt3olrUOQeRNC52VDibw293AkktLsdhurwWVVPx7ENe 757FT6oLkq6jWMV+7SmboAg7LbXZ2gNeXs44GKHnE5vehOKJAaaPAitKcKI3DkvxOvjhveWNixyNU yzUyD2MXMUixhd4zErDy+wqCRm0dgWuibiFCuv0Gokp1LkvGcpmqmB/CF+LTmfnwClgJRKZ/CcV2t l+VEUa0kpPLBmw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: dan Subject: Re: bug#66866: Grafting breaks cross-compilation In-Reply-To: <87frwn308k.fsf@dan.games> (dan's message of "Tue, 19 Mar 2024 01:30:31 +0800") References: <87ttnh5b4g.fsf@gnu.org> <86h6ien6bg.fsf@posteo.net> <87frwn308k.fsf@dan.games> Date: Wed, 01 May 2024 23:39:32 +0200 Message-ID: <8734r143fv.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66866 Cc: David Elsing , dev@jpoiret.xyz, Philip McGrath , Mathieu Othacehe , efraim@flashner.co.il, 66866@debbugs.gnu.org, 70492@debbugs.gnu.org, janneke@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, dan skribis: > I spent some time digging into the rabbit hole. After changing=20 > the lower function of the copy-build-system to look more like the=20 > lower function of the gnu-build-system, I'm able to cross compile=20 > alsa-lib without the --no-grafts flag. The changes I made are=20 > like: > > diff --git a/guix/build-system/copy.scm=20 > b/guix/build-system/copy.scm > index d58931b33c..74304b4bfb 100644 > --- a/guix/build-system/copy.scm > +++ b/guix/build-system/copy.scm > @@ -66,13 +66,13 @@ (define* (lower name > (bag > (name name) > (system system) > - (host-inputs `(,@(if source > + (build-inputs `(,@(if source > `(("source" ,source)) > '()) > - ,@inputs > + ,@native-inputs > ;; Keep the standard inputs of=20 > 'gnu-build-system'. > ,@(standard-packages))) > - (build-inputs native-inputs) > + (host-inputs inputs) > (outputs outputs) > (build copy-build) > (arguments (strip-keyword-arguments private-keywords=20 > arguments)))) > > Can we put everything inside build-inputs? From my understanding,=20 > copy-build-system shouldn't care about cross-compilation at all. Intuitively, if =E2=80=98copy-build-system=E2=80=99 is about copying architecture-independent files, then it should do the same thing whether or not we are cross-compiling. However, users can and do add phases whose result is architecture-dependent. Small sample: =E2=80=A2 =E2=80=98desec-certbot-hook=E2=80=99 captures a reference to cu= rl, so it would get the wrong one when cross-compiling if we assumed build-inputs =3D host-inputs. =E2=80=A2 =E2=80=98chez-scheme-for-racket-bootstrap-bootfiles=E2=80=99 bu= ilds stuff when cross-compiling. Philip, could you explain the intent and what you expect here? So it would seem we can=E2=80=99t just assume everything is a native input = like https://issues.guix.gnu.org/70492 does. Now, as David and you found out, the use of inputs in build-system/copy.scm:lower is bogus. It seems that it can be fixed by following the intended definition of build/host inputs, as David suggested: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/build-system/copy.scm b/guix/build-system/copy.scm index d58931b33c2..cf0214320bf 100644 --- a/guix/build-system/copy.scm +++ b/guix/build-system/copy.scm @@ -66,13 +66,13 @@ (define* (lower name (bag (name name) (system system) - (host-inputs `(,@(if source + (build-inputs `(,@(if source `(("source" ,source)) '()) - ,@inputs - ;; Keep the standard inputs of 'gnu-build-system'. - ,@(standard-packages))) - (build-inputs native-inputs) + ,@native-inputs + ;; Keep the standard inputs of 'gnu-build-system'. + ,@(standard-packages))) + (host-inputs inputs) (outputs outputs) (build copy-build) (arguments (strip-keyword-arguments private-keywords arguments)))) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable But wait! That=E2=80=99s all theoretical because the bag always has (target= #f) and =E2=80=98copy-build=E2=80=99 bundles build and host inputs together, as= if doing a native build. So it seems like https://issues.guix.gnu.org/70492 (putting everything in =E2=80=98build-inputs=E2=80=99) is OK, after all. But still, there seem to be some expectation that =E2=80=98copy-build-syste= m=E2=80=99 can support cross-compilation for real, so maybe we should add a =E2=80=98copy-cross-build=E2=80=99 procedure in addition to the patch above. Thoughts? Ludo=E2=80=99. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun May 12 11:39:45 2024 Received: (at 66866) by debbugs.gnu.org; 12 May 2024 15:39:45 +0000 Received: from localhost ([127.0.0.1]:55039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6BIe-0002BL-TR for submit@debbugs.gnu.org; Sun, 12 May 2024 11:39:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]:42529) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6BIa-0002B6-PK for 66866@debbugs.gnu.org; Sun, 12 May 2024 11:39:43 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 379AB24010A for <66866@debbugs.gnu.org>; Sun, 12 May 2024 17:39:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715528375; bh=lSguE+CZvNnwKOa0LLUMV0hT9dKRRNCXAfLjenBcf9w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=PKihVCVmgW//GKvj0gdfu7fPHJkBTvEXlVnIWBkcdKj0j5W+lbFmCYUdnzgOChcUh nXmCNQyPY6zf67TYQer3jjcLOtegWu6f5rLoI26bhySI5fgOvkIl3wrdE2QZzUtxfP kPGHSgsCqpEiSZeh88Q3IAt5+1k6LNXP+lNOxgNVklR8TI9NtUtSNJXHk/okA26rXl 41ZZ9knB6naIXzsKyz8S91xcdrW3SAgW/Xb7cVz+sjNojkOBwkyVD93Xnc+oEZZSp4 XMzyntL9Duvv9HsWdPxvJTQ//8+EWaf9q/BNerkVh2dhPvNxr0glhDa507OWOnVwlR /OFPVOIEsgRDg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VcmyF21Zfz9rxL; Sun, 12 May 2024 17:39:32 +0200 (CEST) From: David Elsing To: Ludovic =?utf-8?Q?Court=C3=A8s?= , dan Subject: Re: bug#66866: Grafting breaks cross-compilation In-Reply-To: <8734r143fv.fsf_-_@gnu.org> References: <87ttnh5b4g.fsf@gnu.org> <86h6ien6bg.fsf@posteo.net> <87frwn308k.fsf@dan.games> <8734r143fv.fsf_-_@gnu.org> Date: Sun, 12 May 2024 15:39:32 +0000 Message-ID: <86o79byr7v.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66866 Cc: dev@jpoiret.xyz, Philip McGrath , Mathieu Othacehe , efraim@flashner.co.il, 70492@debbugs.gnu.org, 66866@debbugs.gnu.org, janneke@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, I think I finally understand why the problem only occurs with grafts if a dependency uses copy-build-system. It is actually somewhat complicated. When a package is lowered into a derivation by 'package->derivation' in guix/packages.scm, a list of potentially applicable grafts is created by the 'bag-grafts' procedure. This works by first traversing the bag for native packages (where bag-build-inputs and bag-target-inputs are followed recursively; and also bag-host-inputs if not cross building) and building the native derivations of the grafted versions of the packages which have a replacement (such as glibc at the time of writing). Building the grafted package (in the 'input-graft' procedure) is done again with 'package->derivation', which eventually calls 'graft-derivation' in guix/grafts.scm, which in turn calls 'non-self-references', where the ungrafted package is actually built (ignoring the store monad indirection), not just its derivation. In the case of cross builds, the bag is also traversed for the target dependencies, where the bag-host-inputs are followed recursively. Analogously, this causes the ungrafted packages and their ungrafted replacement to be cross built to compute the grafted derivations. As dan found out, the 'lower' procedure in guix/build-system/copy.scm incorrectly puts standard-packages into the host inputs. They contain the glibc-final package in gnu/packages/commencement.scm (which inherits the replacement of glibc). Because copy-build-system puts them into bag-host-inputs, the package replacement of the glibc-final package is then cross built without grafts when calculating its grafted derivation, which it does not support. Note that the glibc-final package and its package replacement are distinct from the glibc package and its replacement in gnu/packages/base.scm. I confirmed this by running --8<---------------cut here---------------start------------->8--- ,use (guix) (with-store store (run-with-store store (package->cross-derivation (package= -replacement (@@ (gnu packages commencement) glibc-final)) "i686-linux-gnu"= #:graft? #f))) --8<---------------cut here---------------end--------------->8--- in the REPL, which returns the same incorrect glibc derivation that is attempted to be built as a dependency when running `guix build alsa-lib --target=3Di686-linux-gnu`. It is actually possible to compute the graft derivations only when needed by a store reference (which does not change the derivation of the grafted package). Then, this problem does not occur even without the fix for the copy-build-system, as the invalid derivations are never actually built. With substitutes or after running GC, this may even prevent building a package with replacement when the requested package output which (transitively) depends on it has no (transitive) store reference to it. I made a patch for that here: https://issues.guix.gnu.org/70895 Regarding the changes to the copy-build-system: Ludovic Court=C3=A8s writes: > But still, there seem to be some expectation that =E2=80=98copy-build-sys= tem=E2=80=99 > can support cross-compilation for real, so maybe we should add a > =E2=80=98copy-cross-build=E2=80=99 procedure in addition to the patch abo= ve. In guix/build-system/copy.scm, it is described as an extension of gnu-build-system and the manual says "It adds much of the gnu-build-system packages to the set of inputs. Because of this, the copy-build-system does not require all the boilerplate code often needed for the trivial-build-system." Therefore, I think it makes sense to add the copy-cross-build procedure so that copy-build-system actually behaves like gnu-build-system. Cheers, David