You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The building docs mention to run MSYS2 shell, excluding mingw32 and mingw64. Sadly there is no reason or bug for using anything other than MSYS2. Could anyone please elaborate, why the others do not work?
No reason, wasn't tested. As we stated in our FAQ we are not working on Windows support because we don't have manpower for that at the moment. The support of windows is highly experimental.
FYI one of the major blockers for proper Windows support (that is, without the need to run with elevated permissions) is that Bazel uses symlinks extensively, and while NTFS supports symlinks, creating symlinks requires that the user has SeCreateSymbolicLinkPrivilege. By default, only administrators have this privilege.
I was not able to find any more details or examples of said possible vulnerabilities aside from symlink races when creating symlinks under world-writable directories such as /tmp, though, this is mitigated on POSIX systems using mkstemp(3) and mktemp(1).
We could do with copying instead of symlinking and that would probably already be a good improvement over standard file system. There's a also the possibility of creating a kernel module to support our own kind of symlink or use the ntfs symlinking with a special service.
Anyway doing a FS abstraction that use copy instead of symlink should work well for a first step.
SGTM. While copying instead of symlinking will incur a significant performance hit due to the I/O overhead, it would be a good first step. There is also the issue of Skylark rules that directly invoke ln to create symlinks. Would it be a good idea to have wrapper functions to abstract some of the common file system operations?
I think file operation abstraction should be provied at the skylark level
so spawn less and less shell scripts.
On Mon, Jul 6, 2015 at 1:02 PM David Z. Chen [email protected]
wrote:
SGTM. While copying instead of symlinking will incur a significant
performance hit due to the I/O overhead, it would be a good first step.
There is also the issue of Skylark rules that directly invoke ln to
create symlinks. Would it be a good idea to have wrapper functions to
abstract some of the common file system operations?
—
Reply to this email directly or view it on GitHub #276 (comment).
Now that we can almost bootstrap on Windows, I filed a bunch of bugs to track the work that remains to be done in order to call our Windows support usable:
Activity
damienmg commentedon Jul 3, 2015
No reason, wasn't tested. As we stated in our FAQ we are not working on Windows support because we don't have manpower for that at the moment. The support of windows is highly experimental.
abergmeier commentedon Jul 3, 2015
Created pull request #277 to clarify situation for others, too.
davidzchen commentedon Jul 6, 2015
FYI one of the major blockers for proper Windows support (that is, without the need to run with elevated permissions) is that Bazel uses symlinks extensively, and while NTFS supports symlinks, creating symlinks requires that the user has
SeCreateSymbolicLinkPrivilege. By default, only administrators have this privilege.This is even further complicated by
SeCreateSymbolicLinkPrivilegebeing subject to UAC.According to Microsoft, the reason why this restriction exists is that:
I was not able to find any more details or examples of said possible vulnerabilities aside from symlink races when creating symlinks under world-writable directories such as
/tmp, though, this is mitigated on POSIX systems usingmkstemp(3)andmktemp(1).Unfortunately, from what I can observe, while symlink support on Windows exists, using the current implementation for most common use cases is pretty much impractical due to this restriction: https://www.google.com/search?q=SeCreateSymbolicLinkPrivilege
damienmg commentedon Jul 6, 2015
We could do with copying instead of symlinking and that would probably already be a good improvement over standard file system. There's a also the possibility of creating a kernel module to support our own kind of symlink or use the ntfs symlinking with a special service.
Anyway doing a FS abstraction that use copy instead of symlink should work well for a first step.
davidzchen commentedon Jul 6, 2015
SGTM. While copying instead of symlinking will incur a significant performance hit due to the I/O overhead, it would be a good first step. There is also the issue of Skylark rules that directly invoke
lnto create symlinks. Would it be a good idea to have wrapper functions to abstract some of the common file system operations?damienmg commentedon Jul 6, 2015
I think file operation abstraction should be provied at the skylark level
so spawn less and less shell scripts.
On Mon, Jul 6, 2015 at 1:02 PM David Z. Chen [email protected]
wrote:
hanwen commentedon Jul 7, 2015
FWIW, I think we could replace symlinks with hardlinks (files) and junctions (directories).
bjacob commentedon Sep 6, 2015
Just +1 to this issue: I believe that supporting many build platforms is critical to the wide adoption of a build tool like Bazel.
damienmg commentedon Sep 7, 2015
By the way, we have set-up a goal to have basic windows support by the end of the year so stay tuned!
kchodorow commentedon Sep 8, 2015
See the roadmap: http://bazel.io/roadmap.html.
23 remaining items
Encapsulate file mapping in preparation for providing a Windows imple…
Implement memory-mapped zip files in ijar for Windows.
Use absolute paths in ProcessBuilder invocations.
Windows: use Win32 API to obtain executable name.
Use a custom ToString instead of std::to_string that is not available…
Add escapes to quotation marks in Java version detection genrule.
Windows: use default shell env for ijar execution, so that .dlls can …
lberki commentedon Feb 18, 2016
Now that we can almost bootstrap on Windows, I filed a bunch of bugs to track the work that remains to be done in order to call our Windows support usable:
https://github.com/bazelbuild/bazel/labels/Windows
damienmg commentedon Feb 18, 2016
Thanks Lukacs ! Let's close this one when we can bootstrap on Windows and CI is up and running!
Windows: use junctions to link to installation directory.