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

[Bug]rusc version #2381

Closed
pavljyk opened this issue Mar 5, 2024 · 0 comments · Fixed by #2405
Closed

[Bug]rusc version #2381

pavljyk opened this issue Mar 5, 2024 · 0 comments · Fixed by #2405
Labels
bug Something isn't working

Comments

@pavljyk
Copy link

pavljyk commented Mar 5, 2024

🐛 Bug Report

If you try to install snarkVM using the gitHub method :

https://github.com/AleoHQ/snarkVM?tab=readme-ov-file#22b-build-from-source-code
"
Download the source code
git clone https://github.com/AleoHQ/snarkvm && cd snarkvm

Install snarkVM
$ cargo install --path .
"

then the project will not compile since the rust-toolchain file
the version of "rustc" is 1.72.1 and the build requires version 1.76

This error is not critical, just a simple user will not be able to fix it, since it is recommended to simply update everywhere, but it will not fix the error

Steps to Reproduce

To see this error, follow these steps:

"
Download the source code
git clone https://github.com/AleoHQ/snarkvm && cd snarkvm

Install snarkVM
$ cargo install --path .
"

This is the error returned
This is the error that is returned if you do not change the version in the file or delete it:

"
error: failed to compile snarkvm v0.16.19 (D:\snarkvm), intermediate artifacts can be found at D:\snarkvm\target.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

Caused by:
package clap_lex v0.7.0 cannot be built because it requires rustc 1.74 or newer, while the currently active rustc version is 1.72.1
Either upgrade to rustc 1.74 or newer, or use
cargo update -p clap_lex@0.7.0 --precise ver
where ver is the latest version of clap_lex supporting rustc 1.72.1
"

Environment

  • snarkVM Version = -
  • Rust Version = rustc 1.76.0
    cargo 1.76.0
    rustup 1.26.0
  • Computer OS = Windows
@pavljyk pavljyk added the bug Something isn't working label Mar 5, 2024
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

Successfully merging a pull request may close this issue.

1 participant