Skip to content

Instantly share code, notes, and snippets.

@junwatu
Forked from amatus/rust_for_rpi.md
Created March 11, 2014 03:53
Show Gist options
  • Save junwatu/9479209 to your computer and use it in GitHub Desktop.
Save junwatu/9479209 to your computer and use it in GitHub Desktop.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment