Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
svenstaro opened this issue Dec 18, 2024 · 2 comments
Labels
team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug untriaged

Comments

@svenstaro
Copy link

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

@iancha1992 iancha1992 added the team-Configurability platforms, toolchains, cquery, select(), config transitions label Dec 18, 2024
@gregestren gregestren added team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website and removed team-Configurability platforms, toolchains, cquery, select(), config transitions labels Dec 20, 2024
@gregestren
Copy link
Contributor

Anyone responsible for bootstrapping have insights? That's a configurability-related term but I think the issue is with bootstrapping setup?

@svenstaro
Copy link
Author

Anyone responsible for bootstrapping have insights? That's a configurability-related term but I think the issue is with bootstrapping setup?

Can you reproduce this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug untriaged
Projects
None yet
Development

No branches or pull requests

5 participants