admin管理员组

文章数量:1123948

I'm trying to create a zkVM application using RISC Zero toolchain and cargo-risczero tool. I followed the instructions given in their docs but I'm getting error during build process.

After setting up the project I ran cargo run --release and came across this error

guest_code_for_zk_proof: Starting build for riscv32im-risc0-zkvm-elfai-sdk, lazy-regex-proc_macros, methods(build)                                      
guest_code_for_zk_proof:    Compiling proc-macro2 v1.0.92
guest_code_for_zk_proof:    Compiling unicode-ident v1.0.14
guest_code_for_zk_proof:    Compiling version_check v0.9.5
guest_code_for_zk_proof:    Compiling autocfg v1.4.0
guest_code_for_zk_proof:    Compiling typenum v1.17.0
guest_code_for_zk_proof:    Compiling byteorder v1.5.0
guest_code_for_zk_proof:    Compiling subtle v2.6.1
guest_code_for_zk_proof:    Compiling paste v1.0.15
guest_code_for_zk_proof: error[E0463]: can't find crate for `core`
guest_code_for_zk_proof:   |
guest_code_for_zk_proof:   = note: the `x86_64-unknown-linux-gnu` target may not be installed
guest_code_for_zk_proof:   = help: consider adding the standard library to the sysroot with `x build library --target x86_64-unknown-linux-gnu`
guest_code_for_zk_proof:   = help: consider building the standard library from source with `cargo build -Zbuild-std`
guest_code_for_zk_proof: 
guest_code_for_zk_proof: error[E0463]: can't find crate for `std`
guest_code_for_zk_proof:   |
guest_code_for_zk_proof:   = note: the `x86_64-unknown-linux-gnu` target may not be installed
guest_code_for_zk_proof:   = help: consider adding the standard library to the sysroot with `x build library --target x86_64-unknown-linux-gnu`
guest_code_for_zk_proof:   = help: consider building the standard library from source with `cargo build -Zbuild-std`
guest_code_for_zk_proof: 
guest_code_for_zk_proof: For more information about this error, try `rustc --explain E0463`.
guest_code_for_zk_proof: error: could not compile `unicode-ident` (lib) due to 1 previous error
guest_code_for_zk_proof: warning: build failed, waiting for other jobs to finish...
guest_code_for_zk_proof: error: could not compile `typenum` (build script) due to 1 previous error
guest_code_for_zk_proof: error: could not compile `autocfg` (lib) due to 1 previous error
guest_code_for_zk_proof: error: could not compile `version_check` (lib) due to 1 previous error
guest_code_for_zk_proof: error: could not compile `proc-macro2` (build script) due to 1 previous error
guest_code_for_zk_proof: error: could not compile `paste` (build script) due to 1 previous error

Here is my configuration

Default host: x86_64-unknown-linux-gnu
rustup home:  /home/user/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu
risc0

installed targets for active toolchain
--------------------------------------

riscv32im-unknown-none-elf
x86_64-unknown-linux-gnu

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (overridden by '/path/risczero_merkleTree/rust-toolchain.toml')
rustc 1.83.0 (90b35a623 2024-11-26)

Here is my cargo version as well cargo 1.83.0 (5ffbef321 2024-10-29)

How do I resolve this issue?

本文标签: