Skip to content

Fail to build for watchOS arm64_32-apple-watchos from macOS 15 with XCode 16.4 #2616

@setoelkahfi

Description

@setoelkahfi

I'm trying this on a uniffi-rs and cargo swift project. All the other Apple targets build successfully. Any clue where to look?

Failed due to the following error:
   Compiling ring v0.17.14 (https://github.com/briansmith/ring.git?branch=main#b9c8f4f5)
   Compiling uniffi v0.29.3
warning: [email protected]: /Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/ec/p256-nistz.c:391:19: error: implicit conversion loses integer precision: 'crypto_word_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned long') [-Werror,-Wshorten-64-to-32]
warning: [email protected]:   391 |   size_t wvalue = calc_first_wvalue(&index, p_str);
warning: [email protected]:       |          ~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: /Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/ec/p256-nistz.c:413:14: error: implicit conversion loses integer precision: 'crypto_word_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned long') [-Werror,-Wshorten-64-to-32]
warning: [email protected]:   413 |     wvalue = calc_wvalue(&index, p_str);
warning: [email protected]:       |            ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
warning: [email protected]: 2 errors generated.
error: failed to run custom build command for `ring v0.17.14 (https://github.com/briansmith/ring.git?branch=main#b9c8f4f5)`

Caused by:
  process didn't exit successfully: `/Users/setoelka/Personal/test-ring/target/debug/build/ring-8eb90645d2630de4/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=RING_PREGENERATE_ASM
  cargo:rerun-if-env-changed=PERL_EXECUTABLE
  OPT_LEVEL = Some(0)
  OUT_DIR = Some(/Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out)
  TARGET = Some(arm64_32-apple-watchos)
  HOST = Some(aarch64-apple-darwin)
  cargo:rerun-if-env-changed=CC_arm64_32-apple-watchos
  CC_arm64_32-apple-watchos = None
  cargo:rerun-if-env-changed=CC_arm64_32_apple_watchos
  CC_arm64_32_apple_watchos = None
  cargo:rerun-if-env-changed=TARGET_CC
  TARGET_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  RUSTC_WRAPPER = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some(true)
  cargo:rerun-if-env-changed=WATCHOS_DEPLOYMENT_TARGET
  WATCHOS_DEPLOYMENT_TARGET = None
  Detecting "watchos" SDK path for watchos
  cargo:rerun-if-env-changed=SDKROOT
  SDKROOT = Some(/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk)
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:rerun-if-env-changed=TARGET_CFLAGS
  TARGET_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS_arm64_32_apple_watchos
  CFLAGS_arm64_32_apple_watchos = None
  cargo:rerun-if-env-changed=CFLAGS_arm64_32-apple-watchos
  CFLAGS_arm64_32-apple-watchos = None
  CARGO_ENCODED_RUSTFLAGS = Some()
  cargo:warning=/Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/ec/p256-nistz.c:391:19: error: implicit conversion loses integer precision: 'crypto_word_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned long') [-Werror,-Wshorten-64-to-32]
  cargo:warning=  391 |   size_t wvalue = calc_first_wvalue(&index, p_str);
  cargo:warning=      |          ~~~~~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/ec/p256-nistz.c:413:14: error: implicit conversion loses integer precision: 'crypto_word_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned long') [-Werror,-Wshorten-64-to-32]
  cargo:warning=  413 |     wvalue = calc_wvalue(&index, p_str);
  cargo:warning=      |            ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=2 errors generated.

  --- stderr
  running "perl" "//Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/chacha/asm/chacha-armv8.pl" "ios64" "//Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out/chacha-armv8-ios64.S"
  running "perl" "//Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/cipher/asm/chacha20_poly1305_armv8.pl" "ios64" "//Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out/chacha20_poly1305_armv8-ios64.S"
  running "perl" "//Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/aes/asm/aesv8-armx.pl" "ios64" "//Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out/aesv8-armx-ios64.S"
  running "perl" "//Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/aes/asm/aesv8-gcm-armv8.pl" "ios64" "//Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out/aesv8-gcm-armv8-ios64.S"
  running "perl" "//Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/aes/asm/ghash-neon-armv8.pl" "ios64" "//Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out/ghash-neon-armv8-ios64.S"
  running "perl" "//Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/aes/asm/ghashv8-armx.pl" "ios64" "//Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out/ghashv8-armx-ios64.S"
  running "perl" "//Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/aes/asm/vpaes-armv8.pl" "ios64" "//Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out/vpaes-armv8-ios64.S"
  running "perl" "//Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/bn/asm/armv8-mont.pl" "ios64" "//Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out/armv8-mont-ios64.S"
  running "perl" "//Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/ec/asm/p256-armv8-asm.pl" "ios64" "//Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out/p256-armv8-asm-ios64.S"
  running "perl" "//Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/sha/asm/sha512-armv8.pl" "ios64" "//Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out/sha512-armv8-ios64.S"
  running "perl" "//Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/sha/asm/sha512-armv8.pl" "ios64" "//Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out/sha256-armv8-ios64.S"


  error occurred in cc-rs: command did not execute successfully (status code exit status: 1): LC_ALL="C" SDKROOT="/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS11.5.sdk" "clang" "-O0" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "--target=arm64_32-apple-watchos" "-mwatchos-version-min=11.5" "-isysroot" "/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS11.5.sdk" "-I" "/Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/include" "-I" "/Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out" "-Werror" "-Wall" "-Wextra" "-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" "-gfull" "-o" "/Users/setoelka/Personal/test-ring/target/arm64_32-apple-watchos/debug/build/ring-05f2ac0271980667/out/a0330e891e733f4e-p256-nistz.o" "-c" "/Users/setoelka/.cargo/git/checkouts/ring-794206c1dca33632/b9c8f4f/crypto/fipsmodule/ec/p256-nistz.c"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions