Hi, I use the reference @bazel_tools//platforms:mips64 in LocalConfigPlatformFunction. The content of the file is as follows:
```
@Nullable
static String cpuToConstraint(CPU cpu) {
switch (cpu) {
case X86_32:
return "@platforms//cpu:x86_32";
case X86_64:
return "@platforms//cpu:x86_64";
case PPC:
return "@platforms//cpu:ppc";
case ARM:
return "@platforms//cpu:arm";
case AARCH64:
return "@platforms//cpu:aarch64";
case S390X:
return "@platforms//cpu:s390x";
case MIPS64:
return "@bazel_tools//platforms:mips64";
default:
// Unknown, so skip it.
return null;
}
}
```
And the content of tools/platforms/BUILD.tools is as follows:
```
alias(
name = "mips64",
actual = "@bazel_tools//platforms:mips64",
)
```
And then I execute `env EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" bash ./compile.sh`. A new problem occurs:
```
ERROR: Cycle detected but could not be properly displayed due to an internal problem. Please file an issue. Raw display: topLevelKey: //src:bazel_nojdk BuildConfigurationValue.Key[6aaa5ad37201d3073d374fc153694f27fc6135867f40d46e5326de0aac1ac6f5]
alreadyReported: false
path to cycle:
//src:bazel_nojdk BuildConfigurationValue.Key[6aaa5ad37201d3073d374fc153694f27fc6135867f40d46e5326de0aac1ac6f5]
//src:bazel-bin_nojdk BuildConfigurationValue.Key[6aaa5ad37201d3073d374fc153694f27fc6135867f40d46e5326de0aac1ac6f5]
ToolchainContextKey{configurationKey=BuildConfigurationValue.Key[6aaa5ad37201d3073d374fc153694f27fc6135867f40d46e5326de0aac1ac6f5], requiredToolchainTypeLabels=[], execConstraintLabels=[], shouldSanityCheckConfiguration=false}
@local_config_platform//:host BuildConfigurationValue.Key[6aaa5ad37201d3073d374fc153694f27fc6135867f40d46e5326de0aac1ac6f5]
cycle:
@bazel_tools//platforms:mips64 BuildConfigurationValue.Key[6aaa5ad37201d3073d374fc153694f27fc6135867f40d46e5326de0aac1ac6f5]
ERROR: Analysis of target '//src:bazel_nojdk' failed; build aborted
```
------------------ 原始邮件 ------------------
发送时间: 2020年7月15日(星期三) 晚上8:19