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

Andreas K. Huettel dilfridge@gentoo.org
Sun Jan 12 10:06:51 GMT 2025


Am Sonntag, 12. Januar 2025, 10:00:03 Mitteleuropäische Normalzeit schrieb Sam James:
> "H.J. Lu" <hjl.tools@gmail.com> writes:
> 
> > 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.41:
> >
> > 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 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 11.5 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
> > 11.5 or newer, they should build and install GCC 11.5 or newer to work
> > on glibc.
> >
> > This fixes BZ #32539.
> >
> > Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
> > ---
> >  INSTALL                                      | 25 +-----
> >  configure                                    |  3 +-
> >  configure.ac                                 |  3 +-
[...]

I think in terms of cleanups the current version is a decent compromise for
the release. Afterwards we can take care of the rest.

> 
> We should cleanup:
> * libc_cv_compiler_powerpc64le_ice (powerpc)
> * soft_float_abi_support (csky)
> * libc_cv_gcc_builtin_tbegin (s390, obsolete with compilers containing r6-2660-gc914ac45c7670c)
> 
> BUT if you want to defer those cleanups to after the release, to avoid
> risk on targets that are harder to test, I (or you) can do that. Andreas?
> 
> > [...]
> 
> The patch looks good but we should decide on either:
> 1) merging with bare-minimum cleanups (maybe just top-level
> configure.ac), more cleanups post-release
> 2) merging this as-is for now, more cleanups post-release
> 3) merging this with no cleanups inside, all cleanups post-release
> 


-- 
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, toolchain, base-system, perl, libreoffice)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 981 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250112/565e79c3/attachment.sig>


More information about the Libc-alpha mailing list