I am trying to build for x86_64-pc-windows-gnu from a Linux PC using Cross. I am in a distrobox environment (fedora toolbox 40) to contain the cross-compliation stuff separate from the rest of my dev environment.
my current default toolchain is stable-x86_64-unknown-linux-gnu
I have:
CARGO_HOME=/opt/rust/cargo
RUSTUP_HOME/opt/rust/rustup
the permissions on /opt/rust are my_user:my_user 755
When trying to run cross build --target x86_64-pc-windows-gnu, I get the following error:
Error: statfs /opt/rust/cargo: no such file or directory