-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Building the entire workspace fails (missing req.) #1406
Comments
https://book.getfoundry.sh/getting-started/installation is required. I don't see that listed in the top level README or https://dev.risczero.com/api/zkvm/quickstart and as it's specific to those working with Ethereum (not exclusively RISC Zero) I would hope things needing it could be behind a feature flag. After install forge I get to: Compiling risc0-build-kernel v0.20.1 (/risc0/risc0/build_kernel)
error: failed to run custom build command for `fibonacci-methods v0.1.0 (/home/nuke/git/risc0/examples/profiling/methods)`
Caused by:
process didn't exit successfully: `/risc0/target/release/build/fibonacci-methods-af14d1a24f6f9d54/build-script-build` (exit status: 255)
...........
error: failed to run custom build command for `risc0-zkvm-methods v0.20.1 (/home/nuke/git/risc0/risc0/zkvm/methods)`
Caused by:
process didn't exit successfully: `/home/nuke/git/risc0/target/release/build/risc0-zkvm-methods-ba6a2f6cbce69e67/build-script-build` (exit status: 255)
--- stderr
The 'risc0' toolchain could not be found.
To install the risc0 toolchain, use cargo-risczero.
For example:
cargo binstall cargo-risczero
cargo risczero install I understand I need the toolchain installed before being able to build here, but my goal is to build the whole workspace, including the toolchain itself. With I would like a way to have install the tool and required rust toolchain from the repo I have locally. I suppose it's not a big deal to |
v0.20.1
I think the readme is not comprehensive enough. But the recommended way so far for the majority of the users is to use |
I have a similar problem here with the toolchain install with To reproduce
Enviromnment:
Behaviour:
Expected behavior:
|
Is there a way to provide the error message about unresolved dependencies? Because the rest of the error is more or less generic and doesn't narrow down where the issue comes from. |
The error message is rather long here are some examples(Note that the build elf is named composition but there is nothing there except the place holder circuit when creating a new project):
More of the unresolved items are related to"
Basically all artworks and risc0 modules are failing to compile.
for version 0.19 What I want is to try out the composition feature but it is not working out of the box and AFAIU there is not accesability in older versions |
So it looks the following: if you are using the version in the master branch, including the examples, you will also need to use the 0.20 version of cargo-risczero. To do that, after you pull the repo and the git lfs, run: cargo install --path risc0/cargo-risczero This would install the corresponding version of the cargo risczero as well as r0vm which is the execution environment. |
Ok so doing that it still produces an error when running withing the composition example:
in the Cargo.toml risc0-zkvm is set to Regarding the first issue when creating a project outside the repo this toolchain(0.21.0-alpha.1) as well as 0.20.1, 0.20 and 0.19.1 Thanks for the help btw |
There is a related issue or PR. Let me find it. The solution is to force a lower version of ahash. |
Ok I could not find it. But the idea is to specify a dependency for ahash and use version = "=x.xx.xx" to force a previous version. |
The idea is that the current rust toolchain for the risc-zero vm is still before 1.72 but the 0.8.8 version asks for 1.72. Downgrading it to 0.8.7 avoids this situation. This is a temporary issue that would be resolved after a planned change to up the version of the risc zero rust toolchain. At this moment, the solution is basically to lower ahash. |
Regarding to your original question, the error message is that the compiler complaining that the code uses a compiler feature that it doesn't know, rather than the user specifying a specific crate feature. |
Thanks that did solve the problem |
We are moving the contracts currently in |
When checking out a rust project, one of the first things I do is clone & try and build everything. This yields an issue:
Steps to Reproduce
git checkout v0.20.1
cargo b -r
Your Environment
Additional context
I may be missing something in my env. or dependencies, I have not explicitly set anything and have not looked deeper for what could be the issue yet. I would hope this requirement would be listed in the top README of the project to build it.
The text was updated successfully, but these errors were encountered: