bazel-contrib / bazel-contrib/rules_fuzzing
Simple fuzzing project doesn't work (pypi__enum34 issue)
- Dominant language
- Starlark
- Stars
- 93
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
## Expected Behavior
I've copy-pasted the example from https://github.com/bazelbuild/rules_fuzzing#readme into a trivial project. I should be able to `bazel run --config=asan-libfuzzer //:fuzz_test_run` but I can't get it to work.
## Actual Behavior
``` sh
bazel run --config=asan-libfuzzer //:fuzz_test_run
Loading:
Loading: 0 packages loaded
Analyzing: target //:fuzz_test_run (0 packages loaded, 0 targets configured)
ERROR: /home/matt/.cache/bazel/_bazel_matt/d58dd01668b145fbe0a002f4953a11e2/external/fuzzing_py_deps/pypi__absl_py/BUILD:5:11: no such package '@fuzzing_py_deps//pypi__enum34': BUILD file not found in directory 'pypi__enum34' of external repository @fuzzing_py_deps. Add a BUILD file to a directory to mark it as a package. and referenced by '@fuzzing_py_deps//pypi__absl_py:pypi__absl_py'
ERROR: Analysis of target '//:fuzz_test_run' failed; build aborted:
INFO: Elapsed time: 0.062s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 3 targets configured)
ERROR: Build failed. Not running target
FAILED: Build did NOT complete successfully (0 packages loaded, 3 targets configured)
```
## Steps to Reproduce the Problem
1. git clone https://github.com/matta/bazel-fuzz-example
1. cd bazel-fuzz-example
1. bazel run --config=asan-libfuzzer //:fuzz_test_run
## Specifications
``` sh
bazel version
Bazelisk version: v1.10.1
Build label: 5.2.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jun 7 16:02:26 2022 (1654617746)
Build timestamp: 1654617746
Build timestamp as int: 1654617746
```
``` sh
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux bookworm/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
```
``` sh
clang --version
Debian clang version 14.0.6-2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
```
Contributor guide
Assessment
This issue has not been assessed yet.