-
Notifications
You must be signed in to change notification settings - Fork 219
Description
Title: Build failure: guest v0.1.0 panics at risc0-build-2.3.1/src/lib.rs:66:45 (Option::unwrap() on None)
Description
Hello,
I’m trying to build the risc0-merkle-service project following the official instructions, but the build consistently fails with the following panic during the guest compilation step.
Environment
OS: Ubuntu 24.04 LTS (clean installation)
Rust: rustc 1.88.0 (installed via rzup)
cargo-risczero: 2.3.1
cpp toolchain: 2024.1.5
Docker: version 27.5.1 (I also tried RISC0_NO_DOCKER=1, same issue)
Steps to reproduce
bash
Copiar
Editar
git clone https://github.com/risc0/light-node.git
cd light-node/risc0-merkle-service
rzup install
export PATH="$HOME/.risc0/bin:$PATH"
cargo risczero build
Observed error
less
Copiar
Editar
error: failed to run custom build command for guest v0.1.0 (/src/methods)
Caused by:
process didn't exit successfully: /src/target/release/build/guest-d8a8c09df34dc721/build-script-build (exit status: 101)
--- stderr
thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/risc0-build-2.3.1/src/lib.rs:66:45:
called Option::unwrap() on a None value
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
This issue happens every time, even after:
cargo clean
fresh rzup install
disabling Docker (export RISC0_NO_DOCKER=1)
Expected behavior
The project should build successfully as per documentation.
Additional notes
Possibly a missing environment variable or an unhandled None case in risc0-build.
Other users may be affected if they build from a fresh environment.
Could you please advise or confirm if this is a known issue?
Thanks in advance!