question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build error using bazel 1.0.0 version in CLion

See original GitHub issue

I’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:open
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jovany-wangcommented, Dec 30, 2019

Try it again with bazel 1.1?

0reactions
mattipcommented, Oct 21, 2022

I think we should close this. Ray now builds with bazel 4.2.2.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found