wiki:WebKitGTK/GCCRequirement

Version 18 (modified by clopez@igalia.com, 3 years ago) ( diff )

--

WebKit is a complex C++ library that often requires relatively new versions of GCC to build. Older versions of GCC tend to have bugs that prevent code from compiling successfully, which tend to be fixed in newer versions of GCC, and which are often encountered in practice by WebKit developers. Apple also likes to be able to use new C++ features, which are often not present in older versions of GCC, relatively early.

We are aware that Linux distributions and embedded systems vendors like to be able to compile everything with the same system build toolchain, which may be very old, so we have compromised with Apple to develop a DependenciesPolicy that attempts to balance the interests of both WebKit distributors and developers. We intend to support some system compilers in the latest Ubuntu LTS and Debian stable releases until one year after the subsequent release, but, depending on the age of the release, this might be some version of Clang rather than GCC. We no longer provide any timeline as to how long a particular version of GCC may be supported, as this decision will be made by WebKit developers on a case-by-case basis. However, we will always support the version of libstdc++ available in these releases until one year after the subsequent release. Preserving compatibility with older standard library versions is necessary to allow updates on older systems, even if a newer compiler is used to build those updates. In general, you can expect a new standard library version to be supported by WebKit for approximately three to four years, in accordance with the dependencies policy.

This policy means that WebKit may require a new version of GCC sooner than you might prefer. Because Apple does not use GCC to develop WebKit, and because of the relatively high number of compatibility issues caused by supporting GCC, we should be grateful that it is still possible to build WebKit with GCC at all. Unless you are able to upgrade your systems to newer GCCs on a regular basis, it is expected that your system GCC may not be new enough to build WebKit. We urge you to consider building with a different compiler if your system compiler is too old. Embedded systems vendors may choose to deploy WebKit in a container if updating the host's libstdc++ is undesirable. If you choose to stop building new versions of WebKit as a result of an increased GCC or libstdc++ version requirement, your users will be left vulnerable to numerous security vulnerabilities that are fixed in newer versions.

Outlook as of December 2021

Interpreting the DependenciesPolicy as of December 2021, we conclude that WebKitGTK will support:

OS Release End of Life GCC version
Ubuntu 20.04 focal April 2023 (1y after Ubuntu 22.04) 9
Debian 10 Buster August 2022 (y after Debian 11 Bullseye) 8

This policy affects the trunk. For the already released versions, these are the minimum supported GCC versions:

Release Date Required GCC version
2.36 (trunk) Unreleased 8.3
2.34 September 2021 7.3
2.32 March 2021 7.3
2.30 September 2020 7.3
2.28 March 2020 7.3
2.26 September 2019 7.3
2.24 March 2019 6.0

More info about WebKitGTK stable release in the WebKitGTK/StableRelease page.

Note: See TracWiki for help on using the wiki.