matter-labs / foundry-zksync

Fork of Foundry tailored for zkSync environment
Apache License 2.0
299 stars 130 forks source link

Cargo install from git is failing to build #533

Closed Deniallugo closed 2 months ago

Deniallugo commented 3 months ago

Component

Other (please describe)

Have you ensured that all of these are up to date?

What version of Foundry are you on?

No response

What command(s) is the bug in?

No response

Operating System

macOS (Apple Silicon)

Describe the bug

Installing the dependency from git is failing to build on mac and inside docker with Ubuntu as well.

To reproduce you could run: cargo install --git https://github.com/matter-labs/foundry-zksync --profile release --locked forge cast

#26 157.7    Compiling zksync_dal v0.1.0 (https://github.com/matter-labs/zksync-era.git?rev=e10bbdd1e863962552f37e768ae6af649353e4ea#e10bbdd1)
#26 157.7 error[E0599]: `[[F; N]]` is not an iterator
#26 157.7    --> /usr/local/cargo/git/checkouts/era-boojum-eee09114f0ca3855/4bcb11f/src/cs/implementations/fast_serialization.rs:275:39
#26 157.7     |
#26 157.7 275 |         let flattened_self = self[..].flatten();
#26 157.7     |                                       ^^^^^^^ `[[F; N]]` is not an iterator
#26 157.7     |
#26 157.7     = note: the following trait bounds were not satisfied:
#26 157.7             `[[F; N]]: Iterator`
#26 157.7             which is required by `&mut [[F; N]]: Iterator`
#26 157.7 
#26 157.8 error[E0599]: `[[u8; N]]` is not an iterator
#26 157.8    --> /usr/local/cargo/git/checkouts/era-boojum-eee09114f0ca3855/4bcb11f/src/cs/implementations/fast_serialization.rs:349:39
#26 157.8     |
#26 157.8 349 |         let flattened_self = self[..].flatten();
#26 157.8     |                                       ^^^^^^^ `[[u8; N]]` is not an iterator
#26 157.8     |
#26 157.8     = note: the following trait bounds were not satisfied:
#26 157.8             `[[u8; N]]: Iterator`
#26 157.8             which is required by `&mut [[u8; N]]: Iterator`
#26 157.8 
#26 157.8    Compiling zk_evm_abstractions v1.4.1 (https://github.com/matter-labs/era-zk_evm_abstractions.git?branch=v1.4.1#0aac08c3)
...
#26 165.3 error: could not compile `boojum` (lib) due to 45 previous errors
Karrq commented 3 months ago

What's the rust version as reported by rustc --version?

Karrq commented 2 months ago

Any update here @Deniallugo ? Are you still unable to install foundry via cargo install?

Deniallugo commented 2 months ago

It seems, all fixed. Thanks