I have a Raspberry Pi 2. What is the best way to get a functional gcc 5 (from the current trunk) on the Raspberry Pi?
Since compiling gcc takes a good two hours on my x86-based computer and probably a lot longer on a Raspberry Pi, it would be great if someone, who already tried this or has more experience with compiling gcc than me, could either:
- Confirm if it's possible to compile gcc on the Raspberry Pi itself (is there enough memory?), or;
- Give me a tested set of configuration options to cross-compile gcc 5 for the Raspberry Pi.
What this question is not about
Yes, you can cross-compile software from your x86 box for the Raspberry Pi. No, I'm not interested in answers that explain to me how to build a cross-compiler, except if that instruction is immediately followed by instructions on how to cross-compile a gcc5 that will run on the Raspberry Pi and compile for the Raspberry Pi with that cross-compiler. Answers that do not answer the question will be downvoted.