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

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

Open
cryptomadco opened this issue Aug 22, 2021 · 4 comments
Open

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

cryptomadco opened this issue Aug 22, 2021 · 4 comments

Comments

@cryptomadco
Copy link

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
Copy link

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

@wangyibo0308
Copy link

I have the same problem.

1 similar comment
@Kenun99
Copy link

Kenun99 commented Dec 15, 2022

I have the same problem.

@Alleysira
Copy link

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"}

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

5 participants