anza-xyz / agave

Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces.
https://www.anza.xyz/
Apache License 2.0
287 stars 127 forks source link

Have these problems been solved?---cannot be built because it requires rustc 1.75.0 or newer, while the currently active rustc version is 1.68.0-dev #1478

Open bell152 opened 3 months ago

bell152 commented 3 months ago

error: package solana-program v1.18.14 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 solana-program@1.18.14 --precise ver where ver is the latest version of solana-program supporting rustc 1.68.0-dev

My environment: cargo-build-sbf --version solana-cargo-build-sbf 1.17.34 platform-tools v1.37 rustc 1.68.0

cargo --version cargo 1.78.0 (54d8815d0 2024-03-26)

rustc --version rustc 1.78.0 (9b00956e5 2024-04-29)

rustup toolchain list stable-aarch64-apple-darwin (default) (override) solana

OS: Apple M2 Max

LucasSte commented 3 months ago

It sounds like you have an old version of the platform tools (v1.37).

Platform tools v1.41 now ships with Rust 1.75