-
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
Windows compile script is broken #3001
Comments
Ah, looks like this is the RC build, fwiw |
This is caused by MSYS's path translation heuristic. I changed the bootstrap bazel to be 0.5.0rc6-msvc so it is now a non-msys binary, so MSYS will translate its path-looking arguments, e.g.:
But fortunately this can be turned of with MSYS2_ARG_CONV_EXCL="*" (http://stackoverflow.com/questions/7250130/how-to-stop-mingw-and-msys-from-mangling-path-names-given-at-the-command-line/34386471#34386471)
|
MSYS-ful binaries aren't affected by the |
We may also be interested in And it turns out @gintas already asked the MSYS devs about this 2.5 years ago: msys2/MSYS2-packages#84 |
In this comment: msys2/MSYS2-packages#84 (comment) |
This was fixed by 866ecc8. |
I checked out bazel official example on window It's fixed with MSYS2_ARG_CONV_EXCL="//". Should this fix be a part of bazel build? my bazel version is 0.7.0 |
@improbablekeren : Try running Bazel from cmd.exe, not from MSYS Bash. This is an issue outside of Bazel's control: MSYS converts Unix-path-looking arguments to Windows paths, and its heuristic thinks "//..." is a Unix path. The workaround you found should disable this heuristic for this path. |
got it. very helpful, thanks. probably it would be great to mention it somewhere in the bazel example docs. it's really confusing for beginners. |
It looks like it's stripping one of the /s?
http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.8,PLATFORM_NAME=windows-x86_64/1497/console
The text was updated successfully, but these errors were encountered: