From c388dd6ba94fea6e9ff3ada467ae297f7e31b10a Mon Sep 17 00:00:00 2001 From: nhtyy Date: Thu, 16 Jan 2025 10:58:16 -0800 Subject: [PATCH] chore: add common error loweratomic --- book/docs/developers/common-issues.md | 20 +++++++++++++++++++- book/docs/developers/usage-in-ci.md | 2 ++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/book/docs/developers/common-issues.md b/book/docs/developers/common-issues.md index 7bb6fb79d..8d027499c 100644 --- a/book/docs/developers/common-issues.md +++ b/book/docs/developers/common-issues.md @@ -120,4 +120,22 @@ To resolve this, ensure that you're importing both `sp1-lib` and `sp1-zkvm` with [dependencies] sp1-lib = { version = "", features = ["verify"] } sp1-zkvm = { version = "", features = ["verify"] } -``` \ No newline at end of file +``` + +## Failed to run LLVM passes: unknown pass name 'loweratomic' + +The Rust compiler had breaking changes to its names of available options between 1.81 and 1.82. + +```bash + [sp1] Compiling proc-macro2 v1.0.93 + [sp1] Compiling unicode-ident v1.0.14 + [sp1] Compiling quote v1.0.38 + [sp1] Compiling syn v2.0.96 + [sp1] Compiling serde_derive v1.0.217 + [sp1] Compiling serde v1.0.217 + [sp1] error: failed to run LLVM passes: unknown pass name 'loweratomic' +``` + +This message indicates that you're trying to use `sp1-build` < `4.0.0` with the 1.82 toolchain, +`sp1-build` versions >= 4.0.0 have support for the 1.82 and 1.81 toolchains. + diff --git a/book/docs/developers/usage-in-ci.md b/book/docs/developers/usage-in-ci.md index ac4b1ba3c..7bb69c80b 100644 --- a/book/docs/developers/usage-in-ci.md +++ b/book/docs/developers/usage-in-ci.md @@ -41,6 +41,8 @@ Try setting a github actions secret to your PAT, and then passing it into the `s ~/.sp1/bin/cargo-prove prove --version ``` +Note: Installing via `sp1up` always installs the latest version, its recommended to [use a release commit](https://github.com/succinctlabs/sp1/releases) via `sp1up -C `. + ## Speeding up your CI workflow ### Caching