You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I build the test with bazel test //tcmalloc/...
It throws ERROR: /home/anzz/.cache/bazel/_bazel_anzz/915384a0ef4d78473a63d7e16d3b9c02/external/abseil-cpp~/absl/status/BUILD.bazel: no such target '@@abseil-cpp~//absl/status:status_matchers': target 'status_matchers' not declared in package 'absl/status' defined by /home/anzz/.cache/bazel/_bazel_anzz/915384a0ef4d78473a63d7e16d3b9c02/external/abseil-cpp~/absl/status/BUILD.bazel ERROR: /home/anzz/tcmalloc/tcmalloc/internal/BUILD:809:8: no such target '@@abseil-cpp~//absl/status:status_matchers': target 'status_matchers' not declared in package 'absl/status' defined by /home/anzz/.cache/bazel/_bazel_anzz/915384a0ef4d78473a63d7e16d3b9c02/external/abseil-cpp~/absl/status/BUILD.bazel and referenced by '//tcmalloc/internal:profile_builder_no_tcmalloc_test' ERROR: Analysis of target '//tcmalloc/internal:profile_builder_no_tcmalloc_test' failed; build aborted: Analysis failed INFO: Elapsed time: 0.284s, Critical Path: 0.00s INFO: 0 processes. ERROR: Build did NOT complete successfully ERROR: No test targets were found, yet testing was requested
I am confused why it can't find status_matchers?
The text was updated successfully, but these errors were encountered:
I got the same question. The reason is that the abseil-cpp that declared in MODULE.bazel is a little outdated.
change corresponding line to bazel_dep(name = "abseil-cpp", version = "20240722.0", repo_name = "com_google_absl")
will solve it.
When I build the test with
bazel test //tcmalloc/...
It throws
ERROR: /home/anzz/.cache/bazel/_bazel_anzz/915384a0ef4d78473a63d7e16d3b9c02/external/abseil-cpp~/absl/status/BUILD.bazel: no such target '@@abseil-cpp~//absl/status:status_matchers': target 'status_matchers' not declared in package 'absl/status' defined by /home/anzz/.cache/bazel/_bazel_anzz/915384a0ef4d78473a63d7e16d3b9c02/external/abseil-cpp~/absl/status/BUILD.bazel ERROR: /home/anzz/tcmalloc/tcmalloc/internal/BUILD:809:8: no such target '@@abseil-cpp~//absl/status:status_matchers': target 'status_matchers' not declared in package 'absl/status' defined by /home/anzz/.cache/bazel/_bazel_anzz/915384a0ef4d78473a63d7e16d3b9c02/external/abseil-cpp~/absl/status/BUILD.bazel and referenced by '//tcmalloc/internal:profile_builder_no_tcmalloc_test' ERROR: Analysis of target '//tcmalloc/internal:profile_builder_no_tcmalloc_test' failed; build aborted: Analysis failed INFO: Elapsed time: 0.284s, Critical Path: 0.00s INFO: 0 processes. ERROR: Build did NOT complete successfully ERROR: No test targets were found, yet testing was requested
I am confused why it can't find status_matchers?
The text was updated successfully, but these errors were encountered: