Skip to content

Illegal ambiguous match on configurable attribute cc headers #2993

@keith

Description

@keith

🐞 bug report

Affected Rule

@python_3_9//:python_headers

Is this a regression?

Yes, worked in 1.4.0, fails in 1.5.0-rc0, bisected to 367d09e

Description

cc_library(
    name = "foo",
    deps = [
        "@python_3_9//:python_headers",
    ],
)

This fails with:

ERROR: .../external/rules_python++python+python_3_9/BUILD.bazel:19:18: Illegal ambiguous match on configurable attribute "actual" in @@rules_python++python+python_3_9//:python_headers:
@@rules_python++python+python_3_9//:x86_64-unknown-linux-gnu
@@rules_python++python+python_3_9//:x86_64-unknown-linux-musl

🔬 Minimal Reproduction

repro.zip

🌍 Your Environment

Operating System:

  
linux x86_64
  

Output of bazel version:

  
8.2.1
  

Rules_python version:

1.5.0-rc4, still repros @ https://github.com/bazelbuild/rules_python//commit/94e08f7dfe61962fa50508f01ea05c624307d487

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugtype: toolchainRelated to the toolchains provided by rules_python

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions