question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Windows] build failed with: "must produce a single file"

See original GitHub issue

Description of the problem / feature request / question:

 I am building a project in windows, it failed with:
/c/msys64/tmp/_bazel_usera/9l56y845/external/bazel_tools/tools/jdk/BUILD:187:17: in singlejar attribute of java_toolchain rule @bazel_tools//tools/jdk:toolchain: '@bazel_tools//tools/jdk:singlejar' must produce a single file.

while I can successfully build it in a linux VM,

Environment info

  • Operating System: Windows 7 Professional Service Pack 1

  • Bazel version (output of bazel info release):

Build label: 0.7.0- (@non-git) Build target: bazel-out/msvc_x64-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar Build time: Mon Oct 30 02:52:43 2017 (1509331963) Build timestamp: 1509331963 Build timestamp as int: 1509331963

  • Source code are downloaded from bazel release 0.7 dist.zip file: here

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ddwolfcommented, Nov 28, 2017

@dslomov @meteorcloudy any updates?

0reactions
pterjancommented, Feb 18, 2018

I can confirm that bazel built with this patch on arm now works properly

Read more comments on GitHub >

github_iconTop Results From Across the Web

NET 5 not compiling to single file executables - Stack Overflow
All of this options still produce few files. I want make small single EXE for my console prog.
Read more >
Self-Contained Single-File does not produce a single file
I have set it up to publish as a self-contained single-file. However, in the publish directory is the EXE file and four DLLs....
Read more >
Error while creating production build in UWP - Microsoft Q&A
while preparing the build I am facing below issue, so able to build the app in release mode. Error 1: Severity Code Description...
Read more >
Get help with Windows upgrade and installation errors
See some of the most common upgrade and installation errors for Windows 10 and Windows 11, and what you can do to try...
Read more >
Failed Builds - Visual Studio App Center - Microsoft Learn
Usually this problem is because of uncommitted files, different tooling, or unrestored dependencies. To check, you can do a full git clone of ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found