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 fails after import due to clap_lex requiring rust >= 1.70.0 #351

Closed
roosmaa opened this issue Dec 3, 2023 · 7 comments
Closed
Labels
question Further information is requested

Comments

@roosmaa
Copy link

roosmaa commented Dec 3, 2023

Bug description

After a fresh import of 23.5.5.2 nixos-wsl.tar.gz, the nixos-rebuild switch fails with the error below (Logs section).

To Reproduce

Steps to reproduce the behavior:

Expected behavior

No errors.

Logs

[root@nixos:~]# nixos-rebuild switch
building Nix...
building the system configuration...
these 5 derivations will be built:
  /nix/store/amiirgbp4p9f9br1wqwi8y311ci5iwsj-nixos-wsl-utils-1.0.0.drv
  /nix/store/k0b129cm1j0r7qj7jc4wj6agkp05haky-set-environment.drv
  /nix/store/s50idrivwlqgfyjryys6z9n856v43n67-etc-profile.drv
  /nix/store/vcc6c1qs0ypancg1cf2pj88pphs2xdjq-etc.drv
  /nix/store/lm678kpf4b7w2849kqhjmidl7sgz4fd5-nixos-system-nixos-23.05.5058.d2332963662e.drv
building '/nix/store/amiirgbp4p9f9br1wqwi8y311ci5iwsj-nixos-wsl-utils-1.0.0.drv'...
unpacking sources
unpacking source archive /nix/store/j2hr32shgjzcp6gnqm6zqvxxn3nxcyp8-utils
source root is utils
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
patching sources
Executing cargoSetupPostPatchHook
Validating consistency between /build/utils/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
Finished cargoSetupPostPatchHook
configuring
building
Executing cargoBuildHook
++ env CC_x86_64-unknown-linux-gnu=/nix/store/3hbxw05vfs6m1155xa6pvribs3bv777n-gcc-wrapper-12.2.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/3hbxw05vfs6m1155xa6pvribs3bv777n-gcc-wrapper-12.2.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/3hbxw05vfs6m1155xa6pvribs3bv777n-gcc-wrapper-12.2.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/3hbxw05vfs6m1155xa6pvribs3bv777n-gcc-wrapper-12.2.0/bin/c++ cargo build -j 8 --target x86_64-unknown-linux-gnu --frozen --release
error: package `clap_lex v0.6.0` cannot be built because it requires rustc 1.70.0 or newer, while the currently active rustc version is 1.69.0
Either upgrade to rustc 1.70.0 or newer, or use
cargo update -p [email protected] --precise ver
where `ver` is the latest version of `clap_lex` supporting rustc 1.69.0
error: builder for '/nix/store/amiirgbp4p9f9br1wqwi8y311ci5iwsj-nixos-wsl-utils-1.0.0.drv' failed with exit code 101
error: 1 dependencies of derivation '/nix/store/lm678kpf4b7w2849kqhjmidl7sgz4fd5-nixos-system-nixos-23.05.5058.d2332963662e.drv' failed to build
@roosmaa roosmaa added the bug Something isn't working label Dec 3, 2023
@SuperSandro2000
Copy link
Member

On main it is expected that you update to 23.11, otherwise use https://github.com/nix-community/NixOS-WSL/releases/tag/23.5.5.2

@SuperSandro2000 SuperSandro2000 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2023
@SuperSandro2000 SuperSandro2000 added question Further information is requested and removed bug Something isn't working labels Dec 4, 2023
@roosmaa
Copy link
Author

roosmaa commented Dec 4, 2023

I'm sorry but what you said makes zero sense to me as a Nix newbie. I followed the instructions in the readme, they ended in error. Thus the bug report as either the instructions are wrong or something is broken.

@mprasil
Copy link
Contributor

mprasil commented Dec 4, 2023

I'll just drop it here in case it helps anyone just starting with Nix, here's how one can update the channel to 23.11:

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

@MrScriptX
Copy link

It should be mentioned in the README

@SuperSandro2000
Copy link
Member

did so in #357

@roosmaa
Copy link
Author

roosmaa commented Dec 5, 2023

@SuperSandro2000 I think the problem is also that the latest tag (23.5.5.2, the file I downloaded), points to the main branch instead of the 23.5.5.2 itself. Thus the breakage and confusing.

@SuperSandro2000
Copy link
Member

hmmm, maybe we can fix this when we offer proper channels but until then main is for nixos-unstable :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants