Pierre Langlois writes: > [[PGP Signed Part:Undecided]] > Hi Guix! > > Good news everyone, I managed to get a aarch64 build of Rust by updating > mrustc to 0.10! Sadly, i686 is still unsupported, due to the build > using too much memory, it must be the same for other 32-bit architectures. > > I tested this on a pinebookpro which only has 4G of RAM, I had to attach > 16G of swap for the initial rust@1.39 build to succeed, then the whole > rust chain took about 5 days! I also tested on my x86_64 desktop. > > Here's the patch! After it we should be able to follow-up and enable > Gnome and friends. > > That being said, I wasn't entirely sure where this patch should go, > ideally it would be good to have a staging branch rather than > core-updates, WDYT? Maybe we can do this along with a rust version > update? > > PS: I also tried to build rust 1.54 with the new mrustc update, to > shorten the chain, but I've not had any successes with it yet. > > [[End of PGP Signed Part]] > From 555b3b21ead25d09b56e6287d5542da1abfb13c4 Mon Sep 17 00:00:00 2001 > From: Pierre Langlois > Date: Sat, 26 Mar 2022 13:21:17 +0000 > Subject: [PATCH] gnu: mrustc: Update to 0.10. > > And enable rust for aarch64-linux! > > * gnu/packages/rust.scm (%mrustc-commit): Update hash. > (%mrustc-source): Update to 0.10. > (rust-1.39)[arguments]: Move and adapt the substitute* that prevent > fetching sources. Patch /bin/sh in run_rustc/rustc_proxy.sh. > [supported-systems]: Add aarch64-linux. > --- > gnu/packages/rust.scm | 20 ++++++++++++-------- > 1 file changed, 12 insertions(+), 8 deletions(-) > > diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm > index 26d6df7a94..7a841e4326 100644 > --- a/gnu/packages/rust.scm > +++ b/gnu/packages/rust.scm > @@ -124,9 +124,9 @@ (define* (rust-bootstrapped-package base-rust version checksum) > ;;; to be used in source form. The latest support for bootstrapping from > ;;; 1.39.0 is not yet released so use the latest commit (see: > ;;; https://github.com/thepowersgang/mrustc/issues/185). Oh, I forgot to adapt this comment, the last sentence can be removed now there's a release. Attached a fixed patch.