Re: Build failures with gcc 4.5 and older

From: Arnd Bergmann
Date: Mon Aug 20 2018 - 12:00:30 EST


On Mon, Aug 20, 2018 at 4:58 PM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>
> On Tue, 14 Aug 2018, Guenter Roeck wrote:
> >
> > For my part I am all for making gcc 4.6 mandatory.
>
> No objections from my side.

gcc-4.6 is also what I suggested a while ago as a good choice for a new minimum
version, back then I met some objection, but as time passes these probably got
less important:

https://lkml.org/lkml/2016/12/16/174

To recap the distros that I looked at back then using gcc older than
4.6, I found four:

RHEL6: gcc-4.4
Debian 6: gcc-4.4
Ubuntu 10.04: gcc-4.4
SLES11: gcc-4.3

The first three are all finally EOL as of this month, only SLES11 with gcc-4.3
is still supported in principle:

Service Pack Release FCS Date General Ends LTSS Ends
SUSE Linux Enterprise Server 11 24 Mar 2009 31 Dec 2010 N/A
SUSE Linux Enterprise Server 11 SP1 02 Jun 2010 31 Aug 2012 30 Aug 2015
SUSE Linux Enterprise Server 11 SP2 29 Feb 2012 31 Jan 2014 30 Jan 2017
SUSE Linux Enterprise Server 11 SP3 01 Jul 2013 31 Jan 2016 30 Jan 2019
SUSE Linux Enterprise Server 11 SP4 15 Jul 2015 31 Mar 2019 31 Mar 2022

However, installing the disro's SDK package on SLES11-SP3 brings it up to
gcc-4.7, or gcc-5.2 for SP4, so this is unlikely to cause much of a problem any
more.

I also have some ideas for cleanups that can be done now, in particular
to deal with compiler warnings.

Arnd