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

Incorrect load rustc version #3028

Closed
duongvansang opened this issue Jun 15, 2024 · 2 comments
Closed

Incorrect load rustc version #3028

duongvansang opened this issue Jun 15, 2024 · 2 comments
Labels
cli compile error Issues related to compile errors duplicate This issue or pull request already exists lang

Comments

@duongvansang
Copy link

My rustc is latest one

% rustc -V
rustc 1.79.0 (129f3b996 2024-06-10)

but when I run anchor test for project I just init through command:

anchor init day1

It shows I am using rustc version 1.68.0-dev

$anchor test --skip-local-validator
error: package solana-program v1.18.16 cannot be built because it requires rustc 1.75.0 or newer, while the currently active rustc version is 1.68.0-dev
Either upgrade to rustc 1.75.0 or newer, or use
cargo update -p [email protected] --precise ver
where ver is the latest version of solana-program supporting rustc 1.68.0-dev

@duongvansang
Copy link
Author

btw, I use anchor version 0.30
% anchor -V anchor-cli 0.30.0 and run on mac

@acheroncrypto acheroncrypto added duplicate This issue or pull request already exists lang cli compile error Issues related to compile errors labels Jun 15, 2024
@acheroncrypto
Copy link
Collaborator

This was answered here #3012 (comment). You'll also get a better error message with the newer Solana versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli compile error Issues related to compile errors duplicate This issue or pull request already exists lang
Projects
None yet
Development

No branches or pull requests

2 participants