For the past few days I have been trying to understand how to cross compile
for my RPi3B on a Ubuntu 16.04.
model name : AMD FX(tm)-4130 Quad-Core Processor
stepping : 2
microcode : 0x600063e
cpu MHz : 1400.000
cache size : 2048 KB
This article is very well written
So far I was able to cross compile a small C program (pi_jpeg.c & lifting.c)
that preforms the lifting step using the gcc-6.3.0 cross compiler on my Ubuntu 16.04.
My testing is found at
I have been trying to create a script to perform the 100 plus steps.
This has not been successful. My latest successful build is found
in the file build-from-patched.sh.
A note from article
As a side note, building GCC 9.1 with the above cross compiler took about 15 minutes on a Debian 9 x86-64 machine. Compare this with the 5 hours I needed to build GCC 8.1 directly on my Pi 3 in the past and you will see the advantage of having a cross compiler on your main machine. Someone told me that compiling GCC 7 on a Raspberry Pi Zero took about 5 days!
Now I am working on the next gen version gcc-9.1.0.