Description
Hi team,
I have successfully built WARF on my machine running Ubuntu 18.04, but when I run the command "make test ", the following error occurs. Could you provide any help?
cargo +nightly build --release --out-dir=. -Z unstable-options
Finished release [optimized] target(s) in 0.04s
./warf target wasmparser_parser -t 2 -s 1234 --fuzzer libfuzzer
Updating crates.io index
Updating git repository https://github.com/Veykril/wasm3-rs
error: failed to select a version for clang-sys
.
... required by package bindgen v0.59.0
... which satisfies dependency bindgen = "^0.59"
of package wasm3-sys v0.1.2 (https://github.com/Veykril/wasm3-rs#b4e35835)
... which satisfies git dependency ffi
of package wasm3 v0.2.0 (https://github.com/Veykril/wasm3-rs#b4e35835)
... which satisfies git dependency wasm3
of package fuzz-targets v0.1.0 (/home/dennis/Documents/Rust_Project/Fuzzing_Wasmer/wasm_runtimes_fuzzing/warf/workspace/targets)
... which satisfies path dependency fuzz-targets
of package fuzz-targets-libfuzzer v0.1.0 (/home/dennis/Documents/Rust_Project/Fuzzing_Wasmer/wasm_runtimes_fuzzing/warf/workspace/libfuzzer/fuzz)
versions that meet the requirements ^1
are: 1.6.0, 1.4.0, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.2, 1.2.1, 1.2.0, 1.1.1, 1.1.0, 1.0.3, 1.0.2, 1.0.1, 1.0.0
the package clang-sys
links to the native library clang
, but it conflicts with a previous package which links to clang
as well:
package clang-sys v0.29.3
... which satisfies dependency clang-sys = "^0.29"
of package bindgen v0.54.0
... which satisfies dependency bindgen = "^0.54.0"
of package fizzy v0.6.0-dev
... which satisfies dependency fizzy = "^0.6.0-dev"
of package fuzz-targets v0.1.0 (/home/dennis/Documents/Rust_Project/Fuzzing_Wasmer/wasm_runtimes_fuzzing/warf/workspace/targets)
... which satisfies path dependency fuzz-targets
of package fuzz-targets-libfuzzer v0.1.0 (/home/dennis/Documents/Rust_Project/Fuzzing_Wasmer/wasm_runtimes_fuzzing/warf/workspace/libfuzzer/fuzz)
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the links ='clang-sys' value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.
failed to select a version for clang-sys
which could resolve this conflict
Error: failed to build fuzz script: ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Cpasses=sancov-module -Cllvm-args=-sanitizer-coverage-level=4 -Cllvm-args=-sanitizer-coverage-inline-8bit-counters -Cllvm-args=-sanitizer-coverage-pc-table -Cllvm-args=-sanitizer-coverage-trace-compares --cfg fuzzing -Clink-dead-code -Zsanitizer=address -Cllvm-args=-sanitizer-coverage-stack-depth -Cdebug-assertions -C codegen-units=1 " "cargo" "build" "--manifest-path" "/home/dennis/Documents/Rust_Project/Fuzzing_Wasmer/wasm_runtimes_fuzzing/warf/workspace/libfuzzer/fuzz/Cargo.toml" "--target" "x86_64-unknown-linux-gnu" "--release" "--bin" "wasmparser_parser"
[WARF] Fuzzer quit
Makefile:98: recipe for target 'test-libfuzzer' failed
make: *** [test-libfuzzer] Error 1