dlecan / rust-crosscompiler-arm

Docker images for Rust dedicated to cross compilation for ARM v6 and more
MIT License
50 stars 16 forks source link

Nightly Rust for ARMv6 #18

Open theronic opened 5 years ago

theronic commented 5 years ago

Hi @dlecan, thanks for this! I'm struggling to get a nightly version of this going. I forked your Docker image, ran rustup toolchain install nightly-x86_64-unknown-linux-gnu, which succeeded. But when I run cargo +nightly build, I get this permission error for all packages:

root@ae3587e98f45:/source# cargo +nightly build
error: unable to get packages from source

Caused by:
  failed to unpack package `crossbeam-channel v0.3.3`

Caused by:
  failed to open: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-channel-0.3.3/.cargo-ok

Caused by:
  Permission denied (os error 13)

When try cat /root/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-channel-0.3.3/.cargo-ok, it prints an empty file with no permission error.

Is cargo +nightly running as a different user perhaps?

Any help would be appreciated.

So then I

marikka commented 5 years ago

@theronic Here's how I built a nightly version for myself. Hope this helps: https://github.com/marikka/rust-crosscompiler-arm/commit/c96f8be499650c39197bfc2ee214b049d7b2975a