Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in build test #268

Open
AzzHub opened this issue Oct 19, 2024 · 1 comment
Open

Error in build test #268

AzzHub opened this issue Oct 19, 2024 · 1 comment

Comments

@AzzHub
Copy link

AzzHub commented Oct 19, 2024

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?

@Youpen-y
Copy link

Youpen-y commented Oct 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants