From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sOzhDfmfPV9AcwAA0tVLHw (envelope-from ) for ; Wed, 19 Aug 2020 21:56:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YN7GCfmfPV8+TAAA1q6Kng (envelope-from ) for ; Wed, 19 Aug 2020 21:56:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 983CC94005D for ; Wed, 19 Aug 2020 21:56:08 +0000 (UTC) Received: from localhost ([::1]:60422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8W3z-0007jj-8x for larch@yhetil.org; Wed, 19 Aug 2020 17:56:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8W3t-0007jb-Sj for guix-patches@gnu.org; Wed, 19 Aug 2020 17:56:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57825) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k8W3t-00036A-K5 for guix-patches@gnu.org; Wed, 19 Aug 2020 17:56:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k8W3t-00008q-IH for guix-patches@gnu.org; Wed, 19 Aug 2020 17:56:01 -0400 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 X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -2.61 X-TUID: hy24resFwxYc --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--