Skip to content

Standard library fails to build for arm64_32-apple-watchos #147776

@Thomasdezeeuw

Description

@Thomasdezeeuw

Building the latest nightly with --target arm64_32-apple-watchos, fails with the following:

  error[E0308]: mismatched types
     --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/sync/condvar.rs:123:21
      |
  123 |             tv_sec: dur.as_secs() as i64,
      |                     ^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64`
  
  error[E0308]: mismatched types
     --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/sync/condvar.rs:124:22
      |
  124 |             tv_nsec: dur.subsec_nanos() as i64,
      |                      ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `i64`

Meta

rustc --version --verbose:

rustc 1.92.0-nightly (57ef8d642 2025-10-15)
binary: rustc
commit-hash: 57ef8d642d21965304bde849bab4f389b4353e27
commit-date: 2025-10-15
host: x86_64-unknown-linux-gnu
release: 1.92.0-nightly
LLVM version: 21.1.3
Backtrace

<backtrace>

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.O-appleOperating system: Apple (macOS, iOS, tvOS, visionOS, watchOS)O-watchosOperating System: watchOST-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions