Skip to content

PlatformMutex.native uses pthread_mutex_init, which nativeMain's shared metadata compile cannot resolve (publishing fails) #329

Closed

Description

@b-re-w

Found while verifying #95: publishAllToMavenLocal fails at :python-multiplatform:compileNativeMainKotlinMetadata with 'Unresolved reference pthread_mutex_init' in PlatformMutex.native.kt (#117, #302). The per-target compiles (iosSimulatorArm64, androidNativeArm64) pass, so the regression was not caught; the shared nativeMain metadata (iOS + androidNative) only sees commonized POSIX, and pthread_mutex_init is not in it. Completion: compileNativeMainKotlinMetadata passes; HandleTable stays mutually exclusive on native; per-target compiles and the HandleTable concurrency test pass.

Activity

  1. added a commit that references this issue on Oct 25, 2026
  2. b-re-w commented on Oct 25, 2026

    @b-re-w
    MemberAuthor

    Landed in develop via the PR above (spin lock on common atomics; nativeMain metadata compiles).

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