One of my goals for the new year is to learn rust. This is a place for me to experiment with that.
First need to add an Arm rust target that works on the Rapsberry Pi
rustup target add armv7-unknown-linux-musleabihfThen we need to add the arm linker to the local .cargo/config.toml file
[target.armv7-unknown-linux-musleabihf]
linker = "arm-linux-gnueabihf-ld"musl is an implementation of the C standard library built on top of the Linux system call API, including interfaces defined in the base language standard, POSIX, and widely agreed-upon extensions.
It is nice because you can statically link it into your rust program.
brew install arm-linux-gnueabihf-binutils which gives us
> which arm-linux-gnueabihf-ld
/usr/local/bin/arm-linux-gnueabihf-ldget gcc source
git clone git://gcc.gnu.org/git/gcc.gitGenerate configure for gcc
cd gcc
autoreconf --verboseMove to a build directory and run