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

Create KB-article about rustup compile error #723

Open
rjan90 opened this issue Apr 18, 2024 · 1 comment
Open

Create KB-article about rustup compile error #723

rjan90 opened this issue Apr 18, 2024 · 1 comment
Assignees

Comments

@rjan90
Copy link
Collaborator

rjan90 commented Apr 18, 2024

Some users are encountering a build error like this:

error: failed to select a version for the requirement `fvm_shared = "=3.6.0"`
candidate versions found which didn't match: 2.6.0, 2.5.0, 2.4.0, ...
location searched: crates.io index
required by package `filcrypto v0.7.5 (/home/vit/lotus/extern/filecoin-ffi/rust)`
+ rm -f /home/vit/temp/tmp.AbKv4qKulH
make[1]: *** [Makefile:14: .install-filcrypto] Error 101
make[1]: Leaving directory '/home/vit/lotus/extern/filecoin-ffi'
make: *** [Makefile:41: build/.filecoin-install] Error 2
install -C ./lotus /usr/local/bin/lotus
install: cannot stat './lotus': No such file or directory
make: *** [Makefile:127: install-daemon] Error 1

Create a kb-article explaining how this can be fixed by running 'rustup update'

@Stebalien
Copy link
Member

That's kind of odd... We specify the rust version in rust-toolchain.toml, so we should always build with the correct version.

Do you mean cargo update? If so, IMO, the best solution is git reset --hard (revert accidental changes to the Cargo.lock file).

@rjan90 rjan90 added this to FilOz Apr 19, 2024
@rjan90 rjan90 self-assigned this Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants