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

fail to build a buildfarm on ARM using bazel #24197

Closed
RosyCheek opened this issue Nov 5, 2024 · 3 comments
Closed

fail to build a buildfarm on ARM using bazel #24197

RosyCheek opened this issue Nov 5, 2024 · 3 comments
Labels
team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: support / not a bug (process) untriaged

Comments

@RosyCheek
Copy link

Description of the bug:

I tried to build a buildfarm on ARM using bazel, but it failed. The same project configuration is successful on the x86.

The following error information is displayed:

ERROR: /app-buildfarm/.cache/e39f79732b8e64d60a97aef9f772a647/external/rules_java5.5.1toolchainsremote_java_tools/BUILD:372:11: error loading package '@rules_java5.5.1toolchainsremote_java_tools//java_tools/zlib': Unable to find package for @[unknown repo 'rules_license' requested from @rules_java5.5.1toolchainsremote_java_tools]//rules:license.bzl: The repository '@[unknown repo 'rules_license' requested from @rules_java5.5.1toolchainsremote_java_tools]' could not be resolved: No repository visible as '@rules_license' from repository '@rules_java5.5.1toolchainsremote_java_tools'. and referenced by '@rules_java5.5.1toolchainsremote_java_tools//:singlejar_cc_bin_main'

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 ?

No response

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

@satyanandak satyanandak added team-Rules-Java Issues for Java rules team-Remote-Exec Issues and PRs for the Execution (Remote) team labels Nov 5, 2024
@satyanandak satyanandak removed team-Rules-Java Issues for Java rules team-Remote-Exec Issues and PRs for the Execution (Remote) team labels Nov 5, 2024
@satyanandak
Copy link

@RosyCheek Could you please provide more details?

@RosyCheek
Copy link
Author

@RosyCheek Could you please provide more details?

I use Bazel 6.4.0 ( and have tried higher version)
and run
bazel build //src/main/java/build/buildfarm:buildfarm-server --jvmopt="-Xmx256g"

It failed with the error:
/app-buildfarm/.cache/e39f79732b8e64d60a97aef9f772a647/external/rules_java5.5.1toolchainsremote_java_tools/BUILD:372:11: error loading package '@rules_java5.5.1toolchainsremote_java_tools//java_tools/zlib': Unable to find package for @[unknown repo 'rules_license' requested from @rules_java5.5.1toolchainsremote_java_tools]//rules:license.bzl: The repository '@[unknown repo 'rules_license' requested from @rules_java5.5.1toolchainsremote_java_tools]' could not be resolved: No repository visible as '@rules_license' from repository '@rules_java5.5.1toolchainsremote_java_tools'. and referenced by '@rules_java5.5.1toolchainsremote_java_tools//:singlejar_cc_bin_main'

I don't define anything about rules_java5.5.1(There is a define in my MODULE.bazel.lock file, but it use rules_java7.1.0. It seems not been uesd) in my buildfarm, and I think it's download while Bazel building.

@satyanandak satyanandak added type: support / not a bug (process) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website and removed type: bug labels Nov 5, 2024
@meteorcloudy
Copy link
Member

This should be an issue filed against buildfarm

@meteorcloudy meteorcloudy closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2024
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: support / not a bug (process) untriaged
Projects
None yet
Development

No branches or pull requests

5 participants