Cargo sagt "Betrieb nicht erlaubt" beim Kompilieren von Arch LinuxLinux

Linux verstehen
Anonymous
 Cargo sagt "Betrieb nicht erlaubt" beim Kompilieren von Arch Linux

Post by Anonymous »

Ich habe Dual-OS-Setup auf meinem PC mit einer NTFS-Partition für Windows, einer Ext4-Partition für Arch Linux und einer Exfat-Partition für gemeinsame Daten.

Code: Select all

LABEL=Data              /run/mount/Data exfat           rw,relatime,fmask=0000,dmask=0000
Es ist also an/run/montage/data montiert, und jede Datei hat Berechtigungen für jeder gelesen, geschrieben und ausführt. Ausführen oder Frachtbau , ich erhalte eine solche Ausgabe:

Code: Select all

   Compiling test-crate v0.1.0 (/run/mount/Data/test-crate)
warning: error copying object file `/run/mount/Data/test-crate/target/debug/deps/test_crate-171d3f4b5eb94014.1844j56bgs10zwdjmbmp4ewcl.rcgu.o` to incremental directory as `/run/mount/Data/test-crate/target/debug/incremental/test_crate-1cwjhrbi82tge/s-h75ofrd5kj-040rlag-working/1844j56bgs10zwdjmbmp4ewcl.o`: Operation not permitted (os error 1)

warning: error copying object file `/run/mount/Data/test-crate/target/debug/deps/test_crate-171d3f4b5eb94014.1xv4e2iaijt2221ugfejfkj9p.rcgu.o` to incremental directory as `/run/mount/Data/test-crate/target/debug/incremental/test_crate-1cwjhrbi82tge/s-h75ofrd5kj-040rlag-working/1xv4e2iaijt2221ugfejfkj9p.o`: Operation not permitted (os error 1)

warning: error copying object file `/run/mount/Data/test-crate/target/debug/deps/test_crate-171d3f4b5eb94014.6p6gfwaw87bt5ts5a6awdvy49.rcgu.o` to incremental directory as `/run/mount/Data/test-crate/target/debug/incremental/test_crate-1cwjhrbi82tge/s-h75ofrd5kj-040rlag-working/6p6gfwaw87bt5ts5a6awdvy49.o`: Operation not permitted (os error 1)

warning: error copying object file `/run/mount/Data/test-crate/target/debug/deps/test_crate-171d3f4b5eb94014.6q31c3ffz1ao19rvlsb4tomhl.rcgu.o` to incremental directory as `/run/mount/Data/test-crate/target/debug/incremental/test_crate-1cwjhrbi82tge/s-h75ofrd5kj-040rlag-working/6q31c3ffz1ao19rvlsb4tomhl.o`: Operation not permitted (os error 1)

warning: error copying object file `/run/mount/Data/test-crate/target/debug/deps/test_crate-171d3f4b5eb94014.8wg0ifnylxkm8sglnzmusehrx.rcgu.o` to incremental directory as `/run/mount/Data/test-crate/target/debug/incremental/test_crate-1cwjhrbi82tge/s-h75ofrd5kj-040rlag-working/8wg0ifnylxkm8sglnzmusehrx.o`: Operation not permitted (os error 1)

warning: error copying object file `/run/mount/Data/test-crate/target/debug/deps/test_crate-171d3f4b5eb94014.9edjogq1wwbwf6yxpzh8o80lw.rcgu.o` to incremental directory as `/run/mount/Data/test-crate/target/debug/incremental/test_crate-1cwjhrbi82tge/s-h75ofrd5kj-040rlag-working/9edjogq1wwbwf6yxpzh8o80lw.o`: Operation not permitted (os error 1)

warning: `test-crate` (bin "test-crate") generated 6 warnings
error: failed to link or copy `/run/mount/Data/test-crate/target/debug/deps/test_crate-171d3f4b5eb94014` to `/run/mount/Data/test-crate/target/debug/test-crate`

Caused by:
Operation not permitted (os error 1)
"Test-crate" war nur das Standard-Projekt "Hallo, World", das ich mit dem neuen Test-Crates erstellt habe. Das Kistenverzeichnis sieht so aus: < /p>

Code: Select all

-rwxrwxrwx 1 root root    154 May  8 15:46 Cargo.lock
-rwxrwxrwx 1 root root     81 May  8 15:46 Cargo.toml
drwxrwxrwx 2 root root 131072 May  8 15:46 src
drwxrwxrwx 3 root root 131072 May  8 15:48 target
So hat jede Datei hier rwxrwxrwx Berechtigungen wie sie sollten. Ich verstehe also nicht, wie ein Vorgang auf diesen Dateien nicht zulässig ist, da buchstäblich alles erlaubt ist. Ich benutze sudo cargo run , das Standard -Projekt "Hallo, World" -Projekt, aber wenn Sie Dateien wie ein lib.rs hinzufügen, wird die Compiler -Panik wie folgt:
Compiling test-crate v0.1.0 (/run/mount/Data/test-crate)
warning: hard linking files in the incremental compilation cache failed. copying files instead. consider moving the cache directory to a file system which supports hard linking in session dir `/run/mount/Data/test-crate/target/debug/incremental/test_crate-3aiikf0zz4qco/s-h75olu36wq-0bx3gll-working`

error: cached cgu 3jc4qbatsnqtmfg9qzi0sbrfc should have an object file, but doesn't

thread 'coordinator' panicked at /usr/src/debug/rust/rustc-1.86.0-src/compiler/rustc_codegen_ssa/src/back/write.rs:1680:29:
/usr/src/debug/rust/rustc-1.86.0-src/compiler/rustc_codegen_ssa/src/back/write.rs:1680:29: worker thread panicked
stack backtrace:
0: 0x7cd9e10dd6b0 - ::fmt::h1a61e653684797d4
1: 0x7cd9e112c6e3 - core::fmt::write::hef3878caa31fc074
2: 0x7cd9e10d1db3 -
3: 0x7cd9e10dd502 -
4: 0x7cd9e10dfabf -
5: 0x7cd9e10df92a - std::panicking::default_hook::hf5b5ddbe229b04b3
6: 0x7cd9dddd059d -
7: 0x7cd9e10e05f3 - std::panicking::rust_panic_with_hook::h85e74030df1c120f
8: 0x7cd9e0b29ce5 -
9: 0x7cd9e0b231d9 - std[425a963a3e5d7a57]::sys::backtrace::__rust_end_short_backtrace::
10: 0x7cd9e0a25cbd - std[425a963a3e5d7a57]::panicking::begin_panic::
11: 0x7cd9e0baf799 -
12: 0x7cd9e0ba866f -
13: 0x7cd9e0ba862e -
14: 0x7cd9e0baf6b3 - rustc_middle[a294d822c310247b]::util::bug::bug_fmt
15: 0x7cd9de16fd5e - std[425a963a3e5d7a57]::sys::backtrace::__rust_begin_short_backtrace::
16: 0x7cd9de08857c -
17: 0x7cd9e10e9cab -
18: 0x7cd9dc6a370a -
19: 0x7cd9dc727aac -
20: 0x0 -

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

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issue ... ate=ice.md

note: rustc 1.86.0 (05f9846f8 2025-03-31) (Arch Linux rust 1:1.86.0-1) running on x86_64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED]

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

query stack during panic:
end of query stack
warning: `test-crate` (lib) generated 1 warning
error: could not compile `test-crate` (lib) due to 1 previous error; 1 warning emitted
< /code>
Irgendeine Idee, warum es unter Windows funktioniert, aber nicht unter Linux? Ich denke, es liegt wahrscheinlich an dem Exfat -System oder wie ich es montiere, aber was genau ist dort los?>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post