You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Env:
I'm running OL8 docker on Apple Silicon and trying to build a C++ repo on it. There is a third-party which is being built using below cmake
While using the load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") I get below errors . Looking at the docs ideally it should be work right ?
WARNING: Build option --toolchain_resolution_debug has changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed). INFO: ToolchainResolution: Performing resolution of @@bazel_tools//tools/cpp:toolchain_type for target platform @@platforms//host:host ToolchainResolution: Toolchain @@bazel_tools~cc_configure_extension~local_config_cc//:cc-compiler-aarch64 is compatible with target plaform, searching for execution platforms: ToolchainResolution: Compatible execution platform @@platforms//host:host ToolchainResolution: All execution platforms have been assigned a @@bazel_tools//tools/cpp:toolchain_type toolchain, stopping ToolchainResolution: Recap of selected @@bazel_tools//tools/cpp:toolchain_type toolchains for target platform @@platforms//host:host: ToolchainResolution: Selected @@bazel_tools~cc_configure_extension~local_config_cc//:cc-compiler-aarch64 to run on execution platform @@platforms//host:host ERROR: /root/dpp-workspace/third-party/rules_libevent/BUILD:26:6: While resolving toolchains for target //third-party/rules_libevent:event (47d3177): No matching toolchains found for types @@rules_foreign_cc~//toolchains:ninja_toolchain. To debug, rerun with --toolchain_resolution_debug='@@rules_foreign_cc~//toolchains:ninja_toolchain'
The text was updated successfully, but these errors were encountered:
It seems the underlying issue is two fold. 1) rules_foreign_cc eagerly establishes toolchains and 2) ninja does not provide a darwin arm64 build and only recently started providing a build for arm64.
I was able to fix a similar failure on linux by updating to the latest version (0.10.1 -> 0.12.0). this comment suggests trying to have bazel build ninja for you but I ended up getting errors from bazel because a toolchain definition required a toolchain to build.
Env:
I'm running OL8 docker on Apple Silicon and trying to build a C++ repo on it. There is a third-party which is being built using below cmake
While using the load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") I get below errors . Looking at the docs ideally it should be work right ?
WARNING: Build option --toolchain_resolution_debug has changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed). INFO: ToolchainResolution: Performing resolution of @@bazel_tools//tools/cpp:toolchain_type for target platform @@platforms//host:host ToolchainResolution: Toolchain @@bazel_tools~cc_configure_extension~local_config_cc//:cc-compiler-aarch64 is compatible with target plaform, searching for execution platforms: ToolchainResolution: Compatible execution platform @@platforms//host:host ToolchainResolution: All execution platforms have been assigned a @@bazel_tools//tools/cpp:toolchain_type toolchain, stopping ToolchainResolution: Recap of selected @@bazel_tools//tools/cpp:toolchain_type toolchains for target platform @@platforms//host:host: ToolchainResolution: Selected @@bazel_tools~cc_configure_extension~local_config_cc//:cc-compiler-aarch64 to run on execution platform @@platforms//host:host ERROR: /root/dpp-workspace/third-party/rules_libevent/BUILD:26:6: While resolving toolchains for target //third-party/rules_libevent:event (47d3177): No matching toolchains found for types @@rules_foreign_cc~//toolchains:ninja_toolchain. To debug, rerun with --toolchain_resolution_debug='@@rules_foreign_cc~//toolchains:ninja_toolchain'
The text was updated successfully, but these errors were encountered: