See https://github.com/bazelbuild/bazel/issues/2634. If the absolute path of an output file is longer than 259 characters, `open(2)` fails on Windows. I have a fix for this.