srlabs / substrate-runtime-fuzzer

A fuzzing harness for Substrate-based blockchains.
Apache License 2.0
27 stars 11 forks source link

error: some crates failed to install - after following instructions from README #2

Closed atodorov closed 1 year ago

atodorov commented 1 year ago

I'm in the process of trying out this fuzzer and I follow this section from the README:

https://github.com/srlabs/substrate-runtime-fuzzer#how-do-i-use-it, first line in particular: cargo install ziggy afl honggfuzz grcov

which gives me

   Installed package `grcov v0.8.19` (executable `grcov`)
     Summary Successfully installed ziggy, honggfuzz, grcov! Failed to install afl (see error(s) above).
error: some crates failed to install

the error above is:

  Downloaded afl v0.14.1
  Downloaded 1 crate (1.4 MB) in 2.01s
error: there is nothing to install in `afl v0.14.1`, because it has no binaries
`cargo install` is only for installing programs, and can't be used with libraries.
To use a library crate, add it as a dependency to a Cargo project with `cargo add`.

So maybe need to update README ?

Trying out the instructions further:

node-template-fuzzer]$ cargo ziggy fuzz -t 20
    Building afl
error: no such command: `afl`

    Did you mean `add`?

    View all installed commands with `cargo --list`
Error: Failure running fuzzers

Caused by:
    0: Failed to build the fuzzers
    1: Error building afl fuzzer: Exited with Some(101)
atodorov commented 1 year ago

I think it's cargo install cargo-afl. I will follow up with a PR for this.