How to Build a GCC Cross-Compiler for the Raspberry Pi
blog.felipe.rs
How to Build a GCC Cross-Compiler for the Raspberry Pi
1–10 of 17 posts
Re: How to Build a GCC Cross-Compiler for the Raspberry Pi
#2I have one of the new Pi's with 1GB ram. With a fast 64GB microsd card ($21 on black friday). I've been pretty impressed with fast it compiles with make -j4.
Re: How to Build a GCC Cross-Compiler for the Raspberry Pi
#3Heh? Debian cross toolchains work fine: https://packages.debian.org/sid/gcc-4.9-arm-linux-gnueabi for armel and https://packages.debian.org/sid/gcc-4.9-arm-linux-gnueabihf for armhf
Re: How to Build a GCC Cross-Compiler for the Raspberry Pi
#4I'd recommend just using a project like buildroot - it's really easy to begin with, and afterwards every odd device you eventually decide you need to cross compile for (old router with a MIPS CPU, etc.) becomes just as easy.
Re: How to Build a GCC Cross-Compiler for the Raspberry Pi
#5I went one step further and built a Canadian that was built on x64, ran on raspberry pi, and targeted teensy cortex m4!
Re: How to Build a GCC Cross-Compiler for the Raspberry Pi
#6Great, this brings me one step closer to a dream: setting up distcc on every computer in the house so I can build rPi software in seconds, not hours..
Re: How to Build a GCC Cross-Compiler for the Raspberry Pi
#7Heh? Debian cross toolchains work fine: https://packages.debian.org/sid/gcc-4.9-arm-linux-gnueabi for armel and https://packages.debian.org/sid/gcc-4.9-arm-linux-gnueabihf for armhf
Cool if you're running Debian.
Re: How to Build a GCC Cross-Compiler for the Raspberry Pi
#8Heh? Debian cross toolchains work fine: https://packages.debian.org/sid/gcc-4.9-arm-linux-gnueabi for armel and https://packages.debian.org/sid/gcc-4.9-arm-linux-gnueabihf for armhf
Cool if you're running Debian.
Well, not having to build your own cross-compilers is a HUGE reason to run Debian. Other distros probably have packages too in any case.
Re: How to Build a GCC Cross-Compiler for the Raspberry Pi
#9Re: How to Build a GCC Cross-Compiler for the Raspberry Pi
#10Heh? Debian cross toolchains work fine: https://packages.debian.org/sid/gcc-4.9-arm-linux-gnueabi for armel and https://packages.debian.org/sid/gcc-4.9-arm-linux-gnueabihf for armhf
Those packages haven't been in Debian for that long but I'm sure as hell glad they are.
Cross compilers are still really difficult.