Skip to content

Fix the default C++17 build with GCC 15 - #628

Open
XSY-28 wants to merge 1 commit into
ClickHouse:masterfrom
XSY-28:fix/gcc-15-cxx17-421
Open

XSY-28 wants to merge 1 commit into
ClickHouse:masterfrom
XSY-28:fix/gcc-15-cxx17-421

Conversation

@XSY-28

@XSY-28 XSY-28 commented Nov 24, 2026 •

Copy link
Copy Markdown

Summary

Fixes #421. Use the standard library's <version> header when it is available in C++17. GCC 15 deprecates <ciso646> in this mode, and the default vendored Abseil build treats that warning as an error. The header selection keeps the existing fallback for older toolchains.

Validation

  • Official GCC 15.1.0 on Linux arm64. Before the change, the CMake/Ninja build stopped at int128.cc with -Werror=cpp. The patched build completed with the same options, including BUILD_TESTS=ON.
  • Compiled the affected translation unit in C++17 and C++20 with GCC 15.1.0 and Apple Clang 21. Verified the C++17 fallback when <version> is unavailable and confirmed an unrelated preprocessor warning still fails compilation.
  • Passed 33 existing bignum and decimal unit tests.

Changelog category

Bug Fix

Changelog entry

Fix the default C++17 build with GCC 15 when using vendored Abseil.

OpenAI Codex generated and tested the patch.


Note

Low Risk
Single vendored header include guard change; no auth, data, or API behavior changes beyond avoiding a deprecated-header compile failure.

Overview
Updates vendored Abseil options.h so C++17 builds prefer <version> when the compiler provides it (__has_include), instead of always pulling in <ciso646> below C++20.

GCC 15 deprecates <ciso646> in C++17 mode; with warnings-as-errors that broke the default vendored Abseil build. Older toolchains without <version> still use the <ciso646> fallback unchanged.

Reviewed by Cursor Bugbot for commit e5d657b. Bugbot is set up for automated code reviews on this repo. Configure here.

@XSY-28
XSY-28 requested review from a team and slabko as code owners November 24, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

g++ 15.1.1 compile warning "<ciso646> is deprecated in C++17

1 participant