Skip to content

Windows aarch64-pc-windows-msvc builds fail while building ring #1825

@zeozeozeo

Description

@zeozeozeo

Building for aarch64 Windows fails in ring's custom build command.

 building aarch64-pc-windows-msvc target, from x86_64-unknown-linux-gnu host, via cargo-xwin, using cargo profile dist --workspace)
...
   Compiling ring v0.17.14
   Compiling simd_helpers v0.1.0
   Compiling bitstream-io v2.6.0
   Compiling noop_proc_macro v0.3.0
   Compiling weezl v0.1.8
   Compiling arrayref v0.3.9
   Compiling imgref v1.11.0
   Compiling quick-error v2.0.1
   Compiling new_debug_unreachable v1.0.6
   Compiling loop9 v0.1.5
   Compiling tiny-skia-path v0.11.4
warning: [email protected]: clang: error: no such file or directory: '/imsvc/home/runner/.cache/cargo-xwin/xwin/crt/include'
warning: [email protected]: clang: error: no such file or directory: '/imsvc/home/runner/.cache/cargo-xwin/xwin/sdk/include/ucrt'
warning: [email protected]: clang: error: no such file or directory: '/imsvc/home/runner/.cache/cargo-xwin/xwin/sdk/include/um'
warning: [email protected]: clang: error: no such file or directory: '/imsvc/home/runner/.cache/cargo-xwin/xwin/sdk/include/shared'
error: failed to run custom build command for `ring v0.17.14`

Caused by:
  process didn't exit successfully: `/home/runner/work/ellama/ellama/target/dist/build/ring-ad2f22bae5dc2d2b/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=CARGO_MANIFEST_DIR
  cargo:rerun-if-env-changed=CARGO_PKG_NAME
  cargo:rerun-if-env-changed=CARGO_PKG_VERSION_MAJOR
  cargo:rerun-if-env-changed=CARGO_PKG_VERSION_MINOR
  cargo:rerun-if-env-changed=CARGO_PKG_VERSION_PATCH
  cargo:rerun-if-env-changed=CARGO_PKG_VERSION_PRE
  cargo:rerun-if-env-changed=CARGO_MANIFEST_LINKS
  cargo:rerun-if-env-changed=RING_PREGENERATE_ASM
  cargo:rerun-if-env-changed=OUT_DIR
  cargo:rerun-if-env-changed=CARGO_CFG_TARGET_ARCH
  cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS
  cargo:rerun-if-env-changed=CARGO_CFG_TARGET_ENV
  cargo:rerun-if-env-changed=CARGO_CFG_TARGET_ENDIAN
  OPT_LEVEL = Some(3)
  OUT_DIR = Some(/home/runner/work/ellama/ellama/target/aarch64-pc-windows-msvc/dist/build/ring-1f32eaf1d9b42f4e/out)
  TARGET = Some(aarch64-pc-windows-msvc)
  cargo:rerun-if-env-changed=VCINSTALLDIR
  VCINSTALLDIR = None
  HOST = Some(x86_64-unknown-linux-gnu)
  cargo:rerun-if-env-changed=CC_aarch64-pc-windows-msvc
  CC_aarch64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CC_aarch64_pc_windows_msvc
  CC_aarch64_pc_windows_msvc = Some(clang-cl)
  cargo:rerun-if-env-changed=CC_KNOWN_WRAPPER_CUSTOM
  CC_KNOWN_WRAPPER_CUSTOM = None
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some(crt-static,neon)
  DEBUG = Some(false)
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS_aarch64_pc_windows_msvc
  CFLAGS_aarch64_pc_windows_msvc = Some(--target=aarch64-pc-windows-msvc -Wno-unused-command-line-argument -fuse-ld=lld-link /imsvc/home/runner/.cache/cargo-xwin/xwin/crt/include /imsvc/home/runner/.cache/cargo-xwin/xwin/sdk/include/ucrt /imsvc/home/runner/.cache/cargo-xwin/xwin/sdk/include/um /imsvc/home/runner/.cache/cargo-xwin/xwin/sdk/include/shared  )
  cargo:rerun-if-env-changed=CC_SHELL_ESCAPED_FLAGS
  CC_SHELL_ESCAPED_FLAGS = None
  cargo:rerun-if-env-changed=CFLAGS_aarch64-pc-windows-msvc
  CFLAGS_aarch64-pc-windows-msvc = None
  CARGO_ENCODED_RUSTFLAGS = Some(-Ctarget-feature=+crt-static-Clinker-flavor=lld-link-Lnative=/home/runner/.cache/cargo-xwin/xwin/crt/lib/aarch64-Lnative=/home/runner/.cache/cargo-xwin/xwin/sdk/lib/um/aarch64-Lnative=/home/runner/.cache/cargo-xwin/xwin/sdk/lib/ucrt/aarch64)
  cargo:warning=clang: error: no such file or directory: '/imsvc/home/runner/.cache/cargo-xwin/xwin/crt/include'
  cargo:warning=clang: error: no such file or directory: '/imsvc/home/runner/.cache/cargo-xwin/xwin/sdk/include/ucrt'
  cargo:warning=clang: error: no such file or directory: '/imsvc/home/runner/.cache/cargo-xwin/xwin/sdk/include/um'
  cargo:warning=clang: error: no such file or directory: '/imsvc/home/runner/.cache/cargo-xwin/xwin/sdk/include/shared'

  --- stderr


  error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" "clang" "-O3" "-ffunction-sections" "-fdata-sections" "--target=aarch64-pc-windows-msvc" "-I" "/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ring-0.17.14/include" "-I" "/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ring-0.17.14/pregenerated" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-g3" "-DNDEBUG" "--target=aarch64-pc-windows-msvc" "-Wno-unused-command-line-argument" "-fuse-ld=lld-link" "/imsvc/home/runner/.cache/cargo-xwin/xwin/crt/include" "/imsvc/home/runner/.cache/cargo-xwin/xwin/sdk/include/ucrt" "/imsvc/home/runner/.cache/cargo-xwin/xwin/sdk/include/um" "/imsvc/home/runner/.cache/cargo-xwin/xwin/sdk/include/shared" "-o" "/home/runner/work/ellama/ellama/target/aarch64-pc-windows-msvc/dist/build/ring-1f32eaf1d9b42f4e/out/25ac62e5b3c53843-curve25519.o" "-c" "/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ring-0.17.14/crypto/curve25519/curve25519.c"


warning: build failed, waiting for other jobs to finish...

  × failed to find bin ellama.exe for path+file:///home/runner/work/ellama/ellama#0.4.0
  help: did the above build fail?

Full build log: https://github.com/zeozeozeo/ellama/actions/runs/14954290920/job/42007903514

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