-
Notifications
You must be signed in to change notification settings - Fork 13k
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
1.29 fails to build on a Windows networked drive #54216
Comments
Just for quick context, the failure looks like:
I suggested a workaround to set |
I can confirm that I have the same issue with 1.29.1, with the same scenario of a mapped virtual drive. |
Would be helpful if someone could bisect to find the exact nightly where this was broken. I suspect it is an LLVM update due to the error coming from LLVM. |
I just ran into this issue as well. I'm running in Parallels on MacOS, building a binary for Windows. The source resides on a mapped network drive that Parallels attaches to the instance. Using the workaround of setting |
The error is reproducible by simply creating an empty project and add a dependency, then cargo new --lib a
cd a
echo cfg-if = "*" >> Cargo.toml
cargo build Edit: Also happens when compiling with Bisection:
(No nightlies on 2018-07-12) The error is introduced between e5f6498...64f7de9, which does include #51966 (Upgrade to LLVM's master branch (LLVM 7)). |
I just hit this issue, building under Windows 10 running on Parallels with the source project in a Mac folder. On Rust 1.38.0, default install from |
My workaround is to create SET CARGO_TARGET_DIR=C:\tmp\targets\_myproject_
mkdir %CARGO_TARGET_DIR% And to run this once per session before using Rust. |
@mark-summerfield I am using CMake (via CMakeRust) to build the project (which contains C++ code too), and was able to set the |
Currently having the same issue - project is on VirtualBox's shared drive. The project, when copied onto a non-network path in the VM, builds normally. |
I solved this by pulling the repo on the Windows machine. Has a positive side-effect that it ensures that people compiling on Windows will get everything they need to build the project. |
Even if you pull it onto the shared drive? If yes, then I wonder if it would cause problems on the other side or if Linux would miraculously deal with it :D |
No, not the shared drive. On the local folder of the VM |
There was a change in LLVM that might have fixed this, but we had to revert for Windows 7's sake. Copying from #82677:
|
I have a program that builds under 1.28 on Linux and Windows with no errors or warnings.
The same program builds under 1.29 on Linux, but won't build on Windows if the source is on a virtuabox (i.e., networked) drive.
See my initial report here: https://users.rust-lang.org/t/rust-1-29-0-is-out/20400/10?u=mark
And the Cargo.toml and src/main.rs here: https://users.rust-lang.org/t/rust-1-29-0-is-out/20400/20?u=mark
The text was updated successfully, but these errors were encountered: