Skip to content

KotlinCompile failed: Rlocation failed on .../annotations-13.0.jar when running bazel-diff on Windows 11 #275

@GowsikChandran

Description

@GowsikChandran

Environment

  • Windows 11

  • java --version: openjdk 21.0.7 2025-04-15 LTS

  • bazel --version: bazel 8.3.0

  • bazel-diff version: 9.0.4 (via bazel_dep)

  • Relevant MODULE.bazel snippet:

bazel_dep(name = "bazel-diff", version = "9.0.4")


Problem

When I run this command:

bazel run @bazel-diff//cli:bazel-diff

After a lot of processing, I encounter this error:

INFO: From Linking external/protobuf+/protoc.exe [for tool]:
LINK : warning LNK4001: no object files specified; libraries used
ERROR: C:/users/gowsik/_bazel_gowsik/pulc4ngq/external/bazel-diff+/cli/BUILD:30:15: KotlinCompile @@bazel-diff+//cli:cli-lib { kt: 36, java: 0, srcjars: 0 } for x64_windows failed: Worker process did not return a WorkResponse:

---8<---8<--- Start of log, file at C:/users/gowsik/_bazel_gowsik/pulc4ngq/bazel-workers/worker-5-KotlinCompile.log ---8<---8<---
LAUNCHER ERROR: Rlocation failed on _main/external/rules_kotlin++rules_kotlin_extensions+com_github_jetbrains_kotlin_git/lib/annotations-13.0.jar, path doesn't exist in MANIFEST file
---8<---8<--- End of log ---8<---8<---
Target @@bazel-diff+//cli:bazel-diff failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 496.008s, Critical Path: 50.11s
INFO: 897 processes: 379 internal, 512 local, 6 worker.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

I also tried to clean and build with

 bazel clean --expunge

But the error persists.

Request

Could you please help me understand what’s going wrong here?
Is this a known issue on Windows, or am I missing something in my setup?
My Mono repo only contains python code.

Thank you for your time and for maintaining this project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions