Skip to content

Running Cross in distrobox with custom RUSTUP_HOME fails #1559

@ngraham20

Description

@ngraham20

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-podmanArea: podman container engine

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions