Subject: [bug#78484] [PATCH] rust: Bootstrap from version 1.74.0.

From: Maxim Cournoyer <[email-masked]>
Date: Tue, 20 May 2025 08:18:17 +0900

Hi,

Danny Milosavljevic <[email-masked]> writes:

[...]

> %exception #<&invoke-error program: "./x.py" arguments: ("-j16" "build" "--stage=1" "library/std" "src/tools/cargo") exit-status: 1 term-signal: #f stop-signal: #f> 
> phase `build' failed after 44.2 seconds
> command "./x.py" "-j16" "build" "--stage=1" "library/std" "src/tools/cargo" failed with status 1
> build process 18 exited with status 256
> note: keeping build directory `/tmp/guix-build-rust-1.78.0.drv-0'
> builder for `/gnu/store/m489v41vf6djzdlncsin7960jg9rgx2n-rust-1.78.0.drv' failed with exit code 1
> build of /gnu/store/m489v41vf6djzdlncsin7960jg9rgx2n-rust-1.78.0.drv failed
> View build log at '/var/log/guix/drvs/m4/89v41vf6djzdlncsin7960jg9rgx2n-rust-1.78.0.drv.gz'.
> cannot build derivation `/gnu/store/3h9aax6xnhmwlqq15b1m6sla782m04hd-rust-1.79.0.drv': 1 dependencies couldn't be built
> cannot build derivation `/gnu/store/f8fhkkbvmn5fbnwjpxqdls6f6r4scbl9-rust-1.80.1.drv': 1 dependencies couldn't be built
> cannot build derivation `/gnu/store/6aa0fhp44vf08dvnj8zis4jdgwykfj15-rust-1.81.0.drv': 1 dependencies couldn't be built
> cannot build derivation `/gnu/store/7hh4m3bbgsv7ir4bzmpal6akpsxmy15g-rust-1.82.0.drv': 1 dependencies couldn't be built
> guix build: error: build of `/gnu/store/7hh4m3bbgsv7ir4bzmpal6akpsxmy15g-rust-1.82.0.drv' failed
>
> Second time around with no change it worked fine.

I think there are many some race in cargo when using many parallel
jobs -- it rarely but sometimes fails.

> So LGTM!

Thanks for checking.  Efraim pointed me to this change having already
partially merged to the rust-team branch from a recent effort.
Unfortunately it seems like the mrustc 1.74 bootstrap didn't work on
aarch64 and powerpc64le architectures, so the alternative, longer 1.54
bootstrap is kept for these there.

I think it'd be beneficial if someone could test on these systems again
and report the actual errors to the mrustc project, so that there's hope
that the author knows and can fix these problems.

-- 
Thanks,
Maxim