Part of the Evergreen ubuntu2004 host pool now carries mongodbtoolchain v5 with clang 22.1.0. mongodb-8.2, 8.0 and 7.0 build with -Weverything -Werror and lack -Wno-c++-compat in cmake/strict/clang_strict.cmake, so clang 22's new -Wc++-compat warnings (-Wimplicit-void-ptr-cast, -Wc++-hidden-decl) fail every clang task that lands on such a host. develop, 9.0 and 8.3 already have the flag from WT-14684 (commit 1b837ac578).
Example failing patch: https://spruce.corp.mongodb.com/version/6a97dfa3e2d7a40007312906
Scope:
- Backport -Wno-c++-compat to mongodb-8.2, 8.0, 7.0.
- Fix the remaining clang 22 -Wimplicit-int-conversion hits not covered by the flag (40 on 8.2, e.g. src/include/bitstring_inline.h:391).
- dist/s_clang_scan pins clang 19.1.7 on 8.2 and develop, 12.0.1 on 8.0 and 8.1; update or relax the pin so clang-analyzer runs on the current toolchain. develop is affected by the pin too.
- mongodb-8.1 has no Evergreen project; include only if cheap.
Verify with an Evergreen patch per branch on ubuntu2004, ubuntu2004-asan, ubuntu2004-minimal.
| Branch | Has -Wno-c++-compat | Evergreen clang | Status |
|---|---|---|---|
| develop, 9.0, 8.3 | yes | toolchain v5 | ok |
| 8.2 | no | v5 | confirmed failing on clang 22 hosts |
| 8.0 | no | v5 | exposed, will fail on clang 22 hosts |
| 7.0 | no | v5 | exposed, will fail on clang 22 hosts |
| 8.1 | no | no Evergreen project | potentially exposed |
- is related to
-
WT-12630 Cannot compile WiredTiger on Clang 17
-
- Closed
-
-
WT-14193 Fix type error in printf() in packing-test.c when using the v5 toolchain
-
- Closed
-
-
WT-17852 Fix PPC clang backend crash compiling PALite
-
- Closed
-
-
WT-14684 Disagg testing: add PALite, an alternative PALI mock implementation that uses SQLite
-
- Closed
-
-
WT-14121 Ignore switch statement (lack of) default warning for Ubuntu tests
-
- Closed
-
-
WT-14192 Ignore pre-c11-compat errors
-
- Closed
-
-
WT-15316 Update nlohmann/json to avoid compilation warnings
-
- Closed
-
-
WT-16245 Fix missing prototypes for catch2 tests
-
- Closed
-
-
WT-16893 For disagg, create a way to debug ingest table errors
-
- Closed
-
-
WT-18090 "installer.sh: No such file or directory" message is masking real failures
-
- Closed
-
- related to
-
WT-17840 s_all errors due to unpinned clang-format version
-
- Closed
-
-
WT-18126 "HttpError: Resource not accessible by integration" error in "PR Checklist / add-comment" GitHub action
-
- Closed
-