rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
96.78k stars 12.5k forks source link

Rust project won't build (possibly related to partitions?) #80938

Open melody-notpond opened 3 years ago

melody-notpond commented 3 years ago

I tried compiling my code (https://github.com/jenra-uwu/curly-lang/) and it gave me the following error:

   Compiling curly-lang v0.1.0 (/home/macos/jenra/Documents/My stuff/Programming/Rust/curly-lang)
     Running `rustc --crate-name curly_lang --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=ace9d402b17eb7fb -C extra-filename=-ace9d402b17eb7fb --out-dir '/home/macos/jenra/Documents/My stuff/Programming/Rust/curly-lang/target/debug/deps' -C 'incremental=/home/macos/jenra/Documents/My stuff/Programming/Rust/curly-lang/target/debug/incremental' -L 'dependency=/home/macos/jenra/Documents/My stuff/Programming/Rust/curly-lang/target/debug/deps' --extern 'logos=/home/macos/jenra/Documents/My stuff/Programming/Rust/curly-lang/target/debug/deps/liblogos-07a4ff17aadad579.rmeta' --extern 'owo_colors=/home/macos/jenra/Documents/My stuff/Programming/Rust/curly-lang/target/debug/deps/libowo_colors-4720fa330cfafe84.rmeta' --extern 'rustyline=/home/macos/jenra/Documents/My stuff/Programming/Rust/curly-lang/target/debug/deps/librustyline-fa99ad65103ce552.rmeta'`
error: failed to link or copy `/home/macos/jenra/Documents/Mystuff/Programming/Rust/curly-lang/target/debug/deps/libcurly_lang-ace9d402b17eb7fb.rlib` to `/home/macos/jenra/Documents/My stuff/Programming/Rust/curly-lang/target/debug/libcurly_lang.rlib`

Caused by:
  File exists (os error 17)

When I moved the project from the original HFS+ partition to an EXT4 partition, it successfully built.

Meta

rustc --version --verbose:

rustc 1.49.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.49.0

uname -a

Linux macbookarch 5.10.3-zen1-1-zen #1 ZEN SMP PREEMPT Sun, 27 Dec 2020 12:04:22 +0000 x86_64 GNU/Linux
Enselic commented 9 months ago

Triage: Can you still reproduce this? If yes, can you please include instructions on how to reproduce, starting with a vanilla install of any mainstream OS? Including how you setup different file systems. Thanks!

melody-notpond commented 9 months ago

I no longer have access to this setup, so I don't think I'm able to reproduce now :(