OP-TEE / build

Makefiles to use OP-TEE on various platforms
106 stars 209 forks source link

Rust error "could not rename downloaded file" #727

Closed jforissier closed 3 months ago

jforissier commented 5 months ago

The Rust examples sometimes fail to build with "could not rename downloaded file" errors. Trying a second time "solves" the issue.

$ docker run -it --rm jforissier/optee_os_ci:qemuv8_check2
root@1c43ca64e015:/# cd ~
root@1c43ca64e015:~# ./get_optee_qemuv8.sh
[...]
root@1c43ca64e015:~# cd optee_repo_qemu_v8/build
root@1c43ca64e015:~# make -j128 buildroot SPMC_AT_EL=2 2>&1 | tee build.log
[...]
error: component download failed for cargo-x86_64-unknown-linux-gnu: could not rename downloaded file from '/root/.rustup/downloads/fc0055ac726cf9fe06dce3bfac393b2744e7ff0970766d02414c1c3e28d0eefa.partial' to '/root/.rustup/downloads/fc0055ac726cf9fe06dce3bfac393b2744e7ff0970766d02414c1c3e28d0eefa'

Attaching build.log (first build, with errors) and build2.log (second try immediately after the first one failed and without cleaning anything, OK).

b49020 commented 5 months ago

Should be fixed by: https://github.com/OP-TEE/build/pull/731

jforissier commented 4 months ago

https://github.com/rust-lang/rustup/issues/988 might be relevant.

github-actions[bot] commented 3 months ago

This issue has been marked as a stale issue because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.