bazelbuild / bazelbuild/rules_cc

rules_cc is incompatible with --incompatible_no_rule_outputs_param

Open
#602 3 comments 1 reaction 0 assignees View on GitHub
category: core rules P3 type: internal cleanup
Dominant language
Starlark
Stars
247
Forks
196
PR merge metrics
No merged PRs in 30d

Description

related to:
* https://github.com/bazelbuild/rules_cc/issues/43

I was able to reproduce on this small pet project (https://mizux.dev/bazel-cpp) using `rules_cc@0.2.16`

Protocol:
```sh
git clone git@github.com: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
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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.