Skip to content

Trivial example gets incremental compilation error on network folder in windows #80027

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

Closed
TheButlah opened this issue Dec 14, 2020 · 2 comments
Closed
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@TheButlah
Copy link

TheButlah commented Dec 14, 2020

Reproduction

Inside WSL2:

cargo new asdf
cd asdf
cargo run

And then, inside native windows, cd into the WSL-hosted folder over the network folder. Mine is located at \\wsl$\Ubuntu-20.04\home\ryan\Programming\asdf. Then run the following, which gives the error:

cargo run

Meta

Happens on both latest stable and nightly:

rustc --version --verbose:

rustc 1.50.0-nightly (803c60218 2020-12-13)
binary: rustc
commit-hash: 803c60218ffac3384b0063c1b87ae7944163bba7
commit-date: 2020-12-13
host: x86_64-pc-windows-msvc
release: 1.50.0-nightly

Error output

error: incremental compilation: could not create session directory lock file: Incorrect function. (os error 1)

thread 'rustc' panicked at 'trying to get session directory from `IncrCompSession`: NotInitialized', compiler\rustc_session\src\session.rs:929:48
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.50.0-nightly (803c60218 2020-12-13) running on x86_64-pc-windows-msvc

note: compiler flags: -C embed-bitcode=no -C debuginfo=2 -C incremental --crate-type bin

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
error: aborting due to previous error

error: could not compile `asdf`

Backtrace

I couldn't seem to get backtrace to work - maybe I didn't set my environment variable properly on windows? I'm successfully doing echo $RUST_BACKTRACE in powershell though.

@TheButlah TheButlah added C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 14, 2020
@the8472
Copy link
Member

the8472 commented Dec 14, 2020

Looks like the same issue as #66513

@TheButlah
Copy link
Author

Yep it's the same bug. Closing in favor of that one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants