Anchor Verification Issue: Rustc Version Mismatch in Docker Environment
Command Executed
anchor verify 3MRKmmRZ6Fm4tvEEjBZcuGG7nxWVSYCJd83WzmAGqm8J
Problem Summary
The program build fails due to a rustc version mismatch. The solana-program v1.18.26 package requires rustc 1.75.0 or newer, but the Docker environment is using rustc 1.68.0-dev. This prevents the Anchor verification process from completing successfully.
Environment Details
Docker Image: backpackapp/build:v0.29.0Host Platform: macOS (arm64/v8)Host Rustc Version: rustc 1.82.0Cargo SBF Build Version: solana-cargo-build-sbf 1.18.26Rustc in Docker: rustc 1.68.0-dev
Error Output
Using image "backpackapp/build:v0.29.0"Run docker imageWARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested74a565d7ede826dc20be4d080629a60f24fc069c087b576753606d6f18abcd3eBuilding paymaster manifest: "programs/paymaster/Cargo.toml" Updating crates.io index Downloading crates ... ...error: package `solana-program v1.18.26` cannot be built because it requires rustc 1.75.0 or newer, while the currently active rustc version is 1.68.0-devEither upgrade to rustc 1.75.0 or newer, or usecargo update -p solana-program@1.18.26 --precise <version>where `<version>` is the latest version of `solana-program` supporting rustc 1.68.0-devCleaning up the docker target directoryRemoving the docker containeranchor-programError during Docker build: Failed to build programError: Failed to build program
Additional Details
Version Information
cargo-build-sbf --versionsolana-cargo-build-sbf 1.18.26platform-tools v1.41rustc 1.82.0