Skip to content

8.0.0 doesn't bootstrap: target 'function_transition_allowlist' not declared in package 'tools/allowlists/function_transition_allowlist' #24747

@svenstaro

Description

@svenstaro

Description of the bug:

I'm on Arch Linux with OpenJDK 21 and I try to build bazel 8.0.0 following the official bootstrapping instructions. I get this:

EXTRA_BAZEL_ARGS="--tool_java_runtime_version=local_jdk" ./compile.sh
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.
WARNING: Couldn't auto load rules or symbols, because no dependency on module/repository 'rules_android' found. This will result in a failure if there's a reference to those rules or symbols.
DEBUG: /tmp/bazel_gzgyPZVJ/out/external/rules_jvm_external+/private/extensions/maven.bzl:146:14: The maven repository 'maven' is used in two different bazel modules, originally in 'bazel' and now in 'grpc-java'
DEBUG: /tmp/bazel_gzgyPZVJ/out/external/rules_jvm_external+/private/extensions/maven.bzl:146:14: The maven repository 'maven' is used in two different bazel modules, originally in 'bazel' and now in 'protobuf'
ERROR: /tmp/bazel_gzgyPZVJ/out/external/bazel_tools/tools/allowlists/function_transition_allowlist/BUILD: no such target '@@bazel_tools//tools/allowlists/function_transition_allowlist:function_transition_allowlist': target 'function_transition_allowlist' not declared in package 'tools/allowlists/function_transition_allowlist' defined by /tmp/bazel_gzgyPZVJ/out/external/bazel_tools/tools/allowlists/function_transition_allowlist/BUILD
ERROR: /tmp/bazel_gzgyPZVJ/out/external/rules_java+/toolchains/BUILD:339:27: every rule of type java_runtime_version_alias implicitly depends upon the target '@@bazel_tools//tools/allowlists/function_transition_allowlist:function_transition_allowlist', but this target could not be found because of: no such target '@@bazel_tools//tools/allowlists/function_transition_allowlist:function_transition_allowlist': target 'function_transition_allowlist' not declared in package 'tools/allowlists/function_transition_allowlist' defined by /tmp/bazel_gzgyPZVJ/out/external/bazel_tools/tools/allowlists/function_transition_allowlist/BUILD
ERROR: Analysis of target '//src:bazel_nojdk' failed; build aborted: Analysis failed
INFO: Elapsed time: 3.760s, Critical Path: 0.02s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
FAILED: 
    Fetching ...y @@rules_cc++cc_configure_extension+local_config_cc; starting
    Fetching repository @@abseil-cpp+; starting
    Fetching repository @@rules_java++toolchains+remote_java_tools; starting
    Fetching ...ory @@rules_java++toolchains+remote_java_tools_linux; starting
    Fetching .../external/abseil-cpp+; Extracting abseil-cpp-20240722.0.tar.gz
    Fetching repository @@rules_apple+; starting
    Fetching repository @@googleapis+; starting
    Fetching ...s_apple+; Extracting rules_apple.3.5.1.tar.gz ... (13 fetches)

ERROR: Could not build Bazel

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.

EXTRA_BAZEL_ARGS="--tool_java_runtime_version=local_jdk" ./compile.sh

Which operating system are you running Bazel on?

Arch Linux

What is the output of bazel info release?

N/A

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

N/A

What's the output of git remote get-url origin; git rev-parse HEAD ?

N/A

If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

N/A

Have you found anything relevant by searching the web?

N/A

Any other information, logs, or outputs that you want to share?

N/A

Metadata

Metadata

Assignees

Labels

P2We'll consider working on this in future. (Assignee optional)team-OSSIssues for the Bazel OSS team: installation, release processBazel packaging, websitetype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions