Skip to content

android: NDK cc toolchain resolves on Windows hosts (part of #10990) #12700

Closed

Description

@TrapsterDK

Part of #10990.

bcr_test_module //:android_device_cc (presubmit task build_android_toolchain, matrix includes windows) fails on windows_x86_64 hosts:

ERROR: .../quickstart_bcr/BUILD.bazel:12:22: While resolving toolchains for target //:android_device_cc: No matching toolchains found for types:
  @@bazel_tools//tools/cpp:toolchain_type

Evidence run 43554771413 (//deploy/private/release/tests:release_consumer_smoke_test).

docs/languages/android.md lists Windows x86_64 and arm64, but the NDK is pinned for linux_x86_64 only:

  • android/private/sdk/repos.bzl: NDK_ARTIFACTS and NDK_PREBUILT (toolchains/llvm/prebuilt/linux-x86_64) hold linux_x86_64 only.
  • android/private/toolchain/repos.bzl: _QUALIFIED_HOST = "linux_x86_64"; ndk_cc_toolchain_* has exec_compatible_with linux/x86_64.

Done when

  • NDK_ARTIFACTS pins android-ndk-r27-windows.zip (sha256) and the NDK repo exposes .exe tools from toolchains/llvm/prebuilt/windows-x86_64.
  • The toolchain repo declares one ndk_cc_toolchain_{device,emulator} per pinned exec host.
  • windows_x86_64 evidence for //deploy/private/release/tests:release_consumer_smoke_test passes bcr_test_module_runs_its_presubmit_targets.
  • The same gap on macos_arm64 and linux_arm64 hosts is tracked or fixed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hws3L7Tg4oUvpSvuYD

Activity

  1. TrapsterDK commented on Nov 14, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #12708 pins NDK r27 for windows_x86_64 and macos (arm64/x86_64, universal darwin zip) and declares ndk_cc_toolchain_{device,emulator}_<host> per exec host (registrations now @android_ndk_toolchain//:all).

    Remaining:

    • Evidence runs pending: 43558850152 (windows_x86_64 release_consumer_smoke_test), 43558858949 (windows_x86_64 + macos_arm64 //android/...).
    • linux_arm64: Google ships no r27 linux-aarch64 NDK, so it stays unpinned.
    • tools/dx check --affected not completed locally (Bazel OOM under memory pressure).
  2. TrapsterDK commented on Nov 14, 2026

    @TrapsterDK
    CollaboratorAuthor

    Evidence for PR #12708 (head 3ff5360): run 43560231437 green on windows_x86_64 and macos_arm64 (NDK scope: //android/tests:toolchain_metadata, :sdk_metadata, :platforms_tests, //android/tests/fixtures/native_lib:ndk_link_runtime_libs_test, :native_lib_device, //tools/testing:toolchain_gate_test). Earlier runs 43558858949 and 43558850152 failed on issues outside this change (app SDK hub linux-only, MSVC CRT mismatch in native_lib_link, rules_flutter key). linux_arm64 stays unpinned: Google ships no r27 linux-aarch64 NDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions