From 7a63336297b3c61cbfb7168963caaa9faa622f41 Mon Sep 17 00:00:00 2001 From: Nikola Radakovic Date: Thu, 27 Aug 2026 14:59:18 +0200 Subject: [PATCH] Bump version of GCC toolchains and add cpp policies With new version of toolchains we also need to add score_cpp_policies. --- MODULE.bazel.lock | 60 ++++++++++++++++--- .../score_gcc_toolchains.MODULE.bazel | 21 ++++++- .../score_qnx_toolchains.MODULE.bazel | 12 ++++ 3 files changed, 85 insertions(+), 8 deletions(-) diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 8b3ee03d415..96ae1c54b6a 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -316,6 +316,7 @@ "https://bcr.bazel.build/modules/opentracing-cpp/1.6.0/MODULE.bazel": "b3925269f63561b8b880ae7cf62ccf81f6ece55b62cd791eda9925147ae116ec", "https://bcr.bazel.build/modules/opentracing-cpp/1.6.0/source.json": "da1cb1add160f5e5074b7272e9db6fd8f1b3336c15032cd0a653af9d2f484aed", "https://bcr.bazel.build/modules/package_metadata/0.0.2/MODULE.bazel": "fb8d25550742674d63d7b250063d4580ca530499f045d70748b1b142081ebb92", + "https://bcr.bazel.build/modules/package_metadata/0.0.3/MODULE.bazel": "77890552ecea9e284b5424c9de827a58099348763a4359e975c359a83d4faa83", "https://bcr.bazel.build/modules/package_metadata/0.0.6/MODULE.bazel": "341dab6f417197494517d54c8e557c0baee1de7aec83543a4fbefe57900acb7e", "https://bcr.bazel.build/modules/package_metadata/0.0.7/MODULE.bazel": "7adb03933fc8401f495800cf4eafcff0edc6da0ff55c7db223ef69d19f689486", "https://bcr.bazel.build/modules/package_metadata/0.0.7/source.json": "50639625e937b56115012674c797cca7a05a96b4878c87d803c13dc2b31de8a0", @@ -328,7 +329,8 @@ "https://bcr.bazel.build/modules/platforms/0.0.8/MODULE.bazel": "9f142c03e348f6d263719f5074b21ef3adf0b139ee4c5133e2aa35664da9eb2d", "https://bcr.bazel.build/modules/platforms/0.0.9/MODULE.bazel": "4a87a60c927b56ddd67db50c89acaa62f4ce2a1d2149ccb63ffd871d5ce29ebc", "https://bcr.bazel.build/modules/platforms/1.0.0/MODULE.bazel": "f05feb42b48f1b3c225e4ccf351f367be0371411a803198ec34a389fb22aa580", - "https://bcr.bazel.build/modules/platforms/1.0.0/source.json": "f4ff1fd412e0246fd38c82328eb209130ead81d62dcd5a9e40910f867f733d96", + "https://bcr.bazel.build/modules/platforms/1.1.0/MODULE.bazel": "1c0c09f5bdcf4b3f924720d2478a3711cb39f4977019ca5988685e5b7e18b3d2", + "https://bcr.bazel.build/modules/platforms/1.1.0/source.json": "fcf351c47596c939140ab0d333dfdd08ed1ea6ce33c2fe70c12493a301cf1344", "https://bcr.bazel.build/modules/prometheus-cpp/1.2.4/MODULE.bazel": "0fbe5dcff66311947a3f6b86ebc6a6d9328e31a28413ca864debc4a043f371e5", "https://bcr.bazel.build/modules/prometheus-cpp/1.3.0/MODULE.bazel": "ce82e086bbc0b60267e970f6a54b2ca6d0f22d3eb6633e00e2cc2899c700f3d8", "https://bcr.bazel.build/modules/prometheus-cpp/1.3.0/source.json": "8cb66b4e535afc718e9d104a3db96ccb71a42ee816a100e50fd0d5ac843c0606", @@ -800,6 +802,7 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/opentelemetry-proto/1.4.0.bcr.1/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/opentracing-cpp/1.6.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/package_metadata/0.0.2/MODULE.bazel": "not found", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/package_metadata/0.0.3/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/package_metadata/0.0.6/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/package_metadata/0.0.7/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/platforms/0.0.10/MODULE.bazel": "not found", @@ -811,6 +814,7 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/platforms/0.0.8/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/platforms/0.0.9/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/platforms/1.0.0/MODULE.bazel": "not found", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/platforms/1.1.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/prometheus-cpp/1.2.4/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/prometheus-cpp/1.3.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/protobuf/21.7/MODULE.bazel": "not found", @@ -992,8 +996,10 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_swift/1.16.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_swift/1.18.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_swift/2.1.1/MODULE.bazel": "not found", - "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_bazel_cpp_toolchains/0.5.4/MODULE.bazel": "5f14457f9b708302db05b5dc3c07bd41ae19b91cabf98a0dbffdca622bd6ac91", - "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_bazel_cpp_toolchains/0.5.4/source.json": "2946be24c6b978aa788c934643aa7ec68aac4a926bea4eaa81d512fd48e9f4a8", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_bazel_cpp_toolchains/1.0.2/MODULE.bazel": "50f40c39d43f34cb6792115e5f34ae1a16bfef0433e3077b876c31acfbdf9f91", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_bazel_cpp_toolchains/1.0.2/source.json": "fbbb55577e07946fd9eaf3d125cbeaf12dccf9440338ffd0e90afaac6efba3d4", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_cpp_policies/0.1.1/MODULE.bazel": "62968745a2fe77c449d4e11447b50918c58f870eeac72f0f3198c63617a2f8a2", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_cpp_policies/0.1.1/source.json": "29d45fbd6f3fae0a21487f5d652dfa0796bd2095d2a19732a5456e5b232754a9", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_devcontainer/1.8.0/MODULE.bazel": "89f855b94d041d2e61ff9667562fb4539c146249f6fb4c5dddf3d13bb9064aa7", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_devcontainer/1.8.0/source.json": "ef316fad71fdbd53daf43fc0a82fbc7c293908a2712214ff79134c177d028024", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_python_basics/0.3.4/MODULE.bazel": "53bd16dfbb1fb8ecf6822fb26f9f4e8333bac7b14d12bb02bf84078063820a31", @@ -9778,8 +9784,8 @@ }, "@@score_bazel_cpp_toolchains+//extensions:gcc.bzl%gcc": { "general": { - "bzlTransitiveDigest": "dc5MfL+KgiCba7Ie+8RFXMg+QaVnnCWXSXUymx//0GY=", - "usagesDigest": "oxmc9zqxQOnppJnClchkYp6riYfqmi0+TBKIbpEW7SM=", + "bzlTransitiveDigest": "ChWcEQkrq5eKmA7VMNVat/1tK5LWqKU2ZcboiQdoN8U=", + "usagesDigest": "VvNm+n93adJjX7lOUSVnKsGNXTkgx1TNCwH4NS/QpXk=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -9810,10 +9816,10 @@ "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { "urls": [ - "https://github.com/eclipse-score/inc_os_autosd/releases/download/continuous/autosd-toolchain-x86_64.tar.gz" + "https://github.com/eclipse-score/os_autosd/releases/download/v0.0.2/autosd-toolchain-x86_64.tar.gz" ], "build_file": "@@score_bazel_cpp_toolchains+//packages/linux/x86_64/autosd/10.0:autosd.BUILD", - "sha256": "39091c500a31bc58d5934cc9c27f5fec4326f30d8bff88fe67737c86385bf39f", + "sha256": "25991056bd29d4cb37b11e42d0c09f55dc61d0b9d703f75d854cf614f688c96f", "strip_prefix": "sysroot" } }, @@ -9845,6 +9851,13 @@ "extra_compile_flags": [], "extra_c_compile_flags": [], "extra_cxx_compile_flags": [], + "extra_known_features": [ + "@@score_cpp_policies+//warnings/gcc/features:minimal_warnings", + "@@score_cpp_policies+//warnings/gcc/features:strict_warnings", + "@@score_cpp_policies+//warnings/gcc/features:all_wall_warnings", + "@@score_cpp_policies+//warnings/gcc/features:warnings_as_errors" + ], + "extra_enabled_features": [], "extra_link_flags": [], "license_info_variable": "", "license_info_value": "", @@ -9903,6 +9916,13 @@ "external/%{toolchain_pkg}%/usr/lib/x86_64-linux-gnu", "--no-canonical-prefixes" ], + "extra_known_features": [ + "@@score_cpp_policies+//warnings/gcc/features:minimal_warnings", + "@@score_cpp_policies+//warnings/gcc/features:strict_warnings", + "@@score_cpp_policies+//warnings/gcc/features:all_wall_warnings", + "@@score_cpp_policies+//warnings/gcc/features:warnings_as_errors" + ], + "extra_enabled_features": [], "extra_link_flags": [ "-B", "external/%{toolchain_pkg}%/usr/aarch64-linux-gnu/bin", @@ -9966,6 +9986,13 @@ "-isystem", "external/%{toolchain_pkg}%/usr/include" ], + "extra_known_features": [ + "@@score_cpp_policies+//warnings/gcc/features:minimal_warnings", + "@@score_cpp_policies+//warnings/gcc/features:strict_warnings", + "@@score_cpp_policies+//warnings/gcc/features:all_wall_warnings", + "@@score_cpp_policies+//warnings/gcc/features:warnings_as_errors" + ], + "extra_enabled_features": [], "extra_link_flags": [ "-B", "external/%{toolchain_pkg}%/usr/bin", @@ -10008,6 +10035,13 @@ "extra_compile_flags": [], "extra_c_compile_flags": [], "extra_cxx_compile_flags": [], + "extra_known_features": [ + "@@score_cpp_policies+//warnings/gcc/features:minimal_warnings", + "@@score_cpp_policies+//warnings/gcc/features:strict_warnings", + "@@score_cpp_policies+//warnings/gcc/features:all_wall_warnings", + "@@score_cpp_policies+//warnings/gcc/features:warnings_as_errors" + ], + "extra_enabled_features": [], "extra_link_flags": [], "license_info_variable": "", "license_info_value": "", @@ -10033,6 +10067,13 @@ "extra_compile_flags": [], "extra_c_compile_flags": [], "extra_cxx_compile_flags": [], + "extra_known_features": [ + "@@score_cpp_policies+//warnings/gcc/features:minimal_warnings", + "@@score_cpp_policies+//warnings/gcc/features:strict_warnings", + "@@score_cpp_policies+//warnings/gcc/features:all_wall_warnings", + "@@score_cpp_policies+//warnings/gcc/features:warnings_as_errors" + ], + "extra_enabled_features": [], "extra_link_flags": [], "license_info_variable": "", "license_info_value": "", @@ -10054,6 +10095,11 @@ } }, "recordedRepoMappingEntries": [ + [ + "", + "score_cpp_policies", + "score_cpp_policies+" + ], [ "bazel_tools", "rules_cc", diff --git a/bazel_common/score_gcc_toolchains.MODULE.bazel b/bazel_common/score_gcc_toolchains.MODULE.bazel index 47a3c5f7a2d..1400de78975 100644 --- a/bazel_common/score_gcc_toolchains.MODULE.bazel +++ b/bazel_common/score_gcc_toolchains.MODULE.bazel @@ -11,11 +11,18 @@ # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* -bazel_dep(name = "score_bazel_cpp_toolchains", version = "0.5.4") +bazel_dep(name = "score_bazel_cpp_toolchains", version = "1.0.2") +bazel_dep(name = "score_cpp_policies", version = "0.1.1") gcc = use_extension("@score_bazel_cpp_toolchains//extensions:gcc.bzl", "gcc", dev_dependency = True) gcc.toolchain( name = "score_gcc_x86_64_toolchain", + extra_known_features = [ + "@score_cpp_policies//warnings/gcc/features:minimal_warnings", + "@score_cpp_policies//warnings/gcc/features:strict_warnings", + "@score_cpp_policies//warnings/gcc/features:all_wall_warnings", + "@score_cpp_policies//warnings/gcc/features:warnings_as_errors", + ], target_cpu = "x86_64", target_os = "linux", use_default_package = True, @@ -23,6 +30,12 @@ gcc.toolchain( ) gcc.toolchain( name = "score_ebclfsa_toolchain", + extra_known_features = [ + "@score_cpp_policies//warnings/gcc/features:minimal_warnings", + "@score_cpp_policies//warnings/gcc/features:strict_warnings", + "@score_cpp_policies//warnings/gcc/features:all_wall_warnings", + "@score_cpp_policies//warnings/gcc/features:warnings_as_errors", + ], runtime_ecosystem = "ebclfsa", sdk_version = "0.1.0", target_cpu = "aarch64", @@ -33,6 +46,12 @@ gcc.toolchain( ## AutoSD10 Toolchain gcc.toolchain( name = "score_autosd10_x86_64_toolchain", + extra_known_features = [ + "@score_cpp_policies//warnings/gcc/features:minimal_warnings", + "@score_cpp_policies//warnings/gcc/features:strict_warnings", + "@score_cpp_policies//warnings/gcc/features:all_wall_warnings", + "@score_cpp_policies//warnings/gcc/features:warnings_as_errors", + ], runtime_ecosystem = "autosd10", target_cpu = "x86_64", target_os = "linux", diff --git a/bazel_common/score_qnx_toolchains.MODULE.bazel b/bazel_common/score_qnx_toolchains.MODULE.bazel index 46372e6a0d6..85aa08d585f 100644 --- a/bazel_common/score_qnx_toolchains.MODULE.bazel +++ b/bazel_common/score_qnx_toolchains.MODULE.bazel @@ -13,6 +13,12 @@ qcc = use_extension("@score_bazel_cpp_toolchains//extensions:gcc.bzl", "gcc", dev_dependency = True) qcc.toolchain( name = "score_qcc_aarch64_toolchain", + extra_known_features = [ + "@score_cpp_policies//warnings/gcc/features:minimal_warnings", + "@score_cpp_policies//warnings/gcc/features:strict_warnings", + "@score_cpp_policies//warnings/gcc/features:all_wall_warnings", + "@score_cpp_policies//warnings/gcc/features:warnings_as_errors", + ], sdp_version = "8.0.0", target_cpu = "aarch64", target_os = "qnx", @@ -21,6 +27,12 @@ qcc.toolchain( ) qcc.toolchain( name = "score_qcc_x86_64_toolchain", + extra_known_features = [ + "@score_cpp_policies//warnings/gcc/features:minimal_warnings", + "@score_cpp_policies//warnings/gcc/features:strict_warnings", + "@score_cpp_policies//warnings/gcc/features:all_wall_warnings", + "@score_cpp_policies//warnings/gcc/features:warnings_as_errors", + ], sdp_version = "8.0.0", target_cpu = "x86_64", target_os = "qnx",