Closed FH0 closed 1 year ago
bazel version: bazel 3.5.1- (@non-git) commit: 6e7791f7da5883d8edf585e621eea6a465adcc20 uname -a: Linux cf8c6ca46f1e 4.18.0-348.20.1.el7.aarch64 #1 SMP Wed Apr 13 20:57:50 UTC 2022 aarch64 GNU/Linux
I don't know why it is failed. @platforms//os:linux should match //conditions:default and using -lpthread.
@platforms//os:linux
//conditions:default
-lpthread
# bazel --output_base=./bazel/output build //quiche:quiche_core --jobs $(nproc) Starting local Bazel server and connecting to it... ERROR: /go/quiche/bazel/output/external/boringssl/BUILD:152:11: @platforms//os:linux is not a valid configuration key for @boringssl//:crypto ERROR: Analysis of target '//quiche:quiche_core' failed; build aborted: Analysis failed INFO: Elapsed time: 3.050s INFO: 0 processes. FAILED: Build did NOT complete successfully (33 packages loaded, 88 targets configured) currently loading: @com_google_protobuf// Fetching @rules_pkg; fetching
cc_library( name = "crypto", srcs = crypto_sources + crypto_internal_headers + crypto_sources_asm, hdrs = crypto_headers + fips_fragments, copts = boringssl_copts_c11, includes = ["src/include"], linkopts = select({ # Android supports pthreads, but does not provide a libpthread # to link against. "@platforms//os:android": [], "@platforms//os:macos": [], "@platforms//os:windows": ["-defaultlib:advapi32.lib"], "//conditions:default": ["-lpthread"], }), visibility = ["//visibility:public"], )
bazel 3.5.1 is too old. 6.0.0 fix it.
bazel version: bazel 3.5.1- (@non-git) commit: 6e7791f7da5883d8edf585e621eea6a465adcc20 uname -a: Linux cf8c6ca46f1e 4.18.0-348.20.1.el7.aarch64 #1 SMP Wed Apr 13 20:57:50 UTC 2022 aarch64 GNU/Linux
I don't know why it is failed.
@platforms//os:linux
should match//conditions:default
and using-lpthread
.