build: add bazel configs for QNX 8 - #10
Draft
stmuench wants to merge 3 commits into
Draft
Conversation
Since the //src directory will not be used in this repository in favor of the //score directory.
Rework the Bazel setup to use the eclipse-score toolchains and platforms
instead of the generic cpp/rust template config:
- MODULE.bazel:
- rename module to "score_diagnostics"
- add score_bazel_platforms and score_bazel_cpp_toolchains (GCC 12.2.0)
- replace toolchains_llvm host toolchain with the score GCC toolchain
- switch rules_rust to 0.68.1-score and add score_toolchains_rust
(Ferrocene) plus score_crates / crate_universe (score_crate_index)
- align score_tooling (1.1.2) and aspect_rules_lint (2.3.0) versions
- drop the obsolete grpc-java single_version_override
- .bazelrc:
- replace the bl-x86_64-linux config with score_diag_x86_64_linux,
composed of common build settings, GCC host platform and the
x86_64-linux target platform + Ferrocene/GCC toolchains
- add strict-warnings/warnings-as-errors features and strict action env
- .github/workflows/build_linux.yml: use the new score_diag_x86_64_linux
config for build and test
- regenerate MODULE.bazel.lock for the new dependency graph
The stale lockfile referenced the previously selected transitive versions
(rules_pkg 1.2.0, tar.bzl 0.7.0). After the dependency rewrite MVS selects
lower versions (rules_pkg 1.1.0, tar.bzl 0.5.1) whose registry entries were
missing. Refreshing the lockfile facilitates the bazel command
`bazel build --config=score_diag_x86_64_linux -- //examples/... //tests/...`
to now work again.
License Check Results🚀 The license check job ran with the Bazel command: bazel run --lockfile_mode=error //:license-checkStatus: Click to expand output |
|
The created documentation from the pull request is available at: docu-html |
Add QNX SDP 8.0.0 toolchain registrations for aarch64 and x86_64, the imagefs toolchains needed to create QNX IFS images, and a public `score_diag_aarch64_qnx` config that combines the common build settings with the QNX target platform and toolchains. The QNX SDP artifacts are license-gated on qnx.com, so Bazel must authenticate repository downloads before it can fetch the toolchain packages. The `score_diag_aarch64_qnx` config includes a config named `_score_diag_qnx_credential_helper` which registers a python tool as Bazel's credential helper only for *.qnx.com requests. During a QNX download, Bazel invokes the helper with the requested URI on stdin. The helper rejects non-QNX domains, attempts to resolve credentials from env variables `SCORE_QNX_USER` and `SCORE_QNX_PASSWORD` first and otherwise falls back to the machine qnx.com entry in ~/.netrc. To use the config, users need an assigned QNX 8 license on their qnx.com account, credentials provided either through `SCORE_QNX_USER`/`SCORE_QNX_PASSWORD` or via ~/.netrc and a local QNX license under /opt/score_qnx/license/licenses prior to being able to build with `--config=score_diag_aarch64_qnx`.
stmuench
force-pushed
the
add_bazel_configs_for_qnx8
branch
from
July 8, 2026 14:17
f0029a0 to
a22a1bd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add QNX SDP 8.0.0 toolchain registrations for aarch64 and x86_64, the imagefs toolchains needed to create QNX IFS images, and a public
score_diag_aarch64_qnxconfig that combines the common build settings with the QNX target platform and toolchains.The QNX SDP artifacts are license-gated on qnx.com, so Bazel must authenticate repository downloads before it can fetch the toolchain packages. The
score_diag_aarch64_qnxconfig includes a config named_score_diag_qnx_credential_helperwhich registers a python tool as Bazel's credential helper only for *.qnx.com requests. During a QNX download, Bazel invokes the helper with the requested URI on stdin. The helper rejects non-QNX domains, attempts to resolve credentials from env variablesSCORE_QNX_USERandSCORE_QNX_PASSWORDfirst and otherwise falls back to the machine qnx.com entry in ~/.netrc.To use the config, users need an assigned QNX 8 license on their qnx.com account, credentials provided either through
SCORE_QNX_USER/SCORE_QNX_PASSWORDor via ~/.netrc and a local QNX license under /opt/score_qnx/license/licenses prior to being able to build with--config=score_diag_aarch64_qnx.Depends-On: #9