-
Couldn't load subscription status.
- Fork 4.3k
Open
Labels
team-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websiteIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: buguntriaged
Description
Description of the bug:
Disclaimer: this may potentially be specific to how NixOS packaged bazel_7 build is set up, but reporting in case it rings any bells
When trying to update 7.6.0->7.6.2 in NixOS nixpkgs hitting an issue with bootstrap:
Running phase: buildPhase
Stage 1 - Running bazel bootstrap script
🍃 Building Bazel from scratch......
🍃 Building Bazel with Bazel.
.OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Computing main repo mapping:
Loading:
Loading: 0 packages loaded
Analyzing: target //src:bazel_nojdk (1 packages loaded, 0 targets configured)
Analyzing: target //src:bazel_nojdk (1 packages loaded, 0 targets configured)
ERROR: /build/bazel_57H7f7xx/out/external/bazel_features~~version_extension~bazel_features_globals/globals.bzl:4:13: name 'macro' is not defined
ERROR: error loading package 'src/main/protobuf': at /build/bazel_57H7f7xx/out/external/rules_proto~/proto/defs.bzl:18:6: at /build/bazel_57H7f7xx/out/external/rules_proto~/proto/proto_toolchain.bzl:17:6: at /build/bazel_57H7f7xx/out/external/rules_proto~/proto/private/rules/proto_toolchain.bzl:20:6: at /build/bazel_57H7f7xx/out/external/rules_proto~/proto/private/rules/proto_toolchain_rule.bzl:17:6: at /build/bazel_57H7f7xx/out/external/bazel_features~/features.bzl:3:6: compilation of module 'globals.bzl' failed
ERROR: /build/bazel_src/src/BUILD:91:11: error loading package 'src/main/protobuf': at /build/bazel_57H7f7xx/out/external/rules_proto~/proto/defs.bzl:18:6: at /build/bazel_57H7f7xx/out/external/rules_proto~/proto/proto_toolchain.bzl:17:6: at /build/bazel_57H7f7xx/out/external/rules_proto~/proto/private/rules/proto_toolchain.bzl:20:6: at /build/bazel_57H7f7xx/out/external/rules_proto~/proto/private/rules/proto_toolchain_rule.bzl:17:6: at /build/bazel_57H7f7xx/out/external/bazel_features~/features.bzl:3:6: compilation of module 'globals.bzl' failed and referenced by '//src:embedded_tools_nojdk_srcs'
ERROR: Analysis of target '//src:bazel_nojdk' failed; build aborted: Analysis failedand the globals.bzl looks like so
globals = struct(
CcSharedLibraryInfo = CcSharedLibraryInfo,
CcSharedLibraryHintInfo = CcSharedLibraryHintInfo,
macro = macro,
PackageSpecificationInfo = PackageSpecificationInfo,
RunEnvironmentInfo = RunEnvironmentInfo,
...
For 7.6.0 max version for bazel_features in MODULE.bazel.lock is 1.11.0, but in 7.6.2 it is 1.27.0, not sure if that could be a bug in bazel_features or rather in bootstrap
Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
No response
What is the output of bazel info release?
No response
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
No response
What's the output of git remote get-url origin; git rev-parse HEAD ?
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
Metadata
Metadata
Assignees
Labels
team-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websiteIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: buguntriaged