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

Maxim Kuvyrkov maxim.kuvyrkov@linaro.org
Mon Mar 10 07:35:33 GMT 2025


Hi Carlos,
Hi H.J.,

We have switched Linaro CI to Ubuntu 24.04 images over the weekend; it now has recent-enough GCC.

Thanks,

--
Maxim Kuvyrkov
https://www.linaro.org

> On Mar 6, 2025, at 13:31, H.J. Lu <hjl.tools@gmail.com> wrote:
> 
> On Mon, Mar 3, 2025 at 10:50 PM Carlos O'Donell <carlos@redhat.com> wrote:
>> 
>> On 2/11/25 11:53 PM, 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>
>> 
>> This is great work and the one blocker we have here is that all pre-commit CI should
>> be updated to pass after this commit.
>> 
>> We have ensured that the Red Hat pre-commit CI is using a new enough compiler since
>> we pull and build the latest stable release Fedora container.
>> 
>> Adhemerval, Do you have any status you can share about the Linaro pre-commit CI
>> builder upgrades? I think those upgrades would provide a new enough compiler.
>> 
>> --
>> Cheers,
>> Carlos.
> 
> This is what I got from Maxim when the Linaro pre-commit CI build
> failed my patch.
> 
> H.J.
> ----
>> On Feb 12, 2025, at 18:54, H.J. Lu <hjl.tools@gmail.com> wrote:
>> 
>> On Wed, Feb 12, 2025 at 1:48 PM Maxim Kuvyrkov
>> <maxim.kuvyrkov@linaro.org> wrote:
>>> 
>>> Hi H.J.,
>>> 
>>> This particular CI pipeline builds glibc using system compiler in Ubuntu 22.04 environment.  So GCC version is GCC 11.4 .
>> 
>> If my patch is accepted, you need to update GCC in your CI.
> 
> Yes, this is not a problem; we will switch to Ubuntu 24.04 soon.



More information about the Libc-alpha mailing list