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

Compilation failure #72

Open
sergey-melnychuk opened this issue Feb 26, 2025 · 1 comment · May be fixed by #73
Open

Compilation failure #72

sergey-melnychuk opened this issue Feb 26, 2025 · 1 comment · May be fixed by #73

Comments

@sergey-melnychuk
Copy link

sergey-melnychuk commented Feb 26, 2025

When I try building as described in README I get a failed compilation likely caused by patches not being applied (see the warnings & the error message in the comment below).


$ rustup show
...
active toolchain
----------------

stable-aarch64-apple-darwin (default)
rustc 1.85.0 (4d91de4e4 2025-02-17)
@sergey-melnychuk
Copy link
Author

$ git clone https://github.com/arkworks-rs/groth16.git
cd groth16
cargo build --release
Cloning into 'groth16'...
remote: Enumerating objects: 846, done.
remote: Counting objects: 100% (168/168), done.
remote: Compressing objects: 100% (69/69), done.
remote: Total 846 (delta 145), reused 99 (delta 99), pack-reused 678 (from 2)
Receiving objects: 100% (846/846), 211.88 KiB | 2.94 MiB/s, done.
Resolving deltas: 100% (503/503), done.
    Updating git repository `https://github.com/arkworks-rs/algebra/`
    Updating git repository `https://github.com/arkworks-rs/crypto-primitives/`
    Updating git repository `https://github.com/arkworks-rs/r1cs-std/`
    Updating git repository `https://github.com/arkworks-rs/snark/`
    Updating git repository `https://github.com/arkworks-rs/std/`
    Updating crates.io index
warning: Patch `ark-bls12-377 v0.5.0 (https://github.com/arkworks-rs/algebra/#621be87b)` was not used in the crate graph.
Patch `ark-bls12-381 v0.5.0 (https://github.com/arkworks-rs/algebra/#621be87b)` was not used in the crate graph.
Patch `ark-bn254 v0.5.0 (https://github.com/arkworks-rs/algebra/#621be87b)` was not used in the crate graph.
Patch `ark-bw6-761 v0.5.0 (https://github.com/arkworks-rs/algebra/#621be87b)` was not used in the crate graph.
Patch `ark-ec v0.5.0 (https://github.com/arkworks-rs/algebra/#621be87b)` was not used in the crate graph.
Patch `ark-ff v0.5.0 (https://github.com/arkworks-rs/algebra/#621be87b)` was not used in the crate graph.
Patch `ark-mnt4-298 v0.5.0 (https://github.com/arkworks-rs/algebra/#621be87b)` was not used in the crate graph.
Patch `ark-mnt4-753 v0.5.0 (https://github.com/arkworks-rs/algebra/#621be87b)` was not used in the crate graph.
Patch `ark-mnt6-298 v0.5.0 (https://github.com/arkworks-rs/algebra/#621be87b)` was not used in the crate graph.
Patch `ark-mnt6-753 v0.5.0 (https://github.com/arkworks-rs/algebra/#621be87b)` was not used in the crate graph.
Patch `ark-poly v0.5.0 (https://github.com/arkworks-rs/algebra/#621be87b)` was not used in the crate graph.
Patch `ark-r1cs-std v0.5.0 (https://github.com/arkworks-rs/r1cs-std/#c8c51a39)` was not used in the crate graph.
Patch `ark-relations v0.5.1 (https://github.com/arkworks-rs/snark/#f6327703)` was not used in the crate graph.
Patch `ark-serialize v0.5.0 (https://github.com/arkworks-rs/algebra/#621be87b)` was not used in the crate graph.
Patch `ark-snark v0.5.1 (https://github.com/arkworks-rs/snark/#f6327703)` was not used in the crate graph.
Patch `ark-std v0.5.0 (https://github.com/arkworks-rs/std/#b0cbdeb0)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
     Locking 93 packages to latest compatible versions
      Adding ark-bls12-377 v0.4.0 (available: v0.5.0)
      Adding ark-bls12-381 v0.4.0 (available: v0.5.0)
      Adding ark-bn254 v0.4.0 (available: v0.5.0)
      Adding ark-bw6-761 v0.4.0 (available: v0.5.0)
      Adding ark-ec v0.4.2 (available: v0.5.0)
      Adding ark-ff v0.4.2 (available: v0.5.0)
      Adding ark-mnt4-298 v0.4.0 (available: v0.5.0)
      Adding ark-mnt4-753 v0.4.0 (available: v0.5.0)
      Adding ark-mnt6-298 v0.4.0 (available: v0.5.0)
      Adding ark-mnt6-753 v0.4.0 (available: v0.5.0)
      Adding ark-poly v0.4.2 (available: v0.5.0)
      Adding ark-r1cs-std v0.4.0 (available: v0.5.0)
      Adding ark-relations v0.4.0 (available: v0.5.1)
      Adding ark-serialize v0.4.2 (available: v0.5.0)
      Adding ark-std v0.4.0 (available: v0.5.0)
   Compiling proc-macro2 v1.0.93
   Compiling unicode-ident v1.0.17
   Compiling version_check v0.9.5
   Compiling autocfg v1.4.0
   Compiling typenum v1.18.0
   Compiling byteorder v1.5.0
   Compiling crossbeam-utils v0.8.21
   Compiling syn v1.0.109
   Compiling rand_core v0.6.4
   Compiling rayon-core v1.12.1
   Compiling generic-array v0.14.7
   Compiling subtle v2.6.1
   Compiling once_cell v1.20.3
   Compiling num-traits v0.2.19
   Compiling either v1.14.0
   Compiling paste v1.0.15
   Compiling libc v0.2.170
   Compiling crossbeam-epoch v0.9.18
   Compiling quote v1.0.38
   Compiling syn v2.0.98
   Compiling crossbeam-deque v0.8.6
   Compiling itertools v0.10.5
   Compiling num-integer v0.1.46
   Compiling rayon v1.10.0
   Compiling block-buffer v0.10.4
   Compiling crypto-common v0.1.6
   Compiling num-bigint v0.4.6
   Compiling digest v0.10.7
   Compiling ahash v0.8.11
   Compiling cfg-if v1.0.0
   Compiling tracing-core v0.1.33
   Compiling cpufeatures v0.2.17
   Compiling pin-project-lite v0.2.16
   Compiling keccak v0.1.5
   Compiling sha2 v0.10.8
   Compiling tracing v0.1.41
   Compiling tracing-subscriber v0.2.25
   Compiling blake2 v0.10.6
   Compiling ark-serialize-derive v0.4.2
   Compiling ark-ff-macros v0.4.2
   Compiling derivative v2.2.0
   Compiling ark-ff-asm v0.4.2
   Compiling zerocopy-derive v0.7.35
   Compiling zeroize_derive v1.4.2
   Compiling ark-crypto-primitives-macros v0.4.0 (https://github.com/arkworks-rs/crypto-primitives/#b1398381)
   Compiling zeroize v1.8.1
   Compiling zerocopy v0.7.35
   Compiling merlin v3.0.0
   Compiling ppv-lite86 v0.2.20
   Compiling hashbrown v0.13.2
   Compiling rand_chacha v0.3.1
   Compiling rand v0.8.5
   Compiling ark-std v0.4.0
   Compiling ark-serialize v0.4.2
   Compiling ark-ff v0.4.2
   Compiling ark-relations v0.4.0
   Compiling ark-poly v0.4.2
   Compiling ark-snark v0.4.0
   Compiling ark-ec v0.4.2
   Compiling ark-crypto-primitives v0.4.0 (https://github.com/arkworks-rs/crypto-primitives/#b1398381)
   Compiling ark-groth16 v0.4.0 (/Users/owner/Temp/tmp/groth16)
error[E0432]: unresolved import `ark_ec::scalar_mul::BatchMulPreprocessing`
 --> src/generator.rs:2:32
  |
2 | use ark_ec::{pairing::Pairing, scalar_mul::BatchMulPreprocessing, CurveGroup};
  |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `BatchMulPreprocessing` in `scalar_mul`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `ark-groth16` (lib) due to 1 previous error

@sergey-melnychuk sergey-melnychuk linked a pull request Feb 26, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant