-
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
Bazel commands hang in "Bash on Ubuntu on Windows" #1608
Comments
It looks like this has something to with Java, since the "java -version" command was hanging for me as well. I decided to switch to openjdk-7 and the Java 7-friendly version of Bazel, and now I'm hanging at "Extracting Bazel installation...". My updated strace output can be found here. |
I'm not sure if we support this.. @dslomov what do you think? |
We have not been working to support Bazel Linux-on-Windows. Our efforts so far concentrate on native Windows port. If there is enough interest, we can reconsider, and of course patches are welcome. |
+1. The same for jdk 1.8 was resolved by downgrading for jdk 1.7 But Bazel still hand and Bazel-real process is doing something very long and hanging. |
Hey Dmitry, +1 from me too |
Hi all, (also hi Jomo ;))
Our situation regarding Ubuntu-on-Windoes hasn't changed since my last
reply: we are not actively working on this at the moment - our primary
focus is native Bazel on Windows - but we absolutely welcome community
contributions towards making it work.
…On 9 Dec 2016 10:03 PM, "Jomo Fisher" ***@***.***> wrote:
Hey Dmitry, +1 from me too
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1608 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AExrX3WCc2dlMMthpOEs5kr_pcIUErRdks5rGcILgaJpZM4JebXm>
.
|
Supporting Windows Subsystem for Linux feature would be a huge step forward for all Java/JavaScript based and other cross platform bazel driven projects, e.g.: Gerrit Code Review. Since the switch to Buck/Bazel driven build, we have lost some contributors, that would like to have native Windows support in the build tool chain. Unfortunately, native Windows Bazel support is far from being usable. For example, there are these two blockers: #2040 and #2045. So that "Bash on Ubuntu on Windows" sounds very promising to me. I can reproduce that with Bazel 0.4.5, What I have tried so far: Any clues how to further investigate this issue would be highly appreciated. |
Windows 10 Creators Upgrade is available (Version: 1703, build number: 15063.138). I'm using this trivial bazel project with Before the upgrade to 1703, I saw the
Here I've compiled bazel itself. Note, that it was hanging twice, but after killing and re-started the build, I was able to build bazel:
Building Gerrit Code Review, with fresh built bazel, and it hangs:
Looking at the hanging processes in different Windows bash instance: [2]. Just kill it and restart the build, it hangs again in a different build phase. I'm not able to finish gerrit build even after killing and restarting the build multiple times. Interestingly enough, switching to the previous stable gerrit branch (stable-2.13) and building with buck, just worked, without hang up, even once:
|
If it helps, I tried running "strace bazel clean --expunge" and the last line I got before hanging was: Maybe there's a clock issue somewhere causing a very long sleep? |
Just passing through, but I was trying out bazel in the Windows Subsystem for Linux and it works for me. Installation versions:
So, the problems reported above may have been inadvertently fixed. |
Thanks for bringing that fact to our attention. I will have a look if gerrit can be built now. |
Same problem for me |
@pia: which Bazel version do you use? How far does Bazel get -- can it start loading and analyzing packages and maybe build something, or does it hang just at startup without any progress? |
FWIW, I have tried today Bazel for Linux under the WSL, to compile https://github.com/lupino3/edumips64, and it worked perfectly. |
This seems to be fixed. |
Bazel can be installed Windows 10's new "Bash on Ubuntu on Windows" shell, and no errors or issues are reported during the installation process. However, when attempting to use any Bazel commands (for example, "bazel help"), the shell just hangs. I have posted details and screenshots about what I'm seeing in this issue that was posted over in Microsoft/BashOnWindows. Here is my strace output.
Does anybody know what is going on here?
The text was updated successfully, but these errors were encountered: