Closed ryanavella closed 3 months ago
Ah I see the issue, the error message is misleading:
https://github.com/rust-fuzz/honggfuzz-rs/blob/912092c1f14a505d180d888894e895a5baed4839/build.rs#L40
It isn't actually running make -C honggfuzz clean
, but rather gmake -C honggfuzz clean
.
I'll send a PR in a bit to improve diagnostics.
I hope I'm using this tool right. I followed the instructions as best I could on FreeBSD, though the dependencies listed for Linux don't all have the same names so I can't be sure I installed all of the correct packages.
Command
Click here for RUST_BACKTRACE=full
``` $ RUST_BACKTRACE=full cargo hfuzz run mre /usr/local/bin/ld.gold Compiling honggfuzz v0.5.55 Compiling rustc_version v0.4.0 error: failed to run custom build command for `honggfuzz v0.5.55` note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation. Caused by: process didn't exit successfully: `/tmp/mre/hfuzz_target/release/build/honggfuzz-a9e34a03b3af2dd5/build-script-build` (exit status: 101) --- stderr thread 'main' panicked at $HOME/.cargo/registry/src/index.crates.io-6f17d22bba15001f/honggfuzz-0.5.55/build.rs:40:10: failed to run "make -C honggfuzz clean": Os { code: 2, kind: NotFound, message: "No such file or directory" } stack backtrace: 0: 0x2714a2b503ac - std::backtrace_rs::backtrace::libunwind::trace::h227f5e62bf94ac45 at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 1: 0x2714a2b503ac - std::backtrace_rs::backtrace::trace_unsynchronized::h7da3bf221bb25a09 at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x2714a2b503ac - std::sys_common::backtrace::_print_fmt::h0a4842961f78b152 at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:67:5 3: 0x2714a2b503ac -Files
Hope it's obvious this is a MRE, and not my actual fuzzing code.
Cargo.toml
main.rs
Meta
rustc --version --verbose
:cargo --version --verbose
uname -imrs
cargo hfuzz version