-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Failed to garbage collect finalized incremental compilation session directory #79532
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
Comments
Same issue in Windows 10 pro.
warning: Failed to garbage collect finalized incremental compilation session directory `\\?\G:\my_works\my_applications\rust\hello_world\target\debug\
incremental\hello_world-1euetnunot3zj\s-g429f96qad-723v80-3fauq1c36gmxs`: Access is denied. (os error 5) |
@reza-ghazi I think it should not the same. My error is |
Can confirm that removing the |
@Gunt-r In It seems the Anyhow, is there any way to work with other directories in other drives, specifically in Thanks, |
@reza-ghazi Hmm, I don't think the problem you mentioned was purely a permission or dirver access problem, you know, everything Rust compiler compiled will be put into the But sorry I don't know how to resolve your problem because I haven't ever encountered the errors you mentioned. Rust worked perfectly well in my two win10 computers. I did an experiment, I created a binary project in D driver, while the entire Rust was installed in C driver, then compile that project. It worked well without any errors or warnings were printed. Is your project written in pure Rust, or it contains C or other language? Where I encountered the error which made me opene this issue is my Android device with a tiny Ubuntu installed in Termux. (It seemed not a environment that normal person would use) 😂 |
The problem may be caused by trying to synchronize folders in the cloud. |
@Soskretkov At least I think it's not for me. It doesn't make a sense for the system trying to backup regular files in a regular application automatically in Android. |
Hi, |
I get a lot of these (but only during incremental compilation) on Win7:
Edit: I found the root cause. See #99934 |
Whenever and whatever I compile the warning is printed.

This is the output:
I have tried deleting the
target
directory but it didn't work. Besides, I posted this problem to Rust Forum but until now no one could help. Although it seems not harmful, but it indeed exists, how can I resolve this?The text was updated successfully, but these errors were encountered: