Rust can't incrementally compile project over remote file system [Internal Compiler Error] #75411
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) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
After setting up a NAS device (exfat over smb via RPI3), Rust has trouble compiling any project stored on that device. This isn't so much a problem with the Rust compiler as it is with my awkward NAS setup.
Here's an ascii diagram to illustrate:
The idea is that the source code is hosted on the NAS (slow but lots of storage), and compiled/run on the local machine (fast but less storage).
The main driver of the error is simple: Rust is unable to 'create [a] session directory lock file' due to
os error 45
. After some quick digging, it appears that this error primarily occurs when a device is not connected and access is attempted (which is not the case here - the device is connected, albeit over a network).I primarily believe that this error is occurring due to the limitations of the smb protocol (and not due to the fact that this drive is formated as exfat; if the device is physically connected, Rust code compiles fine). This error also seems to occur in relation to incremental builds, though that may simply be because that is what the compiler checks for first.
I could just disable incremental compilation - while fixing the error, it still does not fix incremental compilation over remote file systems. I'm pretty sure this issue is fairly unique, but if there is already an issue that discusses this particular topic, please just ignore this one.
Thank you in advance for any help 😄.
Code
Anything and everything - the compiler will not start compiling.
Meta
rustc --version --verbose
:Error output
cargo run --verbose
Backtrace
No backtrace, even when
RUST_BACKTRACE=1
is set.The text was updated successfully, but these errors were encountered: