Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel build for rules_docker#java_image fails with "No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type. Maybe --incompatible_use_cc_configure_from_rules_cc has been flipped and there is no default C++ toolchain added in the WORKSPACE file" #15629

Closed
xushaoxiao opened this issue Jun 7, 2022 · 6 comments
Labels
P3 We're not considering working on this, but happy to review a PR. (No assignee) stale Issues or PRs that are stale (no activity for 30 days) team-Rules-CPP Issues for C++ rules type: bug type: process

Comments

@xushaoxiao
Copy link

Description of the bug:

While resolving toolchains for target //cover:cover_app_image.binary: No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type. Maybe --incompatible_use_cc_configure_from_rules_cc has been flipped and there is no default C++ toolchain added in the WORKSPACE file? See #10134 for details and migration instructions.

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

No response

Which operating system are you running Bazel on?

bazel build ...

What is the output of bazel info release?

5.1.1

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

INFO: Invocation ID: 3799285a-78e6-44e4-842b-138b573a0955
release 5.1.1-homebrew

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

ERROR: /Users/shaoxixu/Repos/big-gov-mono/cover/BUILD.bazel:91:11: While resolving toolchains for target //cover:cover_app_image.binary: No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type. Maybe --incompatible_use_cc_configure_from_rules_cc has been flipped and there is no default C++ toolchain added in the WORKSPACE file? See https://github.com/bazelbuild/bazel/issues/10134 for details and migration instructions.
ERROR: Analysis of target '//cover:cover_app_image' failed; build aborted: 
INFO: Elapsed time: 3.252s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded, 859 targets configured)
    Fetching @local_config_xcode; Building xcode-locator
    Fetching @com_github_google_go_containerregistry; fetching
    Fetching @com_github_pkg_errors; fetching

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@sgowroji
Copy link
Member

sgowroji commented Jun 7, 2022

Hello @xushaoxiao, Did you try the workarounds mentioned in added issue. If still you are not resolved can you provide more details.

@tuananh
Copy link

tuananh commented Jun 9, 2022

Hello @xushaoxiao, Did you try the workarounds mentioned in added issue. If still you are not resolved can you provide more details.

that one works for go_image, what about java_image?

@sgowroji sgowroji added team-Rules-Java Issues for Java rules untriaged and removed more data needed team-Rules-CPP Issues for C++ rules labels Jun 9, 2022
@comius
Copy link
Contributor

comius commented Jun 10, 2022

cc @gravypod have there been changes in rules_docker? Could you investigate?

I'm not aware of any changes in Bazel that would have caused this.

@comius comius removed the team-Rules-Java Issues for Java rules label Jun 10, 2022
@tuananh
Copy link

tuananh commented Jun 14, 2022

i rolled back to 0.22 and it works now. i guess i'll keeping using 0.22 for now

@ShreeM01 ShreeM01 added type: bug team-Rules-CPP Issues for C++ rules labels Oct 21, 2022
@oquenchil oquenchil added P3 We're not considering working on this, but happy to review a PR. (No assignee) and removed untriaged labels Oct 26, 2022
Copy link

Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team (@bazelbuild/triage) if you think this issue is still relevant or you are interested in getting the issue resolved.

@github-actions github-actions bot added the stale Issues or PRs that are stale (no activity for 30 days) label Dec 31, 2023
@xushaoxiao
Copy link
Author

resolved, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 We're not considering working on this, but happy to review a PR. (No assignee) stale Issues or PRs that are stale (no activity for 30 days) team-Rules-CPP Issues for C++ rules type: bug type: process
Projects
None yet
Development

No branches or pull requests

6 participants