Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nixos-rebuild switch error: rustc 1.74 or newer, while the currently active rustc version is 1.73.0 #483

Open
kkingstoun opened this issue Jun 6, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@kkingstoun
Copy link

Bug description

To Reproduce

  1. wsl --import NixOS $env:USERPROFILE\NixOS\ nixos-wsl.tar.gz
  2. sudo nix-channel --update
  3. sudo nixos-rebuild switch

Logs

this derivation will be built:
  /nix/store/h3p99bif5wdg0zcwhw62ccj9r0aip36i-nixos-rebuild.drv
these 139 paths will be fetched (48.05 MiB download, 224.44 MiB unpacked):
.
.
.
Executing cargoBuildHook
++ env CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu HOST_CC=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/cc HOST_CXX=/nix/store/shdkxxdlpv66wl33rh9d01zfypaka1dn-gcc-wrapper-12.3.0/bin/c++ cargo build -j 20 --target x86_64-unknown-linux-gnu --frozen --profile release
error: package `clap_builder v4.5.2` cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version is 1.73.0
Either upgrade to rustc 1.74 or newer, or use
cargo update -p [email protected] --precise ver
where `ver` is the latest version of `clap_builder` supporting rustc 1.73.0
error: builder for '/nix/store/9h20mjg3zrdk62jzr5fh75lkg3kj9vaq-nixos-wsl-utils-1.0.0.drv' failed with exit code 101
error: 1 dependencies of derivation '/nix/store/jdw6nfkzb0jhbw32g9x13wfishi5n28h-nixos-system-nixos-23.11.7503.a2e1d0414259.drv' failed to build

WSL version

Please paste the output of wsl --version here

WSL: 2.0.14.0

@kkingstoun kkingstoun added the bug Something isn't working label Jun 6, 2024
@mgrandau
Copy link

mgrandau commented Jun 6, 2024

Same issue:
WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.4412

@nzbr nzbr pinned this issue Jun 6, 2024
@nzbr
Copy link
Member

nzbr commented Jun 6, 2024

Please update to NixOS 24.05, if you haven't done that yet. 23.11 has an older rustc version, which the newer versions of our dependencies are no longer compatible with

@trev-dev
Copy link

trev-dev commented Jun 6, 2024

Please update to NixOS 24.05, if you haven't done that yet. 23.11 has an older rustc version, which the newer versions of our dependencies are no longer compatible with

Is this directed to people with problems in this thread or the project? If I can safely update my main channel, I will.

@joegoldin
Copy link

Please update to NixOS 24.05, if you haven't done that yet. 23.11 has an older rustc version, which the newer versions of our dependencies are no longer compatible with

Is this directed to people with problems in this thread or the project? If I can safely update my main channel, I will.

Yep! Try:

sudo nix-channel --add  https://nixos.org/channels/nixos-24.05 nixos
sudo nix-channel --update
sudo nixos-rebuild switch

@john-fwss
Copy link

@joegoldin this helped me alot, thanks!

@jaskerv
Copy link

jaskerv commented Jun 8, 2024

Is this something that can be patched into this repo?

@nzbr nzbr mentioned this issue Jun 15, 2024
@nzbr
Copy link
Member

nzbr commented Jun 15, 2024

Is this something that can be patched into this repo?

We could revert to an older version of clap, but i'm not sure how much sense that would make

@ekawatani
Copy link

@nzbr But, is it better than not being able to use the OS? I don't think so. It should be at least patched somehow so that when I follow the instructions, it works. Currently it does not.

@nzbr
Copy link
Member

nzbr commented Jun 23, 2024

I have reverted the relevant commits now. Let me know if it works

@andreujuanc
Copy link

sudo nix-channel --add  https://nixos.org/channels/nixos-24.05 nixos
sudo nix-channel --update
sudo nixos-rebuild switch

Can we just add this to the docs/instructions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants