Build of target //xla/tools:run_hlo_module failed - no such target '@com_google_protobuf//:any_cc_proto'
Closed this issue · 5 comments
Build of target //xla/tools:run_hlo_module
failed
no such target '@com_google_protobuf//:any_cc_proto'
Log:
INFO: Build options --compilation_mode, --copt, --cxxopt, and 1 more have changed, discarding analysis cache.
ERROR: /local/home/pivovaa/workspace/xla/xla/backends/interpreter/BUILD:67:11: no such target '@com_google_protobuf//:any_cc_proto': target 'any_cc_proto' not declared in package '' defined by /local/home/pivovaa/.cache/bazel/_bazel_pivovaa/0e997ddc2bf61ebd028b3d99dca42844/external/com_google_protobuf/BUILD.bazel (did you mean 'any_proto'? Tip: use `query "@com_google_protobuf//:*"` to see all the targets in that package) and referenced by '//xla/backends/interpreter:platform_id'
ERROR: Analysis of target '//xla/tools:run_hlo_module' failed; build aborted:
INFO: Elapsed time: 0.756s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (17 packages loaded, 1603 targets configured)
Suspecting commit f50749a
David, can you have a look? @ddunl
Sorry about that! I'll make a fix tomorrow morning.
Hi David, I just tried to build it again. I'm using the latest XLA
commit c53e9f4e48f11d0da3469c85a0692db7ebd2a5d3 (HEAD -> main, origin/main, origin/HEAD)
Author: Benjamin Kramer <kramerb@google.com>
Date: Wed Jun 26 08:54:46 2024 -0700
Error: no such target '@com_google_protobuf//:any_cc_proto': target 'any_cc_proto' not declared in
Output:
bazel build //xla/tools:run_hlo_module
INFO: Build options --compilation_mode, --copt, --cxxopt, and 1 more have changed, discarding analysis cache.
ERROR: /local/home/pivovaa/workspace/xla/xla/backends/interpreter/BUILD:67:11: no such target '@com_google_protobuf//:any_cc_proto': target 'any_cc_proto' not declared in package '' defined by /local/home/pivovaa/.cache/bazel/_bazel_pivovaa/0e997ddc2bf61ebd028b3d99dca42844/external/com_google_protobuf/BUILD.bazel (did you mean 'any_proto'? Tip: use `query "@com_google_protobuf//:*"` to see all the targets in that package) and referenced by '//xla/backends/interpreter:platform_id'
ERROR: Analysis of target '//xla/tools:run_hlo_module' failed; build aborted:
INFO: Elapsed time: 0.246s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded, 355 targets configured)
Fetching repository @llvm-project; starting
The fix is in the PR linked on this issue, unfortunately things are broken on HEAD right now so the fix may take a few more hours still to land. Sorry for the delay!
Please reopen if my fix doesn't work!
Thank you, David.
Apparently, one additional fix is needed - #14224
After that I was able to build run_hlo_module
tool.
Can you look at the fix?