Skip to content

Please include an ARM targeted version of rustc. #29290

Closed
@ghost

Description

I'm trying to actually use rustc ON a raspberry pi. On an x64 machine, I tried compiling a cross-compiling rustc targetting ARM and then using that to cross-compile rust itself for ARM:

$ apt-get install g++-arm-linux-gnueabihf
$ git clone https://github.com/mozilla/rust.git
$ mkdir rust/build-cross
$ cd rust/build-cross
$ ../configure --target=arm-unknown-linux-gnueabihf --prefix=$HOME/local/rust-cross
$ make -j8 && make install
$ cd ..
$ mkdir build-arm
$ cd build-arm
$ ../configure --enable-local-rust --local-rust-root=/home/local/rust-cross --target=arm-unknown-linux-gnueabihf
$ make

But that finally fails with:

rustbuild@rustbuild-VirtualBox:~/repos/rust/rust-arm$ make
...lots and lots of compilations looking successful...
cfg: version 1.5.0-dev (04e497c00 2015-10-24)
cfg: build triple x86_64-unknown-linux-gnu
cfg: host triples x86_64-unknown-linux-gnu
cfg: target triples x86_64-unknown-linux-gnu arm-unknown-linux-gnueabihf
cfg: non-build target triples arm-unknown-linux-gnueabihf
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: host for arm-unknown-linux-gnueabihf is arm
cfg: os for x86_64-unknown-linux-gnu is unknown-linux-gnu
cfg: os for arm-unknown-linux-gnueabihf is unknown-linux-gnueabihf
cfg: good valgrind for x86_64-unknown-linux-gnu is 1
cfg: good valgrind for arm-unknown-linux-gnueabihf is 
cfg: using CC=gcc (CFG_CC)
cfg: disabling valgrind run-pass tests
rustc: x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore
../src/libcore/lib.rs:1:1: 1:1 error: can't find crate for `std`
../src/libcore/lib.rs:1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
                        ^
error: aborting due to previous error
make: *** [x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/stamp.core] Error 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions