Skip to content
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

codegen-backends deleted on Windows. #48

Open
sgeos opened this issue Oct 18, 2019 · 1 comment
Open

codegen-backends deleted on Windows. #48

sgeos opened this issue Oct 18, 2019 · 1 comment

Comments

@sgeos
Copy link

sgeos commented Oct 18, 2019

On Windows, xbuild seems to be deleting codegen-backends and other presumably important files before erroring out.

C:\Users\me\source\repos\CustomSdkRustInterop\lib_hello>cargo xbuild --target aarch64-custom-elf.json
    Updating crates.io index
   Compiling core v0.0.0 (C:\Users\me\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\src\libcore)
   Compiling compiler_builtins v0.1.19
   Compiling rustc-std-workspace-core v1.99.0 (C:\Users\me\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\src\tools\rustc-std-workspace-core)
   Compiling alloc v0.0.0 (C:\Users\me\AppData\Local\Temp\xargo.P3VleUWvqWpF)
    Finished release [optimized] target(s) in 27.84s
error: process didn't exit successfully: `rustc -vV` (exit code: 1)
--- stdout
rustc 1.40.0-nightly (fa0f7d008 2019-10-17)
binary: rustc
commit-hash: fa0f7d0080d8e7e9eb20aa9cbf8013f96c81287f
commit-date: 2019-10-17
host: x86_64-pc-windows-msvc
release: 1.40.0-nightly

--- stderr
error: failed to find a `codegen-backends` folder in the sysroot candidates:
* C:\Users\me\.rustup\toolchains\nightly-x86_64-pc-windows-msvc
* \\?\C:\Users\me\.rustup\toolchains\nightly-x86_64-pc-windows-msvc```
@phil-opp
Copy link
Member

Sorry for the late reply!

I'm not sure if cargo-xbuild is at fault here. I've never seen this error, but it seems like rustc -vV is the command that fails. Could you try running this command manually to see if it still errors independently of cargo-xbuild?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants