bazel-contrib / bazel-contrib/rules_go
No such target '@@rules_go+//go/toolchain:loongarch64'
- Dominant language
- Go
- Stars
- 1.5k
- Forks
- 760
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 12
Description
I encountered the following problem when building bazel on a loongarch64 architecture CPU:
```
ERROR: /tmp/bazel_ZehUYc76/out/external/rules_go+/go/toolchain/BUILD.bazel: no such target '@@rules_go+//go/toolchain:loongarch64': target 'loongarch64' not declared in package 'go/toolchain' defined by /tmp/bazel_ZehUYc76/out/external/rules_go+/go/toolchain/BUILD.bazel
ERROR: /tmp/bazel_ZehUYc76/out/external/rules_go++go_sdk+go_toolchains/BUILD.bazel:9:25: no such target '@@rules_go+//go/toolchain:loongarch64': target 'loongarch64' not declared in package 'go/toolchain' defined by /tmp/bazel_ZehUYc76/out/external/rules_go+/go/toolchain/BUILD.bazel and referenced by '@@rules_go++go_sdk+go_toolchains//:_0000_cel-spec__download_0_go_aix_ppc64'
```
This issue is similar to: https://github.com/bazel-contrib/rules_go/issues/4053
Contributor guide
Research direction
Reproduce the loongarch64 build and inspect the generated external rules_go+/go/toolchain/BUILD.bazel and rules_go++go_sdk+go_toolchains/BUILD.bazel locations shown in the error. Compare the missing loongarch64 target with the related rules_go issue 4053. Done means the build no longer reports the undeclared target on loongarch64.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 48/100