Skip to content

Instantly share code, notes, and snippets.

@schwehr
Last active October 19, 2026 06:28
Show Gist options
  • Select an option

  • Save schwehr/9e178b4b5da37ce86fe46da635358bbe to your computer and use it in GitHub Desktop.

Select an option

Save schwehr/9e178b4b5da37ce86fe46da635358bbe to your computer and use it in GitHub Desktop.
Draft rfc113_build_requirements.rst

RFC 113: Build requirements

Author: Kurt Schwehr, Gemini 4 Argon
Contact: schwehr@gmail.com
Started: 2026-Oct-18
Status: Draft
Target: GDAL 3.14

Summary

This document updates and supersedes :ref:`rfc-98` and :ref:`rfc-68` with the build requirements for GDAL 3.14:

  • C++ >= 20
  • C >= 99 (C23 #embed is used opportunistically when available)
  • CMake >= 3.22
  • PROJ >= 9
  • Ubuntu >= 22.04 (advancing to newer LTS releases as the oldest LTS exits "standard security maintenance" per https://ubuntu.com/about/release-cycle)
  • Windows >= Windows Server 2022 / Windows 11
  • macOS >= 14 (Sonoma) with Xcode >= 15

The minimum versions for optional dependencies are:

  • Python >= 3.11 (support for a Python version will be dropped when it reaches end-of-life as described in https://devguide.python.org/versions/)
  • SWIG >= 4.0.2
  • Java >= 17
  • .NET SDK >= 8.0 (C# >= 10; Mono support dropped per :ref:`rfc-112`)
  • GTest >= 1.11.0
  • GEOS >= 3.11
  • libcurl >= 7.81
  • libtiff >= 4.3
  • libpng >= 1.6.37
  • libsqlite3 >= 3.37
  • libspatialite >= 5.0.1
  • librasterlite2 >= 1.1.0
  • libhdf5 >= 1.10.7
  • libnetcdf >= 4.8 and built with NC4 enabled
  • OpenEXR >= 2.5
  • libheif >= 1.12
  • Poppler >= 22.02
  • libopenjp2 (OpenJPEG) >= 2.4.0
  • TileDB >= 2.15
  • Grok (https://github.com/GrokImageCompression/grok) >= 20.3.9
  • Shapelib >= 1.5.0 (when using an external Shapelib; internal is used by default)
  • Kakadu >= 7.5
  • ECW >= 3.3
  • libOpenDRIVE >= 0.6.0

Details

This RFC updates the C++ standard, CMake, PROJ, Python, GEOS, and optional dependency minimum version requirements to match the oldest supported versions (and at least the versions shipped in ubuntu-22.04, keeping GDAL's existing minimum when it is already newer):

  • C++ >= 20: Our previous requirement in :ref:`rfc-98` was C++17. Several dependencies (such as Poppler >= 24.05 and PDFium) already require C++20 for their headers, and drivers such as PDF, Arrow, and Parquet already have provisions for C++20. Requiring C++20 across the codebase simplifies build configuration and allows using C++20 language and standard library features. To minimize disruption for external C++ consumers of GDAL, exported public headers will continue to avoid requiring C++20 unless necessary or decided otherwise.
  • C >= 99: C99 remains the portable baseline for the C sources and the public C headers. C23 is not required: the only C23 feature in use is #embed for embedded resources (:ref:`rfc-102`), which is enabled per-target only when is_sharp_embed_available() in gdal.cmake detects a compiler that supports it (GCC >= 15 or Clang >= 19), and falls back to generated C arrays otherwise.
  • Python >= 3.11: Python 3.8, 3.9, and 3.10 have reached end-of-life as of October 2026 (https://devguide.python.org/versions/). Updating the minimum supported Python version from 3.8 to 3.11 aligns GDAL with currently supported upstream Python releases and allows removing legacy compatibility workarounds in the SWIG Python bindings and test suite. Going forward, Python version support will be dropped when a version reaches end-of-life as described in https://devguide.python.org/versions/. Ubuntu 22.04 ships Python 3.10; the ubuntu-22.04 CI configuration will obtain Python 3.11 from another source (such as the deadsnakes PPA or conda).
  • GEOS >= 3.11: GEOS 3.10 and older are unsupported upstream (https://libgeos.org/usage/download/). Updating the minimum version from 3.8 to 3.11 allows removing conditional compilation paths for older GEOS versions (such as in MakeValid(), geometry precision handling, and ConcaveHull()). Ubuntu 22.04 ships GEOS 3.10.2; the ubuntu-22.04 CI configuration will obtain GEOS >= 3.11 from UbuntuGIS or build it from source.
  • CMake >= 3.22: Ubuntu 22.04 includes CMake 3.22.1. Updating the baseline minimum version from 3.16 to 3.22 satisfies the requirements for C23 #embed support (CMake >= 3.21) and GDAL_USE_PCODEC=ON in the Zarr driver (CMake >= 3.22), and allows removing compatibility workarounds and backported find modules for CMake < 3.22.
  • PROJ >= 9: PROJ 9.0.0 was released in March 2022. Updating the minimum required version from 6.3.1 to 9 allows removing the #if PROJ_VERSION_MAJOR < 9 (and >= 7, >= 8) conditional compilation paths (such as in ogr_proj_p.cpp, ogrct.cpp, ogrspatialreference.cpp, and gdalsrsinfo.cpp), and the CMake logic that distrusts the PROJ config file for PROJ < 8. Ubuntu 22.04 ships PROJ 8.2.1; the ubuntu-22.04 CI configuration will obtain PROJ >= 9 from UbuntuGIS or build it from source.
  • Ubuntu >= 22.04 (ubuntu-22.04): Ubuntu 20.04 reached the end of its 5-year standard security maintenance window in May 2025. The minimum supported Ubuntu version is ubuntu-22.04, and will be moved up to newer LTS releases as the oldest LTS goes out of "standard security maintenance" per https://ubuntu.com/about/release-cycle.
  • Windows >= Windows Server 2022 / Windows 11: Windows 10 reached end of support in October 2025 and Windows Server 2019 left mainstream support in January 2024. GitHub retired the windows-2019 runner in June 2025, so windows-2022 is the oldest Windows environment exercised by CI. Visual Studio 2022 (MSVC >= 19.30) is the oldest supported toolchain on those releases.
  • macOS >= 14 (Sonoma) with Xcode >= 15: std::bit_cast and the rest of the C++20 library features listed below require Apple Clang >= 14.0.3 (Xcode 14.3), which in turn requires macOS >= 13. macOS 13 no longer receives security updates from Apple since the release of macOS 26 in September 2026, Homebrew (used by the macOS CI) only supports the three most recent macOS releases, and GitHub retired the macos-13 runner in December 2025. macOS 14 is therefore the oldest release on which GDAL can be built and tested with supported tooling; Xcode 15 is the first Xcode that targets it. This is a build and CI requirement only; packagers (conda-forge, Homebrew, MacPorts) remain free to set an older deployment target.
  • Optional dependencies: Minimum versions for optional dependencies are updated to match the oldest supported versions and the versions available in Ubuntu 22.04 (while retaining GDAL's existing minimum where it is newer):
    • Java >= 17: Java 17 is the oldest Java LTS release with upstream support from the main vendors (OpenJDK 11 updates from Oracle ended in 2023, Ubuntu 22.04 ships OpenJDK 17, and the ubuntu-22.04 CI image currently installs OpenJDK 8, which will be updated). SWIG 4.0.2 generates code compatible with Java 17.
    • .NET SDK >= 8.0: .NET 6.0 reached end-of-support in November 2024 (https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core)
    • SWIG >= 4.0.2 and GTest >= 1.11.0: versions in Ubuntu 22.04
    • Poppler >= 22.02: removes #if POPPLER_MAJOR_VERSION < 21 checks in the PDF driver
    • libtiff >= 4.3: removes #if TIFFLIB_VERSION > 20210416 checks in the GeoTIFF driver
    • libcurl >= 7.81: version in Ubuntu 22.04
    • libpng >= 1.6.37: version in Ubuntu 22.04
    • libsqlite3 >= 3.37: removes #if SQLITE_VERSION_NUMBER >= 3035005L checks in the SQLite driver
    • libspatialite >= 5.0.1: removes legacy Spatialite 4.x compatibility paths
    • libopenjp2 (OpenJPEG) >= 2.4.0: removes #if IS_OPENJPEG_OR_LATER(2, 4, 0) checks in the OpenJPEG driver
    • libnetcdf >= 4.8 (built with NC4 enabled) and libhdf5 >= 1.10.7: versions in Ubuntu 22.04
    • OpenEXR >= 2.5: version in Ubuntu 22.04
    • libheif >= 1.12: removes #if LIBHEIF_HAVE_VERSION(1, 7, 0) checks in the HEIF driver
    • Shapelib >= 1.5.0: version in Ubuntu 22.04 (when using external Shapelib)
    • librasterlite2 >= 1.1.0, TileDB >= 2.15, Grok (https://github.com/GrokImageCompression/grok) >= 20.3.9, Kakadu >= 7.5, ECW >= 3.3, and libOpenDRIVE >= 0.6.0: retained from GDAL's existing configuration

C++20 capable compilers

Based on https://en.cppreference.com/w/cpp/compiler_support and the per-feature table at https://en.cppreference.com/cpp/compiler_support/20, compilers supporting the subset of C++20 used by GDAL are:

  • GCC >= 11
  • Clang >= 14
  • Apple Clang >= 15 (Xcode >= 15)
  • Visual Studio >= 2022 (MSVC 19.30)

Only features supported by all of the above may be used. In particular std::format, modules, coroutines, and most of <ranges> are not yet available across that set and remain off limits for now.

C++20 features

Features that can be used in the codebase (not an exhaustive list):

  • std::span for non-owning contiguous views
  • std::string::starts_with and std::string::ends_with
  • contains() on associative containers (std::map, std::set, etc.)
  • <bit> utilities (such as std::bit_cast, std::countl_zero, std::popcount)

Banned features:

Changes in continuous integration

Continuous integration configurations are updated to use compilers and environments meeting at least the new build requirements, with ubuntu-22.04 as the oldest Ubuntu LTS environment (with PROJ, GEOS, Python, and Java obtained from UbuntuGIS, deadsnakes, or source where the distribution packages are older than the minimums), windows-2022 as the oldest Windows environment, and macos-14 as the oldest macOS environment, advancing as older releases leave support.

Changes in SWIG bindings

The Python SWIG bindings require Python >= 3.11. Workarounds for Python 3.8, 3.9, and 3.10 in swig/python/ and autotest/ can be removed. The Java bindings are compiled with --release 17.

Backward compatibility

No change to the C API. External projects building against GDAL's C++ headers or building GDAL from source will require a C++20 capable compiler if C++20 constructs are used in headers they include, Python >= 3.11 when building or running the Python bindings, and Java >= 17 when using the Java bindings. Binary wheels for Python 3.8, 3.9, and 3.10 will no longer be published.

Documentation

The Build requirements and Development practices documentation pages will be updated to reflect the new minimum versions.

Testing

The existing autotest suite should continue to pass.

Related RFCs

  • This RFC supersedes :ref:`rfc-68` and :ref:`rfc-98`
  • :ref:`rfc-112` (Drop Mono Support from CMake build system)

Voting history

TBD

.. spelling:word-list::
    GTest
    GrokImageCompression
    Kakadu
    MacPorts
    OpenEXR
    OpenJDK
    PCODEC
    PDFium
    Poppler
    Shapelib
    Sonoma
    Spatialite
    TileDB
    UbuntuGIS
    Xcode
    deadsnakes
    libOpenDRIVE
    libheif
    libopenjp
    librasterlite
    libspatialite

By Fable 5.1

RFC 113 implementation tasks

Work needed in the GDAL repository to meet the RFC 113 minimums, based on the tree at 6364d9384b (2026-10-18). Counts are from grep and are approximate. Each item should be its own PR, labelled per the LLM tool policy if an LLM was used for the mechanical parts.

Order matters: do the "floors" first (1-5) so CI proves the new minimums, then the "cleanups" (6-10), then the "suggestions".

1. Build system floors

  • cmake/helpers/GdalCMakeMinimumRequired.cmake: GDAL_CMAKE_VERSION_MIN 3.16 -> 3.22.
  • cmake/helpers/GdalCAndCXXStandards.cmake: default CMAKE_CXX_STANDARD 17 -> 20.
  • gdal.cmake:236: CXX_STANDARD 11 on the library target (verify this is overridden today; set to 20 or remove).
  • autotest/postinstall/test_c/CMakeLists.txt, test_cpp/CMakeLists.txt, autotest/cpp/googletest/CMakeLists.txt.in: cmake_minimum_required 3.16 -> 3.22. Decide whether test_cpp keeps CXX_STANDARD 11 (public-header promise) or moves to 17.
  • cmake/modules/Ccache.cmake: 3.4...3.23 -> 3.22....
  • Remove CMake < 3.22 workarounds:
    • cmake/modules/GdalFindModulePath.cmake + cmake/modules/3.20/ (backported FindLibLZMA, FindPostgreSQL).
    • cmake/modules/packages/FindSQLite3.cmake:198 (VERSION_LESS 3.18).
    • frmts/zarr/CMakeLists.txt:62 (VERSION_LESS 3.22 for PCODEC).
    • apps/CMakeLists.txt:334,398 (VERSION_GREATER_EQUAL 3.13).
    • swig/python/CMakeLists.txt:220 (VERSION_GREATER_EQUAL 3.20).
    • gdal.cmake:323 (VERSION_GREATER_EQUAL 3.21 in is_sharp_embed_available).
  • Drop per-driver cxx_std_20 now redundant: frmts/pdf/CMakeLists.txt:76,93, frmts/icechunk/CMakeLists.txt:20 (commented), and the SKIP_GDAL_PRIV_HEADER # because we may need to use C++20 comments in frmts/pdf, ogr/ogrsf_frmts/arrow, ogr/ogrsf_frmts/parquet (keep the option if it is still needed for PCH reasons, fix the comment).
  • scripts/cppcheck.sh:186: drop the stlIfStrFind suppression once starts_with is allowed.

2. Dependency floors in CMake (cmake/helpers/CheckDependentLibraries*.cmake)

Dependency File:line Now RFC
PROJ CheckDependentLibraries.cmake:140 6.3 9
GEOS :400 3.8 3.11
CURL :29 7.68 7.81
TIFF :144 4.1 4.3
PNG :167 1.6 1.6.37
SQLite3 :248 3.31 3.37
SPATIALITE :286 4.1.2 5.0.1
HDF5 :296,298 1.10 1.10.7
NetCDF :411 4.7 4.8
OpenEXR :448 (string only) "2.2" 2.5 — add VERSION
HEIF :452 (string only) "1.1" 1.12 — add VERSION
Poppler :482 0.86 22.02
OpenJPEG CheckDependentLibrariesOpenJPEG.cmake:10 2.3.1 2.4.0
Shapelib CheckDependentLibraries.cmake:227 1.4.0 fallback 1.5.0
GTest autotest/cpp/CMakeLists.txt:3 1.10.0 1.11.0
SWIG CMakeLists.txt:206, GdalSwigBindings.cmake:12 none 4.0.2 — add find_package(SWIG 4.0.2)
TileDB, Grok, RasterLite2 already 2.15 / 20.3.9 / 1.1.0 ok ok
Kakadu, ECW, libOpenDRIVE not version-checked — decide whether to add
  • PROJ: remove the GDAL_FIND_PACKAGE_PROJ_MODE CUSTOM retry logic that distrusts PROJ < 8 config files (CheckDependentLibraries.cmake:113-135); find_package(PROJ 9 CONFIG REQUIRED) is enough.
  • Update FATAL_ERROR/message() strings that quote old versions.

3. Python floors

  • swig/python/pyproject.toml: requires-python = ">=3.11"; drop the oldest-supported-numpy; python_version=='3.8' build requirement; make numpy >=2.0.0rc1 unconditional; add Programming Language :: Python :: 3.11/3.12/3.13/3.14 classifiers.
  • swig/python/setup.py.in:485: python_requires='>=3.11'.
  • swig/python/gdal-utils/setup.py:74: python_requires=">=3.6.0" -> >=3.11.
  • swig/python/osgeo/__init__.py:5: remove version_info >= (3, 8, 0) test.
  • autotest/pymod/gdaltest.py:2082: remove sys.version_info >= (3, 8) branch.
  • swig/python/gdal-utils/osgeo_utils/samples/ogrinfo.py:531-533: remove Python 2 branch.
  • swig/python/CMakeLists.txt:50: drop the SWIG_VERSION VERSION_LESS "4.1" branch only if SWIG floor becomes 4.1 (RFC says 4.0.2, so keep).
  • Wheel/CI matrices: remove cp38/cp39/cp310 from any wheel-building config and from python-version in .github/workflows/*.yml (4 occurrences of 3.10).
  • ubuntu_22.04 CI gets Python 3.11 from deadsnakes (RFC now says so); see section 5.

4. Language bindings

  • .NET: swig/csharp/CMakeLists.txt — require SDK >= 8 (or 10), set an explicit <LangVersion> for sample apps per RFC 112, remove any remaining Mono paths.
  • Java: swig/java/build.xml:25,42 source="8" target="8" -> release="17"; add find_package(Java 17 ...)/JNI check in swig/java/CMakeLists.txt; declare maven.compiler.release 17 in the POM template; replace openjdk-8-jdk-headless with openjdk-17-jdk-headless in .github/workflows/ubuntu_22.04/Dockerfile.ci:61 (and any other CI image).

5. Continuous integration

  • .github/workflows/ubuntu_22.04/Dockerfile.ci: stock libproj-dev (8.2.1), libgeos-dev (3.10.2), python3 (3.10) and openjdk-8 no longer meet the floors. Add UbuntuGIS-unstable (PROJ 9.x, GEOS 3.11+) or build PROJ/GEOS from source, install Python 3.11 from deadsnakes, OpenJDK 17 from the archive.
  • .github/workflows/linux_build.yml: retire the three ubuntu_20.04 jobs (ubuntu_20.04, coverage, benchmarks); move coverage/benchmarks to ubuntu_22.04 or ubuntu_26.04.
  • .github/workflows/coverity_scan.yml:26: container ubuntu_20.04 -> ubuntu_22.04 (note in ubuntu_20.04/Dockerfile.ci that coverity depends on it).
  • Delete .github/workflows/ubuntu_20.04/.
  • .github/workflows/android_cmake.yml:45: host image ubuntu:20.04 -> ubuntu:22.04+.
  • docker/ubuntu-full/Dockerfile:327: the ECW SDK tarball is built on 20.04 (install-libecwj2-3.3-ubuntu-20.04.tar.gz); rebuild on 22.04+ or confirm ABI.
  • Add/keep one job that builds with exactly the floor: GCC 11, Clang 14, CMake 3.22, -std=c++20, PROJ 9.0, GEOS 3.11, Python 3.11, Java 17 (the ubuntu_22.04 job, with -DCMAKE_CXX_STANDARD=20 made explicit, covers most of this).
  • Windows: windows_build.yml already uses windows-2022 (VS 2022) and windows-2025-vs2026; nothing to retire. Make -DCMAKE_CXX_STANDARD=20 the default rather than an explicit flag on the MSVC job (line 474).
  • macOS: macos.yml uses macos-14 (conda) and macOS-15 + Xcode 26.3 (Homebrew). Add a job (or pin) that builds with Xcode 15 on macos-14 so the stated floor is exercised; plan the move to macos-15 when GitHub retires macos-14 (late 2026).
  • Keep the CMAKE_CXX_STANDARD=23 jobs (Alpine, Fedora Rawhide) as-is.
  • Add a job that compiles the installed public headers with -std=c++17 (and c++11 if that promise is kept) to enforce the public-header policy.
  • Plan for GitHub runner label ubuntu-22.04 removal on 2027-04-17 (14 runs-on: ubuntu-22.04 uses across workflows).

6. Documentation

  • doc/source/development/building_from_source.rst:14-22: CMake 3.22, C++20, PROJ >= 9, SWIG >= 4.0.2, Python >= 3.11, Java >= 17; add a "Supported platforms" note (Ubuntu 22.04+, Windows Server 2022 / 11+, macOS 14+ / Xcode 15+).
  • doc/source/development/dev_practices.rst:37: "C99 and C++17 (per RFC 98)" -> C++20 / RFC 113.
  • Driver pages whose build_dependencies quote an older minimum (Poppler, GEOS, etc.).
  • NEWS.md / migration guide entry for 3.14.
  • Revert the unnecessary rfc68_cplusplus11.rst change (RFC 98 already supersedes it).

7. Remove version-conditional C++ (per RFC bullets)

Keep guards that are above the new floor.

  • PROJ: ~22 guards PROJ_VERSION_MAJOR > 6, >= 7, == 7, > 7, < 8, >= 8, == 8, < 9 in ogr/ogr_proj_p.cpp, ogr/ogrct.cpp, ogr/ogrspatialreference.cpp, apps/gdalsrsinfo.cpp. Guards on == 9 && PROJ_VERSION_MINOR >= 1/2/4 and > 9 stay (9.0 is the floor).
  • GEOS: guards for GEOS_VERSION_MINOR >= 10 and < 11 in ogr/ogrgeometry.cpp (~13, including the ConcaveHull()/ConcaveHullOfPolygons fallbacks at 4576, 4709, 5562, 5662). Note the pre-existing typo at ogrgeometry.cpp:3437 (GEOS_VERSION_MINOR == 3 should be GEOS_VERSION_MAJOR == 3); removal fixes it. Guards on >= 12, >= 14, >= 15 stay.
  • Poppler: POPPLER_MAJOR_VERSION < 21, == 21 in frmts/pdf/ (2 guards).
  • libtiff: TIFFLIB_VERSION > 20210416 in frmts/gtiff/ (1 guard).
  • SQLite: SQLITE_VERSION_NUMBER >= 3035000/3035005/3037000 in ogr/ogrsf_frmts/sqlite, gpkg (~13 guards); >= 3038000 and >= 3053000 stay.
  • OpenJPEG: IS_OPENJPEG_OR_LATER(2, 4, 0) in frmts/openjpeg/ (2); (2, 5, 0) stays.
  • libheif: LIBHEIF_HAVE_VERSION(1, 7, 0) in frmts/heif/ (1); 1.16+ stay.
  • HDF5: H5_VERSION_GE(1, 8, 13) in frmts/hdf5/ (1).
  • netCDF: NETCDF_HAS_NC4 define and its #ifdef (1).
  • Spatialite: runtime MakeSpatialiteVersionNumber(2/3/4, ...) checks in ogr/ogrsf_frmts/sqlite/ (~8) if the RFC intends a runtime floor too.
  • GTest: nothing to remove (GTEST_SKIP exists since 1.10).
  • curl/png: no LIBCURL_VERSION_NUM/PNG_LIBPNG_VER guards remain; nothing to do.

8. Remove Python-version workarounds

  • Nothing beyond section 3 was found by grep for version_info; look for importlib_metadata, typing_extensions, tomli, pkg_resources fallbacks when touching files.

9. Verification

  • cmake -S . -B build with CMake 3.22.1 exactly (containerised) must configure.
  • Full ctest/autotest on the ubuntu_22.04 job with Python 3.11.
  • autotest/postinstall/test_cmake.sh passes with the chosen public-header standard.
  • Conda, vcpkg, Homebrew, MSYS2 and Debian/Fedora packagers notified (gdal-dev mailing list) before merge.

10. Suggestions: modernisation now possible

These are not required by the RFC. Do them as separate, mechanical, reviewable PRs; prefer clang-tidy/pyupgrade driven changes over hand edits.

Python

  • First, run pyupgrade --py311-plus over swig/python/, autotest/, scripts/, doc/source/_extensions/ and commit the result as a single mechanical PR before any hand-written Python modernisation, so later diffs are not polluted by syntax churn. Add pyupgrade (with --py311-plus) to .pre-commit-config.yaml next to black/isort/flake8. Expected changes: Optional[X] -> X | None (27 files use from typing import), List/Dict -> list/dict, .format() -> f-strings (18 sites in gdal-utils/pymod), super(Cls, self) -> super(), class C(object) -> class C, u"" prefixes, OSError aliases.
  • Set target-version = ["py311"] for black (and isort py_version = 311).
  • Consider replacing flake8 + isort with ruff (one tool, same rules, --target-version py311), and enable UP (pyupgrade) rules there.
  • Use match statements where long if/elif chains dispatch on type/value (osgeo_utils CLI parsers).
  • Use dataclass(slots=True, kw_only=True) (3.10) for option structs in osgeo_utils.
  • Use tomllib (3.11) instead of any tomli fallback.
  • Use typing.Self (3.11) in fluent builders; ExceptionGroup/except* where tests aggregate failures.
  • Add from __future__ import annotations-free type hints (no longer needed).
  • Add py.typed/mypy to gdal-utils once hints are modern.

C++

  • Add -Wc++20-compat-style checks only after the floor lands; do not mix with the floor PR.
  • std::string::starts_with/ends_with: replace cpl::starts_with/ends_with (port/cpl_string.h:728-732) with the std versions and deprecate the wrappers; the _ci variants stay. STARTS_WITH() C macro (3376 uses) stays for const char* call sites.
  • cpl::contains() (port/cpl_port.h:1260, 151 uses) -> container.contains().
  • std::bit_cast: replace memcpy-based float/double <-> integer punning (~46 sites in port/, gcore/, alg/, frmts/, ogr/).
  • <bit>: replace __builtin_popcount/clz/ctz and _BitScan* (~12 sites) with std::popcount, std::countl_zero, std::countr_zero, std::has_single_bit, std::bit_ceil.
  • std::span for (ptr, count) parameter pairs in new/internal APIs (not in exported C++ headers until the public-header policy allows it).
  • std::erase_if / std::erase instead of erase-remove idiom.
  • std::ssize, std::to_array, std::midpoint, std::lerp where applicable.
  • Designated initializers for GDALRasterIOExtraArg, driver metadata structs.
  • [[likely]]/[[unlikely]] on hot error branches (measure first).
  • [[maybe_unused]] was done in RFC 98; CPL_UNUSED still has ~679 uses, finish that migration while touching files.
  • using enum in large switch on GDALDataType/OGRwkbGeometryType.
  • constexpr virtual / consteval for compile-time tables (e.g. CRC, LUTs in frmts/zarr/crc32c, port/cpl_md5).
  • Three-way comparison (<=>) for small value types (OGREnvelope, CPLString wrappers).
  • std::source_location in CPLAssert/CPLError debug helpers (check MSVC and libc++ 14 support first).
  • Concepts to replace SFINAE/std::enable_if (port/cpl_vsi.h, port/cpl_vsi_virtual.h, gcore/gdalalgorithm_cpp.h, gcore/gdal_computedrasterband.h); public headers only once the public-header policy allows C++20.
  • std::atomic<T>::wait/notify and std::jthread/std::stop_token in port/cpl_worker_thread_pool.cpp — only after libc++ >= 18 is the macOS floor.
  • std::format: defer; not in GCC 11 / Clang 14 libstdc++/libc++.
  • Coroutines/modules/ranges: defer; compiler support in the floor is partial.
  • Add clang-tidy checks modernize-use-starts-ends-with, modernize-use-std-numbers, modernize-use-designated-initializers, modernize-use-ranges (off until ranges allowed), readability-container-contains to .clang-tidy, run them as separate mechanical PRs.

CMake

  • Use cmake_path() (3.20) instead of get_filename_component.
  • Use target_sources(FILE_SET HEADERS) (3.23) only after the floor rises again.
  • Use presets (CMakePresets.json, 3.19+) for the CI configurations.

Fable 5.1 review

=================================== Review notes for RFC 113 (draft)

Reviewed against the tree at 6364d9384b on 2026-10-18 and re-checked after the second draft (PROJ >= 9, GEOS >= 3.11, Clang >= 14, C23 note, Windows and macOS minimums, Java >= 17, spelling list, CMake 4.4 sentence removed). Facts were checked against the repository, cppreference, devguide.python.org, libgeos.org, proj.org, ubuntu.com, apple.com, brew.sh and github.com. Not meant to be committed; the file name contains a space.

Resolved in the second draft

  • Compiler table now matches the feature list (GCC 11 / Clang 14 / Apple Clang 15 / MSVC 19.30) and names the deferred features.
  • GEOS justification corrected (3.10 is EOL upstream).
  • PROJ floor raised past the CMake "distrust PROJ < 8 config" logic.
  • C99 baseline vs. opportunistic C23 #embed stated.
  • Windows Server 2022 / Windows 11 and macOS 14 / Xcode 15 added with reasons.
  • Java >= 17 added; wheel consequence added to Backward compatibility.
  • "tested up to CMake 4.4" removed; RasterLite dropped from the spelling list.

Still open (should fix)

  1. The Ubuntu 22.04 baseline now has four exceptions (Python 3.11, PROJ 9, GEOS 3.11, Java 17 vs. the openjdk-8 the CI image installs). Each is called out in its bullet, but the Details preamble still says minimums "match ... at least the versions shipped in ubuntu-22.04". Reword the preamble: "Ubuntu 22.04 is the baseline for the distribution packages; PROJ, GEOS, Python and Java are taken from UbuntuGIS / deadsnakes / source because the 22.04 packages are end-of-life upstream." Alternatively move the baseline to Ubuntu 24.04 (PROJ 9.4, GEOS 3.12, Python 3.12, OpenJDK 21, CMake 3.28, GCC 13), which removes all four exceptions and matches s390x/armhf CI images already on 24.04; the cost is dropping the ubuntu_22.04 and icc jobs, and the GitHub ubuntu-22.04 runner label is removed on 2027-04-17 anyway.

  2. .NET SDK >= 8.0 reaches end of support on 2026-11-10, essentially the GDAL 3.14 release date. .NET 10 (LTS) was released 2025-11-11. Suggest ".NET SDK >= 8.0 at the time of writing; the minimum tracks Microsoft's supported LTS releases", or jump to 10. The library TFM is netstandard2.0 (swig/csharp/CMakeLists.txt); only sample apps use a concrete net* TFM; C# 10 is tied to SDK 6 (SDK 8 defaults to C# 12).

  3. Poppler / libtiff bullets name guards that barely exist. One POPPLER_MAJOR_VERSION < 21 and one TIFFLIB_VERSION > 20210416 guard remain; most Poppler guards are for 25/26. Say "removes the remaining Poppler < 22 code paths".

  4. libspatialite >= 5.0.1 is a runtime, not a build-time, floor. The SQLite driver dlopen\ s spatialite and checks MakeSpatialiteVersionNumber(2/3/4, ...) at run time. State whether the runtime fallbacks are also to be removed.

  5. Python 3.10 EOL phrasing. "have reached end-of-life as of October 2026" is true only after 2026-10-31; write "by the time GDAL 3.14 is released".

  6. Superseding RFC 68. RFC 98 already superseded RFC 68; the rfc68_cplusplus11.rst edit in the working tree is unnecessary.

  7. Author line Kurt Schwehr, Gemini 4 Argon. Per RFC 111 LLM usage must be disclosed, but an LLM is not an author. Keep one human author and add a short "LLM usage" note.

  8. Windows bullet and MSVC. The compiler table now says VS 2022 only. windows_build.yml still has a Visual Studio 17 (2022) job and a windows-2025-vs2026 job, so this is consistent, but the sentence "Visual Studio 2022 is the oldest supported toolchain on those releases" is a GDAL decision, not a Microsoft fact (VS 2019 runs on Server 2022). Phrase it as a decision.

  9. macOS bullet: Apple Clang 15 vs. 14.0.3. The bullet justifies macOS 14 via Apple Clang 14.0.3 (Xcode 14.3, macOS 13) and then picks Xcode 15 for OS-support reasons. Fine, but the compiler table should say "Apple Clang

    = 15 (Xcode 15), the first Xcode for macOS 14" so a reader does not look for a 14.0.3 vs. 15 feature difference. Also note the macOS CI currently pins Xcode 26.3 on macOS-15 and uses macos-14 for conda; the macos-14 runner itself is slated for retirement in late 2026, so the floor will move to 15 within the 3.14 cycle.

  10. Java >= 17 and SWIG 4.0.2. The sentence "SWIG 4.0.2 generates code compatible with Java 17" is true, but swig/java/build.xml compiles with source="8" target="8" (lines 25 and 42); say explicitly that this moves to release="17" and that the Maven POM declares it.

Wording / structure recommendations

  • Add a rule of thumb mirroring RFC 98 ("all requirements correspond to software released at least N years before GDAL 3.14") and check it: PROJ 9.0 (2022-03) and Poppler 22.02 are the youngest at ~4.7 years; TileDB 2.15 (2023-03) at ~3.7 years.
  • Split the dependency list into "enforced by CMake" vs. "documented only". CMake enforces PROJ, GEOS, TIFF, CURL, PNG, SQLite3, Spatialite, RasterLite2, HDF5, NetCDF, Poppler, OpenJPEG, TileDB, Grok, GTest; it does not enforce OpenEXR, HEIF, Kakadu, ECW, libOpenDRIVE, SWIG, Java, Shapelib.
  • Keep the public-header promise CI-enforced: say the postinstall test (autotest/postinstall/test_cpp) stays at CXX_STANDARD 11 (or 17).
  • "Changes in continuous integration" should list the concrete job changes (see TASKS file); ubuntu_20.04 is used by three jobs plus coverity_scan and android_cmake uses a 20.04 host.
  • Promote the rolling policies (Python EOL, Ubuntu LTS, Windows/macOS runner retirement) into one "Policy" section so the next RFC is a table update.
  • Add a "Related tickets / pull requests" section (RFC 98 had one).
  • State the 3.14 release month so the dependency-age argument is checkable.

Suggested additions

  • NumPy: with Python >= 3.11 the build can require NumPy >= 2.0 at build time and NumPy >= 1.23 at run time; the oldest-supported-numpy branch in swig/python/pyproject.toml disappears.
  • Arrow/Parquet, libxml2, expat, zlib, libdeflate, zstd, LERC, libjpeg, libgeotiff, WebP, json-c, libkml, PostgreSQL, ODBC, Qhull, Armadillo: list with Ubuntu 22.04 versions or state they are intentionally unconstrained.
  • conda-forge / vcpkg / Homebrew / MSYS2: one sentence that they exceed the floor.
  • Compiler flag policy: whether CMAKE_CXX_STANDARD=23 (used by the Alpine and Fedora CI) remains supported.

Suggested subtractions

  • Drop ECW >= 3.3 and Kakadu >= 7.5 from the headline list (proprietary, unchanged, not CMake-checked); mention once under "retained".
  • Drop Shapelib >= 1.5.0 or align CMake (fallback threshold is 1.4.0).
  • Drop librasterlite2 >= 1.1.0: Ubuntu 22.04 ships 1.1.0~beta1.
  • Fold "Changes in SWIG bindings" into Details.

Facts verified

  • Ubuntu 22.04: GCC 11.4, Clang 14, CMake 3.22.1, Python 3.10.12, PROJ 8.2.1, GEOS 3.10.2, SWIG 4.0.2, OpenJDK 11/17, GTest 1.11.0, curl 7.81, libtiff 4.3, libpng 1.6.37, SQLite 3.37.2, Spatialite 5.0.1, HDF5 1.10.7, netCDF 4.8.1, OpenEXR 2.5.7, libheif 1.12.0, Poppler 22.02, OpenJPEG 2.4.0, Shapelib 1.5.0.
  • Python 3.10 EOL 2026-10-31. .NET 8 EOS 2026-11-10; .NET 10 LTS 2025-11-11.
  • PROJ 9.0.0 2022-03-01. GEOS 3.10.x EOL per libgeos.org; 3.11.x EOL 2026-07.
  • std::bit_cast: GCC 11 / Clang 14 / Apple Clang 14.0.3 / MSVC 19.27. Xcode 14.3 requires macOS 13; Xcode 15 requires macOS 13.5+ and is the first Xcode for macOS 14.
  • Windows 10 EOS 2025-10-14; Windows Server 2019 mainstream EOS 2024-01-09; GitHub windows-2019 runner retired 2025-06-30.
  • GitHub macos-13 runner retired 2025-12; ubuntu-22.04 runner deprecated 2026-09-17, removed 2027-04-17.
  • Grok latest v20.4.17; libOpenDRIVE 0.6.0 exists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment