-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when trying to build java_binary
on Windows
#5260
Comments
I distilled a minimal repro case, see laszlocsomor/projects@c0d5a9c.
|
Found the culprit: the Java header compilation creates header jars with zip entries that use backslashes as path separators instead of forward slashes. This confuses javac or the annotation processor. I verified this as the culprit by copying the
|
Summary: Turbine writes zip entries into the hjar using backslashes on Windows:
|
Sounds like a release blocker to me? |
Yes. |
However it's not a regression, so it shouldn't block any ongoing release. |
Actually, this isn't a release blocker as such, because it's been broken in every release. |
Thanks for the prompt investigation! It's mind-boggling how many eng-hours the I guess we have an interesting combination of technologies in StartupOS that surfaced this bug. |
Thanks! Perhaps you have a nightly build or something like that we could use, instead of building it ourselves? |
Opening again, as it's a legitimate multiplatform build bug that we must fix. @oferb : unfortunately we don't have one. But if your system is already set up to build with Bazel, you can easily build a Bazel binary from HEAD, just clone https://github.com/bazelbuild/bazel and |
Is it not fixed by 10141a3? |
Oh sorry, I didn't see that! Yes it is. Thanks! |
Hey, Trying:
Perhaps the command is not the correct one? If it's correct, I can open another issue for this. |
Ah, that's annoying. Culprit: #5265. |
I confirmed that startup-os builds successfully at google/startup-os@c712366 using Bazel built at a5ecd81. It does NOT build at current startup-os HEAD (google/startup-os@d58cd6f) but the reason looks like an error with startup-os' WORKSPACE file. |
Is the fix in |
Error when trying to build
java_binary
on WindowsFeature requests: what underlying problem are you trying to solve with this feature?
Compile :)
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Clone
https://github.com/google/startup-os
Run
bazel build //tools/reviewer/service
This results in the following (run with
--verbose_failures
):What operating system are you running Bazel on?
Windows 10
What's the output of
bazel info release
?Release 0.13.0
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?git remote get-url origin
: git@github.com:google/startup-os.gitgit rev-parse master
: 2c3bcb49f8d1092241fd982874dce621bbcde91fgit rev-parse HEAD
: 2c3bcb49f8d1092241fd982874dce621bbcde91fHave you found anything relevant by searching the web?
Nope
Any other information, logs, or outputs that you want to share?
Seems to be an issue with
java_binary
, notjava_library
:8 different
java_library
targets successfully compiled.2 different
java_binary
targets resulted in the error.This same error happened on 2 different Windows machines, and successfully compiled on 5 Ubuntu & macOS ones.
The text was updated successfully, but these errors were encountered: