cargo 构建未使用正确的 rustc 版本

问题描述 投票:0回答:1

这是一个菜鸟问题,但我刚刚拉了https://github.com/succinctlabs/rsp/并尝试构建它,但失败了

$ cargo build
   Compiling rsp v0.1.0 (/Users/clementwalter/Documents/rsp/bin/host)
error: failed to run custom build command for `rsp v0.1.0 (/Users/clementwalter/Documents/rsp/bin/host)`

Caused by:
  process didn't exit successfully: `/Users/clementwalter/Documents/rsp/target/debug/build/rsp-766fbc07d4535559/build-script-build` (exit status: 101)
  --- stdout
  cargo::rerun-if-changed=/Users/clementwalter/Documents/rsp/bin/client-eth/src
  cargo::rerun-if-changed=/Users/clementwalter/Documents/rsp/bin/client-eth/Cargo.toml
  cargo:rerun-if-changed=/Users/clementwalter/Documents/rsp/bin/client-eth/Cargo.lock
  cargo:rerun-if-changed=/Users/clementwalter/Documents/rsp/crates/executor/client
  cargo:rerun-if-changed=/Users/clementwalter/Documents/rsp/crates/mpt
  cargo:rerun-if-changed=/Users/clementwalter/Documents/rsp/crates/primitives
  cargo:rerun-if-changed=/Users/clementwalter/Documents/rsp/crates/storage/witness-db
  cargo:rerun-if-changed=/Users/clementwalter/Documents/rsp/crates/primitives
  cargo:rerun-if-changed=/Users/clementwalter/Documents/rsp/crates/mpt
  cargo:rerun-if-changed=/Users/clementwalter/Documents/rsp/crates/primitives

  --- stderr
  [sp1]  error: package `reth-trie v1.0.6 (https://github.com/sp1-patches/reth?tag=rsp-20240830#260c7ed2)` cannot be built because it requires rustc 1.80 or newer, while the currently active rustc version is 1.75.0-nightly
  [sp1]  Either upgrade to rustc 1.80 or newer, or use
  [sp1]  cargo update [email protected] --precise ver
  [sp1]  where `ver` is the latest version of `reth-trie` supporting rustc 1.75.0-nightly

虽然我也有

$ rustup show active-toolchain
1.81.0-aarch64-apple-darwin (overridden by '/Users/clementwalter/Documents/rsp/rust-toolchain.toml')

所以我不明白这个1.75版本从何而来,以及为什么选择它

rust rust-cargo
1个回答
0
投票

实际上,错误是 rsp 使用了另一个相关项目中定义的自定义工具链。我需要用

sp1up
来更新它。

© www.soinside.com 2019 - 2024. All rights reserved.