Cargo panics on Arch Linux when compiling on exFAT partition #140806
Labels
A-filesystem
Area: `std::fs`
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) ❄️
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Cargo version
cargo 1.86.0 (adf9b6ad1 2025-02-28)
Problem
Whenever I try to
cargo run
orcargo build
a project on my exFAT partition on Arch Linux, it fails with the following error:Running with root permissions
When I use
sudo cargo run
(and the project has more files than the defaultmain.rs
), it panics like this:My system:
This only happens on my exFAT partition, not on the normal linux partition. It's mounted like this in the fstab:
Every file has
rwxrwxrwx
permissions. Also, I'm able to build and run projects on that partition using my windows installation.How to reproduce
I have no idea if you are able to reproduce it like this, but maybe give it a try:
/run
cd
into the partition and create a new crate usingcargo new
lib.rs
file in thesrc
directorysudo cargo run
and you should get the errorStackoverflow post
Here's the link to a stackoverflow post where I asked about this:
https://stackoverflow.com/questions/79612554/cargo-says-operation-not-permitted-when-compiling-on-arch-linux
The text was updated successfully, but these errors were encountered: