rust-build icon indicating copy to clipboard operation
rust-build copied to clipboard

Could not rename component file. Invalid cross-device link.

Open deade1e opened this issue 5 months ago • 0 comments

Hi,

I am using these images, specifically the esp32c3 ones, to build a simple project. What I do is the following:

docker run --rm -ti espressif/idf-rust:esp32c3_latest then once inside cargo install cargo-generate

cargo generate esp-rs/esp-idf-template cargo

I tried 5.3, 5.2, master.

I then cd into the directory and issue a simple cargo build. It fails always with the same error:

error: could not rename component file from '/home/esp/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/share/doc/rustfmt' to '/home/esp/.rustup/tmp/9amxnwbm_9us12qj_dir/bk': Invalid cross-device link (os error 18)

These two paths are likely mounted on different virtual devices as the error states.

I also tried version 1.87 and back to 1.80. Same error everywhere.

deade1e avatar Sep 15 '25 16:09 deade1e