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

Cargo panics when attempting to compile project on shared partition #52440

Closed
tdoylend opened this issue Jul 16, 2018 · 1 comment
Closed

Cargo panics when attempting to compile project on shared partition #52440

tdoylend opened this issue Jul 16, 2018 · 1 comment
Labels
A-incr-comp Area: Incremental compilation C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ O-linux Operating system: Linux O-windows Operating system: Windows T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@tdoylend
Copy link

I have a machine which dual-boots between Windows and Linux (Mint 18.3.) Rust is installed on both platforms. A shared partition (formatted Ext4 and accessed on Windows via Ext2Fsd) holds current projects, for easy inter-platform access.

I created a Rust project on the shared partition in Linux (just the default "Hello World" example), and compiled and ran it without errors. On rebooting to Windows and attempting to compile again, however, the following error was reported:

warning: could not canonicalize path: 'J:\projects\realmworld\realmclient'
warning: could not canonicalize path: 'J:\projects\realmworld\realmclient'
warning: could not canonicalize path: 'J:\projects\realmworld'
warning: could not canonicalize path: 'J:\projects'
warning: could not canonicalize path: 'J:\'
   Compiling realmclient v0.1.0 (file:///J:/projects/realmworld/realmclient)
error: incremental compilation: error canonicalizing path 
`J:\projects\realmworld\realmclient\target\debug\incremental\realmclient-2s66szn1ud36l`: The system cannot find the file specified. (os error 2)

thread 'main' panicked at 'librustc\session\mod.rs:795: Trying to get session directory from IncrCompSession `NotInitialized`', librustc\session\mod.rs:1281:26
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: aborting due to previous error


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/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.27.1 (5f2b325f6 2018-07-07) running on x86_64-pc-windows-gnu

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

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

error: Could not compile `realmclient`.

To learn more, run the command again with --verbose.

@estebank estebank added O-windows Operating system: Windows O-linux Operating system: Linux I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ A-incr-comp Area: Incremental compilation labels Jul 16, 2018
@jonas-schievink jonas-schievink added C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 6, 2019
@Enselic
Copy link
Member

Enselic commented Aug 21, 2023

Triage: This seems a like a duplicate to #48249 in practice (problems canonicalizing paths on special drives on Windows), so closing as such.

@Enselic Enselic closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-incr-comp Area: Incremental compilation C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ O-linux Operating system: Linux O-windows Operating system: Windows 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

4 participants