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
{{ message }}
Repository navigation
Cargo on beta needs updating to build Rust on master #39504
We need to track down what's causing this problem, land that change on Cargo master, then backport that change to rust-1.16.0 Cargo, and then update the Cargo used to bootstrap Rust on the master branch.
I'm tagging this as a regression as it's something we'll need to fix before the next release, and we shouldn't lose track of it!
Cargo hard-links that to $folder\libcompiler_builtins.rlib
Rustbuild hard-links the former to $sysroot/lib/.../libcompiler_builtins-$hash.rlib
Later on we run cargo test
As part of cargo test's normal execution, it attempts to re-hard-link the $hash file to the non-deps file (the first two steps above)
Presumably some concurrent invocation of rustc has the library open (to read it)
This means that we're deleting a hard link where the actual file has a handle open to it elsewhere (opened through another link). Windows doesn't like this!
Activity
alexcrichton commentedon Feb 3, 2017
So here's what I'm thinking is happening
$folder\deps\libcompiler_builtins-$hash.rlib$folder\libcompiler_builtins.rlib$sysroot/lib/.../libcompiler_builtins-$hash.rlibcargo testcargo test's normal execution, it attempts to re-hard-link the$hashfile to the non-depsfile (the first two steps above)This means that we're deleting a hard link where the actual file has a handle open to it elsewhere (opened through another link). Windows doesn't like this!
rustbuild: Use copies instead of hard links
Auto merge of #39518 - alexcrichton:update-cargo, r=brson
10 remaining items
Rollup merge of rust-lang#39518 - alexcrichton:update-cargo, r=arielb1
rustbuild: Switch back to using hard links
Auto merge of #44260 - alexcrichton:hardlink-no-copy, r=Mark-Simulacrum