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?
本文标签:
版权声明:本文标题:rust - error[E0463]: can't find crate for `core` - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736601260a1945223.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论