[PATCH] Raise the minimum GCC version to 12.1 [BZ #32539]

H.J. Lu hjl.tools@gmail.com
Sat Mar 29 15:42:54 GMT 2025


On Wed, Mar 12, 2025 at 6:15 AM Stefan Liebler <stli@linux.ibm.com> wrote:
>
> On 2/12/25 05:53, H.J. Lu wrote:
> > For all Linux distros with glibc 2.40 which I can find, GCC 14.2 is used
> > to compile glibc 2.40:
> >
> > OS                    GCC      URL
> > AOSC                  14.2.0   https://aosc.io/
> > Arch Linux            14.2.0   https://archlinux.org/
> > ArchPOWER             14.2.0   https://archlinuxpower.org/
> > Artix                 14.2.0   https://artixlinux.org/
> > Debian                14.2.0   https://www.debian.org/
> > Devuan                14.2.0   https://www.devuan.org/
> > Exherbo               14.2.0   https://www.exherbolinux.org/
> > Fedora                14.2.1   https://fedoraproject.org/
> > Gentoo                14.2.1   https://gentoo.org/
> > Kali Linux            14.2.0   https://www.kali.org/
> > KaOS                  14.2.0   https://kaosx.us/
> > LiGurOS               14.2.0   https://liguros.gitlab.io/
> > Mageia                14.2.0   https://www.mageia.org/en/
> > Manjaro               14.2.0   https://manjaro.org/
> > NixOS                 14.2.0   https://nixos.org/
> > openmamba             14.2.0   https://openmamba.org/
> > OpenMandriva          14.2.0   https://openmandriva.org/
> > openSUSE              14.2.0   https://www.opensuse.org/
> > Parabola              14.2.0   https://www.parabola.nu/
> > PLD Linux             14.2.0   https://pld-linux.org/
> > PureOS                14.2.0   https://pureos.net/
> > Raspbian              14.2.0   http://raspbian.org/
> > Slackware             14.2.0   http://www.slackware.com/
> > Solus                 14.2.0   https://getsol.us/
> > T2 SDE                14.2.0   http://t2sde.org/
> > Ubuntu                14.2.0   https://www.ubuntu.com/
> > Wikidata              14.2.0   https://wikidata.org/
> >
> > Support older versions of GCC to build glibc 2.42:
> >
> > 1. Need to work around bugs in older versions of GCC.
> > 2. Can't use the new features in newer versions of GCC, which may be
> > required for new features, like _Float16 which requires GCC 12.1 or
> > above, in glibc,
> >
> > The main benefit of supporting older versions of GCC is easier backport
> > of bug fixes to the older releases of glibc, which can be mitigated by
> > avoiding incompatible features in newer versions of GCC for critical bug
> > fixes.  Require GCC 12.1 or newer to build.  Remove GCC version check for
> > PowerPC and s390x.
> >
> > TEST_CC and TEST_CXX can be used to test the glibc build with the older
> > versions of GCC.
> >
> > For glibc developers who are using Linux OSes which don't come with GCC
> > 12.1 or newer, they should build and install GCC 12.1 or newer to work
> > on glibc.
> >
> > This fixes BZ #32539.
> >
> > Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
>
> Another question is, if minimum binutils version should also be adjusted?
>
> Currently we have:
> configure.ac: # Accept binutils 2.25 or newer.
> => which was released end of 2014. GCC 12.1 was released in 2022.
> binutils 2.39 was also released in 2022.
>

Sounds reasonable.  Can you submit a patch?

Thanks.

-- 
H.J.


More information about the Libc-alpha mailing list