Skip to content

Instantly share code, notes, and snippets.

@amatus
Forked from anonymous/gist:6664882
Last active February 18, 2017 21:13
  • Star 18 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save amatus/6665852 to your computer and use it in GitHub Desktop.
Howto build a rust compiler for the Raspberry Pi on Debian 7.1 (wheezy)

Howto build a rust compiler for the Raspberry Pi on Debian 7.1 (wheezy)

sudo apt-get install git build-essential
test `uname -m` = x86_64 && sudo apt-get install ia32-libs
git clone https://github.com/raspberrypi/tools.git
export PATH=$PWD/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH
git clone http://github.com/mozilla/rust.git
cd rust
./configure --target-triples=arm-unknown-linux-gnueabihf
make
sudo make install
rustc --target arm-unknown-linux-gnueabihf --linker arm-linux-gnueabihf-g++ <source files>
@bhamilton2591
Copy link

Anybody else running into this?
configure: error: Option '--target-triples=arm-unknown-linux-gnueabihf' is not recognized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment