Page MenuHomePhabricator

[Chronik] Bump Rust version to 1.85.1
DraftPublic

Authored by tobias_ruck on Sun, Mar 23, 15:01.
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Summary

Rust 1.78 dropped support for Windows 7, which forces us to add the Bcrypt library (see D16547), and adds the bcryptprimitives.dll and api-ms-win-core-synch-l1-2-0.dll libraries. Since these are core libraries, it's fine to add them. N.B.: BCryptGenRandom is needed by the rand crate.

Depends on D16547.

Test Plan
./rustup-init -y --default-toolchain=1.85.1
source ~/.cargo/env
cmake -GNinja -DBUILD_BITCOIN_CHRONIK=on ..
ninja check-functional

Event Timeline

tobias_ruck retitled this revision from [Chronik] Bump Rust version to 1.80 to [Chronik] Bump Rust version to 1.85.1.Sun, Mar 23, 15:07
tobias_ruck edited the summary of this revision. (Show Details)
The build failed due to an unexpected infrastructure outage. The administrators have been notified to investigate. Sorry for the inconvenience.

Tail of the build log:

Service Unavailable
warning: spurious network error (2 tries remaining): failed to get successful HTTP response from `https://static.crates.io/crates/httpdate/1.0.3/download` (2a04:4e42:30::649), got 503
body:
Service Unavailable
warning: spurious network error (2 tries remaining): failed to get successful HTTP response from `https://static.crates.io/crates/parking_lot/0.12.3/download` (2a04:4e42:30::649), got 503
body:
Service Unavailable
warning: spurious network error (2 tries remaining): failed to get successful HTTP response from `https://static.crates.io/crates/futures/0.3.31/download` (2a04:4e42:30::649), got 503
body:
Service Unavailable
warning: spurious network error (2 tries remaining): failed to get successful HTTP response from `https://static.crates.io/crates/libc/0.2.167/download` (2a04:4e42:30::649), got 503
body:
Service Unavailable
warning: spurious network error (2 tries remaining): failed to get successful HTTP response from `https://static.crates.io/crates/paste/1.0.15/download` (2a04:4e42:30::649), got 503
body:
Service Unavailable
  Downloaded tinystr v0.7.6
  Downloaded thiserror-impl v1.0.69
  Downloaded writeable v0.5.5
  Downloaded once_cell v1.20.2
  Downloaded zeroize v1.8.1
  Downloaded lazycell v1.3.0
  Downloaded tracing-core v0.1.33
  Downloaded paste v1.0.15
  Downloaded parking_lot v0.12.3
  Downloaded windows-sys v0.59.0
  Downloaded regex-syntax v0.8.5
warning: spurious network error (2 tries remaining): failed to get successful HTTP response from `https://static.crates.io/crates/rustc-hash/1.1.0/download` (2a04:4e42:30::649), got 503
body:
Service Unavailable
  Downloaded rustc-hash v1.1.0
  Downloaded litemap v0.7.4
warning: spurious network error (2 tries remaining): failed to get successful HTTP response from `https://static.crates.io/crates/socket2/0.5.8/download` (2a04:4e42:30::649), got 503
body:
Service Unavailable
  Downloaded memchr v2.7.4
warning: spurious network error (2 tries remaining): failed to get successful HTTP response from `https://static.crates.io/crates/tokio/1.42.0/download` (2a04:4e42:30::649), got 503
body:
Service Unavailable
  Downloaded quote v1.0.37
  Downloaded form_urlencoded v1.2.1
  Downloaded httpdate v1.0.3
  Downloaded version_check v0.9.5
  Downloaded futures v0.3.31
  Downloaded socket2 v0.5.8
  Downloaded multimap v0.8.3
  Downloaded libc v0.2.167
warning: spurious network error (1 tries remaining): failed to get successful HTTP response from `https://static.crates.io/crates/windows-sys/0.48.0/download` (2a04:4e42:30::649), got 503
body:
Service Unavailable
  Downloaded windows-sys v0.48.0
warning: spurious network error (1 tries remaining): [28] Timeout was reached (failed to download any data for `tokio v1.42.0` within 30s)
error: failed to download from `https://static.crates.io/crates/tokio/1.42.0/download`

Caused by:
  [28] Timeout was reached (failed to download any data for `tokio v1.42.0` within 30s)
FAILED: chronik/CMakeFiles/_cargo-build_chronik_lib /bitcoin/distsrc-a82fd4af8858-x86_64-w64-mingw32/chronik/CMakeFiles/_cargo-build_chronik_lib 
cd /bitcoin/chronik/chronik-lib && /gnu/store/w6xrmrn9ndl0v22vmi8wivrjh6h6mqmc-cmake-minimal-3.24.2/bin/cmake -E env CC_x86_64_pc_windows_gnu=/home/bitcoinabc/.guix-profile/bin/x86_64-w64-mingw32-gcc CXX_x86_64_pc_windows_gnu=/home/bitcoinabc/.guix-profile/bin/x86_64-w64-mingw32-g++ AR_x86_64_pc_windows_gnu=/home/bitcoinabc/.guix-profile/bin/x86_64-w64-mingw32-ar CORROSION_BUILD_DIR=/bitcoin/distsrc-a82fd4af8858-x86_64-w64-mingw32/chronik CARGO_BUILD_RUSTC=/home/bitcoinabc/.rustup/toolchains/1.85.1-x86_64-unknown-linux-gnu/bin/rustc /home/bitcoinabc/.rustup/toolchains/1.85.1-x86_64-unknown-linux-gnu/bin/cargo rustc --lib --target=x86_64-pc-windows-gnu --package chronik_lib --manifest-path /bitcoin/chronik/chronik-lib/Cargo.toml --target-dir /bitcoin/distsrc-a82fd4af8858-x86_64-w64-mingw32/./cargo/build --release --locked -- -Cdefault-linker-libraries=yes -Clink-args=--target=x86_64-w64-mingw32
ninja: build stopped: subcommand failed.
Build guix-win failed with exit code 1

@bot guix-win

Try again (cargo offline??)

The build failed due to an unexpected infrastructure outage. The administrators have been notified to investigate. Sorry for the inconvenience.
The build failed due to an unexpected infrastructure outage. The administrators have been notified to investigate. Sorry for the inconvenience.
The build failed due to an unexpected infrastructure outage. The administrators have been notified to investigate. Sorry for the inconvenience.
The build failed due to an unexpected infrastructure outage. The administrators have been notified to investigate. Sorry for the inconvenience.