-
Notifications
You must be signed in to change notification settings - Fork 36
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
No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type #10
Comments
I think part of the problem could be the README.md pinning a version from Dec 11 but was updated to use python38. What version of dbx_build_tools and bazel are you using? |
I was following the README here https://github.com/dropbox/dbx_build_tools/blob/master/README.md I tried both latest Bazel (3.5.1) and 1.1.0, both returned similar errors. |
Can you give this WORKSPACE a try? If it works I will make sure to update the README.
|
No luck :( still hitting the first error I mentioned above. Tried on both Bazel 1.1.0 and 3.5.1. Guess I'll just input my issue to bazelbuild/bazel#10134. Thanks for looking though! |
I think we would have to know all the Bazel options in play to debug this. |
I switched to a different environment (with Bazel 1.1.0) and with @armooo 's suggested WORKSPACE it now emits a different error:
For last week's experiment I was basically trying with a fresh Bazel (3.5.1) installation from |
1.1.0 is really old and definitely will not work. |
(Edit: same setup worked fine on ubuntu. Seems to be a mac env related issue.) Did a bit digging into this issue. Environment: Error occurred when trying to build
Adding
It seems that the error has something to do with execution platform. I commented out
|
I should have mentioned earlier that various things like our CPython are Linux-specific today. So, even if this immediate toolchain problem is overcome, there will be more failures. |
Thanks, yes I've since switched to a Ubuntu image running in a containerized env and it works fine now. I did run into an issue though with latest master head, I've attached details in #11. |
Hitting below error when trying out the example on mac:
ERROR: While resolving toolchains for target @dbx_build_tools//build_tools/py:check_conflicts: 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.
Some googling suggests that this might be related to Bazel remote execution. Is this expected?
FYI I had to revert the python 3.7 removal commit, otherwise getting below error:
no such target '@dbx_build_tools//thirdparty/cpython:drte-off-38-toolchain': target 'drte-off-38-toolchain' not declared in package 'thirdparty/cpython' (did you mean 'drte-off-37-toolchain'?)
The text was updated successfully, but these errors were encountered: