snuspl / fluffy

Ethereum VM fuzzer
Apache License 2.0
53 stars 6 forks source link

Error on docker build + Script for local build ? #2

Open cryptomadco opened 3 years ago

cryptomadco commented 3 years ago

Hi .

First, thanks for this interesting project, read the paper and it was great! :-)

I tried to build and the fluffy as mentioned in the documentation : sudo docker build -t fuzzer .

But got this :

   Compiling cargo_metadata v0.11.4
   Compiling cargo-binutils v0.3.3
   Compiling cargo-fuzz v0.10.2
    Finished release [optimized] target(s) in 20.75s
  Installing /root/.cargo/bin/cargo-fuzz
   Installed package `cargo-fuzz v0.10.2` (executable `cargo-fuzz`)
Removing intermediate container 808d02a9efac
 ---> d353e48c7d5c
Step 19/20 : RUN cd /root/openethereum/evmfuzz && cargo fuzz build --dev fuzz_target_1
 ---> Running in b4ade485799b
    Updating git repository `https://github.com/johnyangk/syn`
    Updating crates.io index
    Updating git repository `https://github.com/paritytech/app-dirs-rs`
    Updating git repository `https://github.com/johnyangk/bn`
    Updating git repository `https://github.com/paritytech/secret-store`
error: failed to select a version for the requirement `aes = "^0.3.2"`
candidate versions found which didn't match: 0.7.4, 0.7.3, 0.7.2, ...
location searched: crates.io index
required by package `parity-crypto v0.6.1`
    ... which is depended on by `ethkey-cli v0.1.0 (/root/openethereum/accounts/ethkey/cli)`
Error: failed to build fuzz script: "cargo" "build" "--manifest-path" "/root/openethereum/evmfuzz/fuzz/Cargo.toml" "--target" "x86_64-unknown-linux-gnu" "--bin" "fuzz_target_1"

Any solution to this?

Also, is there any scripts to build and run fluffy locally?

Thanks!

ghostogay commented 2 years ago

I have the same problem as yours, do you have any solution now?

wangyibo0308 commented 2 years ago

I have the same problem.

Kenun99 commented 1 year ago

I have the same problem.

Alleysira commented 6 months ago

To solve the aes package dependency problem, try to add the following lines to the openethereum/Cargo.toml.

[patch.crates-io]
syn = { git = "https://github.com/johnyangk/syn", branch = "fix", optional = true }
aes = { git = "https://github.com/RustCrypto/block-ciphers",rev="aes-v0.3.2"}
aes-soft = { git = "https://github.com/RustCrypto/block-ciphers",rev = "aes-soft-v0.3.0"}
aesni = { git = "https://github.com/RustCrypto/block-ciphers",rev = "aesni-v0.6.0"}
block-cipher-trait = { git = "https://github.com/RustCrypto/traits", rev = "block-cipher-trait-v0.6.0" }
stream-cipher = { git = "https://github.com/RustCrypto/traits", rev = "stream-cipher-v0.3.0"}