bazel-contrib / bazel-contrib/rules_fuzzing
Use of POSIX-only headers break under Windows
- Dominant language
- Starlark
- Stars
- 93
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
The `@rules_fuzzing` replayer library (`file_util.cc` and `test_replayer.cc`) uses POSIX-only headers (`` and ``) which are unavailable on Windows with either MSVC / clang-cl
Expected:
`@rules_fuzzing` can be used on Windows 2022 without issue.
Actual:
```
external/rules_fuzzing+/fuzzing/replay/file_util.cc(17,10): fatal error: 'dirent.h' file not found
#include
external/rules_fuzzing+/fuzzing/replay/test_replayer.cc(19,10): fatal error: 'unistd.h' file not found
#include
```
Contributor guide
Research direction
Start by inspecting fuzzing/replay/file_util.cc and fuzzing/replay/test_replayer.cc, then reproduce the reported build with MSVC or clang-cl on Windows 2022. Replace the POSIX-only dependency handling with Windows-compatible behavior, and confirm that @rules_fuzzing builds and can be used on Windows without the reported missing-header errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100