Skip to content
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

Build failures #37

Open
sorawee opened this issue Mar 31, 2024 · 0 comments
Open

Build failures #37

sorawee opened this issue Mar 31, 2024 · 0 comments

Comments

@sorawee
Copy link
Contributor

sorawee commented Mar 31, 2024

Thank you for the tool!

I would like to note some issues that I encountered when trying to use the tool.

Problem with #![feature]

All commands failed with:

...
   Compiling halo2_proofs v0.3.0 (https://github.com/Analyzable-Halo2/pse-halo2.git#d271fafe)
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/ubuntu/.cargo/git/checkouts/halo2curves-8a97a9560d6bf8cd/2ef5a9a/src/lib.rs:1:1
  |
1 | #![feature(asm)]
  | ^^^^^^^^^^^^^^^^
...

It looks like there should be a rust-toolchain.toml file to indicate the version of Rust to be used. My workaround is to run rustup install nightly and passed the +nightly flag to commands.

korrekt

The README indicates "--no-default-features for the current setup where the default flag is set to use_zcash_halo2_proofs". However, cargo +nightly run --no-default-features --features use_zcash_halo2_proofs and cargo +nightly run --no-default-features are not equivalent. One fails, and one succeeds.

$ cargo +nightly run --no-default-features
   Compiling korrekt v0.1.0 (/home/ubuntu/halo2-analyzer/korrekt)
error[E0433]: failed to resolve: use of undeclared crate or module `permutation`
   --> korrekt/src/circuit_analyzer/analyzer.rs:245:23
    |
245 |         permutation: &permutation::keygen::Assembly,
    |                       ^^^^^^^^^^^ use of undeclared crate or module `permutation`
...

Benchmarks

To run benchmarks, I switched the patch in Cargo.toml as instructed. However, I still am completely unable to run the benchmarks directory. cargo +nightly run fails with:

error[E0432]: unresolved import `halo2_proofs::arithmetic::FieldExt`
 --> /home/ubuntu/.cargo/git/checkouts/halo2-analyzer-65ddbb74512c2932/d8612bf/korrekt/src/circuit_analyzer/abstract_expr.rs:2:5
  |
2 |     arithmetic::FieldExt as Field,
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `FieldExt` in `arithmetic`
  |
  = help: consider importing this trait instead:
          halo2curves::FieldExt
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant