-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustc on Windows gives error when dependencies are on a mapped network drive #25505
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
Comments
Yeah this is an unfortunate limitation of running with This path is introduced from the call to Out of curiosity, do you know what the non-verbatim path of this looks like? We probably just need to handle another case for |
For I thought that gcc was mangling the For example, if you compile this test program with cl.exe (with the latest C runtime, msvcr120) and run it as
Note: the stack of the call to FindFirstFileA when msvcrt.dll is determining whether to destroy your argument is
I am testing this on Windows 8.1. |
The compiler already has special support for fixing up verbatim paths with disks on Windows to something that can be correctly passed down to gcc, and this commit adds support for verbatim UNC paths as well. Closes rust-lang#25505
The compiler already has special support for fixing up verbatim paths with disks on Windows to something that can be correctly passed down to gcc, and this commit adds support for verbatim UNC paths as well. Closes rust-lang#25505
The compiler already has special support for fixing up verbatim paths with disks on Windows to something that can be correctly passed down to gcc, and this commit adds support for verbatim UNC paths as well. Closes #25505
When I try to cargo build a project in a mapped network drive in Windows that has at least one dependency, gcc gives error saying it can’t find the dependencies. (In the following example, F:\ is mapped to \vboxsvr\Downloads)
Note that gcc was given the path “\?\UNC\vboxsrv\Downloads\hellors\target\debug\deps\liblibc-674726c388d62fa2.rlib” instead of “F:\hellors...”
Compiling a project on a network drive last worked in the 2015-04-29 Windows nightly, and this error started happening on the 2015-05-01 Windows nightly (although you might get the crt2.o/crtbegin.o/crtend.o error instead on some projects from 2015-05-01 to 2015-05-05 #25072).
The text was updated successfully, but these errors were encountered: