Skip to content

Invalid checksum in bootstrap #115275

Closed
@Alexendoo

Description

@Alexendoo

on d1fb175 I ran ./x clean after doing a git pull (unsure from what commit) and got:

downloading https://static.rust-lang.org/dist/2023-08-22/rustc-nightly-aarch64-unknown-linux-gnu.tar.xz
#####                                                                                                                                                                                                    2.6%
curl: (28) Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds
Warning: Problem : timeout. Will retry in 1 seconds. 3 retries left.
######################################################                                                                                                                                                  27.5%
curl: (28) Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds
Warning: Problem : timeout. Will retry in 2 seconds. 2 retries left.
###################################################################################################################################################################################################### 100.0%
invalid checksum: 
found:    bd65ba88eff2a212f87030efe2098bdd2ffdcc770fe3b52e0731c830739dd48a
expected: 95b36f95b1e697922b6dceeaceb74da030d436340cb4ba764101c218c3bcb786
thread 'main' panicked at download.rs:606:17:
failed to verify /home/gh-Alexendoo/rust/build/cache/2023-08-22/rustc-nightly-aarch64-unknown-linux-gnu.tar.xz
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Build completed unsuccessfully in 0:04:01

./x after moving the build dir to build2 worked fine

It may be an issue with the download retry logic, it seems to be larger than expected

$ curl -L https://static.rust-lang.org/dist/2023-08-22/rustc-nightly-aarch64-unknown-linux-gnu.tar.xz | wc -c
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 76.2M  100 76.2M    0     0  11.5M      0  0:00:06  0:00:06 --:--:-- 6205k
79976028
$ wc -c build2/cache/2023-08-22/rustc-nightly-aarch64-unknown-linux-gnu.tar.xz
104093276 build2/cache/2023-08-22/rustc-nightly-aarch64-unknown-linux-gnu.tar.xz

Metadata

Metadata

Assignees

Labels

C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions