From a8826bd5d7288402fb0e83b9745e626e9fc528e4 Mon Sep 17 00:00:00 2001 From: Daniel Moody Date: Mon, 18 May 2026 14:18:10 +0000 Subject: [PATCH] Revert "SERVER-105043 Upgrade to LLVM 22 toolchain" GitOrigin-RevId: 1ba468e00fc8f04c464d9df805bf66d5c9ea1877 --- MODULE.bazel.lock | 4 +- bazel/repository_rules/profiling_data.bzl | 8 +- .../cc/mongo_linux/mongo_gdb_version_v5.bzl | 110 +++++++++--------- .../mongo_linux_cc_toolchain_config.bzl | 3 - .../mongo_linux/mongo_toolchain_flags_v5.bzl | 6 +- .../mongo_toolchain_version_v5.bzl | 110 +++++++++--------- evergreen/generate_clang_tidy_report.py | 30 +++-- .../mongo_tidy_checks/MongoTidyModule.cpp | 1 + .../protobuf/dist/build_defs/cpp_opts.bzl | 7 +- 9 files changed, 136 insertions(+), 143 deletions(-) diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 06b9c109ab3..0ed299e4c4d 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -249,7 +249,7 @@ "moduleExtensions": { "//bazel:bzlmod.bzl%bazel_features_deps": { "general": { - "bzlTransitiveDigest": "C9iJZULa/gIglBX8Lt+0bgepOigpMhxHwglLnKBMv7g=", + "bzlTransitiveDigest": "G/WD+JnQT596GnXuqRV363uynmjbkk1qeefCHRtgT3Y=", "usagesDigest": "c91kQ0HotoA1cfwWU4KaqCoQU7lT6pGi6XPGIiMGkb0=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, @@ -356,7 +356,7 @@ }, "//bazel:bzlmod.bzl%setup_mongo_python_toolchains": { "general": { - "bzlTransitiveDigest": "C9iJZULa/gIglBX8Lt+0bgepOigpMhxHwglLnKBMv7g=", + "bzlTransitiveDigest": "G/WD+JnQT596GnXuqRV363uynmjbkk1qeefCHRtgT3Y=", "usagesDigest": "bUxjq9n+hj2YwYT/lcSP4lHyQ2GVy5JpFgSmddUqUZg=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, diff --git a/bazel/repository_rules/profiling_data.bzl b/bazel/repository_rules/profiling_data.bzl index d2fe6eefcf7..3697d7a3948 100644 --- a/bazel/repository_rules/profiling_data.bzl +++ b/bazel/repository_rules/profiling_data.bzl @@ -1,13 +1,13 @@ # This file gets automatically updated by profile_data_pr.py. Do not change the path to this file or variables in this file # without updating that script. -DEFAULT_CLANG_PGO_DATA_URL = "https://mdb-build-public.s3.us-east-1.amazonaws.com/profiling_data/pgo/mongod_b840c596c0a1f61b60b0678ae28bc6b037286522_aarch64_clang_thinlto_pgo_9.0.0-alpha0-patch-6a087d861e081e000702ee61.profdata" -DEFAULT_CLANG_PGO_DATA_CHECKSUM = "6fea88e8b13fd30ecebd2da3b028608d0f249963ae6b0c38b1ce3d952fcf5326" +DEFAULT_CLANG_PGO_DATA_URL = "https://mdb-build-public.s3.us-east-1.amazonaws.com/profiling_data/pgo/mongod_644d85ded088e94dc374d04458fbb265a4bafea1_aarch64_clang_thinlto_pgo_9.0.0-alpha0-1318-g644d85d-patch-69e9ebddaa38170007e794c5.profdata" +DEFAULT_CLANG_PGO_DATA_CHECKSUM = "4f0b0f9794f215141f71cdf29c45551d847622c8ec41740d5d8551cf00ce373c" DEFAULT_GCC_PGO_DATA_URL = "https://mdb-build-public.s3.us-east-1.amazonaws.com/profiling_data/pgo/mongod_efcbfdbb937f52078925254ed32fbca7901b4ae6_aarch64_gcc_lto_pgo_8.3.0-alpha0-1055-gefcbfdb-patch-68bfb348576a720007510f50.tgz" DEFAULT_GCC_PGO_DATA_CHECKSUM = "29b9d919abdccb4a2eeb38670e0489312792700559eb7282e0b02fe2f5ec7744" -DEFAULT_BOLT_DATA_URL = "https://mdb-build-public.s3.us-east-1.amazonaws.com/profiling_data/bolt/mongod_b840c596c0a1f61b60b0678ae28bc6b037286522_aarch64_clang_thinlto_pgo_bolt_9.0.0-alpha0-patch-6a087d861e081e000702ee61.fdata" -DEFAULT_BOLT_DATA_CHECKSUM = "3fdbc61861d1a0fa3a59a87bf61d56b465e4f3ac548120d07cb93dbdfac03845" +DEFAULT_BOLT_DATA_URL = "https://mdb-build-public.s3.us-east-1.amazonaws.com/profiling_data/bolt/mongod_644d85ded088e94dc374d04458fbb265a4bafea1_aarch64_clang_thinlto_pgo_bolt_9.0.0-alpha0-1318-g644d85d-patch-69e9ebddaa38170007e794c5.fdata" +DEFAULT_BOLT_DATA_CHECKSUM = "a042d34adf574aff486e93a99292ffd60943a75d06d23feac5ea078470e385ac" # CSPGO is a pre-merged profdata combining stage-1 PGO data with stage-2 context-sensitive # data. Populate these once a profile has been generated and uploaded. This is currently diff --git a/bazel/toolchains/cc/mongo_linux/mongo_gdb_version_v5.bzl b/bazel/toolchains/cc/mongo_linux/mongo_gdb_version_v5.bzl index 23026fba15e..93e69e21e7d 100644 --- a/bazel/toolchains/cc/mongo_linux/mongo_gdb_version_v5.bzl +++ b/bazel/toolchains/cc/mongo_linux/mongo_gdb_version_v5.bzl @@ -1,125 +1,125 @@ # Use mongo/bazel/toolchains/mongo_toolchain_version_generator.py to generate this mapping for a given patch build. -TOOLCHAIN_ID = "7553752a78d885cc2f60c725bfb5cd66e4c4e02b" +TOOLCHAIN_ID = "e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd" TOOLCHAIN_MAP_V5 = { "amazon_linux_2023_aarch64": { "platform_name": "amazon2023-arm64", - "sha": "a9c260b5dfabc88c84afe83f32ba085269b40e5b9c8b84bc935053b55b6ac4f0", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-amazon2023-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "35b5a1e65f0ef093a335003e004bf679215adcdf04988d1fcd0e2a2ebfba9a11", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-amazon2023-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "amazon_linux_2023_x86_64": { "platform_name": "amazon2023", - "sha": "b59b16d53b6b5127aa7419d71198bb9bc1af0896ca3ed98c5f12997da7b89804", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-amazon2023-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "7f426456d7492a85ee27b3d091b322080842bf9bc554ee58126de959c2a179c0", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-amazon2023-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "amazon_linux_2_aarch64": { "platform_name": "amazon2-arm64", - "sha": "356d585508ff8a846eb572ac81b8d44d57035442eca3be8bad429747167c11f4", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-amazon2-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "d18508525aa688def6ea1f2c9dff41025e4f2805be06b4b06c122b0ce0225a62", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-amazon2-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "amazon_linux_2_x86_64": { "platform_name": "amazon2", - "sha": "6e4137f27dfe8ad529464b45aaa79e28d5931ee5ae32614dbfa2fae4c2c3b142", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-amazon2-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "dd688bbdab117289ddc10d49bc845465a2cbab484b9506a2e94cd4f0999e0b73", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-amazon2-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "debian10_x86_64": { "platform_name": "debian10", - "sha": "81f19d34c452e0b84820aa0e5015c46486bea86b108cd5b90121f8ed7a25099f", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-debian10-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "ad3148d8431e2b4d59c5e5ca5666da4ac595705f13892ed426531af4b721f745", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-debian10-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "debian12_x86_64": { "platform_name": "debian12", - "sha": "b9fea161c61b97e3f97b64da7e085020f980dd5e9cfd81a35ca5dc271e3faf87", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-debian12-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", - }, - "rhel10_aarch64": { - "platform_name": "rhel10-arm64", - "sha": "7575be150d1d7e13d9a80cb3a70329fb9cec045bcdc745c6e4c94ea6fd2f4336", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel10-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", - }, - "rhel10_x86_64": { - "platform_name": "rhel10", - "sha": "679f501f0c50d71dcd35c9d420de6273e30b63cdc7e7b04ca86ea3e9256a9485", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel10-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "8e90d3ee0d0f2fcb01823ad305c0da3a3325d2d444d72faa4b58c849b28898fe", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-debian12-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel8_aarch64": { "platform_name": "rhel82-arm64", - "sha": "5569fb6245f9b5b5bcaad4ac1d33688b919df4ee8a84ee8aa38d8de73c58a21c", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel82-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "e3b8f4029bdaba8cc651923f2bb1b00fa98c292661bb3b20b3844d99c83f9677", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel82-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel8_ppc64le": { "platform_name": "rhel81-ppc64le", - "sha": "b8a29cd514cd3bd3da1ac4d4b6f5933129e356bca52bc978d952227afdad9885", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel81-ppc64le-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "c7b305b523dcdebb60f9e4816a346a68512b3d8582d28030c9c1e92fce9ac63f", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel81-ppc64le-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel8_s390x": { "platform_name": "rhel80-zseries", - "sha": "1c78442c942c451895c72ff5071d762ed021a50f403eb3d5e14494515b93794e", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel80-zseries-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "882791361c8c9342e6077b0bba0dd7dc836b79733d87df4fa782ebd82aafd459", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel80-zseries-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel8_x86_64": { "platform_name": "rhel80", - "sha": "7ba715e168a1b48f6bc551f02d4b993aa7472ecd84b85c4b072122cdea0b084b", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel80-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "89c93598ee74437d942d9912b7d1d4eee91509c463129d0fbde34edf38552e48", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel80-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel9_aarch64": { "platform_name": "rhel90-arm64", - "sha": "940412515804afb06ae900b4c5bca853184311bbdae6c2afe2c307ac23acde0c", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel90-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "f2258a3790fd218d38a4aa46d6cdd2808599b575b6d709c4286f853959ae55b3", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel90-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel9_ppc64le": { "platform_name": "rhel90-ppc64le", - "sha": "76c1a20b579f37bbbce25580ab9359e7e0d4f1300204f735e9ff2c5c177451ec", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel90-ppc64le-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "ff3f0e3822c7dcd2671e10005b571752659f3ec891e35944ef8c698fc4282cea", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel90-ppc64le-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel9_s390x": { "platform_name": "rhel90-zseries", - "sha": "fb26505e05567d2e9f3b0b2d2e0ab7b97040f39f4cb2747ee128faa39fe5e161", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel90-zseries-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "a42fec995cd17c784739eb58aab14dd3f360219791690b899918befac7a59d12", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel90-zseries-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel9_x86_64": { "platform_name": "rhel90", - "sha": "138dbf0c3a80e6aca597a17832b48a6f8d4b5a7c410100941e39451de1a55d88", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel90-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "7fbbf982b84461daf9dc92cced727341c088d434726e99d00aa573a146c54bb1", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel90-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", + }, + "rhel10_x86_64": { + "platform_name": "rhel10", + "sha": "4f8bf9a3ce2454a6ce2636e45746dc2a25de139413fe2e60c28aac9b44b07df9", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel10-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", + }, + "rhel10_aarch64": { + "platform_name": "rhel10-arm64", + "sha": "52869b742dc8a3550d9656187a4c0e8f95fe8bea542949c25717557cbfbafd42", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-rhel10-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "suse15_x86_64": { "platform_name": "suse15", - "sha": "7a7f31b176113b8057a24efb03952b69ad40c25a6745f43182a4a8511b0ed72f", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-suse15-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "6cb677ab126f091a2940597fbd551dcc65497f045406989e5283b7b4af62d485", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-suse15-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu18_x86_64": { "platform_name": "ubuntu1804", - "sha": "d29c585e14b48a4598f1d1a1ee93425c050746967c025f7c0d250c5857845a91", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu1804-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "8a41f2fe2229da16e110fbb6aaae6cb0166104996645823cf0bbcf1777a98705", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu1804-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu20_aarch64": { "platform_name": "ubuntu2004-arm64", - "sha": "b7242425f01ea70620f1db490d74cc292dbb0cd1310dc6229a884e989ff44190", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu2004-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "9389650ff9b3970b34202e70ae9b1f5076b5bd24cc03cad949947237df1f7f60", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu2004-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu20_x86_64": { "platform_name": "ubuntu2004", - "sha": "ac1012a4d52dcfc0273353acdf375800d2ac42ded2efabfc8c47dbd30c4fac12", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu2004-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "eee64048853a95385b969670cc72a61ecf0a1794798a6a4ff6acb54907ae7ac8", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu2004-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu22_aarch64": { "platform_name": "ubuntu2204-arm64", - "sha": "4d68bd69ff3bc57aa9f870ba9cce38afee7d65713e4a0eae09845e5fdaee6821", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu2204-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "45bd4ef3898dd4ef8999d578a282d0693272e7f0b66fb0d29539631b73e53f4d", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu2204-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu22_x86_64": { "platform_name": "ubuntu2204", - "sha": "ff802afe26798075cc853fb0c68724472782ebe32f250042e9c2313448b68497", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu2204-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "8a137776d93ec875af42ad87d718d08be0a5a5ffdec568557f1d3a7e311f29bd", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu2204-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu24_aarch64": { "platform_name": "ubuntu2404-arm64", - "sha": "db58f1a51bdda3bb06f6714104052abceaf229c62ab01359a24bd5f78a9cf1a5", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu2404-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "f5cdf5ca33b6f387952ca69550434d0a76fab309400b9d99380c47b4c497809a", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu2404-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu24_x86_64": { "platform_name": "ubuntu2404", - "sha": "f111ae80389ae91231596eea48af30bb910cbf32e292569767aa003c6e8cb3a7", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu2404-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "c57c869d58cc4a1397e8286bc7971b22f4f21d792b3c783af76a5eca749a75f9", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_gdb-ubuntu2404-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, } diff --git a/bazel/toolchains/cc/mongo_linux/mongo_linux_cc_toolchain_config.bzl b/bazel/toolchains/cc/mongo_linux/mongo_linux_cc_toolchain_config.bzl index 1fb0ad7fe7d..8f0e7769b3a 100644 --- a/bazel/toolchains/cc/mongo_linux/mongo_linux_cc_toolchain_config.bzl +++ b/bazel/toolchains/cc/mongo_linux/mongo_linux_cc_toolchain_config.bzl @@ -2006,9 +2006,6 @@ def _impl(ctx): "-Wno-missing-template-arg-list-after-template-kw", "-Wno-sign-compare", "-Wno-implicit-fallthrough", - "-Wno-deprecated-literal-operator", - "-Wno-character-conversion", - "-Wno-unnecessary-virtual-specifier", "-Wno-shorten-64-to-32", "-Wno-unused-but-set-variable", "-Wno-nullability-completeness", diff --git a/bazel/toolchains/cc/mongo_linux/mongo_toolchain_flags_v5.bzl b/bazel/toolchains/cc/mongo_linux/mongo_toolchain_flags_v5.bzl index abad4de2aed..7de584906af 100644 --- a/bazel/toolchains/cc/mongo_linux/mongo_toolchain_flags_v5.bzl +++ b/bazel/toolchains/cc/mongo_linux/mongo_toolchain_flags_v5.bzl @@ -4,8 +4,6 @@ COMMON_LINK_FLAGS = [ "external/mongo_toolchain_v5/v5/lib64", ] -CLANG_MAJOR_VERSION = "22" - COMMON_BUILTIN_INCLUDE_DIRECTORIES = [ "/usr/include/openssl", "/usr/include/{arch}-mongodb-linux", @@ -31,7 +29,7 @@ GCC_INCLUDE_DIRS = [ CLANG_INCLUDE_DIRS = [ "external/mongo_toolchain_v5/stow/gcc-v5/include/c++/14.2.0/backward", - "external/mongo_toolchain_v5/stow/llvm-v5/lib/clang/%s/include" % CLANG_MAJOR_VERSION, + "external/mongo_toolchain_v5/stow/llvm-v5/lib/clang/19/include", ] -CLANG_RESOURCE_DIR = "external/mongo_toolchain_v5/stow/llvm-v5/lib/clang/%s/" % CLANG_MAJOR_VERSION +CLANG_RESOURCE_DIR = "external/mongo_toolchain_v5/stow/llvm-v5/lib/clang/19/" diff --git a/bazel/toolchains/cc/mongo_linux/mongo_toolchain_version_v5.bzl b/bazel/toolchains/cc/mongo_linux/mongo_toolchain_version_v5.bzl index 39e1660a89e..315d4583c34 100644 --- a/bazel/toolchains/cc/mongo_linux/mongo_toolchain_version_v5.bzl +++ b/bazel/toolchains/cc/mongo_linux/mongo_toolchain_version_v5.bzl @@ -1,125 +1,125 @@ # Use mongo/bazel/toolchains/mongo_toolchain_version_generator.py to generate this mapping for a given patch build. -TOOLCHAIN_ID = "7553752a78d885cc2f60c725bfb5cd66e4c4e02b" +TOOLCHAIN_ID = "e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd" TOOLCHAIN_MAP_V5 = { "amazon_linux_2023_aarch64": { "platform_name": "amazon2023-arm64", - "sha": "1bfb3fc927b5192dc1ca6cda27e8f59475457dc2f2e5612cc347ceec506ddbde", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-amazon2023-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "9a108875e80d5ad9f3ff2c09c99da5951dedb66e9e3955397fad93783030db02", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-amazon2023-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "amazon_linux_2023_x86_64": { "platform_name": "amazon2023", - "sha": "10f396b44ae5c5d59ed2333ff2ae8324e6e414101ea479a0eb2984781774375e", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-amazon2023-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "0b695d60913053f4d7194a02078e995be237051bd66ec622901e514b7ec6c10d", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-amazon2023-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "amazon_linux_2_aarch64": { "platform_name": "amazon2-arm64", - "sha": "106b74f06cf8539bcf0873a5f00391ea75703b32730b2385e564f12bc22b44e4", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-amazon2-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "882fa1b2eff34c02058313106a6e2e674c8c88afaf1345d1a215dd984796d61f", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-amazon2-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "amazon_linux_2_x86_64": { "platform_name": "amazon2", - "sha": "898097ebfaf7a5114513dc354587326434631ae8866449328fa7c8aa0ed494bd", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-amazon2-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "9428b646820413069bdda10d6cf14bce036866d0b9d3f031b2c1c82e2f5824d7", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-amazon2-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "debian10_x86_64": { "platform_name": "debian10", - "sha": "119e234e4465ff789583b93e7a84e775e2b63da7150ec4bf26c813ce69fe515d", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-debian10-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "f3441a16c478b833e4c822c1afd191328c8270ca22e23f81b62d5b3de5b9f21c", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-debian10-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "debian12_x86_64": { "platform_name": "debian12", - "sha": "94b13eb9175567b2db7f9a3ee0abb1a1b619534a9bef0c7a6a21120c9ab5f926", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-debian12-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", - }, - "rhel10_aarch64": { - "platform_name": "rhel10-arm64", - "sha": "dde61dd4f4873823da7b7071f12958433cc87ad1a3b503d025506d77204360c8", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel10-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", - }, - "rhel10_x86_64": { - "platform_name": "rhel10", - "sha": "983bf4656b180713496fcc48b5a91bfc82db3e037eb399ebc5759e94117c1f81", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel10-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "783294fe1418f4ad5ea522a3956f842517dd99297a2e694f7cc2abbc13acfd3c", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-debian12-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel8_aarch64": { "platform_name": "rhel82-arm64", - "sha": "ae717babeeebc484b1e597e3f73bbe3a36bab46acb541ea093dcae6924ae2ef6", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel82-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "2c49497e4c95577e67d8fd87923f76faf8140906b78c45a941dee7d90572ec4a", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel82-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel8_ppc64le": { "platform_name": "rhel81-ppc64le", - "sha": "e3b8aa095c6531997156f09fcb7e2502657a6f511b3b42817b4808864408dce5", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel81-ppc64le-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "4d7f05fbc368794b5598e391e56e7e209cae71cc034e93d307b7f84d0c60e8b2", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel81-ppc64le-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel8_s390x": { "platform_name": "rhel80-zseries", - "sha": "4412c5b79436959361894445ad2c90da740907fd3acfefbd650392a856ce969e", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel80-zseries-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "2e72e68190ea0210ee4e23c07bbcb699fd2e6f47d06ed6d69878c25eb2f28cbd", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel80-zseries-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel8_x86_64": { "platform_name": "rhel80", - "sha": "f28843500d206337af7172de633b63b21edb3ad8536e87d6261c02d56c514e12", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel80-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "3dbf36b9db8c9fb8e9ad7f7697ce50b9360b4e23a26a47c92335cad4abef33dd", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel80-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel9_aarch64": { "platform_name": "rhel90-arm64", - "sha": "142fd6b25bf47dabc71f6086f7dbf37c49c36265c75209fdf4638b90455610b6", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel90-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "72beac176dc767365a34507792dc76ebfb1fff4733071aba97d341d52cfad9e6", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel90-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel9_ppc64le": { "platform_name": "rhel90-ppc64le", - "sha": "1fd7f0cf60f950e96439c712b76e642e655d334b23d9768f50fe26d16e8adf4d", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel90-ppc64le-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "36d73a7dfa93fd9cc683ab4f6abb793ee53fabf6ff218cc9155ec3fbedb7ef32", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel90-ppc64le-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel9_s390x": { "platform_name": "rhel90-zseries", - "sha": "31663c778abd241eb1ae68d40ab9bc93ac1921a0701fd8f26c990466c9d0b59f", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel90-zseries-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "61d61b47b9fcd69180f423ba17cba61a68022fd2f7165a8fad25f2ab15cf7c29", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel90-zseries-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "rhel9_x86_64": { "platform_name": "rhel90", - "sha": "e735bb498db85bf6bf77982c0cd1cfb68a8cb452cbb73d7e3adab80460a48f5a", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel90-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "68c06343ccaf9114ca4b817e182563ff1fbb7db987c1e7d822e530243544d52e", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel90-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", + }, + "rhel10_x86_64": { + "platform_name": "rhel10", + "sha": "5aa5980fa2fe96a2ddaf9c8c43a9850273e70af766e25150a0c700f91635eb11", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel10-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", + }, + "rhel10_aarch64": { + "platform_name": "rhel10-arm64", + "sha": "664a86f9c6286b756009d901c46a5e3504a6d1c36ebb2ae813dfc0a0fdebaa49", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-rhel10-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "suse15_x86_64": { "platform_name": "suse15", - "sha": "6a5cddab314d2998075b89f835840bca56a98f41f34a1dbd029481f739451f59", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-suse15-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "2040c679283bf0572d38c28db5108b97b552fb06b15ba6788d494c066929e6d3", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-suse15-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu18_x86_64": { "platform_name": "ubuntu1804", - "sha": "197b95ed692bdeed58d7268a4047189a668a60927477e6e8616fbde1d2a18869", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu1804-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "1d4282320a0066295fab70cfff0008094462792c83ea0245e85e71ae3ef6a25c", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu1804-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu20_aarch64": { "platform_name": "ubuntu2004-arm64", - "sha": "5a3ba7601bd7e199a4e489e58ecfea9ee6c5ea7b7faf270bf1b1f62fce193113", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu2004-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "138334adc0c88d9297a25c1fa0523e161f3aa462431529a6669cc99892b308f3", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu2004-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu20_x86_64": { "platform_name": "ubuntu2004", - "sha": "4403bd4b9e7a850a1dbdb7a929711d485251326842a0e03f95d07d9f83def59d", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu2004-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "d6625c21f710fdfd9a2ae71dc964a9f75b2e3b976bd6c8638d35ef4cda7d77dc", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu2004-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu22_aarch64": { "platform_name": "ubuntu2204-arm64", - "sha": "6540024f475776ad78c8c02cb45001ad07a5de6c400d7f558e0b8a9b60b14ca2", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu2204-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "ff7ac45e2633e8b0e2574f369301126e6520985ff9e78290d804d8e47b7f8308", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu2204-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu22_x86_64": { "platform_name": "ubuntu2204", - "sha": "c3a870943e5a5dca0bd87fc6b9e97c96a2b43c47531dc2e90f792683eacd82f5", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu2204-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "0dfccd57cc453e4708e6937b36e4f0e70de51379007b434d2cb88b1f09afe910", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu2204-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu24_aarch64": { "platform_name": "ubuntu2404-arm64", - "sha": "12fc1e0cd8630b40d28d4779540bee1779b08106bde295cdf86a541023bd0f2e", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu2404-arm64-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "fb1e08443a0b71c5722fd8cd85a780f853947141fe47c131f3c50143f5bbaac8", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu2404-arm64-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, "ubuntu24_x86_64": { "platform_name": "ubuntu2404", - "sha": "783f810e1bfac14e0afb31145af56df7457870145cf60c68546c4dcf35e8fc11", - "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu2404-7553752a78d885cc2f60c725bfb5cd66e4c4e02b.tar.gz", + "sha": "44581b6a7e0df623cecc6a9f56c958f4a981293a9df338c5a95a5aa08310fd0a", + "url": "https://s3.amazonaws.com/boxes.10gen.com/build/toolchain/bazel_v5_toolchain-ubuntu2404-e921fc32d5c23d7cdb5cf406b05bf16eb5ab8dbd.tar.gz", }, } diff --git a/evergreen/generate_clang_tidy_report.py b/evergreen/generate_clang_tidy_report.py index 05b7b00500e..ecd28a5b75e 100644 --- a/evergreen/generate_clang_tidy_report.py +++ b/evergreen/generate_clang_tidy_report.py @@ -32,25 +32,21 @@ if clang_tidy: raise ValueError(f"Unexpected status file format: {filename}") source_file = ".".join(parts[:2]) target_name = parts[2] - target_dir_match = re.search( + target_dir = re.search( r"bazel-bin/(.*)/bazel_clang_tidy_src/", log_file - ) - if target_dir_match is not None: - target_dir = target_dir_match.group(1) - target = f"//{target_dir}:{target_name}" - content += f"Run 'bazel build --config=clang-tidy --keep_going {target}' to reproduce this error" + ).group(1) + target = f"//{target_dir}:{target_name}" + content += f"Run 'bazel build --config=clang-tidy --keep_going {target}' to reproduce this error" - failures.append( - [ - os.path.join( - re.sub("^.*/bazel_clang_tidy_src/", "src/", root, 1), - source_file, - ), - content, - ] - ) - else: - print(f"no clang tidy dir found in output: {log_file}") + failures.append( + [ + os.path.join( + re.sub("^.*/bazel_clang_tidy_src/", "src/", root, 1), + source_file, + ), + content, + ] + ) with open("bazel-invocation.txt", "w") as f: f.write("bazel build --config=clang-tidy //src/mongo/...") diff --git a/src/mongo/tools/mongo_tidy_checks/MongoTidyModule.cpp b/src/mongo/tools/mongo_tidy_checks/MongoTidyModule.cpp index 89823947277..33cfbe1436f 100644 --- a/src/mongo/tools/mongo_tidy_checks/MongoTidyModule.cpp +++ b/src/mongo/tools/mongo_tidy_checks/MongoTidyModule.cpp @@ -54,6 +54,7 @@ #include #include #include +#include namespace mongo { namespace tidy { diff --git a/src/third_party/protobuf/dist/build_defs/cpp_opts.bzl b/src/third_party/protobuf/dist/build_defs/cpp_opts.bzl index 51b348575bf..92f4e92e9c2 100644 --- a/src/third_party/protobuf/dist/build_defs/cpp_opts.bzl +++ b/src/third_party/protobuf/dist/build_defs/cpp_opts.bzl @@ -18,9 +18,10 @@ COPTS = select({ ], "//build_defs:config_clang": [ "-Wno-sign-compare", - # (spencer) `a9dff35ad251` | [Clang] Enable -fextend-lifetimes at -Og (#118026) - # prevents clang from correctly interacting with LimitToken's poisoned stack memory. - "-fextend-variable-liveness=none", + # TODO SERVER-105043: Enable when we reapply llvm 21 + # # (spencer) `a9dff35ad251` | [Clang] Enable -fextend-lifetimes at -Og (#118026) + # # prevents clang from correctly interacting with LimitToken's poisoned stack memory. + # "-fextend-variable-liveness=none", ], "//conditions:default": [ "-Wno-sign-compare",