Build error using bazel 1.0.0 version in CLion
See original GitHub issueI’m using bazel 1.0.0 version to build master branch in CLion with bazel plugin but it fails with message below:
ERROR: /xx/projects/ray/BUILD.bazel:760:1: no such target '@plasma//:cpp/src/plasma/format/common.fbs': target 'cpp/src/plasma/format/common.fbs' not declared in package '' defined by /private/var/tmp/_bazel_xx/0dbee3530b4b132aa2c4b01c8e9a1aae/external/plasma/BUILD.bazel and referenced by '//:common_fbs_srcs'
ERROR: /Users/xx/projects/ray/BUILD.bazel:760:1: no such target '@plasma//:cpp/src/plasma/format/common.fbs': target 'cpp/src/plasma/format/common.fbs' not declared in package '' defined by /private/var/tmp/_bazel_xx/0dbee3530b4b132aa2c4b01c8e9a1aae/external/plasma/BUILD.bazel and referenced by '//:common_fbs_includes'
ERROR: /private/var/tmp/_bazel_xx/0dbee3530b4b132aa2c4b01c8e9a1aae/external/local_config_cc/BUILD:48:1: in @intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect aspect on cc_toolchain_suite rule @local_config_cc//:toolchain:
Traceback (most recent call last):
File "/private/var/tmp/_bazel_xx/0dbee3530b4b132aa2c4b01c8e9a1aae/external/local_config_cc/BUILD", line 48
@intellij_aspect//:intellij_info_bundled.bzl%intellij_info_aspect(...)
File "/private/var/tmp/_bazel_xx/0dbee3530b4b132aa2c4b01c8e9a1aae/external/intellij_aspect/intellij_info_bundled.bzl", line 53, in _aspect_impl
intellij_info_aspect_impl(target, ctx, semantics)
File "/private/var/tmp/_bazel_xx/0dbee3530b4b132aa2c4b01c8e9a1aae/external/intellij_aspect/intellij_info_impl.bzl", line 785, in intellij_info_aspect_impl
collect_c_toolchain_info(target, ctx, semantics, ide_info, <2 more arguments>)
File "/private/var/tmp/_bazel_xx/0dbee3530b4b132aa2c4b01c8e9a1aae/external/intellij_aspect/intellij_info_impl.bzl", line 365, in collect_c_toolchain_info
cc_common.configure_features(cc_toolchain = cpp_toolchain, requ..., ...))
Incompatible flag --incompatible_require_ctx_in_configure_features has been flipped, and the mandatory parameter 'ctx' of cc_common.configure_features is missing. Please add 'ctx' as a named parameter. See https://github.com/bazelbuild/bazel/issues/7793 for details.
I’ve tried bazel 1.2.1 and 0.29 and it doesn’t work also. Does anyone know how to fix this?
Thanks in advance.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
IDE integration - Bazel 1.0.0
Official plugin for IntelliJ, Android Studio, and CLion. ... Import BUILD files into the IDE with semantic awareness of Bazel targets. Make your...
Read more >How can I use external C++ libraries with Bazel in CLion?
Building from the command line works just fine with just the @system_libs//:xercesc dependency. This seems to just be a CLion indexing issue.
Read more >Bazel - CLion Plugin - JetBrains Marketplace
Compatible with CLion. Overview. Versions. Reviews. Bazel support for CLion. Features: Import BUILD files into the IDE. BUILD file custom language support.
Read more >Quick start guide | CLion Documentation - JetBrains
CLion fully integrates with the CMake build system: you can create, ... to install it separately unless you decide to use a custom...
Read more >Bazel Release 1.0 - Hacker News
The docker rules reimplement image building from scratch (they don't actually use docker). The (Google maintained) python rules shell out to pip ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try it again with bazel 1.1?
I think we should close this. Ray now builds with bazel 4.2.2.