3

I need to compile a modern version of GCC in order to compile CMake in order to compile OpenCV 3.0.0.

So I want to compile a modern and stable version of GCC for the Raspberry Pi 2b. I've read this topic: How can I install GCC 4.8 on the Raspberry Pi? . The accepted answer explains how to install some patches, which seem to be needed for compiling the GCC on Debian. It doesn't state however, if those patches are still needed, when I use a newer version of GCC.

Is the patching process still necessary when compiling GCC 6 version from ftp://ftp.fu-berlin.de/unix/languages/gcc/snapshots/LATEST-6/gcc-6-20151108.tar.bz2 or have these patches already been applied to them?

(For the future: How do I figure that out myself?)

1 Answers1

0

I'm going to try and strongly disuade you from doing this. It is a gigantic waste of time.

4.9.3, released upstream at the end of June, and the most "modern" currently in 4.x, is available in Raspbian repos. Check apt-cache search gcc | grep "^gcc" to see what's actually available in jessie but I am sure there is a 4.9.x.

Forget about 5.x (first public release was April) and especially 6.x (no official public release) unless you have a very clear reason for doing so. Which you don't, or I think you would not be asking this kind of question.

goldilocks
  • 60,325
  • 17
  • 117
  • 234