Skip to content

Cross compile main branch for android-x64 target fails on linux-x64 host #59621

@ntkme

Description

@ntkme

In the last 24 hours, cross compiling main branch for android-x64 target on linux-x64 host started to fail with the following error:

https://github.com/dart-android/dart/actions/runs/12034886307/job/33552893446

  cd dart-sdk/sdk
  ./tools/build.py --mode release --os android --arch x64 --gn-args 'dart_snapshot_kind="app-jit"' create_sdk



ERROR at //build/config/android/config.gni:107:5 (//build/toolchain/android:clang_x64_shared): Assertion failed.
    assert(false, "Unknown Android ABI: " + current_cpu)
    ^-----
Unknown Android ABI: x86_64
See //build/config/sysroot.gni:58:3: whence it was imported.
  import("//build/config/android/config.gni")
  ^-----------------------------------------
See //build/config/compiler/BUILD.gn:16:1: whence it was imported.
import("//build/config/sysroot.gni")
^----------------------------------
See //build/config/BUILDCONFIG.gn:252:3: which caused the file to be included.
  "//build/config/compiler:chromium_code",
  ^--------------------------------------
ninja: error: loading 'build.ninja': No such file or directory
ninja: Entering directory `out/ReleaseAndroidX64'
Command failed: /__w/dart/dart/dart-sdk/sdk/buildtools/gn gen out/ReleaseAndroidX64 --args=target_os="android" host_cpu="x64" target_cpu="x64" dart_target_arch="x64" dart_use_compressed_pointers=false dart_use_crashpad=false dart_snapshot_kind="app-jit" bssl_use_clang_integrated_as=true is_debug=false is_release=true is_product=false dart_debug=false dart_runtime_mode="develop" exclude_kernel_service=false is_clang=true dart_vm_code_coverage=false dart_dynamic_modules=false is_asan=false is_lsan=false is_msan=false is_tsan=false is_ubsan=false is_qemu=false dart_platform_sdk=false dart_stripped_binary="exe.stripped/dart" dart_aotruntime_stripped_binary="exe.stripped/dartaotruntime_product" gen_snapshot_stripped_binary="exe.stripped/gen_snapshot_product" analyze_snapshot_binary="exe.stripped/analyze_snapshot" wasm_opt_stripped_binary="exe.stripped/wasm-opt" dart_sysroot="debian" use_rbe=false verify_sdk_hash=true dart_version_git_info=true dart_snapshot_kind="app-jit"
buildtools/ninja/ninja -C out/ReleaseAndroidX64 create_sdk
BUILD FAILED

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-buildUse area-build for SDK build issues.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions