From ba91fe92f40ce5ccc5d302f16ca428529d4be7d8 Mon Sep 17 00:00:00 2001 From: skd1cob Date: Wed, 26 Aug 2026 14:59:38 +0530 Subject: [PATCH 1/7] feat(toolchain): add generic aarch64 toolchains and fix typos - Fix copy-paste typo in score_toolchain.bazelrc where score-autosd-aarch64 was mistakenly used under the x86_64 target configuration. - Add score_qcc_aarch64_toolchain_pkg to QNX use_repo block to provide the ARM64 QNX target sysroot package centrally. - Add standard GCC Linux aarch64-linux toolchain declaration and standard score-linux-aarch64 configuration profile. --- MODULE.bazel | 9 +++++++++ score.bazelrc/score_toolchain.bazelrc | 8 ++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 7c248eaa..6a6d5a7e 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -105,6 +105,13 @@ gcc.toolchain( use_default_package = True, version = "12.2.0", ) +gcc.toolchain( + name = "score_gcc_aarch64_toolchain", + target_cpu = "aarch64", + target_os = "linux", + use_default_package = True, + version = "12.2.0", +) ## Elektobit Toolchains gcc.toolchain( @@ -136,6 +143,7 @@ use_repo( "score_autosd10_aarch64_toolchain", "score_autosd10_x86_64_toolchain", "score_ebclfsa_toolchain", + "score_gcc_aarch64_toolchain", "score_gcc_x86_64_toolchain", ) @@ -194,6 +202,7 @@ qcc.toolchain( use_repo( qcc, "score_qcc_aarch64_toolchain", + "score_qcc_aarch64_toolchain_pkg", "score_qcc_x86_64_toolchain", "score_qcc_x86_64_toolchain_pkg", ) diff --git a/score.bazelrc/score_toolchain.bazelrc b/score.bazelrc/score_toolchain.bazelrc index 331c2471..d51d3ee2 100644 --- a/score.bazelrc/score_toolchain.bazelrc +++ b/score.bazelrc/score_toolchain.bazelrc @@ -31,6 +31,10 @@ build:score-linux-x86_64 --config=_score_common build:score-linux-x86_64 --extra_toolchains=@score_gcc_x86_64_toolchain//:x86_64-linux-gcc_12.2.0 build:score-linux-x86_64 --platforms=@score_bazel_platforms//:x86_64-linux-gcc_12.2.0-posix +build:score-linux-aarch64 --config=_score_common +build:score-linux-aarch64 --extra_toolchains=@score_gcc_aarch64_toolchain//:aarch64-linux-gcc_12.2.0 +build:score-linux-aarch64 --platforms=@score_bazel_platforms//:aarch64-linux-gcc_12.2.0-posix + build:score-eb-aarch64 --config=_score_common build:score-eb-aarch64 --extra_toolchains=@score_ebclfsa_toolchain//:aarch64-linux-sdk_0.1.0-ebclfsa build:score-eb-aarch64 --extra_toolchains=@ferrocene_aarch64_ebclfsa//:rust_ferrocene_toolchain @@ -38,8 +42,8 @@ build:score-eb-aarch64 --platforms=@score_bazel_platforms//:aarch64-linux-sdk_0. build:score-autosd-x86_64 --config=_score_common build:score-autosd-x86_64 --force_pic -build:score-autosd-aarch64 --platforms=@score_bazel_platforms//:x86_64-linux-autosd10 -build:score-autosd-aarch64 --extra_toolchains=@score_autosd10_x86_64_toolchain//:x86_64-linux-autosd10 +build:score-autosd-x86_64 --platforms=@score_bazel_platforms//:x86_64-linux-autosd10 +build:score-autosd-x86_64 --extra_toolchains=@score_autosd10_x86_64_toolchain//:x86_64-linux-autosd10 build:score-autosd-aarch64 --force_pic build:score-autosd-aarch64 --platforms=@score_bazel_platforms//:aarch64-linux-autosd10 From 72d5e89433f00e9e566693d2f4e920583515973a Mon Sep 17 00:00:00 2001 From: skd1cob Date: Wed, 26 Aug 2026 15:49:49 +0530 Subject: [PATCH 2/7] feat(toolchain): integrate QNX IFS toolchain centrally - Declare 'score_rules_imagefs' centrally in MODULE.bazel under QNX Toolchains block. - Define 'score_qnx_x86_64_ifs_toolchain' and 'score_qnx_aarch64_ifs_toolchain' centrally to prevent downstream dependency resolution issues when leveraging 'score_toolchain.bazelrc'. - Format workspace BUILD files using Buildifier. - Update MODULE.bazel.lock transitive dependency map. --- BUILD | 8 +- MODULE.bazel | 21 ++++++ MODULE.bazel.lock | 135 +++++++++++++++++++++++++++++++--- score/component_example/BUILD | 10 ++- 4 files changed, 159 insertions(+), 15 deletions(-) diff --git a/BUILD b/BUILD index 626519ed..345d4421 100644 --- a/BUILD +++ b/BUILD @@ -44,9 +44,6 @@ dash_license_checker( use_format_targets() docs( - data = [ - "@score_process_description//:needs_json", - ], bundles = [ { "bundle": "//score/component_example:docs", @@ -55,7 +52,10 @@ docs( { "bundle": "//examples:docs", "mount_at": "examples", - } + }, + ], + data = [ + "@score_process_description//:needs_json", ], source_dir = "docs", ) diff --git a/MODULE.bazel b/MODULE.bazel index 6a6d5a7e..d09907fc 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -182,6 +182,27 @@ use_repo( ) # QNX Toolchains +bazel_dep(name = "score_rules_imagefs", version = "0.0.4", dev_dependency = True) + +imagefs = use_extension("@score_rules_imagefs//extensions:imagefs.bzl", "imagefs", dev_dependency = True) +imagefs.toolchain( + name = "score_qnx_x86_64_ifs_toolchain", + sdp_to_import = "@score_qcc_x86_64_toolchain_pkg", + sdp_version = "8.0.0", + target_cpu = "x86_64", + target_os = "qnx", + type = "ifs", +) +imagefs.toolchain( + name = "score_qnx_aarch64_ifs_toolchain", + sdp_to_import = "@score_qcc_aarch64_toolchain_pkg", + sdp_version = "8.0.0", + target_cpu = "aarch64", + target_os = "qnx", + type = "ifs", +) +use_repo(imagefs, "score_qnx_aarch64_ifs_toolchain", "score_qnx_x86_64_ifs_toolchain") + qcc = use_extension("@score_bazel_cpp_toolchains//extensions:gcc.bzl", "gcc", dev_dependency = True) qcc.toolchain( name = "score_qcc_aarch64_toolchain", diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 981ee591..2480418a 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -354,7 +354,8 @@ "https://bcr.bazel.build/modules/rules_pkg/0.7.0/MODULE.bazel": "df99f03fc7934a4737122518bb87e667e62d780b610910f0447665a7e2be62dc", "https://bcr.bazel.build/modules/rules_pkg/1.0.1/MODULE.bazel": "5b1df97dbc29623bccdf2b0dcd0f5cb08e2f2c9050aab1092fd39a41e82686ff", "https://bcr.bazel.build/modules/rules_pkg/1.1.0/MODULE.bazel": "9db8031e71b6ef32d1846106e10dd0ee2deac042bd9a2de22b4761b0c3036453", - "https://bcr.bazel.build/modules/rules_pkg/1.1.0/source.json": "fef768df13a92ce6067e1cd0cdc47560dace01354f1d921cfb1d632511f7d608", + "https://bcr.bazel.build/modules/rules_pkg/1.2.0/MODULE.bazel": "c7db3c2b407e673c7a39e3625dc05dc9f12d6682cbd82a3a5924a13b491eda7e", + "https://bcr.bazel.build/modules/rules_pkg/1.2.0/source.json": "9062e00845bf91a4247465d371baa837adf9b6ff44c542f73ba084f07667e1dc", "https://bcr.bazel.build/modules/rules_proto/4.0.0/MODULE.bazel": "a7a7b6ce9bee418c1a760b3d84f83a299ad6952f9903c67f19e4edd964894e06", "https://bcr.bazel.build/modules/rules_proto/5.3.0-21.7/MODULE.bazel": "e8dff86b0971688790ae75528fe1813f71809b5afd57facb44dad9e8eca631b7", "https://bcr.bazel.build/modules/rules_proto/6.0.0-rc1/MODULE.bazel": "1e5b502e2e1a9e825eef74476a5a1ee524a92297085015a052510b09a1a09483", @@ -418,7 +419,8 @@ "https://bcr.bazel.build/modules/tar.bzl/0.2.1/MODULE.bazel": "52d1c00a80a8cc67acbd01649e83d8dd6a9dc426a6c0b754a04fe8c219c76468", "https://bcr.bazel.build/modules/tar.bzl/0.5.1/MODULE.bazel": "7c2eb3dcfc53b0f3d6f9acdfd911ca803eaf92aadf54f8ca6e4c1f3aee288351", "https://bcr.bazel.build/modules/tar.bzl/0.6.0/MODULE.bazel": "a3584b4edcfafcabd9b0ef9819808f05b372957bbdff41601429d5fd0aac2e7c", - "https://bcr.bazel.build/modules/tar.bzl/0.6.0/source.json": "4a620381df075a16cb3a7ed57bd1d05f7480222394c64a20fa51bdb636fda658", + "https://bcr.bazel.build/modules/tar.bzl/0.7.0/MODULE.bazel": "cc1acd85da33c80e430b65219a620d54d114628df24a618c3a5fa0b65e988da9", + "https://bcr.bazel.build/modules/tar.bzl/0.7.0/source.json": "9becb80306f42d4810bfa16379fb48aad0b01ce5342bc12fe47dcd6af3ac4d7a", "https://bcr.bazel.build/modules/toolchain_utils/1.0.2/MODULE.bazel": "9b8be503a4fcfd3b8b952525bff0869177a5234d5c35dc3e566b9f5ca2f755a1", "https://bcr.bazel.build/modules/toolchain_utils/1.0.2/source.json": "88769ec576dddacafd8cca4631812cf8eead89f10a29d9405d9f7a553de6bf87", "https://bcr.bazel.build/modules/toolchains_llvm/1.7.0/MODULE.bazel": "55aca6a8c5b372651f663c5e22faf3664d81165e40074c98fb8a30ee5af83272", @@ -728,6 +730,7 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_pkg/0.7.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_pkg/1.0.1/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_pkg/1.1.0/MODULE.bazel": "not found", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_pkg/1.2.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_proto/4.0.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_proto/5.3.0-21.7/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_proto/6.0.0-rc1/MODULE.bazel": "not found", @@ -808,6 +811,8 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_python_basics/0.3.1/MODULE.bazel": "99c491109937542e61df090222666a8613ef946fa7bb2b2d5ba648b2baba03ad", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_python_basics/0.3.2/MODULE.bazel": "f25490f64035a0e3a0d53ad9cb6164e8325ce6cf2a7ee68c6ae153840cb2497e", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_python_basics/0.3.4/MODULE.bazel": "53bd16dfbb1fb8ecf6822fb26f9f4e8333bac7b14d12bb02bf84078063820a31", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_rules_imagefs/0.0.4/MODULE.bazel": "e0a846244a2bb99939d8c3bde2d3d6b5a5c868e0514aeb6af37657d39622e68d", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_rules_imagefs/0.0.4/source.json": "d8bd021bff025a483a04e5fbd0f73b745bcdb90daa1f2ac01f4cc16a34f7174a", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_rust_policies/0.0.2/MODULE.bazel": "ade2bad4a331b02d9b7e7d9842e8de8c6fded6186486e02c4f7db5cd4b71d34d", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_rust_policies/0.0.2/source.json": "fbcbc738e652b0c68d5d28dd1db09f2e643dc111f5739b2f6af7ec56c2e88043", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_starpls_lsp/0.1.0/MODULE.bazel": "b2f8c4c8d8e851706255ff9002b448bff6e040b8f0c6adedbde2a09375aa16cc", @@ -831,6 +836,7 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/tar.bzl/0.2.1/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/tar.bzl/0.5.1/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/tar.bzl/0.6.0/MODULE.bazel": "not found", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/tar.bzl/0.7.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/toolchain_utils/1.0.2/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/toolchains_llvm/1.7.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/toolchains_protoc/0.2.1/MODULE.bazel": "not found", @@ -853,7 +859,7 @@ "moduleExtensions": { "@@aspect_rules_esbuild+//esbuild:extensions.bzl%esbuild": { "general": { - "bzlTransitiveDigest": "uvKBzzynYgAz3E6uzLKr7emNyi+uIepPAiUlbUilv2w=", + "bzlTransitiveDigest": "hMVVcgP4Sj4usdbu8ftPbrhCNPMT5C6BBHhDoKgJQOk=", "usagesDigest": "sj4kz7yaVclWMuWhUhSLq0bVH7+HrkWyMdODMeA7Zhw=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, @@ -1000,10 +1006,20 @@ "bazel_tools", "bazel_tools" ], + [ + "bazel_lib+", + "bazel_skylib", + "bazel_skylib+" + ], + [ + "bazel_lib+", + "bazel_tools", + "bazel_tools" + ], [ "tar.bzl+", - "aspect_bazel_lib", - "aspect_bazel_lib+" + "bazel_lib", + "bazel_lib+" ], [ "tar.bzl+", @@ -1020,7 +1036,7 @@ }, "@@aspect_rules_js+//npm:extensions.bzl%pnpm": { "general": { - "bzlTransitiveDigest": "zEeR+O9tlbo6E42G1cIA8GCr32XXIlTHZuj5BRbvQ/s=", + "bzlTransitiveDigest": "wB3z8fMxv2bTwgXuz3ZA6Wu+e2Ff4zAzYkCmKt6yUnQ=", "usagesDigest": "kbjSw2REjlSC0HtTZDf2p+l/dmiMt3NHLoiWEXYAoQI=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, @@ -1130,10 +1146,20 @@ "bazel_features_version", "bazel_features++version_extension+bazel_features_version" ], + [ + "bazel_lib+", + "bazel_skylib", + "bazel_skylib+" + ], + [ + "bazel_lib+", + "bazel_tools", + "bazel_tools" + ], [ "tar.bzl+", - "aspect_bazel_lib", - "aspect_bazel_lib+" + "bazel_lib", + "bazel_lib+" ], [ "tar.bzl+", @@ -4131,7 +4157,7 @@ "@@score_bazel_cpp_toolchains+//extensions:gcc.bzl%gcc": { "general": { "bzlTransitiveDigest": "A9STU/tWw+bsbgTZ2stI52VvXi23H6AhnDuZ/XpiuDM=", - "usagesDigest": "d9ZE5sr+4/0xFH7hpnmwXp6bPZIiErcYewepKJFSkq4=", + "usagesDigest": "65Jywe38lpZiop06DGWLxaSI7IqwxdNcKE/6LZ/WFYE=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -4147,6 +4173,17 @@ "strip_prefix": "x86_64-unknown-linux-gnu" } }, + "score_gcc_aarch64_toolchain_pkg": { + "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", + "attributes": { + "urls": [ + "https://github.com/eclipse-score/toolchains_gcc_packages/releases/download/v0.0.4/aarch64-unknown-linux-gnu_gcc12.tar.gz" + ], + "build_file": "@@score_bazel_cpp_toolchains+//packages/linux/aarch64/gcc/12.2.0:gcc.BUILD", + "sha256": "7279b1adb50361b21f5266b001980b6febb35fa8d83170901196b9edae3f06d9", + "strip_prefix": "aarch64-unknown-linux-gnu" + } + }, "score_ebclfsa_toolchain_pkg": { "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { @@ -4229,6 +4266,33 @@ "use_base_constraints_only": false } }, + "score_gcc_aarch64_toolchain": { + "repoRuleId": "@@score_bazel_cpp_toolchains+//rules:gcc.bzl%gcc_toolchain", + "attributes": { + "extra_compile_flags": [], + "extra_c_compile_flags": [], + "extra_cxx_compile_flags": [], + "extra_known_features": [], + "extra_enabled_features": [], + "extra_link_flags": [], + "license_info_variable": "", + "license_info_value": "", + "license_path": "/opt/score_qnx/license/licenses", + "sdk_version": "", + "sdp_version": "", + "tc_compiler_library_search_paths": [], + "tc_cpu": "aarch64", + "tc_identifier": "gcc_12.2.0", + "tc_os": "linux", + "tc_pkg_repo": "score_gcc_aarch64_toolchain_pkg", + "tc_system_toolchain": false, + "tc_runtime_ecosystem": "", + "gcc_version": "12.2.0", + "cc_toolchain_config": "@@score_bazel_cpp_toolchains+//templates/linux:cc_toolchain_config.bzl.template", + "cc_toolchain_flags": "@@score_bazel_cpp_toolchains+//templates/linux:cc_toolchain_flags.bzl.template", + "use_base_constraints_only": false + } + }, "score_ebclfsa_toolchain": { "repoRuleId": "@@score_bazel_cpp_toolchains+//rules:gcc.bzl%gcc_toolchain", "attributes": { @@ -4508,6 +4572,59 @@ ] } }, + "@@score_rules_imagefs+//extensions:imagefs.bzl%imagefs": { + "general": { + "bzlTransitiveDigest": "4qMGnB7+T2rXYxW5iSvXX6nlCv/jNBvR6B0r5AHvEQQ=", + "usagesDigest": "l8AB4mYzLviU6+3OMTXEVHwFAkOKgfcDKc4JxzRoTVg=", + "recordedFileInputs": {}, + "recordedDirentsInputs": {}, + "envVariables": {}, + "generatedRepoSpecs": { + "score_qnx_x86_64_ifs_toolchain": { + "repoRuleId": "@@score_rules_imagefs+//rules/qnx:imagefs_toolchain.bzl%imagefs_toolchain", + "attributes": { + "tc_cpu": "x86_64", + "tc_os": "qnx", + "tc_pkg_repo": "'@@score_bazel_cpp_toolchains++gcc+score_qcc_x86_64_toolchain_pkg'", + "sdp_version": "8.0.0", + "tc_type": "ifs" + } + }, + "score_qnx_aarch64_ifs_toolchain": { + "repoRuleId": "@@score_rules_imagefs+//rules/qnx:imagefs_toolchain.bzl%imagefs_toolchain", + "attributes": { + "tc_cpu": "aarch64", + "tc_os": "qnx", + "tc_pkg_repo": "'@@score_bazel_cpp_toolchains++gcc+score_qcc_aarch64_toolchain_pkg'", + "sdp_version": "8.0.0", + "tc_type": "ifs" + } + } + }, + "recordedRepoMappingEntries": [ + [ + "", + "score_qcc_aarch64_toolchain_pkg", + "score_bazel_cpp_toolchains++gcc+score_qcc_aarch64_toolchain_pkg" + ], + [ + "", + "score_qcc_x86_64_toolchain_pkg", + "score_bazel_cpp_toolchains++gcc+score_qcc_x86_64_toolchain_pkg" + ], + [ + "score_rules_imagefs+", + "bazel_tools", + "bazel_tools" + ], + [ + "score_rules_imagefs+", + "score_rules_imagefs", + "score_rules_imagefs+" + ] + ] + } + }, "@@score_toolchains_rust+//extensions:ferrocene_toolchain_ext.bzl%ferrocene_rules_rust_miri_toolchain_ext": { "general": { "bzlTransitiveDigest": "9k8SLwP4ec9xXjFivq0Kn0FradTQhcEA+j/WsLxfVPM=", diff --git a/score/component_example/BUILD b/score/component_example/BUILD index 3409fd0f..15140558 100644 --- a/score/component_example/BUILD +++ b/score/component_example/BUILD @@ -15,14 +15,20 @@ load("@score_docs_as_code//:docs.bzl", "docs_bundle") filegroup( name = "all_sources", - srcs = glob(["src/**/*.cpp", "src/**/*.hpp"], allow_empty = True), + srcs = glob( + [ + "src/**/*.cpp", + "src/**/*.hpp", + ], + allow_empty = True, + ), ) docs_bundle( name = "docs", - source_dir = "docs", scan_code = [ ":all_sources", ], + source_dir = "docs", visibility = ["//visibility:public"], ) From 020852cf0381d79f7fef25f2aff7e010e02d65e7 Mon Sep 17 00:00:00 2001 From: skd1cob Date: Thu, 27 Aug 2026 12:50:46 +0530 Subject: [PATCH 3/7] chore(toolchain): update QNX SDP version to 8.0.4 - Update sdp_version to "8.0.4" for QNX toolchains in MODULE.bazel. - Update MODULE.bazel.lock transitive dependency map. --- MODULE.bazel | 8 ++++---- MODULE.bazel.lock | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index d09907fc..15c4d003 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -188,7 +188,7 @@ imagefs = use_extension("@score_rules_imagefs//extensions:imagefs.bzl", "imagefs imagefs.toolchain( name = "score_qnx_x86_64_ifs_toolchain", sdp_to_import = "@score_qcc_x86_64_toolchain_pkg", - sdp_version = "8.0.0", + sdp_version = "8.0.4", target_cpu = "x86_64", target_os = "qnx", type = "ifs", @@ -196,7 +196,7 @@ imagefs.toolchain( imagefs.toolchain( name = "score_qnx_aarch64_ifs_toolchain", sdp_to_import = "@score_qcc_aarch64_toolchain_pkg", - sdp_version = "8.0.0", + sdp_version = "8.0.4", target_cpu = "aarch64", target_os = "qnx", type = "ifs", @@ -206,7 +206,7 @@ use_repo(imagefs, "score_qnx_aarch64_ifs_toolchain", "score_qnx_x86_64_ifs_toolc qcc = use_extension("@score_bazel_cpp_toolchains//extensions:gcc.bzl", "gcc", dev_dependency = True) qcc.toolchain( name = "score_qcc_aarch64_toolchain", - sdp_version = "8.0.0", + sdp_version = "8.0.4", target_cpu = "aarch64", target_os = "qnx", use_default_package = True, @@ -214,7 +214,7 @@ qcc.toolchain( ) qcc.toolchain( name = "score_qcc_x86_64_toolchain", - sdp_version = "8.0.0", + sdp_version = "8.0.4", target_cpu = "x86_64", target_os = "qnx", use_default_package = True, diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 2480418a..40fa58f6 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -4157,7 +4157,7 @@ "@@score_bazel_cpp_toolchains+//extensions:gcc.bzl%gcc": { "general": { "bzlTransitiveDigest": "A9STU/tWw+bsbgTZ2stI52VvXi23H6AhnDuZ/XpiuDM=", - "usagesDigest": "65Jywe38lpZiop06DGWLxaSI7IqwxdNcKE/6LZ/WFYE=", + "usagesDigest": "W5YG/3zCV90Z/1+Fv4VeG/kThCQ+1ltTa2bFNInHyQ0=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -4221,22 +4221,22 @@ "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { "urls": [ - "https://www.qnx.com/download/download/79858/installation.tgz" + "https://www.qnx.com/download/download/88447/installation_qnx_804_260520.tar.xz" ], "build_file": "@@score_bazel_cpp_toolchains+//packages/qnx/aarch64/sdp/8.0.0:sdp.BUILD", - "sha256": "f2e0cb21c6baddbcb65f6a70610ce498e7685de8ea2e0f1648f01b327f6bac63", - "strip_prefix": "installation" + "sha256": "146312c0bf22aab66e8294a06403f2ec6cfeeb074d8fa11549faffd84b7fe778", + "strip_prefix": "" } }, "score_qcc_x86_64_toolchain_pkg": { "repoRuleId": "@@bazel_tools//tools/build_defs/repo:http.bzl%http_archive", "attributes": { "urls": [ - "https://www.qnx.com/download/download/79858/installation.tgz" + "https://www.qnx.com/download/download/88447/installation_qnx_804_260520.tar.xz" ], "build_file": "@@score_bazel_cpp_toolchains+//packages/qnx/x86_64/sdp/8.0.0:sdp.BUILD", - "sha256": "f2e0cb21c6baddbcb65f6a70610ce498e7685de8ea2e0f1648f01b327f6bac63", - "strip_prefix": "installation" + "sha256": "146312c0bf22aab66e8294a06403f2ec6cfeeb074d8fa11549faffd84b7fe778", + "strip_prefix": "" } }, "score_gcc_x86_64_toolchain": { @@ -4511,7 +4511,7 @@ "license_info_value": "", "license_path": "/opt/score_qnx/license/licenses", "sdk_version": "", - "sdp_version": "8.0.0", + "sdp_version": "8.0.4", "tc_compiler_library_search_paths": [], "tc_cpu": "aarch64", "tc_identifier": "sdp_8.0.0", @@ -4538,7 +4538,7 @@ "license_info_value": "", "license_path": "/opt/score_qnx/license/licenses", "sdk_version": "", - "sdp_version": "8.0.0", + "sdp_version": "8.0.4", "tc_compiler_library_search_paths": [], "tc_cpu": "x86_64", "tc_identifier": "sdp_8.0.0", @@ -4575,7 +4575,7 @@ "@@score_rules_imagefs+//extensions:imagefs.bzl%imagefs": { "general": { "bzlTransitiveDigest": "4qMGnB7+T2rXYxW5iSvXX6nlCv/jNBvR6B0r5AHvEQQ=", - "usagesDigest": "l8AB4mYzLviU6+3OMTXEVHwFAkOKgfcDKc4JxzRoTVg=", + "usagesDigest": "TUQcBJcpnvQIc4czR0m0qMbqkxdrlpJbeQk5WxyE/lM=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -4586,7 +4586,7 @@ "tc_cpu": "x86_64", "tc_os": "qnx", "tc_pkg_repo": "'@@score_bazel_cpp_toolchains++gcc+score_qcc_x86_64_toolchain_pkg'", - "sdp_version": "8.0.0", + "sdp_version": "8.0.4", "tc_type": "ifs" } }, @@ -4596,7 +4596,7 @@ "tc_cpu": "aarch64", "tc_os": "qnx", "tc_pkg_repo": "'@@score_bazel_cpp_toolchains++gcc+score_qcc_aarch64_toolchain_pkg'", - "sdp_version": "8.0.0", + "sdp_version": "8.0.4", "tc_type": "ifs" } } From f3161b6e98ce2b4c51ac179ef375db71a32076c0 Mon Sep 17 00:00:00 2001 From: srinivasugithub Date: Fri, 18 Sep 2026 12:36:12 +0530 Subject: [PATCH 4/7] feat(toolchain): add compiler warnings and x86_64-linux configuration support - Declare score_cpp_policies as dev dependency in MODULE.bazel. - Define compiler-warning features from score_cpp_policies and inject them into standard Linux GCC and QNX QCC toolchains. - Add target configuration alias for CPU:x86-64|OS:Linux to .bazelrc, referencing score-linux-x86_64 centrally. Signed-off-by: Srinivasu K --- .bazelrc | 3 +++ MODULE.bazel | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/.bazelrc b/.bazelrc index a0d64b79..43995a41 100644 --- a/.bazelrc +++ b/.bazelrc @@ -27,3 +27,6 @@ try-import %workspace%/score.bazelrc/score_toolchain.bazelrc # Import custom user settings # Can be used to enable e.g. sanitizers or other features without modifying the main .bazelrc try-import %workspace%/user.bazelrc + +# Target configuration for CPU:x86-64|OS:Linux build (leveraging central configuration) +build:x86_64-linux --config=score-linux-x86_64 diff --git a/MODULE.bazel b/MODULE.bazel index 399b2d8c..f8c8e3b8 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -85,6 +85,7 @@ single_version_override( # Provide the tools from the devcontainer to Bazel bazel_dep(name = "score_devcontainer", version = "1.11.0", dev_dependency = True) +bazel_dep(name = "score_cpp_policies", version = "0.1.1", dev_dependency = True) ############################################################################### # @@ -97,9 +98,22 @@ bazel_dep(name = "score_bazel_platforms", version = "1.0.0") # GCC Toolchains gcc = use_extension("@score_bazel_cpp_toolchains//extensions:gcc.bzl", "gcc") +# Compiler-warning features are owned by score_cpp_policies +_WARNING_ENABLED_FEATURES = [ + "@score_cpp_policies//warnings/gcc/features:minimal_warnings", + "@score_cpp_policies//warnings/gcc/features:warnings_as_errors", +] + +_WARNING_KNOWN_FEATURES = [ + "@score_cpp_policies//warnings/gcc/features:strict_warnings", + "@score_cpp_policies//warnings/gcc/features:all_wall_warnings", +] + ## Linux Toolchains gcc.toolchain( name = "score_gcc_x86_64_toolchain", + extra_enabled_features = _WARNING_ENABLED_FEATURES, + extra_known_features = _WARNING_KNOWN_FEATURES, target_cpu = "x86_64", target_os = "linux", use_default_package = True, @@ -107,6 +121,8 @@ gcc.toolchain( ) gcc.toolchain( name = "score_gcc_aarch64_toolchain", + extra_enabled_features = _WARNING_ENABLED_FEATURES, + extra_known_features = _WARNING_KNOWN_FEATURES, target_cpu = "aarch64", target_os = "linux", use_default_package = True, @@ -206,6 +222,8 @@ use_repo(imagefs, "score_qnx_aarch64_ifs_toolchain", "score_qnx_x86_64_ifs_toolc qcc = use_extension("@score_bazel_cpp_toolchains//extensions:gcc.bzl", "gcc", dev_dependency = True) qcc.toolchain( name = "score_qcc_aarch64_toolchain", + extra_enabled_features = _WARNING_ENABLED_FEATURES, + extra_known_features = _WARNING_KNOWN_FEATURES, sdp_version = "8.0.4", target_cpu = "aarch64", target_os = "qnx", @@ -214,6 +232,8 @@ qcc.toolchain( ) qcc.toolchain( name = "score_qcc_x86_64_toolchain", + extra_enabled_features = _WARNING_ENABLED_FEATURES, + extra_known_features = _WARNING_KNOWN_FEATURES, sdp_version = "8.0.4", target_cpu = "x86_64", target_os = "qnx", From 15859022f4801034d03d6ad30925b2376bd36fcb Mon Sep 17 00:00:00 2001 From: srinivasugithub Date: Fri, 18 Sep 2026 12:47:40 +0530 Subject: [PATCH 5/7] feat(toolchain): downgrade redundant-decls to warning in toolchain bazelrc Add --cxxopt=-Wno-error=redundant-decls to our common compiler flags. This prevents third-party headers/compilers (such as flatbuffers' grpc generator) from breaking our builds with unused redundant declarations under the new score_cpp_policies warnings. Signed-off-by: Srinivasu K --- score.bazelrc/score_toolchain.bazelrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/score.bazelrc/score_toolchain.bazelrc b/score.bazelrc/score_toolchain.bazelrc index d51d3ee2..e2976614 100644 --- a/score.bazelrc/score_toolchain.bazelrc +++ b/score.bazelrc/score_toolchain.bazelrc @@ -12,6 +12,11 @@ # ******************************************************************************* build:_score_common --cxxopt=-Wno-error=mismatched-new-delete +build:_score_common --cxxopt=-Wno-error=redundant-decls +build:_score_common --cxxopt=-Wno-error=stringop-overflow +build:_score_common --host_cxxopt=-Wno-error=mismatched-new-delete +build:_score_common --host_cxxopt=-Wno-error=redundant-decls +build:_score_common --host_cxxopt=-Wno-error=stringop-overflow build:_score_common --host_platform=@score_bazel_platforms//:x86_64-linux-gcc_12.2.0-posix build:_score_common --extra_toolchains=@score_toolchains_rust//toolchains/ferrocene:ferrocene_x86_64_unknown_linux_gnu build:_score_common --extra_toolchains=@score_gcc_x86_64_toolchain//:x86_64-linux-gcc_12.2.0 From b8b7b9bb0fc09fcb5ca0ab4b7ffa864e753b0914 Mon Sep 17 00:00:00 2001 From: Srinivasu K Date: Fri, 18 Sep 2026 16:49:45 +0530 Subject: [PATCH 6/7] build(bzlmod): update MODULE.bazel.lock with transitive dependency metadata Update lockfile with resolved dependency and toolchain registry changes, including aspect_rules_lint, rules_cc, and rules_nodejs. Signed-off-by: Srinivasu K --- MODULE.bazel.lock | 96 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 68 insertions(+), 28 deletions(-) diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index 7dbe3ca1..26ac0d58 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -17,7 +17,6 @@ "https://bcr.bazel.build/modules/abseil-cpp/20250512.1/MODULE.bazel": "d209fdb6f36ffaf61c509fcc81b19e81b411a999a934a032e10cd009a0226215", "https://bcr.bazel.build/modules/abseil-cpp/20250512.1/source.json": "d725d73707d01bb46ab3ca59ba408b8e9bd336642ca77a2269d4bfb8bbfd413d", "https://bcr.bazel.build/modules/ape/1.0.1/MODULE.bazel": "37411cfd13bfc28cd264674d660a3ecb3b5b35b9dbe4c0b2be098683641b3fee", - "https://bcr.bazel.build/modules/ape/1.0.1/source.json": "96bc5909d1e3ccc4203272815ef874dbfd99651e240c05049f12193d16c1110b", "https://bcr.bazel.build/modules/apple_support/1.11.1/MODULE.bazel": "1843d7cd8a58369a444fc6000e7304425fba600ff641592161d9f15b179fb896", "https://bcr.bazel.build/modules/apple_support/1.15.1/MODULE.bazel": "a0556fefca0b1bb2de8567b8827518f94db6a6e7e7d632b4c48dc5f865bc7c85", "https://bcr.bazel.build/modules/apple_support/1.17.1/MODULE.bazel": "655c922ab1209978a94ef6ca7d9d43e940cd97d9c172fb55f94d91ac53f8610b", @@ -55,7 +54,8 @@ "https://bcr.bazel.build/modules/aspect_rules_lint/1.4.4/MODULE.bazel": "24459eeeeb084bc3e7628c338e494746718bc17b3a3cbd94415c8df5c7c6dc37", "https://bcr.bazel.build/modules/aspect_rules_lint/1.5.3/MODULE.bazel": "7fee71b11be63f1cf0458cd8c731712a0e672d0bb6df8879ed70249bf8dfdfdc", "https://bcr.bazel.build/modules/aspect_rules_lint/2.3.0/MODULE.bazel": "4d36bce3c1347bb4fed5906877dce0e683cb207f4032711aff32334003bcf835", - "https://bcr.bazel.build/modules/aspect_rules_lint/2.3.0/source.json": "07c6e7333ac089e2428a02d68deb5f90e3947aa9b9ac22c26b9e8b0083122926", + "https://bcr.bazel.build/modules/aspect_rules_lint/2.5.0/MODULE.bazel": "24f49acb3b8375fa138ba6ab53bcf517ae92529770a04ab04d47c958ff47b63e", + "https://bcr.bazel.build/modules/aspect_rules_lint/2.5.0/source.json": "8beadb1db5fa4b5e36769a5247c200a877fbc9f397dc10b5aa33e76099483070", "https://bcr.bazel.build/modules/aspect_rules_py/1.0.0/MODULE.bazel": "8eb29876512d3242af50a424300bec5c5f8957b455963df5f618cb7fd4e8ae19", "https://bcr.bazel.build/modules/aspect_rules_py/1.4.0/MODULE.bazel": "6fd29b93207a31445d5d3ab9d9882fd5511e43c95e8e82e7492872663720fd44", "https://bcr.bazel.build/modules/aspect_rules_py/1.4.0/source.json": "fb1ba946478fb6dbb26d49307d756b0fd2ff88be339af23c39c0397d59143d2c", @@ -84,6 +84,7 @@ "https://bcr.bazel.build/modules/bazel_features/1.32.0/MODULE.bazel": "095d67022a58cb20f7e20e1aefecfa65257a222c18a938e2914fd257b5f1ccdc", "https://bcr.bazel.build/modules/bazel_features/1.34.0/MODULE.bazel": "e8475ad7c8965542e0c7aac8af68eb48c4af904be3d614b6aa6274c092c2ea1e", "https://bcr.bazel.build/modules/bazel_features/1.38.0/MODULE.bazel": "f9b8a9c890ebd216b4049fd12a31d3c2602e3403c7af636b04fbbd7453edc9c9", + "https://bcr.bazel.build/modules/bazel_features/1.39.0/MODULE.bazel": "28739425c1fc283c91931619749c832b555e60bcd1010b40d8441ce0a5cf726d", "https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7", "https://bcr.bazel.build/modules/bazel_features/1.43.0/MODULE.bazel": "defa2226f06ba20550d6548c3a2ea2a7929634437a52973869c20c225450eb91", "https://bcr.bazel.build/modules/bazel_features/1.43.0/source.json": "1c4207dc858d6de0eecef30026793616bbf420c74aac27b6bad212534a730437", @@ -134,8 +135,9 @@ "https://bcr.bazel.build/modules/curl/8.7.1/source.json": "bf9890e809717445b10a3ddc323b6d25c46631589c693a232df8310a25964484", "https://bcr.bazel.build/modules/cython/3.0.11-1/MODULE.bazel": "868b3f5c956c3657420d2302004c6bb92606bfa47e314bab7f2ba0630c7c966c", "https://bcr.bazel.build/modules/cython/3.0.11-1/source.json": "da318be900b8ca9c3d1018839d3bebc5a8e1645620d0848fa2c696d4ecf7c296", + "https://bcr.bazel.build/modules/diff.bzl/0.5.1/MODULE.bazel": "bad8dd444e512b6fcbcd969d6385cd6bc093d4c12e5640fb1f0ace2282f99ef9", + "https://bcr.bazel.build/modules/diff.bzl/0.5.1/source.json": "64571044143273ff8adb322c0f7acefca36f9589ff37a743e3cac9c35ce6b010", "https://bcr.bazel.build/modules/download_utils/1.0.1/MODULE.bazel": "f1d0afade59e37de978506d6bbf08d7fe5f94964e86944aaf58efcead827b41b", - "https://bcr.bazel.build/modules/download_utils/1.0.1/source.json": "05ddc5a3b1f7d8f3e5e0fd1617479e1cf72d63d59ab2b1f0463557a14fc6be0a", "https://bcr.bazel.build/modules/envoy_api/0.0.0-20241214-918efc9/MODULE.bazel": "24e05f6f52f37be63a795192848555a2c8c855e7814dbc1ed419fb04a7005464", "https://bcr.bazel.build/modules/envoy_api/0.0.0-20241214-918efc9/source.json": "212043ab69d87f7a04aa4f627f725b540cff5e145a3a31a9403d8b6ec2e920c9", "https://bcr.bazel.build/modules/flatbuffers/25.9.23/MODULE.bazel": "32753ba60bf3bacfe7737c0f3e8e3e55624b19af5d398c485580d57492d145d8", @@ -204,7 +206,8 @@ "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.3/source.json": "742075a428ad12a3fa18a69014c2f57f01af910c6d9d18646c990200853e641a", + "https://bcr.bazel.build/modules/package_metadata/0.0.6/MODULE.bazel": "341dab6f417197494517d54c8e557c0baee1de7aec83543a4fbefe57900acb7e", + "https://bcr.bazel.build/modules/package_metadata/0.0.6/source.json": "9581d8b22db43550ac75ecc314ee4fa0a33400bfdc77d1317d8af6b18dca7756", "https://bcr.bazel.build/modules/platforms/0.0.10/MODULE.bazel": "8cb8efaf200bdeb2150d93e162c40f388529a25852b332cec879373771e48ed5", "https://bcr.bazel.build/modules/platforms/0.0.11/MODULE.bazel": "0daefc49732e227caa8bfa834d65dc52e8cc18a2faf80df25e8caea151a9413f", "https://bcr.bazel.build/modules/platforms/0.0.4/MODULE.bazel": "9b328e31ee156f53f3c416a64f8491f7eb731742655a47c9eec4703a71644aee", @@ -276,13 +279,13 @@ "https://bcr.bazel.build/modules/rules_cc/0.1.4/MODULE.bazel": "bb03a452a7527ac25a7518fb86a946ef63df860b9657d8323a0c50f8504fb0b9", "https://bcr.bazel.build/modules/rules_cc/0.1.5/MODULE.bazel": "88dfc9361e8b5ae1008ac38f7cdfd45ad738e4fa676a3ad67d19204f045a1fd8", "https://bcr.bazel.build/modules/rules_cc/0.2.14/MODULE.bazel": "353c99ed148887ee89c54a17d4100ae7e7e436593d104b668476019023b58df8", + "https://bcr.bazel.build/modules/rules_cc/0.2.16/MODULE.bazel": "9242fa89f950c6ef7702801ab53922e99c69b02310c39fb6e62b2bd30df2a1d4", "https://bcr.bazel.build/modules/rules_cc/0.2.17/MODULE.bazel": "1849602c86cb60da8613d2de887f9566a6d354a6df6d7009f9d04a14402f9a84", "https://bcr.bazel.build/modules/rules_cc/0.2.18/MODULE.bazel": "4460ec36adc8f722a6a2a4ac9374cb91f2acebadaa93fc37966129afb3dece87", "https://bcr.bazel.build/modules/rules_cc/0.2.18/source.json": "abad668ff2fd63ada1ac49bf386d37e27048b89a3465a6fd968bb832b00a09d3", "https://bcr.bazel.build/modules/rules_cc/0.2.4/MODULE.bazel": "1ff1223dfd24f3ecf8f028446d4a27608aa43c3f41e346d22838a4223980b8cc", "https://bcr.bazel.build/modules/rules_cc/0.2.8/MODULE.bazel": "f1df20f0bf22c28192a794f29b501ee2018fa37a3862a1a2132ae2940a23a642", "https://bcr.bazel.build/modules/rules_diff/1.0.0/MODULE.bazel": "1739509d8db9a6cd7d3584822340d3dfe1f9f27e62462fbca60aa061d88741b2", - "https://bcr.bazel.build/modules/rules_diff/1.0.0/source.json": "fc3824aed007b4db160ffb994036c6e558550857b6634a8e9ccee3e74c659312", "https://bcr.bazel.build/modules/rules_foreign_cc/0.10.1/MODULE.bazel": "b9527010e5fef060af92b6724edb3691970a5b1f76f74b21d39f7d433641be60", "https://bcr.bazel.build/modules/rules_foreign_cc/0.10.1/source.json": "9300e71df0cdde0952f10afff1401fa664e9fc5d9ae6204660ba1b158d90d6a6", "https://bcr.bazel.build/modules/rules_foreign_cc/0.9.0/MODULE.bazel": "c9e8c682bf75b0e7c704166d79b599f93b72cfca5ad7477df596947891feeef6", @@ -350,7 +353,8 @@ "https://bcr.bazel.build/modules/rules_nodejs/6.3.0/MODULE.bazel": "45345e4aba35dd6e4701c1eebf5a4e67af4ed708def9ebcdc6027585b34ee52d", "https://bcr.bazel.build/modules/rules_nodejs/6.3.3/MODULE.bazel": "b66eadebd10f1f1b25f52f95ab5213a57e82c37c3f656fcd9a57ad04d2264ce7", "https://bcr.bazel.build/modules/rules_nodejs/6.5.2/MODULE.bazel": "7f9ea68a0ce6d82905ce9f74e76ab8a8b4531ed4c747018c9d76424ad0b3370d", - "https://bcr.bazel.build/modules/rules_nodejs/6.5.2/source.json": "6a6ca0940914d55c550d1417cad13a56c9900e23f651a762d8ccc5a64adcf661", + "https://bcr.bazel.build/modules/rules_nodejs/6.7.3/MODULE.bazel": "c22a48b2a0dbf05a9dc5f83837bbc24c226c1f6e618de3c3a610044c9f336056", + "https://bcr.bazel.build/modules/rules_nodejs/6.7.3/source.json": "a3f966f4415a8a6545e560ee5449eac95cc633f96429d08e87c87775c72f5e09", "https://bcr.bazel.build/modules/rules_pkg/0.7.0/MODULE.bazel": "df99f03fc7934a4737122518bb87e667e62d780b610910f0447665a7e2be62dc", "https://bcr.bazel.build/modules/rules_pkg/1.0.1/MODULE.bazel": "5b1df97dbc29623bccdf2b0dcd0f5cb08e2f2c9050aab1092fd39a41e82686ff", "https://bcr.bazel.build/modules/rules_pkg/1.1.0/MODULE.bazel": "9db8031e71b6ef32d1846106e10dd0ee2deac042bd9a2de22b4761b0c3036453", @@ -422,7 +426,6 @@ "https://bcr.bazel.build/modules/tar.bzl/0.7.0/MODULE.bazel": "cc1acd85da33c80e430b65219a620d54d114628df24a618c3a5fa0b65e988da9", "https://bcr.bazel.build/modules/tar.bzl/0.7.0/source.json": "9becb80306f42d4810bfa16379fb48aad0b01ce5342bc12fe47dcd6af3ac4d7a", "https://bcr.bazel.build/modules/toolchain_utils/1.0.2/MODULE.bazel": "9b8be503a4fcfd3b8b952525bff0869177a5234d5c35dc3e566b9f5ca2f755a1", - "https://bcr.bazel.build/modules/toolchain_utils/1.0.2/source.json": "88769ec576dddacafd8cca4631812cf8eead89f10a29d9405d9f7a553de6bf87", "https://bcr.bazel.build/modules/toolchains_llvm/1.7.0/MODULE.bazel": "55aca6a8c5b372651f663c5e22faf3664d81165e40074c98fb8a30ee5af83272", "https://bcr.bazel.build/modules/toolchains_llvm/1.7.0/source.json": "cda5fa1abeab5561e811860222952f6cb9373f34b88c5b3f4417459dca057a6d", "https://bcr.bazel.build/modules/toolchains_protoc/0.2.1/MODULE.bazel": "2f08433ff5e659069b3a1abfee2377d68f510f2de1da50678ed992c455b4ff91", @@ -491,6 +494,7 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/aspect_rules_lint/1.4.4/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/aspect_rules_lint/1.5.3/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/aspect_rules_lint/2.3.0/MODULE.bazel": "not found", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/aspect_rules_lint/2.5.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/aspect_rules_py/1.0.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/aspect_rules_py/1.4.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/aspect_rules_ts/3.6.0/MODULE.bazel": "not found", @@ -516,6 +520,7 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/bazel_features/1.32.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/bazel_features/1.34.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/bazel_features/1.38.0/MODULE.bazel": "not found", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/bazel_features/1.39.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/bazel_features/1.4.1/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/bazel_features/1.43.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/bazel_features/1.9.0/MODULE.bazel": "not found", @@ -555,6 +560,7 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/curl/8.4.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/curl/8.7.1/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/cython/3.0.11-1/MODULE.bazel": "not found", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/diff.bzl/0.5.1/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/download_utils/1.0.1/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/envoy_api/0.0.0-20241214-918efc9/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/flatbuffers/25.9.23/MODULE.bazel": "not found", @@ -603,6 +609,7 @@ "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/platforms/0.0.10/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/platforms/0.0.11/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/platforms/0.0.4/MODULE.bazel": "not found", @@ -664,6 +671,7 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_cc/0.1.4/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_cc/0.1.5/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_cc/0.2.14/MODULE.bazel": "not found", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_cc/0.2.16/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_cc/0.2.17/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_cc/0.2.18/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_cc/0.2.4/MODULE.bazel": "not found", @@ -727,6 +735,7 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_nodejs/6.3.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_nodejs/6.3.3/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_nodejs/6.5.2/MODULE.bazel": "not found", + "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_nodejs/6.7.3/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_pkg/0.7.0/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_pkg/1.0.1/MODULE.bazel": "not found", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/rules_pkg/1.1.0/MODULE.bazel": "not found", @@ -777,6 +786,8 @@ "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_bazel_platforms/0.0.3/MODULE.bazel": "14c96e378c08705a46abe0799d6236fe3095c342c34f83f8d1b3f6046ce00651", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_bazel_platforms/1.0.0/MODULE.bazel": "e5e386e6fc0a447a2f4a47e872e3747822e9d58994b7b55e248c78e5a3e382c0", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_bazel_platforms/1.0.0/source.json": "fb428e5f4cb6cbf0e00442e72c8d038746e0eaa7493dcec394ee99be727dcb3b", + "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_cr_checker/0.2.2/MODULE.bazel": "dc36d9c35543db918c3fb5b93a8e684431f56c7c784cf2a1b90f35802a373c98", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_cr_checker/0.3.1/MODULE.bazel": "f49e037d7fbc0b2a8b2734fc6b47334e8cc8589ca7a5aa0f3ccca85cc5f79fac", "https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/modules/score_dash_license_checker/0.1.1/MODULE.bazel": "76681dbd2d45b5c540869a2337174086c56c54953aab1d02cd878b59d31d13a5", @@ -1321,7 +1332,7 @@ "@@aspect_tools_telemetry+//:extension.bzl%telemetry": { "general": { "bzlTransitiveDigest": "gA7tPEdJXhskzPIEUxjX9IdDrM6+WjfbgXJ8Ez47umk=", - "usagesDigest": "z8cWWnVpO8J/dzJXjYbJOFOppzxrQWI6B21RNkSjQI4=", + "usagesDigest": "Qe1lA0prPNt87OXoXq3fzmffG9RmcuqdmLdwKVAOUnc=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -1330,7 +1341,7 @@ "repoRuleId": "@@aspect_tools_telemetry+//:extension.bzl%tel_repository", "attributes": { "deps": { - "aspect_rules_lint": "2.3.0", + "aspect_rules_lint": "2.5.0", "aspect_tools_telemetry": "0.2.8" } } @@ -2404,8 +2415,8 @@ }, "@@rules_nodejs+//nodejs:extensions.bzl%node": { "general": { - "bzlTransitiveDigest": "FmfMiNXAxRoLWw3NloQbssosE1egrSvzirbQnso7j7E=", - "usagesDigest": "xQt2gTXxeHPqo+xDPEb0l8bxaCWaMbfvKRJcHvysWMI=", + "bzlTransitiveDigest": "4pUxCNc22K4I+6+4Nxu52Hur12tFRfa1JMsN5mdDv60=", + "usagesDigest": "GS0hrS+1xGO6wWmKTqytkZ6FWwnLFKCdsYVhZKvKNFA=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -2418,7 +2429,7 @@ "node_urls": [ "https://nodejs.org/dist/v{version}/{filename}" ], - "node_version": "20.19.5", + "node_version": "22.22.0", "include_headers": false, "platform": "linux_amd64" } @@ -2431,7 +2442,7 @@ "node_urls": [ "https://nodejs.org/dist/v{version}/{filename}" ], - "node_version": "20.19.5", + "node_version": "22.22.0", "include_headers": false, "platform": "linux_arm64" } @@ -2444,7 +2455,7 @@ "node_urls": [ "https://nodejs.org/dist/v{version}/{filename}" ], - "node_version": "20.19.5", + "node_version": "22.22.0", "include_headers": false, "platform": "linux_s390x" } @@ -2457,7 +2468,7 @@ "node_urls": [ "https://nodejs.org/dist/v{version}/{filename}" ], - "node_version": "20.19.5", + "node_version": "22.22.0", "include_headers": false, "platform": "linux_ppc64le" } @@ -2470,7 +2481,7 @@ "node_urls": [ "https://nodejs.org/dist/v{version}/{filename}" ], - "node_version": "20.19.5", + "node_version": "22.22.0", "include_headers": false, "platform": "darwin_amd64" } @@ -2483,7 +2494,7 @@ "node_urls": [ "https://nodejs.org/dist/v{version}/{filename}" ], - "node_version": "20.19.5", + "node_version": "22.22.0", "include_headers": false, "platform": "darwin_arm64" } @@ -2496,7 +2507,7 @@ "node_urls": [ "https://nodejs.org/dist/v{version}/{filename}" ], - "node_version": "20.19.5", + "node_version": "22.22.0", "include_headers": false, "platform": "windows_amd64" } @@ -2509,7 +2520,7 @@ "node_urls": [ "https://nodejs.org/dist/v{version}/{filename}" ], - "node_version": "20.19.5", + "node_version": "22.22.0", "include_headers": false, "platform": "windows_arm64" } @@ -4157,7 +4168,7 @@ "@@score_bazel_cpp_toolchains+//extensions:gcc.bzl%gcc": { "general": { "bzlTransitiveDigest": "A9STU/tWw+bsbgTZ2stI52VvXi23H6AhnDuZ/XpiuDM=", - "usagesDigest": "W5YG/3zCV90Z/1+Fv4VeG/kThCQ+1ltTa2bFNInHyQ0=", + "usagesDigest": "I5884K0MzTutS9ShDT7kU/rfU7wXKIn15iA5wpaHSqY=", "recordedFileInputs": {}, "recordedDirentsInputs": {}, "envVariables": {}, @@ -4245,8 +4256,14 @@ "extra_compile_flags": [], "extra_c_compile_flags": [], "extra_cxx_compile_flags": [], - "extra_known_features": [], - "extra_enabled_features": [], + "extra_known_features": [ + "@@score_cpp_policies+//warnings/gcc/features:strict_warnings", + "@@score_cpp_policies+//warnings/gcc/features:all_wall_warnings" + ], + "extra_enabled_features": [ + "@@score_cpp_policies+//warnings/gcc/features:minimal_warnings", + "@@score_cpp_policies+//warnings/gcc/features:warnings_as_errors" + ], "extra_link_flags": [], "license_info_variable": "", "license_info_value": "", @@ -4272,8 +4289,14 @@ "extra_compile_flags": [], "extra_c_compile_flags": [], "extra_cxx_compile_flags": [], - "extra_known_features": [], - "extra_enabled_features": [], + "extra_known_features": [ + "@@score_cpp_policies+//warnings/gcc/features:strict_warnings", + "@@score_cpp_policies+//warnings/gcc/features:all_wall_warnings" + ], + "extra_enabled_features": [ + "@@score_cpp_policies+//warnings/gcc/features:minimal_warnings", + "@@score_cpp_policies+//warnings/gcc/features:warnings_as_errors" + ], "extra_link_flags": [], "license_info_variable": "", "license_info_value": "", @@ -4504,8 +4527,14 @@ "extra_compile_flags": [], "extra_c_compile_flags": [], "extra_cxx_compile_flags": [], - "extra_known_features": [], - "extra_enabled_features": [], + "extra_known_features": [ + "@@score_cpp_policies+//warnings/gcc/features:strict_warnings", + "@@score_cpp_policies+//warnings/gcc/features:all_wall_warnings" + ], + "extra_enabled_features": [ + "@@score_cpp_policies+//warnings/gcc/features:minimal_warnings", + "@@score_cpp_policies+//warnings/gcc/features:warnings_as_errors" + ], "extra_link_flags": [], "license_info_variable": "", "license_info_value": "", @@ -4531,8 +4560,14 @@ "extra_compile_flags": [], "extra_c_compile_flags": [], "extra_cxx_compile_flags": [], - "extra_known_features": [], - "extra_enabled_features": [], + "extra_known_features": [ + "@@score_cpp_policies+//warnings/gcc/features:strict_warnings", + "@@score_cpp_policies+//warnings/gcc/features:all_wall_warnings" + ], + "extra_enabled_features": [ + "@@score_cpp_policies+//warnings/gcc/features:minimal_warnings", + "@@score_cpp_policies+//warnings/gcc/features:warnings_as_errors" + ], "extra_link_flags": [], "license_info_variable": "", "license_info_value": "", @@ -4554,6 +4589,11 @@ } }, "recordedRepoMappingEntries": [ + [ + "", + "score_cpp_policies", + "score_cpp_policies+" + ], [ "bazel_tools", "rules_cc", From 33c3ba9adb0921e77a25442524668dc3ed0e40f8 Mon Sep 17 00:00:00 2001 From: Srinivasu K Date: Thu, 24 Sep 2026 12:51:01 +0530 Subject: [PATCH 7/7] fix(toolchain): remove x86_64-linux alias and exclude warning suppressions Remove x86_64-linux target configuration alias from .bazelrc in favor of score-linux-x86_64, and exclude compiler warning suppressions from score_toolchain.bazelrc per PR review feedback. Signed-off-by: Srinivasu K --- .bazelrc | 3 --- score.bazelrc/score_toolchain.bazelrc | 5 ----- 2 files changed, 8 deletions(-) diff --git a/.bazelrc b/.bazelrc index 43995a41..a0d64b79 100644 --- a/.bazelrc +++ b/.bazelrc @@ -27,6 +27,3 @@ try-import %workspace%/score.bazelrc/score_toolchain.bazelrc # Import custom user settings # Can be used to enable e.g. sanitizers or other features without modifying the main .bazelrc try-import %workspace%/user.bazelrc - -# Target configuration for CPU:x86-64|OS:Linux build (leveraging central configuration) -build:x86_64-linux --config=score-linux-x86_64 diff --git a/score.bazelrc/score_toolchain.bazelrc b/score.bazelrc/score_toolchain.bazelrc index e2976614..d51d3ee2 100644 --- a/score.bazelrc/score_toolchain.bazelrc +++ b/score.bazelrc/score_toolchain.bazelrc @@ -12,11 +12,6 @@ # ******************************************************************************* build:_score_common --cxxopt=-Wno-error=mismatched-new-delete -build:_score_common --cxxopt=-Wno-error=redundant-decls -build:_score_common --cxxopt=-Wno-error=stringop-overflow -build:_score_common --host_cxxopt=-Wno-error=mismatched-new-delete -build:_score_common --host_cxxopt=-Wno-error=redundant-decls -build:_score_common --host_cxxopt=-Wno-error=stringop-overflow build:_score_common --host_platform=@score_bazel_platforms//:x86_64-linux-gcc_12.2.0-posix build:_score_common --extra_toolchains=@score_toolchains_rust//toolchains/ferrocene:ferrocene_x86_64_unknown_linux_gnu build:_score_common --extra_toolchains=@score_gcc_x86_64_toolchain//:x86_64-linux-gcc_12.2.0