bazel-contrib / bazel-contrib/rules_fuzzing

Use of POSIX-only headers break under Windows

Open
#293 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.