-
Notifications
You must be signed in to change notification settings - Fork 4k
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 crashes on Windows with --compiler=msys-gcc #6651
Comments
Do you have a repro? I can build cc_* targets with |
This is in a normal command prompt, not bash. If I set the flag, I get a bunch of inclusion missing errors:
I don't have a .bazelrc. |
I see the same behavior when running in an msys shell. |
Tried reproing but everything works fine for me. Do you see the same crash as in #6651 (comment)? |
I saw the same crash as originally posted. I believe I was running 0.21 in my repro. The C++ error occurs when I add |
The original post was for 0.14, IIRC. |
Please try running with |
|
It works when I run it with the correct directory: It's funny that the client detects the msys location correctly, but then still doesn't work. |
It seems to work if I set
|
Thanks, I could repro with Bazel 0.22 by unsetting all envvars except for |
Culprit: the client detects Bash later than it creates the |
Detect Bash's path early enough to compute the --windows_unix_root host JVM flag's value. Now Bazel forwards Bash's location to the Bazel server even if BAZEL_SH is undefined, and no longer crashes when --compiler=msys-gcc but BAZEL_SH is undefined. Fixes bazelbuild#6651
Detect Bash's path early enough to compute the --windows_unix_root host JVM flag's value. Now Bazel forwards Bash's location to the Bazel server even if BAZEL_SH is undefined, and no longer crashes when --compiler=msys-gcc but BAZEL_SH is undefined. Fixes bazelbuild#6651
Detect Bash's path early enough to compute the --windows_unix_root host JVM flag's value. Now Bazel forwards Bash's location to the Bazel server even if BAZEL_SH is undefined, and no longer crashes when --compiler=msys-gcc but BAZEL_SH is undefined. Fixes bazelbuild#6651
@sallybelly : what is your Bazel version? How did you run it? |
Exception stack trace:
The text was updated successfully, but these errors were encountered: