nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

Build failure: rustup

Open yuki0iq opened this issue 1 week ago • 1 comments

Nixpkgs version

  • Unstable (26.05)

Steps to reproduce

Run

nix-build -I nixpkgs=channel:nixos-unstable '<nixpkgs>' -A rustup --no-out-link

I encountered a local rebuild that did not happen before.

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/316175223

Relevant log output

failures:

---- download::tests::reqwest::socks_proxy_request stdout ----

thread 'download::tests::reqwest::socks_proxy_request' (20493) panicked at src/download/tests.rs:187:13:
assertion `left == right` failed
  left: 0
 right: 1


failures:
    download::tests::reqwest::socks_proxy_request

test result: FAILED. 115 passed; 1 failed; 4 ignored; 0 measured; 0 filtered out; finished in 49.31s

error: test failed, to rerun pass `--lib`

Additional context

Hydra fails with download::tests::reqwest::socks_proxy_request, but in my local build the test passed:

...
rustup>     Finished `release` profile [optimized] target(s) in 7m 55s
rustup>      Running unittests src/lib.rs (target/x86_64-unknown-linux-gnu/release/deps/rustup-5ba16efafb13203a)
rustup> running 120 tests
...
rustup> test download::tests::reqwest::socks_proxy_request ... ok
...
rustup> test result: ok. 116 passed; 0 failed; 4 ignored; 0 measured; 0 filtered out; finished in 51.39s
...

Local build completed successfully, last log lines:

rustup> Finished cargoCheckHook
rustup> checkPhase completed in 21 minutes 42 seconds
rustup> Running phase: installPhase
rustup> Executing cargoInstallHook
rustup> /nix/store/w8yihglsjnym11kbsc4yv1k7mq5m7vlj-rustup-1.28.2/bin /build/source
rustup> /build/source
rustup> Finished cargoInstallHook
rustup> Running phase: fixupPhase
rustup> shrinking RPATHs of ELF executables and libraries in /nix/store/w8yihglsjnym11kbsc4yv1k7mq5m7vlj-rustup-1.28.2
rustup> shrinking /nix/store/w8yihglsjnym11kbsc4yv1k7mq5m7vlj-rustup-1.28.2/bin/.rustup-wrapped
rustup> shrinking /nix/store/w8yihglsjnym11kbsc4yv1k7mq5m7vlj-rustup-1.28.2/bin/rustup
rustup> checking for references to /build/ in /nix/store/w8yihglsjnym11kbsc4yv1k7mq5m7vlj-rustup-1.28.2...
rustup> patching script interpreter paths in /nix/store/w8yihglsjnym11kbsc4yv1k7mq5m7vlj-rustup-1.28.2
rustup> stripping (with command strip and flags -S -p) in  /nix/store/w8yihglsjnym11kbsc4yv1k7mq5m7vlj-rustup-1.28.2/bin
/nix/store/w8yihglsjnym11kbsc4yv1k7mq5m7vlj-rustup-1.28.2

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.17.9, NixOS, 26.05 (Yarara), 26.05pre904649.2d293cbfa5a7
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.94.0 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/yuki/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/yuki/.nix-profile/etc/xdg/nix/nix.conf:/home/yuki/.local/state/nix/profile/etc/xdg/nix/nix.conf:/home/yuki/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/yuki/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/store/6f0q5lymsq4zv2miyvcrzddv907h4r1i-gnome-settings-daemon-49.1/etc/xdg/nix/nix.conf:/nix/store/6f0q5lymsq4zv2miyvcrzddv907h4r1i-gnome-settings-daemon-49.1/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/gr2f1x406db7yqymv5s9bml47shnyj7k-lix-2.94.0/share
  • nixpkgs: /nix/store/1l0i405wi5iv15swljcvh7nz5n400xfg-source

Notify maintainers

@Mic92


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a :+1: reaction to issues you find important.

yuki0iq avatar Dec 13 '25 17:12 yuki0iq

The Hydra failure seems to have been spurious; the build succeeded locally on my system.

dawnofmidnight avatar Dec 13 '25 19:12 dawnofmidnight

Also built successfully locally for me. I think the spurious failure on Hydra could be https://github.com/rust-lang/rustup/pull/4372, fixed in the upcoming release.

kevinmehall avatar Dec 14 '25 06:12 kevinmehall

Built successfully for me.

ChaseKnowlden avatar Dec 19 '25 16:12 ChaseKnowlden