connot build Bazel 6.4.0 on loongarch64
- Dominant language
- Java
- Stars
- 25.8k
- Forks
- 4.6k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 72
Description
### Description of the bug:
[root@bogon bazel]# export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-11.3.0.a.ky10.loongarch64/
[root@bogon bazel]# env EXTRA_BAZEL_ARGS="--tool_java_runtime_version=local_jdk" bash ./compile.sh
🍃 Building Bazel from scratch......
🍃 Building Bazel with Bazel.
DEBUG: /tmp/bazel_BXZrrnTt/out/external/build_bazel_rules_nodejs/index.bzl:122:10: WARNING: check_rules_nodejs_version h as been removed. This is a no-op, please remove the call.
ERROR: /tmp/bazel_BXZrrnTt/out/external/local_config_cc/BUILD:47:19: in cc_toolchain_suite rule @local_config_cc//:toolc hain: cc_toolchain_suite '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'unknown'
ERROR: /tmp/bazel_BXZrrnTt/out/external/local_config_cc/BUILD:47:19: Analysis of target '@local_config_cc//:toolchain' f ailed
INFO: Repository zstd-jni instantiated at:
/home/sunway-cloud-dam-py/bazel/WORKSPACE:287:18: in
/home/sunway-cloud-dam-py/bazel/distdir.bzl:94:17: in dist_http_archive
Repository rule http_archive defined at:
/home/sunway-cloud-dam-py/bazel/tools/build_defs/repo/http.bzl:372:31: in
ERROR: Analysis of target '//src:bazel_nojdk' failed; build aborted:
INFO: Elapsed time: 8.205s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (253 packages loaded, 2095 targets\
configured)
currently loading: @com_google_protobuf//java/util
Fetching repository @blake3; starting
Fetching /tmp/bazel_BXZrrnTt/out/external/blake3; Extracting 1.3.3.zip
ERROR: Could not build Bazel
### Which category does this issue belong to?
Core
### 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?
loongarch64 linux
### 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 master; git rev-parse HEAD` ?
_No response_
### Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
_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_
Contributor guide
Research direction
Start with compile.sh and the reported local_config_cc toolchain error when building on loongarch64 Linux with Java 11. Inspect WORKSPACE and tools/build_defs/repo/http.bzl, then reproduce the failure with the provided EXTRA_BAZEL_ARGS setting. Done means Bazel 6.4.0 builds successfully on loongarch64.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, linux
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100