From unknown Sat Aug 16 17:02:33 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#42888] [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Aug 2020 14:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42888 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42888@debbugs.gnu.org X-Debbugs-Original-To: Guix-patches Received: via spool by submit@debbugs.gnu.org id=B.159758713730353 (code B ref -1); Sun, 16 Aug 2020 14:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Aug 2020 14:12:17 +0000 Received: from localhost ([127.0.0.1]:58076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7JOT-0007tT-EH for submit@debbugs.gnu.org; Sun, 16 Aug 2020 10:12:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:42992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7JOR-0007tL-1i for submit@debbugs.gnu.org; Sun, 16 Aug 2020 10:12:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7JOQ-00044c-Rb for guix-patches@gnu.org; Sun, 16 Aug 2020 10:12:14 -0400 Received: from mout.gmx.net ([212.227.17.22]:54709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7JOO-00022N-PX for guix-patches@gnu.org; Sun, 16 Aug 2020 10:12:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1597587129; bh=uqWgFOnSh58YYasyCbF7giXacIfpMuobhz5Go5vVoeU=; h=X-UI-Sender-Class:From:To:Subject:Date; b=PFVgRRJ6QcdffJk0g/8SFSs2fNhvqfNNA7e61jITlYg8V9X0iSb5+7MmYQMYonvXE 8G7fZ1FB/EyB/V8Vj9sx3LM+6+T4fRKCCBMj48JYn2GJFBGIEigS/wuWFUlLxlVNR+ 7YMipINBNy2kvrjQOjpQBMdVN0vOja1f7Mn+j1zQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MzhnN-1ktciW0UDp-00vj78 for ; Sun, 16 Aug 2020 16:12:09 +0200 User-agent: mu4e 1.4.13; emacs 26.3 From: Pierre Langlois Date: Sun, 16 Aug 2020 15:12:08 +0100 Message-ID: <87d03qptmv.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:fXx+Qk58K7VIqxgKS7dktabcBYulPBUGlSE9KM7dkEdIhQHZZ4a HRngdlOcG1E9Nwjr43SGgUqM5jZ/yxe8zK6wAe2fs+IgTfBuZh25EXd1d7dS4q5OWm+K6y4 Xzv+zuWUuMwGIdQk6Gr21Z13eaeHytG4ulBnTY4RwBh5iytQb3f1YHjoI8fRICBnJxUuk1d vTjj5j74nZeEjQKIzeF7A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:pXyEe+NsVlc=:+w3LI/977kLMrUhyVWVxh+ aBnUaRtXkOBbwTccSDRNaWfhAB9HBCxlwUOrnNHYnVlb5JserRXeQ08SxN62unNP3FrqR6CaB gtiofiIRRaWCxN3U3mmrinUdmsh2fFgZRChbVwVDnV1dqAf7C1hQsDn4/mQ9VBuw3cpyZGqRR QkOhyIxRYHPPc5ec4uT7jF+s+vEG3lDqMfGLnLUW6dKbZp6OhQ4hqwGvrOHUB/3vvx8YwDn+q X/vYd9DYx2rPfAbXyZhbAlH5tUOornk4mdgqvTQ3f2B7rASIsekTYbemyyNNrSPHQhShvupks bGUJCyUwqI+SxetaDcG/TArX1oZSBiBOC6g+0iKbsPg+rrpUdQubJIBshE9FtCVB/mZCWWpah on671C0A3BaFYC+qvh03xqfh1M5/xkerfFJV7tO8/8WUNDHnsFmQIBvuMvHc62mlv24TuzjTL /BtZvqHr5QsYYxZPpGcqbgTz7FLLZHy0Is9LUEv0ZNYKEjBsRrj/mCSRPcVph4smzwNaV1zXP 1BLnSIaQKl5gcy2kwXLpZvxkmKerdtQ5dfRUPS3QRlaR4VZKfejwWWVJR31MvxYRiUhyg7Q02 AIYDmRZWhyU6d7bFBxb376r1IuVA6Q1ww9bV0HbB5o8ZDj4eZn+nt4V9IXp/i/gLpFx5MN6uY ikto8o+AeyTfmjuB8p6oOGKYqnzv99rGpK68dgn/kRz6ahAUVnLYRxf05aNVO1xqTSx/vlFwH UUSxvhUSGWGR8maqRHAkPswMnERza9hCU4iGtisIvbVy7dNTdF0S1m/NRx4vFMXWZ47Cb3XTy jFcCb7qFSxfkVh4AxF5XVBdK32mxCOb/5GvkrghGChG8nk8py+wSrRtmPVate4TATQF1SRqBk pABqHAATQbLsT91IjlpKdZuEisLjbc/LHkKU/J+nOrF5JY4seIkLU3yeEZjiOGRPiDklOTvXW /6ap4uMXCN5Dbv1MPs0a8f8/fjcqai3j2l556uVVl5SdS+EKSpphi7DXpqlW6IS+5ABP+xRMA PxPXGRTgq7dVgHu2uAC6Bw6fDsDFza/rfQAH2Mg3Uf+1OHwoCJbFh0HZQGwzeiSrsHgJ8yJch oy1I2aQuBr8E71DJAipiAHQUb4GozwyzMrJODR2m5plPw1bTpHNoS6CbRELWFIwqsbsgE7vgJ V7jBmPSylry18QHOy1bEJJa/GMv4bTtdRvLs/Hiw6p/ReEPdDP/PxOzs8wM24Dya7onLrC3ma HuF0Z9ik5nn/R8ipk6S66qz21fj56PZRF84WOKg== Received-SPF: pass client-ip=212.227.17.22; envelope-from=pierre.langlois@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/16 10:12:09 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) 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.4 (--) --=-=-= Content-Type: text/plain Hello Guix! In an optimistic attempt to eventually have Icecat on a Pinebook Pro, I thought I'd try and get rust building on aarch64. Here's a fix for the post-install phase that had an x86 triplet hardcoded. With this we're able to start off the bootstrap chain! That being said, each step takes ~5 hours on this machine so this is going to take a while :-), it's currently working on 1.23. So, I suppose this should go into either core-updates or staging? WDYT? Thanks! Pierre --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-rust-Fix-install-phase-for-non-x86_64-platforms.patch Content-Transfer-Encoding: quoted-printable =46rom ac0415f8f724ec56022b526ade68c1aa708d51ea Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Sun, 16 Aug 2020 12:17:18 +0100 Subject: [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. * gnu/packages/rust.scm (rust-1.20)[arguments]: Replace hardcoded x86_64 triplet with nix-system->gnu-triplet-for-rust in 'delete-install-logs phas= e. =2D-- gnu/packages/rust.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 778aeaab05..a031683ea5 100644 =2D-- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -612,9 +612,10 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\= " (cargo-out (assoc-ref outputs "cargo"))) (for-each (lambda (file) (delete-manifest-file out file)) - '("install.log" + `("install.log" "manifest-rust-docs" - "manifest-rust-std-x86_64-unknown-linux-gnu" + ,,(string-append "manifest-rust-std-" + (nix-system->gnu-triplet-for-rust= )) "manifest-rustc")) (for-each (lambda (file) (delete-manifest-file cargo-out file)= ) =2D- 2.28.0 --=-=-=-- From unknown Sat Aug 16 17:02:33 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#42888] [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Aug 2020 14:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42888 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Pierre Langlois Cc: 42888@debbugs.gnu.org Received: via spool by 42888-submit@debbugs.gnu.org id=B42888.159758762431198 (code B ref 42888); Sun, 16 Aug 2020 14:21:02 +0000 Received: (at 42888) by debbugs.gnu.org; 16 Aug 2020 14:20:24 +0000 Received: from localhost ([127.0.0.1]:58091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7JWK-000878-21 for submit@debbugs.gnu.org; Sun, 16 Aug 2020 10:20:24 -0400 Received: from flashner.co.il ([178.62.234.194]:35234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7JWE-00086n-NJ for 42888@debbugs.gnu.org; Sun, 16 Aug 2020 10:20:22 -0400 Received: from localhost (unknown [31.210.177.29]) by flashner.co.il (Postfix) with ESMTPSA id 85840404AF; Sun, 16 Aug 2020 14:20:12 +0000 (UTC) Date: Sun, 16 Aug 2020 17:19:40 +0300 From: Efraim Flashner Message-ID: <20200816141940.GB22637@E5400> References: <87d03qptmv.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="E39vaYmALEf/7YXx" Content-Disposition: inline In-Reply-To: <87d03qptmv.fsf@gmx.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) 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 (-) --E39vaYmALEf/7YXx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 16, 2020 at 03:12:08PM +0100, Pierre Langlois wrote: > Hello Guix! >=20 > In an optimistic attempt to eventually have Icecat on a Pinebook Pro, I > thought I'd try and get rust building on aarch64. Here's a fix for the > post-install phase that had an x86 triplet hardcoded. With this we're > able to start off the bootstrap chain! I forgot about that! It takes so long to build I never bothered with it on my boards. > That being said, each step takes ~5 hours on this machine so this is > going to take a while :-), it's currently working on 1.23. >=20 > So, I suppose this should go into either core-updates or staging? WDYT? I'd go with staging. No one wants to rebuild the rust bootstrap, but they're basically all leaf packages so it's fine. >=20 > Thanks! > Pierre >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --E39vaYmALEf/7YXx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl85QHsACgkQQarn3Mo9 g1G++BAAvJ/q4bAjkKDFevy6fRAS0+CoriVQBv4gG34TlZyqmzAH0Jlr08ld3AfV BwSjJNdBmlpt5PjjE6d6j4dDHCk67yY9FZU7OjkU21UUm9JSURKYt0m6s73Mz0rv Ek5ujZqGAGojJb8o9QlguFeCRrsA+AUKunkxWU1mX7GJhaHYvNk1ETpe6cZ34nU8 JZwVrk737H9SJxPb46lbCMCLPhBIoW2MEX8XtpVtF+j4d2j+POE20qagPxuZ/BrO 1jDDZ/1aTRX1KjbsVLkPVoy1uROgg2gXyO5kyXLJ1iqAt/yq7GKr4g4FzYJiVKB+ 1YTEMKGQGXBb2ro6u0BwybUA1LWTbG/yc79GBV74V1VJv7j0hmFOXcSiELyHHZTg u0RvhDcyhLoTCM1PDSZN/pUkZ8jFz75Yj59P7vW1gZ8E8eOxtixkGBwMg2ueYJDg P5AQwgvp2wuwudnHDN3lbeZi9BOgwvJ1PlMkK5y8u9spmexvA3VyxZEeVA5PMb6B vjgIlqsMOV/TObZh/V0kE9YlU4kROcFuGvjLniR9L/J0zDUce7iwcWqK2vSpN+H4 hBUfghI56CE62V80RserwgVzpkS3h5ZiIcMAUEW0I7kcXXgqJCuty5XQ3+sfPJxT Rg41RRTgPm063fJQWay9qnolNdPh6INDnqdfhd+m1Xb57cUDJRM= =B2bz -----END PGP SIGNATURE----- --E39vaYmALEf/7YXx-- From unknown Sat Aug 16 17:02:33 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#42888] [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Aug 2020 14:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42888 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Pierre Langlois Cc: 42888@debbugs.gnu.org X-Debbugs-Original-Cc: 42888@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1597588979894 (code B ref -1); Sun, 16 Aug 2020 14:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Aug 2020 14:42:59 +0000 Received: from localhost ([127.0.0.1]:58133 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7JsB-0000EL-2L for submit@debbugs.gnu.org; Sun, 16 Aug 2020 10:42:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:59898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7Js8-0000ED-E1 for submit@debbugs.gnu.org; Sun, 16 Aug 2020 10:42:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7Js8-00058l-4H for guix-patches@gnu.org; Sun, 16 Aug 2020 10:42:56 -0400 Received: from mout.gmx.net ([212.227.15.19]:36179) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7Js5-0005Ic-UQ for guix-patches@gnu.org; Sun, 16 Aug 2020 10:42:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1597588960; bh=VlRBQs0f0XiHi8VwR2s6/L5fFXPX78q2Pd//6epk7jQ=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=W9HUsh3TvbqewUzmmqenqU0qfKxvItLgZxDlTdziy3l2JompI7fgIxYiyiUVzwqeR Ply50sBD9jeu1YDlnAmtA0wwIBwpPl34NScFHRDhu/JVWuHWj/1Vmih2f7fUcy1J92 6pWJGMCKkSQKtsq+oLBYrUnDwzRq0EAh7P3jClNA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MmUHj-1kXc3t2AhV-00iR4g; Sun, 16 Aug 2020 16:42:40 +0200 References: <87d03qptmv.fsf@gmx.com> User-agent: mu4e 1.4.13; emacs 26.3 From: Pierre Langlois In-reply-to: <87d03qptmv.fsf@gmx.com> Date: Sun, 16 Aug 2020 15:42:38 +0100 Message-ID: <875z9ips81.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:dRIYJDfRuGJrLsWL3mO8WL4AgeBUApDJpLLNGeXjtADrVmBxHny +OyqKyWfhUFHL1+aOMUnLsFLFkcgH9qNwO94y7/Y0+T35JRiUSAf7po/4790LAomX3+GG6M KFVgOeaGIadhqqEhqCT0CLO5340QP19FAfaXg9RrrlHcuOQ0QJoM5T2CiQXQrrgj4Hqye7P 4Qm79YPmdizn3clgC0BiA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:5lYAOBtstdI=:TOHGayriYe/jxYCyvfDYRN clYoMTJgu8VcYnX47SBVJHR7uG9OMF/o4DGcZn+ZMATBNZLNuB7z3LI52k6z9BfFOAWyb1fWn axkfhUbFuQ6nhjQIOlEBuFzZQDrIBkFKR7rZZOL5kvO3CxIzl01LxN1xoZW7wHD/XzJsHnY7D myUHZyudOZrJ9458UHFxVGziXbruImOCzXfGsQmjkOjCdkUIshMRpYMaAUee3DfXc3+gnczl4 h8/ORWVmFit5+BbfVQpMp+zwcbXnoqUJ+S6/3Y4zfBHQWoIWfqDq2D5+5blh8HJuy6RsTJAcv cA3JHoXQrT9JH9U0tWI13Qvwebjpu4PZbTZWmnsGztZl5BUjb3JW7TCXlaEbgbbOXkRphI3XL 580YS2tfTEOZCpFqKX/onFLyl3Nwo2n3pomS1SKZdfwIWTdrFQ1jrMTThC6RBIfzJB2kyBe4S j6scvFOkvTJt8IsMmSiwSKfhrG5G/dguP9CDw9QprSbHnPgG0IV1L96Ut6+s6/+PnMO++kDqO sXvAEpC49TGR1GXRhSxBKqTSfUZ/pRJ6QQhXqjOpNJ1SZg4I4LHmCP61KfjHb0Uxhvl6JHNaL kkkAEWoAOQjQM/6AKSpzYhQAoqHR22G7+WdV2R92a/rKKbdbNiTJUqbfxBW8zqD1Voj0KGHEV IcjpZuP4Spm8G72Aw7Tt3TOXyg+Dl3l7GO0Xv/jfudI7CTjNlED104Y+k5rJQDNUiJATjMHkV cKQSAqTg2gWULR+KiPJpnpgupGtO0JYfV0d+VsYrre8akUlgb4pH07WO983al+z9wrIt8BHPm glrHGdLWq0zPdS7fCrDXYwmzd1Hk6zOYz+VGgQ+ZYEObj89lsLS3HFdrvd/ofVOGbpFsvMcFj gxn2d+NZw9ruUHJZvdsP4UD6NPAZS/JGN+PABXCqKuypAPVWXBzX0VGJCXIv2t746b20iItJY 6WeA8VixuT4AchVPVnHRYJA+H+ZoqBwUqudhPXcmeJRi/4u2AJ1glAVBjy4e5yW0JERBf7SIQ /6IIbPSPk1z8c6KXSp/EDEJA106T96IIcyC1Do+EWgqmQqjogjrW6aWzuaUEUVv7RqoNqHNCM wW+CIOvgPYp1LvHahx5Icp6UT1tOsTV3N3UAFK+VZqiqmkiXSobQB78vtFTFgpwQOtWXRICBT ZbrjqDaMJyGaeAggRt6agU8mGF1QOgexJGEfKBXSP5kbKBLG+M1QvmCiWCZNb2KqkTawftw8p NV9V9lnUbMaPYZrJvHYQbfnszyJ+1Lc8oiYiLZw== Received-SPF: pass client-ip=212.227.15.19; envelope-from=pierre.langlois@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/16 10:42:48 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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.4 (--) --=-=-= Content-Type: text/plain Pierre Langlois writes: > Hello Guix! > > In an optimistic attempt to eventually have Icecat on a Pinebook Pro, I > thought I'd try and get rust building on aarch64. Here's a fix for the > post-install phase that had an x86 triplet hardcoded. With this we're > able to start off the bootstrap chain! > > That being said, each step takes ~5 hours on this machine so this is > going to take a while :-), it's currently working on 1.23. > > So, I suppose this should go into either core-updates or staging? WDYT? Whoops, I forgot the copyright line on that file. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-rust-Fix-install-phase-for-non-x86_64-platforms.patch Content-Transfer-Encoding: quoted-printable >From 199c76dc3d92056881fbebc4d1884b0283ed056b Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Sun, 16 Aug 2020 12:17:18 +0100 Subject: [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. * gnu/packages/rust.scm (rust-1.20)[arguments]: Replace hardcoded x86_64 triplet with nix-system->gnu-triplet-for-rust in 'delete-install-logs phase. --- gnu/packages/rust.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 778aeaab05..17a99aed37 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -9,6 +9,7 @@ ;;; Copyright =C2=A9 2018 Danny Milosavljevic ;;; Copyright =C2=A9 2019 Ivan Petkov ;;; Copyright =C2=A9 2020 Jakub K=C4=85dzio=C5=82ka +;;; Copyright =C2=A9 2020 Pierre Langlois ;;; ;;; This file is part of GNU Guix. ;;; @@ -612,9 +613,10 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\" (cargo-out (assoc-ref outputs "cargo"))) (for-each (lambda (file) (delete-manifest-file out file)) - '("install.log" + `("install.log" "manifest-rust-docs" - "manifest-rust-std-x86_64-unknown-linux-gnu" + ,,(string-append "manifest-rust-std-" + (nix-system->gnu-triplet-for-rust)) "manifest-rustc")) (for-each (lambda (file) (delete-manifest-file cargo-out file)) --=20 2.28.0 --=-=-=-- From unknown Sat Aug 16 17:02:33 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#42888] [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 19 Aug 2020 21:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42888 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Pierre Langlois Cc: 42888@debbugs.gnu.org X-Debbugs-Original-Cc: 42888@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by 42888-submit@debbugs.gnu.org id=B42888.1597874159531 (code B ref 42888); Wed, 19 Aug 2020 21:56:01 +0000 Received: (at 42888) by debbugs.gnu.org; 19 Aug 2020 21:55:59 +0000 Received: from localhost ([127.0.0.1]:41137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8W3r-00008U-Av for submit@debbugs.gnu.org; Wed, 19 Aug 2020 17:55:59 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:34258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8W3o-00008K-M3 for 42888@debbugs.gnu.org; Wed, 19 Aug 2020 17:55:57 -0400 Received: (qmail 5523 invoked by uid 1009); 19 Aug 2020 23:55:54 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25904. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.064828 secs); 19 Aug 2020 21:55:54 -0000 Received: from unknown (HELO gravity) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 19 Aug 2020 23:55:54 +0200 Date: Wed, 19 Aug 2020 23:55:52 +0200 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Message-ID: <20200819215552.stnpvcfaj5xpqkn7@gravity> References: <87d03qptmv.fsf@gmx.com> <875z9ips81.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wy6omx6jqz24ulyw" Content-Disposition: inline In-Reply-To: <875z9ips81.fsf@gmx.com> X-Spam-Score: 0.0 (/) 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 (-) --wy6omx6jqz24ulyw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 16, 2020 at 03:42:38PM +0100, Pierre Langlois wrote: >=20 > Pierre Langlois writes: >=20 > > Hello Guix! > > > > In an optimistic attempt to eventually have Icecat on a Pinebook Pro, I > > thought I'd try and get rust building on aarch64. Here's a fix for the > > post-install phase that had an x86 triplet hardcoded. With this we're > > able to start off the bootstrap chain! > > > > That being said, each step takes ~5 hours on this machine so this is > > going to take a while :-), it's currently working on 1.23. > > > > So, I suppose this should go into either core-updates or staging? WDYT? >=20 > Whoops, I forgot the copyright line on that file. >=20 Pierre, thanks for your patch! I was working on a similar change before, but when I tried it, it failed even earlier in the bootstrap chain. It might've been QEMU weirdness, though, a la #42448. > @@ -612,9 +613,10 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "= \" > (cargo-out (assoc-ref outputs "cargo"))) > (for-each > (lambda (file) (delete-manifest-file out file)) > - '("install.log" > + `("install.log" > "manifest-rust-docs" > - "manifest-rust-std-x86_64-unknown-linux-gnu" > + ,,(string-append "manifest-rust-std-" > + (nix-system->gnu-triplet-for-rus= t)) > "manifest-rustc")) > (for-each > (lambda (file) (delete-manifest-file cargo-out file= )) If I understand the code correctly, this quasiquote is unnecessary, as the host-side code will evaluate to a string that can be inserted as-is, without another unquote on the build side. Fixing this would mean that the patch can go on master, since it would now only trigger rebuilds on architectures that are already broken. I wish you best of luck on your quest for Rust on ARM boards. This has been a long-standing issue, and it'd be nice to have it fixed. Let me know if you need any help - I packaged the last few versions, so I got quite familiar with the various failure modes of the build process. I'm NieDzejkob on IRC, if you prefer. Regards, Jakub K=C4=85dzio=C5=82ka --wy6omx6jqz24ulyw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl89n+gACgkQ4xWnWEYT FWSRBQ/+PElqi7zHCr2iLbCnPwmBN/IzA2oc4v+OxfX1MYqJue19vErtUJkNGkk1 6esbZudd6bvVkiVX0UQsuwAKJAZj2fHqNlO6S9y9qtgCrW14G1klYGUBbVXm8s7k C33xqOa7mQcYcOrKs4Pt4vC7jC9E3nWD26OHFgrk2+wBqrRSPlnkgd6u8BmTeGLD 9VH6frKX9EWkHIOD4o3G3gWjwjJ0Hgd7ZO80CSXd/WdR+WL7tI4uQu+9nKBkEBVv 5pRwZRfeIkiw8DJfY+4+z4T1tS9UtAAvxMOtHSZPeLutq3IXpSY7d/oUzOh64XeB aa6/IAtl1pNC1IXa/Rps/axLStuGGfKwnyKQi56tEovKDpHf9BPjFezhzrLzwCTd Trf3FPp97wcq+eibxykLPW7RhltlXm0np7xgEQiJ/DY5kUEp9xhAk1cpvBwk6MVj SsD6dezmfFOLVijFOB2z/soz2wAU6djuOqzJ9rv4Ff1/jgN88er/pTBtRsmFePQu naEMXTWy10kPbFTe2tM392fEUEOLXW95iETJOW5UC9hQ4Q/qW6pAUSUkkz1m+1+S Ww+ezNIJ7vqrE6HbcZH8AZdwlxCFfodW5OP2nxv+QzmvPQ3xWbJ+Ba+SMvt1YZu6 3AtBQUqJ6y3cfy/D2i8UQOg74ZH/Rg5lDIB6QEBpeOk8ie2Bm8k= =/2sS -----END PGP SIGNATURE----- --wy6omx6jqz24ulyw-- From unknown Sat Aug 16 17:02:33 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#42888] [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Aug 2020 20:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42888 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Cc: pierre.langlois@gmx.com, 42888@debbugs.gnu.org X-Debbugs-Original-Cc: Pierre Langlois , 42888@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159795699030374 (code B ref -1); Thu, 20 Aug 2020 20:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Aug 2020 20:56:30 +0000 Received: from localhost ([127.0.0.1]:44291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8rbp-0007to-CT for submit@debbugs.gnu.org; Thu, 20 Aug 2020 16:56:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:46308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8rbn-0007tf-Ck for submit@debbugs.gnu.org; Thu, 20 Aug 2020 16:56:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8rbn-0001af-4V for guix-patches@gnu.org; Thu, 20 Aug 2020 16:56:27 -0400 Received: from mout.gmx.net ([212.227.15.19]:53481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8rbk-00039P-U1 for guix-patches@gnu.org; Thu, 20 Aug 2020 16:56:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1597956951; bh=BOaG84W6GoOVG/IdqgmDMf0WWfZyuFd0/Oxpve4Z9zo=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=gi97SR81+RgXcTxj999gyORfvhznFpjbsPUrKWTRdunfd/WXS/G+NWot2mjY/mkl/ w/POW2nyfXGD6J192BDVlnETTHBwMaDt93j0hxjzycO/oUJJaIAmzsYzdcYCJnFflL FPmtfuMvvO88b/riN0CTUmRQSDRZDFREnLu27sc4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from e119807-lin ([82.69.64.142]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MCsPy-1k01uY3OO8-008p1j; Thu, 20 Aug 2020 22:55:50 +0200 References: <87d03qptmv.fsf@gmx.com> <875z9ips81.fsf@gmx.com> <20200819215552.stnpvcfaj5xpqkn7@gravity> User-agent: mu4e 1.4.12; emacs 26.3 From: Pierre Langlois Message-ID: <874koy47g8.fsf@gmx.com> In-reply-to: <20200819215552.stnpvcfaj5xpqkn7@gravity> Date: Thu, 20 Aug 2020 21:55:49 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:jS3QSovuLBKWGzluka8xe5/dmPwg0Lv+Sjg5iQgn5tI8yo/dq6G yog/56tDmUxD4k+15Z5k5yuYpOxdcDc0PweQl6nNVvJDGF63u9KubDew+PyiJom+JPmhVPw 9NxPPu8XcmLlDMjXmrPCz7btRi0xf2Vp31S8xROhUkeQcJLFzEpMte52rLfhgiRi2giUBJ/ rnUH4LKx/c2mEVaXZH1zQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:w2UzCvUjE9E=:b6XAkiUgedUW6ch1BpVCyi MzTvhvRV0ZysPwzeRCgjzJdr7OX0ZCuQDxmXDJQFQmSujddVUX9NwaIubAv8ubzvbka/9dkXP 0berL4gArKO2OdI5iUKqhGcHt5GQLnj85i/R49O3cNi2fJn4mpJi0yKkWXFktuQD6k+4wm39r F1mJ43IXg7zG+SNopeB/RYJfgL9G8zPMz2Ugy3FtkLll1BgGPxWqRiYLzg4noQ69vjB7YzHq4 B1yxGcOSIGazily1rnYIvDyXOLY3nea4UICOKBtXXUWKQC7YLsYOirfAp0w3uMR1+A92Dovi7 R9vY2QrKjLTOiJFJMpLctoai0XZxQMZ4o53d9EvHJV0PS+uSuHgJ2JX1gR42dPfB/r8cm52Bo tm34eq/VNFfOSDCvmVm9x+ZMeLxE8n30fNIuhrUTe0mr4UU4KxTx7mTmU4mKsCqkYNzrm6FYU RH48Z8JzIlIp1p/lEYexzu1xW0BzmZ2gbkShUh0JO7CHzxJlZqBv80h9ncIkCvyGriONgryVC PEkFwCJlhbBh8+kfZ+JfJG5Aha9Aehs4/p5HqGKsU5Kxaed9YMjQASXwjmA+Vnl8Y9JijLlDn PRE2QD4JVUEd8EMVtWAvczGIa1XvURSSWGR9/PoJPSWuoebFuf3XndM2CitgXGrbMM/AU1WhP F/UHB4SALdzfyoUYNbfbpAegJT5MwJhEC0H6Yt2tIfhTmtU1HpIKawZ0KX6yGB4SX90BpuELc 0TS0BJSnPX+8ZcVlvIYONlaNGsbux4Id05k6/bNAo+AXtJZmqUUKegyr9xM6KiCAIR6BqKHWO mnO/Czu3K7L1qt/2/b0i8uO6+gydooMyiSoSiijTV/aozUZrqDFkbPdrXP0OcV3CMzGydHfvr Qx2IVpjNaycf9imn8/nqm/Jk/hFD2rsuMH/ACTf6wyF7LuCTrhZvUq1cnycpDtOUt5qGcBp8+ zanY2stLk8BWr1D/kNESrLwzsLBLrYUrZu4LnzAPp7jNub1lJ/k5x0i7rOneaJvvcmnnmznGY oM2I2sqt1iuOGNAdj9djotPQq7lxkOPBhj/ePbRPmtFb69HpVacYvNGZJLe9cJ/nR5ZWNOrXf 6RVFrGQAtpk13hyCgilEa4e38fuTsED5SmJAaJ7DwmLYT3v22gPaTdBhq15hY89LEpI4lQiFh +6/zOQX+hAHUU/taB4f5lujY2KKP5N37Fk7nVEdve0RPzPV16JgzRAqf4jroqY+pmeahv+mvl XB4pQcaQsLXbnbu3N8oEbTO0Ak3dya9+hhi1uyQ== Received-SPF: pass client-ip=212.227.15.19; envelope-from=pierre.langlois@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/20 16:37:09 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) 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.4 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Jakub, Jakub K=C4=85dzio=C5=82ka writes: > On Sun, Aug 16, 2020 at 03:42:38PM +0100, Pierre Langlois wrote: >>=20 >> Pierre Langlois writes: >>=20 >> > Hello Guix! >> > >> > In an optimistic attempt to eventually have Icecat on a Pinebook Pro, I >> > thought I'd try and get rust building on aarch64. Here's a fix for the >> > post-install phase that had an x86 triplet hardcoded. With this we're >> > able to start off the bootstrap chain! >> > >> > That being said, each step takes ~5 hours on this machine so this is >> > going to take a while :-), it's currently working on 1.23. >> > >> > So, I suppose this should go into either core-updates or staging? WDYT? >>=20 >> Whoops, I forgot the copyright line on that file. >>=20 > > Pierre, > > thanks for your patch! I was working on a similar change before, but > when I tried it, it failed even earlier in the bootstrap chain. It > might've been QEMU weirdness, though, a la #42448. > >> @@ -612,9 +613,10 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" = "\" >> (cargo-out (assoc-ref outputs "cargo"))) >> (for-each >> (lambda (file) (delete-manifest-file out file)) >> - '("install.log" >> + `("install.log" >> "manifest-rust-docs" >> - "manifest-rust-std-x86_64-unknown-linux-gnu" >> + ,,(string-append "manifest-rust-std-" >> + (nix-system->gnu-triplet-for-ru= st)) >> "manifest-rustc")) >> (for-each >> (lambda (file) (delete-manifest-file cargo-out fil= e)) > > If I understand the code correctly, this quasiquote is unnecessary, as > the host-side code will evaluate to a string that can be inserted as-is, > without another unquote on the build side. > > Fixing this would mean that the patch can go on master, since it would > now only trigger rebuilds on architectures that are already broken. Ooooh yeah, that'll be much better, I've attached a patch that does just that. I can confirm it doesn't trigger a full rebuild, nice! > I wish you best of luck on your quest for Rust on ARM boards. This has > been a long-standing issue, and it'd be nice to have it fixed. Let me > know if you need any help - I packaged the last few versions, so I got > quite familiar with the various failure modes of the build process. I'm > NieDzejkob on IRC, if you prefer. haha, thanks :-), I haven't got very far with it yet, the build failed at 1.23 with a test case failure. Something to do with receiving the wrong signal on an expected crash. I'm optimistic though! I don't have the build log around anymore, but we can see if the CI has the same problem. I haven't spent much time investigating, instead thinking I'm better off trying to get the patches that allow bootstrapping from 1.29 working. I was planning on looking into that. Otherwise we can skip any tests that don't pass and carry on, I suspect it's normal behaviour on that platform and the tests need updating. I think aarch64 is officially supported now but it's probably quite recent. Thanks, Pierre --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-rust-Fix-install-phase-for-non-x86_64-platforms.patch Content-Transfer-Encoding: quoted-printable >From c2b9142fb3de5dd27f26914d89eb08750a3f33fb Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Sun, 16 Aug 2020 12:17:18 +0100 Subject: [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. * gnu/packages/rust.scm (rust-1.20)[arguments]: Replace hardcoded x86_64 triplet with nix-system->gnu-triplet-for-rust in 'delete-install-logs phase. --- gnu/packages/rust.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 778aeaab05..7571cfee3f 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -9,6 +9,7 @@ ;;; Copyright =C2=A9 2018 Danny Milosavljevic ;;; Copyright =C2=A9 2019 Ivan Petkov ;;; Copyright =C2=A9 2020 Jakub K=C4=85dzio=C5=82ka +;;; Copyright =C2=A9 2020 Pierre Langlois ;;; ;;; This file is part of GNU Guix. ;;; @@ -614,7 +615,8 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\" (lambda (file) (delete-manifest-file out file)) '("install.log" "manifest-rust-docs" - "manifest-rust-std-x86_64-unknown-linux-gnu" + ,(string-append "manifest-rust-std-" + (nix-system->gnu-triplet-for-rust)) "manifest-rustc")) (for-each (lambda (file) (delete-manifest-file cargo-out file)) --=20 2.28.0 --=-=-=-- From unknown Sat Aug 16 17:02:33 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#42888] [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Sep 2020 13:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42888 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42888@debbugs.gnu.org Cc: Pierre Langlois Received: via spool by 42888-submit@debbugs.gnu.org id=B42888.16005225866191 (code B ref 42888); Sat, 19 Sep 2020 13:37:01 +0000 Received: (at 42888) by debbugs.gnu.org; 19 Sep 2020 13:36:26 +0000 Received: from localhost ([127.0.0.1]:45833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJd2P-0001bn-VN for submit@debbugs.gnu.org; Sat, 19 Sep 2020 09:36:26 -0400 Received: from mout.gmx.net ([212.227.15.15]:53309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJd2K-0001bW-Kl for 42888@debbugs.gnu.org; Sat, 19 Sep 2020 09:36:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600522574; bh=hdAXU1sDTa9PU1xfSaIS5qUu03cSxMRPFKFTKQ2okho=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=Kyjm3YCmEKt1uF14jTZv1X7CwDgcEznElyRi23IyuhrY0JGf9FuMq62RYyjmzxjme n3GCkjuBDnzc5kCcaMq+aXcmOEq1aWMtJPQV2cf7p6nmBKeUwFuTbex/B6Vznj/4c3 2ml9geqBVsCjSo5Nimc0kNeqNTMc9nga7iM00fkY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MZkpR-1jwNfG47Z1-00Wq3l; Sat, 19 Sep 2020 15:36:14 +0200 References: <87d03qptmv.fsf@gmx.com> <875z9ips81.fsf@gmx.com> <20200819215552.stnpvcfaj5xpqkn7@gravity> <874koy47g8.fsf@gmx.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Pierre Langlois In-reply-to: <874koy47g8.fsf@gmx.com> Date: Sat, 19 Sep 2020 14:36:04 +0100 Message-ID: <87zh5l6g8r.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:KgwDdQTO+5UzG04AqXuNqXPuY1BJBB/NzUwGr4JzLZjqI26/ZGV GdZJLF5OigKb8RTy8laIGet1ZHAYS3lnGVIbtEe/deL7w1DYSFebPBn7qdGhkZOxhi8Riv5 15o3qeGjAtqO8jFHTlLRcewBIU3L3eYu2SC5KsJ9CX+0rtafjVRnt0bDoKGOOWfBaFq/uED +lKItZO/MGAzgM2Tvo3wQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:wId73NC8z4Q=:YH8XHrDIfXzOWLU4o/NulS 2larg4deNlGNkjAxGy7JGAm5U0nZrKOj+vNbuzRh12b0aQ0d5AFdFKP5+NGx1cnFeQaRF5OBc V1K/we8WJB5HkkV9zJTsFjaEJzaxuV31FFcKZShv7U1HKyGKpNCoNKZlAIJ03x334SfsPo9L7 5sLSDMsIv8ZxRHJv14PS5q6YiqAkZLzvmZBjrhpuraKAmgNZNRa5wGKbKKmuFmNyxPWmyjbbF vXiMzrU5yABBQ1Jf6t0IPwuOPVAzxCozMTbd7avh1Ji30bnIAWqwaaN7nHlLRhUq3odWm15on zDJ9klbRk0o5moowLocZQE5lmSSrVtfiyyDguHJPyXuydjVtzjmLkJ9mwvzaLlxlvzhG64/Y/ NucO0Sq2vYhTiiuj0OgQ6RF9HevVNwH7RYfoONind801asG0m4dqo/9yS+Q4R8ZQ00/yAhxMs wZcfhbza9kSnIy4kYL7zT21YTGwa6R/TcOfXkUoH8dGeDu/GFYbPPEgLc0K4MtZ0oJ7nXI5YS Jbv+FjroKDJHdSQI+HK+iEBQJXr484Krlo0ZiHHji++D0lpdWDFGQ75TMr2s1mOGpe4Xvoymj sJkRc4cSzv9yiJurKRnN2TYttYrpAS98jTMqvYsmUUo2yvO7MWtmCyZhww5xgzHdSpVyUQSl5 0M9L0ZYJWKdvKbzKp3yIIfU88N8NlLyVS41GMF+YKE93E0WdeaKiZ/40B2Cm3Rp3+b+Lh+Pkq 6uMT7hd+cDuZm+ay5LzcFjZKPJXMvG7+pFSY3Kfy0+/7jQ/XcYYDh4wo9bx9+5+vJmBvPq7pe 76/VKVEr7XXlDWxWeZjK03twNFQZcmZMPWeHul0StfWmPfoUaqEDsN32AXhVs/OVGQHAr7BE5 Dlu7zCKkYvBF+wSyTwUq2nFDzAdN2ubu77VYjrX/go1ax+ZGTIU2hRNPW9MBUVzGrcTnXZ1WK Fx8XhVP72gIpPGYDKTLPQ07mWgSFreyLXtlPDWY3di7/OyCDXlqosLRATHYNrp8OlB6zPpkM3 1WPFUPqHQTXvoensieX5bcnKtFvDHWzij8GqX35FR7+tXfsowhLdBgPlZ45ce2Vr2Hl4aV/vP YUME0G6SrcYrZGcJhAmmJObNFF228Abl0KXssanMKuMtAMW2pFHsIceKXhWXCi6ZQHtNbbu3S /FBLFQnOLqy7JoMPhutYCI3z7SXaTzloo+XMkgXZaAi46lRFjbT2/Bi+p76dtoC6cPLeLq8i4 BKSkiG8sXf1mX6b5qyqfd4MQYBOoBEaJf6uKwOw== X-Spam-Score: -0.7 (/) 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 (-) --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Guix! Pierre Langlois writes: > Hi Jakub, > > Jakub K=C4=85dzio=C5=82ka writes: > (snip) >> Pierre, >> >> thanks for your patch! I was working on a similar change before, but >> when I tried it, it failed even earlier in the bootstrap chain. It >> might've been QEMU weirdness, though, a la #42448. >> >>> @@ -612,9 +613,10 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a"= "\" >>> (cargo-out (assoc-ref outputs "cargo"))) >>> (for-each >>> (lambda (file) (delete-manifest-file out file)) >>> - '("install.log" >>> + `("install.log" >>> "manifest-rust-docs" >>> - "manifest-rust-std-x86_64-unknown-linux-gnu" >>> + ,,(string-append "manifest-rust-std-" >>> + (nix-system->gnu-triplet-for-r= ust)) >>> "manifest-rustc")) >>> (for-each >>> (lambda (file) (delete-manifest-file cargo-out fi= le)) >> >> If I understand the code correctly, this quasiquote is unnecessary, as >> the host-side code will evaluate to a string that can be inserted as-is, >> without another unquote on the build side. >> >> Fixing this would mean that the patch can go on master, since it would >> now only trigger rebuilds on architectures that are already broken. > > Ooooh yeah, that'll be much better, I've attached a patch that does just > that. I can confirm it doesn't trigger a full rebuild, nice! > I've just rebased this patch and fixed a little formatting issue. I've made sure, it doesn't trigger any rust rebuilds on x86. Is this OK to commit? Thanks, Pierre --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAl9mCUQYHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31UxsQIAI7g9bclJtFypFwJvUopq49k f0BM83IQ08imZ7S2nEyhjPbLyhmvaV9EVCLjTsYn7lZnx24zaGbD4Wt5W2DmSqAQ dEPoS0OKsY3kmOkRMkviRWqrTzA5AaTlP4e0sLkebNgmXQyc2scowQtQaAI8wpSx n9QAg7AsgNBWRR+6pKGFXW/x8q13ocEHNosBGSeoCQDdeIj3Qy0wFcbFe6rgl60u +QmAM0eh1UM/ODXC5oik6yLquAdG8UBrJd/RU6M6VgotSYuoV/z+tad0M2IA0A5H wNqa70h/x6CUA9QXTvjzJSIlUjhdMiPWk2Nf3PICvJaO2UiLiJE5scvp0e6MKCg= =Toli -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-rust-Fix-install-phase-for-non-x86_64-platforms.patch Content-Transfer-Encoding: quoted-printable >From 207071445a0a637075138fb678bdbcdcfbaa038d Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Sun, 16 Aug 2020 12:17:18 +0100 Subject: [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. * gnu/packages/rust.scm (rust-1.20)[arguments]: Replace hardcoded x86_64 triplet with nix-system->gnu-triplet-for-rust in 'delete-install-logs phase. --- gnu/packages/rust.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index d5914f012b..1690ad96c5 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -9,6 +9,7 @@ ;;; Copyright =C2=A9 2018 Danny Milosavljevic ;;; Copyright =C2=A9 2019 Ivan Petkov ;;; Copyright =C2=A9 2020 Jakub K=C4=85dzio=C5=82ka +;;; Copyright =C2=A9 2020 Pierre Langlois ;;; ;;; This file is part of GNU Guix. ;;; @@ -614,7 +615,8 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\" (lambda (file) (delete-manifest-file out file)) '("install.log" "manifest-rust-docs" - "manifest-rust-std-x86_64-unknown-linux-gnu" + ,(string-append "manifest-rust-std-" + (nix-system->gnu-triplet-for-rust)) "manifest-rustc")) (for-each (lambda (file) (delete-manifest-file cargo-out file)) --=20 2.28.0 --=-=-=-- From unknown Sat Aug 16 17:02:33 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#42888] [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Sep 2020 18:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42888 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Pierre Langlois , 42888@debbugs.gnu.org Cc: Pierre Langlois Received: via spool by 42888-submit@debbugs.gnu.org id=B42888.160106025926409 (code B ref 42888); Fri, 25 Sep 2020 18:58:01 +0000 Received: (at 42888) by debbugs.gnu.org; 25 Sep 2020 18:57:39 +0000 Received: from localhost ([127.0.0.1]:45354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLsuZ-0006rs-22 for submit@debbugs.gnu.org; Fri, 25 Sep 2020 14:57:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLsuX-0006rg-D3 for 42888@debbugs.gnu.org; Fri, 25 Sep 2020 14:57:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43250) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLsuR-0001mI-Tx; Fri, 25 Sep 2020 14:57:31 -0400 Received: from [80.232.114.98] (port=36568 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLsuP-0002PZ-5O; Fri, 25 Sep 2020 14:57:29 -0400 From: Marius Bakke In-Reply-To: <87zh5l6g8r.fsf@gmx.com> References: <87d03qptmv.fsf@gmx.com> <875z9ips81.fsf@gmx.com> <20200819215552.stnpvcfaj5xpqkn7@gravity> <874koy47g8.fsf@gmx.com> <87zh5l6g8r.fsf@gmx.com> Date: Fri, 25 Sep 2020 20:57:27 +0200 Message-ID: <87lfgx4rc8.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) 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 Pierre Langlois writes: > Hello Guix! > > Pierre Langlois writes: > >> Hi Jakub, >> >> Jakub K=C4=85dzio=C5=82ka writes: >> > > (snip) > >>> Pierre, >>> >>> thanks for your patch! I was working on a similar change before, but >>> when I tried it, it failed even earlier in the bootstrap chain. It >>> might've been QEMU weirdness, though, a la #42448. >>> >>>> @@ -612,9 +613,10 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a= " "\" >>>> (cargo-out (assoc-ref outputs "cargo"))) >>>> (for-each >>>> (lambda (file) (delete-manifest-file out file)) >>>> - '("install.log" >>>> + `("install.log" >>>> "manifest-rust-docs" >>>> - "manifest-rust-std-x86_64-unknown-linux-gnu" >>>> + ,,(string-append "manifest-rust-std-" >>>> + (nix-system->gnu-triplet-for-= rust)) >>>> "manifest-rustc")) >>>> (for-each >>>> (lambda (file) (delete-manifest-file cargo-out f= ile)) >>> >>> If I understand the code correctly, this quasiquote is unnecessary, as >>> the host-side code will evaluate to a string that can be inserted as-is, >>> without another unquote on the build side. >>> >>> Fixing this would mean that the patch can go on master, since it would >>> now only trigger rebuilds on architectures that are already broken. >> >> Ooooh yeah, that'll be much better, I've attached a patch that does just >> that. I can confirm it doesn't trigger a full rebuild, nice! >> > > I've just rebased this patch and fixed a little formatting issue. I've > made sure, it doesn't trigger any rust rebuilds on x86. > > Is this OK to commit? LGTM! Thanks a lot for tackling this long-standing issue. Were you able to build all the way to the latest Rust? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl9uPZcACgkQoqBt8qM6 VPpM+gf/eDlhnS8jRJGPRYn016KZnAAl0XLx0xL7IbOXBnlHQuq8U/ETsUazofKs /rSdS0wZPXU85WuoqHsHB1BaM4UixeGBdwrxFL5vK5uARoSl6wryjiceXF7maUKW P5mn46jth0Q6YAj0SIZHHmwjHjKgH6j46x4TRkSJVEewzSO4RpIvd2Mvh5vGVaX0 7Ul2qN3IC+qPezOZLL7MLSfjesFV3WAks0NjaeTKrvE3uKwRpa/zDRvGo04s/f9n zkSHX0KFZcTDTOyUqqCp50XcZ6PhaIFzNpvcBDaPUj6v78/Gsj5XAEy0CgrHAiZ5 xcsFG/Ik+MgPi1656PYcDdDwysZHHg== =MZHO -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Aug 16 17:02:33 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Pierre Langlois Subject: bug#42888: closed (Re: [bug#42888] [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms.) Message-ID: References: <87mu1d8vzo.fsf@gmx.com> <87d03qptmv.fsf@gmx.com> X-Gnu-PR-Message: they-closed 42888 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 42888@debbugs.gnu.org Date: Fri, 25 Sep 2020 20:04:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1601064242-32492-1" This is a multi-part message in MIME format... ------------=_1601064242-32492-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #42888: [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 42888@debbugs.gnu.org. --=20 42888: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D42888 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1601064242-32492-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 42888-done) by debbugs.gnu.org; 25 Sep 2020 20:03:50 +0000 Received: from localhost ([127.0.0.1]:45408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLtwR-0008R6-Ra for submit@debbugs.gnu.org; Fri, 25 Sep 2020 16:03:50 -0400 Received: from mout.gmx.net ([212.227.17.20]:45803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLtwP-0008Qp-Am for 42888-done@debbugs.gnu.org; Fri, 25 Sep 2020 16:03:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601064210; bh=GQ9eEoFh1pOiBxYZ2H/CtpEyS4iqd/NyshER2whcxoY=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=FLWuTPx6SDOY5VXKQUNksQaHZfPR/X3p0lHbQBF0ntLwoCvzWLwXnMwkYlFfYPXZw C3ofoMn4R45v9S7ZlMYD9282dKOCBCK9vZECiB+r+goIUWn5M1Nbbd6l9n17P93GwT L/mWnKiCXoPMtpcttg4DAUQeAI4/VT3MYVridKSk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MWAOQ-1jx85w0lmU-00XYGV; Fri, 25 Sep 2020 22:03:30 +0200 References: <87d03qptmv.fsf@gmx.com> <875z9ips81.fsf@gmx.com> <20200819215552.stnpvcfaj5xpqkn7@gravity> <874koy47g8.fsf@gmx.com> <87zh5l6g8r.fsf@gmx.com> <87lfgx4rc8.fsf@gnu.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Pierre Langlois To: Marius Bakke Subject: Re: [bug#42888] [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. In-reply-to: <87lfgx4rc8.fsf@gnu.org> Date: Fri, 25 Sep 2020 21:03:23 +0100 Message-ID: <87mu1d8vzo.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:ugGRLDe/BMd1ScXeItKT5U0WUn6fR85lA5YHrd3HRD2FV6oqNKJ JG32fyKNalUIvLw/Btonykl2wTvtQ00urWxNzqQxKJtEi0vJuYeedbeK9vofnsZ9B8EJuPJ Q4jMZCzDsSkDEfKVbfjSsvIq/d3GCh9N8LuGzfegg2Jhthc7yV8pPCF8cfcTWBMr/ctQ6Ks NgY8klOV/L7bkDhhpPaIg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:XvpGqrAbVPA=:QzGU6SwtZtUxt3H4t8499q ge9MWkS2ecZI148GnprKSA1eUmX8kj23D8qi/j/AWcM7ECKIq8pghbjC6Y9SrHpQoFstsk9Sx f/Ko72/78J+Ma4NZ7kvayU9552yhPJ5c4VI0/kcMxxmEUwqYZD7S2j3rBsDytlqZGHQ/pqDa3 drW48bpyFoN8QleON7xTvSvJ62hw+J2x+a9TA0VL9OsV8CL5HPDytpeHmE9fb8pBmgqRCYf1o iWfMDunhUp53EeeQxvJHjcoZ03g4i1SzqG6KZyqtAAUPcCaLdFH2kDDtcpXL0IRzG4MymQlrh K4qZH9UtsFRJgZENDXRFZdd3OoqEoqB1f39/AfnNf6sw8Cw4CwVUa7zT3Ppl8K06MaS7vQCeE C13GUzAnQpgK8VfJ1lhnsbD9ihrkNObsYwaS0TmTFrYPKCviwhfw2adzud0BUYWWZD+WIaqHf KCtvkDRbTwHpJlgXoEBlGiBx1vWC4Wu2OEU/YnwtgBa9dOLIoY6Tj83uNdzbN70ryhGmvBDNl vjPTrkaxH5HRV/qmVpFLoBRSzFi2eW7ZdgRQzSBnPjPrUPl+g63Qj13DSQwVbqDpis79+WvbA JaNe96YiNHeXdqSCchke8GSUSTLSQlgwEbOq0aj6pir2DQQ9xhXSZHB66WhT84CdomkCo85mD ujN2iq/SI61nw8Z66faRCQWENqMe2hSAuxvfo2nHORwbfDr1OCI9Nt4BF+nGWBKPjm6dvEY8e ZsuHasALhLmZVRhTEzaW7lAVnhOXcrnCBliBqXITTOMLoL4bwpuaw8CM/maVsF2ZbTAWQt5Xk qleMOGprmyHZ9jzzpXTtTFUf5XMzp/A+cG/c+ISuY87rmUv6eh+La1goF9TSDT687SMjG4hYy lsvzFWkvzYe+L76PODXyN7cQ19fhUkn2+TrQwoqFHmvBtrCE3h4W24J///CePwt7UCiwtbr4+ VA+cGQsNG2qneBDrCp7CA8pb88X6IaWv+7TT5DmcbhzvfAYcam7bbrAa5+Vl3AuOawj3dBf8R STFyrPisYDd7y7wF7gFRB7rxddOLA6ATC870jDzpyhCbd8rcQZPOOX7DjtsLocM0WXk6nXbzV 7XpLJMJK3R4DtwiX9nAdNp4/JejR56eqiugkdk/qLgOW+LF7DzGRinDNN/sFpPPPHBq24ue6U ahA3nWQ9OrGhZxOHwlFfeUfveaYtzeinRqJUsESsLhMvuETolfY6x61r6OgygpAI+qOitvpt+ 0AGpSMQtDPiZH1nBGPFzwo6TCMnTlCcGzxNyp1A== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 42888-done Cc: Pierre Langlois , 42888-done@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.0 (-) --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Marius Bakke writes: > Pierre Langlois writes: > >> Hello Guix! >> >> Pierre Langlois writes: >> >>> Hi Jakub, >>> >>> Jakub K=C4=85dzio=C5=82ka writes: >>> >> >> (snip) >> >>>> Pierre, >>>> >>>> thanks for your patch! I was working on a similar change before, but >>>> when I tried it, it failed even earlier in the bootstrap chain. It >>>> might've been QEMU weirdness, though, a la #42448. >>>> >>>>> @@ -612,9 +613,10 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.= a" "\" >>>>> (cargo-out (assoc-ref outputs "cargo"))) >>>>> (for-each >>>>> (lambda (file) (delete-manifest-file out file)) >>>>> - '("install.log" >>>>> + `("install.log" >>>>> "manifest-rust-docs" >>>>> - "manifest-rust-std-x86_64-unknown-linux-gnu" >>>>> + ,,(string-append "manifest-rust-std-" >>>>> + (nix-system->gnu-triplet-for= -rust)) >>>>> "manifest-rustc")) >>>>> (for-each >>>>> (lambda (file) (delete-manifest-file cargo-out = file)) >>>> >>>> If I understand the code correctly, this quasiquote is unnecessary, as >>>> the host-side code will evaluate to a string that can be inserted as-i= s, >>>> without another unquote on the build side. >>>> >>>> Fixing this would mean that the patch can go on master, since it would >>>> now only trigger rebuilds on architectures that are already broken. >>> >>> Ooooh yeah, that'll be much better, I've attached a patch that does just >>> that. I can confirm it doesn't trigger a full rebuild, nice! >>> >> >> I've just rebased this patch and fixed a little formatting issue. I've >> made sure, it doesn't trigger any rust rebuilds on x86. >> >> Is this OK to commit? > > LGTM! Thanks a lot for tackling this long-standing issue. Thanks! Pushed as 2bab532fdfaa54a085abc0ac7fc2c859ee31f640. > > Were you able to build all the way to the latest Rust? No not yet :-/, I got it building up to 1.26, having to fix most steps with tests failing here and there. In the end I ran out of steam trying to build 1.27 and thought we'd be better off waiting until we can bootstrap from 1.29. I don't remember exactly what issues I had with 1.27, I've attacked my WIP patch in case somebody is interested actually! After that, I gave the patches on https://issues.guix.gnu.org/38110 a go, however as Danny mentions on the thread, linking consumes too much memory. I'm using a RockPro64 and it only has 4G of RAM. Somebody on github https://github.com/thepowersgang/mrustc/issues/138 mentioned we could try building with LLD so I tried that as well (patch attached) but memory consumption was still too much. That being said, I might not have had any swap file at the time, I'll try again :-). Soooo, yeah I don't know what the best approach is. We can try and get the current chain building and start upstreaming bits of my WIP patch or try and find a solution for the mrustc memory issue. Anyway, I haven't given up! :-) I'd really like to see IceCat on aarch64 eventually for the PineBook Pro. Although there are quite a few other things to fix on that platform first. Thanks, Pierre --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAl9uTQsYHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31UUOYIAIriGJYjg4nKwdgGfDqHUVwf F8tskPUiHupSZKi8kkx15O5pr9nyWhGOpgh6fkEwG/3QIiYwehLQFzToxbpPzOxz V2ahVLp6+/8kS5yCn02PL6sNLTd//Eru0TUUgZETVA7h1aqzE1vYiLXFYXANVLa5 LEqQY+6/s51teF91XA6bcnMs4sjpOpNV+lVuYTbLIDdkQY3e3s18cKVuyplpExqI kmCjJb/3ThazSqfrM5hxzRdIzU/b0ZcX+l1Oy+B4S7jveGHVNDK4NXuQS9FwHfhv U7zsrCtonhzPziWTnl3qobfPJ4bWXqmgIlFPmz29UymgviK9gBop6zIo1nweuNU= =zWrE -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-wip.patch Content-Transfer-Encoding: quoted-printable =46rom d44837f66c682e7111328adbfa34ea0cd6dfb6f6 Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Tue, 1 Sep 2020 00:29:38 +0100 Subject: [PATCH] wip =2D-- .../rust-1.26-fix-simd-doctest-non-x86.patch | 25 ++++++++++++++ .../rust-1.27-fix-simd-doctest-non-x86.patch | 31 +++++++++++++++++ gnu/packages/rust.scm | 33 ++++++++++++++++++- 3 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/rust-1.26-fix-simd-doctest-non-x8= 6.patch create mode 100644 gnu/packages/patches/rust-1.27-fix-simd-doctest-non-x8= 6.patch diff --git a/gnu/packages/patches/rust-1.26-fix-simd-doctest-non-x86.patch= b/gnu/packages/patches/rust-1.26-fix-simd-doctest-non-x86.patch new file mode 100644 index 0000000000..6d11fc9f12 =2D-- /dev/null +++ b/gnu/packages/patches/rust-1.26-fix-simd-doctest-non-x86.patch @@ -0,0 +1,25 @@ +From: QuietMisdreavus +Backported from https://github.com/rust-lang/stdarch/pull/466/commits/072= a51187df3ed7bb9f1f200be65ecef33b88c76 + +diff --git a/src/stdsimd/coresimd/mod.rs b/src/stdsimd/coresimd/mod.rs +index c35eb418..939417ba 100644 +--- a/src/stdsimd/coresimd/mod.rs ++++ b/src/stdsimd/coresimd/mod.rs +@@ -86,13 +86,17 @@ pub mod arch { + mod simd_llvm; + + #[cfg(any(target_arch =3D "x86", target_arch =3D "x86_64", dox))] ++#[doc(cfg(any(target_arch =3D "x86", target_arch =3D "x86_64")))] + mod x86; + #[cfg(any(target_arch =3D "x86_64", dox))] ++#[doc(cfg(target_arch =3D "x86_64"))] + mod x86_64; + + #[cfg(any(target_arch =3D "arm", target_arch =3D "aarch64", dox))] ++#[doc(cfg(any(target_arch =3D "arm", target_arch =3D "aarch64")))] + mod arm; + #[cfg(any(target_arch =3D "aarch64", dox))] ++#[doc(cfg(target_arch =3D "aarch64"))] + mod aarch64; + #[cfg(target_arch =3D "wasm32")] + mod wasm32; diff --git a/gnu/packages/patches/rust-1.27-fix-simd-doctest-non-x86.patch= b/gnu/packages/patches/rust-1.27-fix-simd-doctest-non-x86.patch new file mode 100644 index 0000000000..0f67c3bee6 =2D-- /dev/null +++ b/gnu/packages/patches/rust-1.27-fix-simd-doctest-non-x86.patch @@ -0,0 +1,31 @@ +From: QuietMisdreavus +Backported from https://github.com/rust-lang/stdarch/pull/466/commits/072= a51187df3ed7bb9f1f200be65ecef33b88c76 + +diff --git a/src/stdsimd/coresimd/mod.rs b/src/stdsimd/coresimd/mod.rs +index 9cf63d14..27c91d8b 100644 +--- a/src/stdsimd/coresimd/mod.rs ++++ b/src/stdsimd/coresimd/mod.rs +@@ -121,18 +121,22 @@ pub mod arch { + mod simd_llvm; + + #[cfg(any(target_arch =3D "x86", target_arch =3D "x86_64", dox))] ++#[doc(cfg(any(target_arch =3D "x86", target_arch =3D "x86_64")))] + mod x86; + #[cfg(any(target_arch =3D "x86_64", dox))] ++#[doc(cfg(target_arch =3D "x86_64"))] + mod x86_64; + + #[cfg(any(target_arch =3D "aarch64", dox))] ++#[doc(cfg(target_arch =3D "aarch64"))] + mod aarch64; + #[cfg(any(target_arch =3D "arm", target_arch =3D "aarch64", dox))] ++#[doc(cfg(any(target_arch =3D "arm", target_arch =3D "aarch64")))] + mod arm; + #[cfg(target_arch =3D "wasm32")] + mod wasm32; + +-#[cfg(any(target_arch =3D "mips", target_arch =3D "mips64", dox))] ++#[doc(cfg(any(target_arch =3D "mips", target_arch =3D "mips64")))] + mod mips; + + mod nvptx; diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 05404de1d8..6f4ba0eb18 100644 =2D-- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -682,6 +682,11 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\= " ;; XXX: Revisit this when we use gcc 6. (substitute* "src/binaryen/CMakeLists.txt" (("ADD_COMPILE_FLAG\\(\\\"-march=3Dnative\\\"\\)") "")) + #t)) + (add-after 'unpack 'remove-failing-test-aarch64 + (lambda _ + (if (string-prefix? "aarch64" ,(%current-system)) + (delete-file "src/test/compile-fail/required-lang-item= .rs")) #t))))))))) (define-public rust-1.24 @@ -695,6 +700,11 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\= " ((#:phases phases) `(modify-phases ,phases (delete 'use-readelf-for-tests) + (replace 'remove-failing-test-aarch64 + (lambda* _ + (if (string-prefix? "aarch64" ,(%current-system)) + (delete-file "src/test/run-pass/mir_heavy_promoted.rs"= )) + #t)) (replace 'patch-aarch64-test (lambda* _ (substitute* "src/librustc_metadata/dynamic_lib.rs" @@ -732,6 +742,11 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\= " ;; This test wants to update the crate index. (("fn no_index_update") "#[ignore]\nfn no_index_update= ")) #t)) + (replace 'remove-failing-test-aarch64 + (lambda* _ + (if (string-prefix? "aarch64" ,(%current-system)) + (delete-file "src/test/debuginfo/pretty-uninitialized-= vec.rs")) + #t)) (replace 'patch-aarch64-test (lambda _ (substitute* "src/librustc_metadata/dynamic_lib.rs" @@ -757,7 +772,9 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\" (inherit (package-source base-rust)) (patches (search-patches "rust-coresimd-doctest.patch" - "rust-1.25-accept-more-detailed-gdb-lines.patch")))) + "rust-1.25-accept-more-detailed-gdb-lines.patch" + ;; Fix for https://github.com/rust-lang/rust/issues/= 50988. + "rust-1.26-fix-simd-doctest-non-x86.patch")))) (arguments (substitute-keyword-arguments (package-arguments base-rust) ((#:phases phases) @@ -780,6 +797,14 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\= " ;; (delete-file-recursively "src/test/run-make-fulldeps/lin= ker-output-non-utf8") #t)) + (replace 'remove-failing-test-aarch64 + (lambda* _ + (if (string-prefix? "aarch64" ,(%current-system)) + (begin + (delete-file "src/test/compile-fail/dupe-symbols-7.r= s") + (delete-file "src/test/compile-fail/issue-15919.rs") + (delete-file "src/test/debuginfo/pretty-uninitialize= d-vec.rs"))) + #t)) (replace 'patch-cargo-tests (lambda* _ (substitute* "src/tools/cargo/tests/testsuite/build.rs" @@ -828,6 +853,8 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\" (patches (search-patches "rust-coresimd-doctest.patch" "rust-bootstrap-stage0-test.patch" "rust-1.25-accept-more-detailed-gdb-li= nes.patch" + ;; Fix for https://github.com/rust-lan= g/rust/issues/50988. + "rust-1.27-fix-simd-doctest-non-x86.pa= tch" "rust-reproducible-builds.patch")))) (native-inputs ;; FIXME: Rust 1.27 and some later versions require GDB 8.2 specif= ically. @@ -864,6 +891,8 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\" (patches (search-patches "rust-coresimd-doctest.patch" "rust-bootstrap-stage0-test.patch" "rust-1.25-accept-more-detailed-gdb-li= nes.patch" + ;; Fix for https://github.com/rust-lan= g/rust/issues/50988. + "rust-1.27-fix-simd-doctest-non-x86.pa= tch" "rust-reproducible-builds.patch")))) (inputs ;; Use LLVM 6.0 @@ -898,6 +927,8 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\" (origin (inherit (package-source base-rust)) (patches (search-patches "rust-1.25-accept-more-detailed-gdb-li= nes.patch" + ;; Fix for https://github.com/rust-lan= g/rust/issues/50988. + "rust-1.27-fix-simd-doctest-non-x86.pa= tch" "rust-reproducible-builds.patch"))))))= ) (define-public rust-1.30 =2D- 2.28.0 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-mrustc-Use-lld.patch Content-Transfer-Encoding: quoted-printable =46rom 30b2f19fc1edabbcf929d400f289220875440ffe Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Tue, 1 Sep 2020 00:46:47 +0100 Subject: [PATCH 1/2] mrustc: Use lld. =2D-- gnu/packages/patches/mrustc-use-lld.patch | 12 ++++++++++++ gnu/packages/rust.scm | 9 +++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 gnu/packages/patches/mrustc-use-lld.patch diff --git a/gnu/packages/patches/mrustc-use-lld.patch b/gnu/packages/patc= hes/mrustc-use-lld.patch new file mode 100644 index 0000000000..2df1f6f8f2 =2D-- /dev/null +++ b/gnu/packages/patches/mrustc-use-lld.patch @@ -0,0 +1,12 @@ +diff --git a/src/trans/codegen_c.cpp b/src/trans/codegen_c.cpp +index df0abf6f..7ab8d183 100644 +--- a/src/trans/codegen_c.cpp ++++ b/src/trans/codegen_c.cpp +@@ -953,6 +953,7 @@ namespace { + break; + } + args.push_back(m_outfile_path_c.c_str()); ++ args.push_back("-fuse-ld=3Dlld"); + switch(out_ty) + { + case CodegenOutput::DynamicLibrary: diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 89d0ffee31..97952e8ebe 100644 =2D-- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -128,14 +128,17 @@ (file-name (git-file-name name version)) (sha256 (base32 - "194ny7vsks5ygiw7d8yxjmp1qwigd71ilchis6xjl6bb2sj97rd2")= ))) + "194ny7vsks5ygiw7d8yxjmp1qwigd71ilchis6xjl6bb2sj97rd2")= ) + (patches (search-patches "mrustc-use-lld.patch")))) (outputs '("out" "cargo")) (build-system gnu-build-system) (inputs - `(("zlib" ,zlib))) + `(("lld" ,lld) + ("zlib" ,zlib))) (native-inputs `(("bison" ,bison) ("flex" ,flex) + ("gcc" ,gcc-10) ;; Required for the libstd sources. ("rustc" ,(package-source rust-1.29)))) (arguments @@ -418,6 +421,8 @@ safety and thread safety guarantees.") ("cmake" ,cmake-minimal) ("flex" ,flex) ; For the tests ("gdb" ,gdb) ; For the tests + ("gcc" ,gcc-10) + ("lld" ,lld) ("procps" ,procps) ; For the tests ("python-2" ,python-2) ("rustc-bootstrap" ,mrustc) =2D- 2.28.0 --=-=-=-- ------------=_1601064242-32492-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Aug 2020 14:12:17 +0000 Received: from localhost ([127.0.0.1]:58076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7JOT-0007tT-EH for submit@debbugs.gnu.org; Sun, 16 Aug 2020 10:12:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:42992) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7JOR-0007tL-1i for submit@debbugs.gnu.org; Sun, 16 Aug 2020 10:12:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7JOQ-00044c-Rb for guix-patches@gnu.org; Sun, 16 Aug 2020 10:12:14 -0400 Received: from mout.gmx.net ([212.227.17.22]:54709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7JOO-00022N-PX for guix-patches@gnu.org; Sun, 16 Aug 2020 10:12:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1597587129; bh=uqWgFOnSh58YYasyCbF7giXacIfpMuobhz5Go5vVoeU=; h=X-UI-Sender-Class:From:To:Subject:Date; b=PFVgRRJ6QcdffJk0g/8SFSs2fNhvqfNNA7e61jITlYg8V9X0iSb5+7MmYQMYonvXE 8G7fZ1FB/EyB/V8Vj9sx3LM+6+T4fRKCCBMj48JYn2GJFBGIEigS/wuWFUlLxlVNR+ 7YMipINBNy2kvrjQOjpQBMdVN0vOja1f7Mn+j1zQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MzhnN-1ktciW0UDp-00vj78 for ; Sun, 16 Aug 2020 16:12:09 +0200 User-agent: mu4e 1.4.13; emacs 26.3 From: Pierre Langlois To: Guix-patches Subject: [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. Date: Sun, 16 Aug 2020 15:12:08 +0100 Message-ID: <87d03qptmv.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:fXx+Qk58K7VIqxgKS7dktabcBYulPBUGlSE9KM7dkEdIhQHZZ4a HRngdlOcG1E9Nwjr43SGgUqM5jZ/yxe8zK6wAe2fs+IgTfBuZh25EXd1d7dS4q5OWm+K6y4 Xzv+zuWUuMwGIdQk6Gr21Z13eaeHytG4ulBnTY4RwBh5iytQb3f1YHjoI8fRICBnJxUuk1d vTjj5j74nZeEjQKIzeF7A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:pXyEe+NsVlc=:+w3LI/977kLMrUhyVWVxh+ aBnUaRtXkOBbwTccSDRNaWfhAB9HBCxlwUOrnNHYnVlb5JserRXeQ08SxN62unNP3FrqR6CaB gtiofiIRRaWCxN3U3mmrinUdmsh2fFgZRChbVwVDnV1dqAf7C1hQsDn4/mQ9VBuw3cpyZGqRR QkOhyIxRYHPPc5ec4uT7jF+s+vEG3lDqMfGLnLUW6dKbZp6OhQ4hqwGvrOHUB/3vvx8YwDn+q X/vYd9DYx2rPfAbXyZhbAlH5tUOornk4mdgqvTQ3f2B7rASIsekTYbemyyNNrSPHQhShvupks bGUJCyUwqI+SxetaDcG/TArX1oZSBiBOC6g+0iKbsPg+rrpUdQubJIBshE9FtCVB/mZCWWpah on671C0A3BaFYC+qvh03xqfh1M5/xkerfFJV7tO8/8WUNDHnsFmQIBvuMvHc62mlv24TuzjTL /BtZvqHr5QsYYxZPpGcqbgTz7FLLZHy0Is9LUEv0ZNYKEjBsRrj/mCSRPcVph4smzwNaV1zXP 1BLnSIaQKl5gcy2kwXLpZvxkmKerdtQ5dfRUPS3QRlaR4VZKfejwWWVJR31MvxYRiUhyg7Q02 AIYDmRZWhyU6d7bFBxb376r1IuVA6Q1ww9bV0HbB5o8ZDj4eZn+nt4V9IXp/i/gLpFx5MN6uY ikto8o+AeyTfmjuB8p6oOGKYqnzv99rGpK68dgn/kRz6ahAUVnLYRxf05aNVO1xqTSx/vlFwH UUSxvhUSGWGR8maqRHAkPswMnERza9hCU4iGtisIvbVy7dNTdF0S1m/NRx4vFMXWZ47Cb3XTy jFcCb7qFSxfkVh4AxF5XVBdK32mxCOb/5GvkrghGChG8nk8py+wSrRtmPVate4TATQF1SRqBk pABqHAATQbLsT91IjlpKdZuEisLjbc/LHkKU/J+nOrF5JY4seIkLU3yeEZjiOGRPiDklOTvXW /6ap4uMXCN5Dbv1MPs0a8f8/fjcqai3j2l556uVVl5SdS+EKSpphi7DXpqlW6IS+5ABP+xRMA PxPXGRTgq7dVgHu2uAC6Bw6fDsDFza/rfQAH2Mg3Uf+1OHwoCJbFh0HZQGwzeiSrsHgJ8yJch oy1I2aQuBr8E71DJAipiAHQUb4GozwyzMrJODR2m5plPw1bTpHNoS6CbRELWFIwqsbsgE7vgJ V7jBmPSylry18QHOy1bEJJa/GMv4bTtdRvLs/Hiw6p/ReEPdDP/PxOzs8wM24Dya7onLrC3ma HuF0Z9ik5nn/R8ipk6S66qz21fj56PZRF84WOKg== Received-SPF: pass client-ip=212.227.17.22; envelope-from=pierre.langlois@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/16 10:12:09 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) 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: -2.4 (--) --=-=-= Content-Type: text/plain Hello Guix! In an optimistic attempt to eventually have Icecat on a Pinebook Pro, I thought I'd try and get rust building on aarch64. Here's a fix for the post-install phase that had an x86 triplet hardcoded. With this we're able to start off the bootstrap chain! That being said, each step takes ~5 hours on this machine so this is going to take a while :-), it's currently working on 1.23. So, I suppose this should go into either core-updates or staging? WDYT? Thanks! Pierre --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-rust-Fix-install-phase-for-non-x86_64-platforms.patch Content-Transfer-Encoding: quoted-printable =46rom ac0415f8f724ec56022b526ade68c1aa708d51ea Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Sun, 16 Aug 2020 12:17:18 +0100 Subject: [PATCH] gnu: rust: Fix install phase for non-x86_64 platforms. * gnu/packages/rust.scm (rust-1.20)[arguments]: Replace hardcoded x86_64 triplet with nix-system->gnu-triplet-for-rust in 'delete-install-logs phas= e. =2D-- gnu/packages/rust.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 778aeaab05..a031683ea5 100644 =2D-- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -612,9 +612,10 @@ jemalloc =3D \"" jemalloc "/lib/libjemalloc_pic.a" "\= " (cargo-out (assoc-ref outputs "cargo"))) (for-each (lambda (file) (delete-manifest-file out file)) - '("install.log" + `("install.log" "manifest-rust-docs" - "manifest-rust-std-x86_64-unknown-linux-gnu" + ,,(string-append "manifest-rust-std-" + (nix-system->gnu-triplet-for-rust= )) "manifest-rustc")) (for-each (lambda (file) (delete-manifest-file cargo-out file)= ) =2D- 2.28.0 --=-=-=-- ------------=_1601064242-32492-1--