You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you ensured that all of these are up to date?
SP1 SDK
cargo prove CLI/sp1up
What version of SP1 SDK are you on?
No response
What version of the cargo prove CLI are you on?
No response
Operating System
None
Describe the bug
You can reproduce this by running clippy on any crate requiring the program, e.g., cd examples && cargo clippy --package aggregation-script.
warning: aggregation-script@1.1.0: Skipping build due to clippy invocation.
warning: aggregation-script@1.1.0: Skipping build due to clippy invocation.
Compiling sp1-core-machine v4.2.0 (/mnt/Zhitai0/src/github.com/succinctlabs/sp1/crates/core/machine)
Compiling sp1-recursion-core v4.2.0 (/mnt/Zhitai0/src/github.com/succinctlabs/sp1/crates/recursion/core)
Checking sp1-curves v4.2.0 (/mnt/Zhitai0/src/github.com/succinctlabs/sp1/crates/curves)
Checking sp1-core-executor v4.2.0 (/mnt/Zhitai0/src/github.com/succinctlabs/sp1/crates/core/executor)
Checking zkhash v0.2.0
Checking alloy-rpc-types-eth v0.11.0
Checking alloy-json-rpc v0.11.0
Checking axum v0.7.9
Checking hyper-timeout v0.5.2
Checking reqwest-middleware v0.3.3
Checking alloy-rpc-types-any v0.11.0
Checking alloy-network v0.11.0
Checking alloy-signer-local v0.11.0
Checking twirp-rs v0.13.0-succinct
Checking tonic v0.12.3
Checking sp1-recursion-compiler v4.2.0 (/mnt/Zhitai0/src/github.com/succinctlabs/sp1/crates/recursion/compiler)
Checking sp1-recursion-circuit v4.2.0 (/mnt/Zhitai0/src/github.com/succinctlabs/sp1/crates/recursion/circuit)
error: couldn't read `/mnt/Zhitai0/src/github.com/succinctlabs/sp1/examples/target/elf-compilation/riscv32im-succinct-zkvm-elf/release/aggregation-program`: No such file or directory (os error 2)
--> aggregation/script/src/main.rs:9:32
|
9 | const AGGREGATION_ELF: &[u8] = include_elf!("aggregation-program");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include_bytes` which comes from the expansion of the macro `include_elf` (in Nightly builds, run with -Z macro-backtrace for more info)
error: couldn't read `/mnt/Zhitai0/src/github.com/succinctlabs/sp1/examples/target/elf-compilation/riscv32im-succinct-zkvm-elf/release/fibonacci-program`: No such file or directory (os error 2)
--> aggregation/script/src/main.rs:12:30
|
12 | const FIBONACCI_ELF: &[u8] = include_elf!("fibonacci-program");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `include_bytes` which comes from the expansion of the macro `include_elf` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: aggregation-script@1.1.0: Skipping build due to clippy invocation.
warning: aggregation-script@1.1.0: Skipping build due to clippy invocation.
error: could not compile `aggregation-script` (bin "aggregation-script") due to 2 previous errors
The root cause is that we do nothing but set the env var when running clippy, resulting the error of elf file not found. We should handle the elf file properly whenever the env var is set.
Component
cargo prove CLI/sp1up
Have you ensured that all of these are up to date?
What version of SP1 SDK are you on?
No response
What version of the cargo prove CLI are you on?
No response
Operating System
None
Describe the bug
You can reproduce this by running
clippy
on any crate requiring the program, e.g.,cd examples && cargo clippy --package aggregation-script
.The root cause is that we do nothing but set the env var when running clippy, resulting the error of elf file not found. We should handle the elf file properly whenever the env var is set.
sp1/crates/build/src/build.rs
Lines 114 to 129 in 25e59f5
The text was updated successfully, but these errors were encountered: