Skip to content

rules_cc is incompatible with --incompatible_no_rule_outputs_param #602

@Mizux

Description

@Mizux

related to:

I was able to reproduce on this small pet project (https://mizux.dev/bazel-cpp) using [email protected]

Protocol:

git clone [email protected]:Mizux/bazel-cpp.git
cd bazel-cpp
bazelisk --migrate build //examples/...

Relevant Trace:

--- Running Bazel with --incompatible_no_rule_outputs_param
bazel build //examples/... --incompatible_no_rule_outputs_param
INFO: Reading 'startup' options from bazel-cpp/.bazelrc: --windows_enable_symlinks
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=127
INFO: Reading rc options for 'build' from bazel-cpp/.bazelrc:
  Inherited 'common' options: --announce_rc
INFO: Reading rc options for 'build' from bazel-cpp/.bazelrc:
  'build' options: --define absl=1 --enable_platform_specific_config --apple_platform_type=macos
INFO: Found applicable config definition build:linux in file bazel-cpp/.bazelrc: --cxxopt=-std=c++20 --host_cxxopt=-std=c++20 --cxxopt=-Wno-sign-compare --host_cxxopt=-Wno-sign-compare
ERROR: Traceback (most recent call last):
	File "~/.cache/bazel/.../external/rules_cc+/cc/private/rules_impl/cc_binary.bzl", line 875, column 11, in <toplevel>
		cc_binary = rule(
Error in rule: in call to rule(), parameter 'outputs' is deprecated and will be removed soon. It may be temporarily re-enabled by setting --incompatible_no_rule_outputs_param=false
WARNING: Target pattern parsing failed.
ERROR: Skipping '//examples/...': error loading package under directory 'examples': error loading package 'examples': at ~/.cache/bazel/.../external/rules_cc+/cc/defs.bzl:18:6: at ~/.cache/bazel/.../external/rules_cc+/cc/cc_library.bzl:16:6: at ~/.cache/bazel/.../external/rules_cc++compatibility_proxy+cc_compatibility_proxy/proxy.bzl:2:6: initialization of module 'cc/private/rules_impl/cc_binary.bzl' failed
ERROR: error loading package under directory 'examples': error loading package 'examples':
 at ~/.cache/bazel/.../external/rules_cc+/cc/defs.bzl:18:6:
 at ~/.cache/bazel/.../external/rules_cc+/cc/cc_library.bzl:16:6:
 at ~/.cache/bazel/.../external/rules_cc++compatibility_proxy+cc_compatibility_proxy/proxy.bzl:2:6: initialization of module 'cc/private/rules_impl/cc_binary.bzl' failed
INFO: Elapsed time: 0.589s
INFO: 0 processes.
ERROR: Build did NOT complete successfully


Command was successful with the following flags:
 ... # nearly all ! expect the one below...
Migration is needed for the following flags:
  --incompatible_no_rule_outputs_param

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)category: core rulestype: internal cleanupDoes not directly address a feature request or a bug report, but improves project hygiene

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions