The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AsyncExtensions, reference main (308847), with Swift 6.1 for Wasm on 30 May 2025 12:29:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shareup/async-extensions.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/shareup/async-extensions
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3088474 Add AnyAsyncSequence and tests (#26)
Cloned https://github.com/shareup/async-extensions.git
Revision (git rev-parse @):
3088474141debc75b78257a0db28adf734bcea0f
SUCCESS checkout https://github.com/shareup/async-extensions.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/shareup/async-extensions.git
https://github.com/shareup/async-extensions.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "synchronized",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/shareup/synchronized.git"
    }
  ],
  "manifest_display_name" : "AsyncExtensions",
  "name" : "AsyncExtensions",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncExtensions",
      "targets" : [
        "AsyncExtensions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AsyncTestExtensions",
      "targets" : [
        "AsyncTestExtensions"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AsyncTestExtensionsTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncTestExtensionsTests",
      "path" : "Tests/AsyncTestExtensionsTests",
      "sources" : [
        "AssertionsTests.swift",
        "XCTestCase+AsyncTestExtensionsTests.swift"
      ],
      "target_dependencies" : [
        "AsyncTestExtensions"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncTestExtensions",
      "module_type" : "SwiftTarget",
      "name" : "AsyncTestExtensions",
      "path" : "Sources/AsyncTestExtensions",
      "product_dependencies" : [
        "Synchronized"
      ],
      "product_memberships" : [
        "AsyncTestExtensions"
      ],
      "sources" : [
        "Assertions.swift",
        "XCTestCase+AsyncTestExtensions.swift"
      ],
      "target_dependencies" : [
        "AsyncExtensions"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AsyncExtensionsTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncExtensionsTests",
      "path" : "Tests/AsyncExtensionsTests",
      "sources" : [
        "AnyAsyncSequenceTests.swift",
        "AsyncInputStreamTests.swift",
        "AsyncOutputStreamTests.swift",
        "AsyncThrowingFutureTests.swift",
        "Publisher+AsyncExtensionsTests.swift",
        "SequenceExtensionsTests.swift",
        "TaskStoreTests.swift"
      ],
      "target_dependencies" : [
        "AsyncExtensions",
        "AsyncTestExtensions"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncExtensions",
      "module_type" : "SwiftTarget",
      "name" : "AsyncExtensions",
      "path" : "Sources/AsyncExtensions",
      "product_dependencies" : [
        "Synchronized"
      ],
      "product_memberships" : [
        "AsyncExtensions",
        "AsyncTestExtensions"
      ],
      "sources" : [
        "AnyAsyncSequence.swift",
        "AsyncInputStream.swift",
        "AsyncOutputStream.swift",
        "AsyncThrowingFuture.swift",
        "Publisher+AsyncExtensions.swift",
        "SequenceExtensions.swift",
        "TaskStore.swift",
        "TimeoutError.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/shareup/synchronized.git
[1/205] Fetching synchronized
Fetched https://github.com/shareup/synchronized.git from cache (0.71s)
Computing version for https://github.com/shareup/synchronized.git
Computed https://github.com/shareup/synchronized.git at 4.0.1 (3.41s)
Creating working copy for https://github.com/shareup/synchronized.git
Working copy of https://github.com/shareup/synchronized.git resolved at 4.0.1
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/8] Compiling Synchronized RecursiveLock.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:11:15: error: cannot find 'pthread_mutexattr_init' in scope
 9 |
10 |         var attributes = pthread_mutexattr_t()
11 |         guard pthread_mutexattr_init(&attributes) == 0
   |               `- error: cannot find 'pthread_mutexattr_init' in scope
12 |         else { preconditionFailure() }
13 |
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:14:15: error: cannot find 'pthread_mutexattr_settype' in scope
12 |         else { preconditionFailure() }
13 |
14 |         guard pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE) == 0
   |               `- error: cannot find 'pthread_mutexattr_settype' in scope
15 |         else { preconditionFailure() }
16 |
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:14:54: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
12 |         else { preconditionFailure() }
13 |
14 |         guard pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE) == 0
   |                                                      `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
15 |         else { preconditionFailure() }
16 |
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:17:15: error: cannot find 'pthread_mutex_init' in scope
15 |         else { preconditionFailure() }
16 |
17 |         guard pthread_mutex_init(backing, &attributes) == 0
   |               `- error: cannot find 'pthread_mutex_init' in scope
18 |         else { preconditionFailure() }
19 |
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:20:9: error: cannot find 'pthread_mutexattr_destroy' in scope
18 |         else { preconditionFailure() }
19 |
20 |         pthread_mutexattr_destroy(&attributes)
   |         `- error: cannot find 'pthread_mutexattr_destroy' in scope
21 |     }
22 |
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:24:9: error: cannot find 'pthread_mutex_destroy' in scope
22 |
23 |     deinit {
24 |         pthread_mutex_destroy(backing)
   |         `- error: cannot find 'pthread_mutex_destroy' in scope
25 |         backing.deinitialize(count: 1)
26 |         backing.deallocate()
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:30:19: error: cannot find 'pthread_mutex_lock' in scope
28 |
29 |     public func locked<T>(_ block: () throws -> T) rethrows -> T {
30 |         let ret = pthread_mutex_lock(backing)
   |                   `- error: cannot find 'pthread_mutex_lock' in scope
31 |         // https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pthread_mutex_lock.3.html
32 |         precondition(ret == 0, "Could not acquire lock: '\(ret)'")
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:33:17: error: cannot find 'pthread_mutex_unlock' in scope
31 |         // https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pthread_mutex_lock.3.html
32 |         precondition(ret == 0, "Could not acquire lock: '\(ret)'")
33 |         defer { pthread_mutex_unlock(backing) }
   |                 `- error: cannot find 'pthread_mutex_unlock' in scope
34 |         return try block()
35 |     }
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:39:12: error: cannot find 'pthread_mutex_trylock' in scope
37 |     public func tryLocked(_ block: () throws -> Void) rethrows -> Bool {
38 |         // https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pthread_mutex_trylock.3.html#//apple_ref/doc/man/3/pthread_mutex_trylock
39 |         if pthread_mutex_trylock(backing) == 0 {
   |            `- error: cannot find 'pthread_mutex_trylock' in scope
40 |             defer { pthread_mutex_unlock(backing) }
41 |             try block()
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:40:21: error: cannot find 'pthread_mutex_unlock' in scope
38 |         // https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pthread_mutex_trylock.3.html#//apple_ref/doc/man/3/pthread_mutex_trylock
39 |         if pthread_mutex_trylock(backing) == 0 {
40 |             defer { pthread_mutex_unlock(backing) }
   |                     `- error: cannot find 'pthread_mutex_unlock' in scope
41 |             try block()
42 |             return true
[6/8] Compiling Synchronized Locked.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:4:54: error: cannot find type 'os_unfair_lock' in scope
 2 |
 3 | public struct Locked<Element> {
 4 |     private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
   |                                                      `- error: cannot find type 'os_unfair_lock' in scope
 5 |         deinit {
 6 |             withUnsafeMutablePointerToElements { lock in
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:12:48: error: cannot find type 'os_unfair_lock' in scope
10 |     }
11 |
12 |     private let buffer: ManagedBuffer<Element, os_unfair_lock>
   |                                                `- error: cannot find type 'os_unfair_lock' in scope
13 |
14 |     public init(_ element: Element) {
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:6:13: error: type of expression is ambiguous without a type annotation
 4 |     private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
 5 |         deinit {
 6 |             withUnsafeMutablePointerToElements { lock in
   |             `- error: type of expression is ambiguous without a type annotation
 7 |                 _ = lock.deinitialize(count: 1)
 8 |             }
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:17:35: error: cannot find 'os_unfair_lock' in scope
15 |         buffer = Lock.create(minimumCapacity: 1) { buffer in
16 |             buffer.withUnsafeMutablePointerToElements {
17 |                 $0.initialize(to: os_unfair_lock())
   |                                   `- error: cannot find 'os_unfair_lock' in scope
18 |             }
19 |             return element
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:15:16: error: type of expression is ambiguous without a type annotation
13 |
14 |     public init(_ element: Element) {
15 |         buffer = Lock.create(minimumCapacity: 1) { buffer in
   |                `- error: type of expression is ambiguous without a type annotation
16 |             buffer.withUnsafeMutablePointerToElements {
17 |                 $0.initialize(to: os_unfair_lock())
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:25:13: error: cannot find 'os_unfair_lock_lock' in scope
23 |     public func access<Return>(_ block: (inout Element) throws -> Return) rethrows -> Return {
24 |         try buffer.withUnsafeMutablePointers { element, lock in
25 |             os_unfair_lock_lock(lock)
   |             `- error: cannot find 'os_unfair_lock_lock' in scope
26 |             defer { os_unfair_lock_unlock(lock) }
27 |             return try block(&element.pointee)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/8] Emitting module Synchronized
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:4:47: error: cannot find type 'os_unfair_lock' in scope
 2 |
 3 | public final class Lock {
 4 |     private var backing: UnsafeMutablePointer<os_unfair_lock>
   |                                               `- error: cannot find type 'os_unfair_lock' in scope
 5 |
 6 |     public init() {
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:4:54: error: cannot find type 'os_unfair_lock' in scope
 2 |
 3 | public struct Locked<Element> {
 4 |     private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
   |                                                      `- error: cannot find type 'os_unfair_lock' in scope
 5 |         deinit {
 6 |             withUnsafeMutablePointerToElements { lock in
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:12:48: error: cannot find type 'os_unfair_lock' in scope
10 |     }
11 |
12 |     private let buffer: ManagedBuffer<Element, os_unfair_lock>
   |                                                `- error: cannot find type 'os_unfair_lock' in scope
13 |
14 |     public init(_ element: Element) {
[8/8] Compiling Synchronized Lock.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:4:47: error: cannot find type 'os_unfair_lock' in scope
 2 |
 3 | public final class Lock {
 4 |     private var backing: UnsafeMutablePointer<os_unfair_lock>
   |                                               `- error: cannot find type 'os_unfair_lock' in scope
 5 |
 6 |     public init() {
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:7:40: error: cannot find type 'os_unfair_lock' in scope
 5 |
 6 |     public init() {
 7 |         backing = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
   |                                        `- error: cannot find type 'os_unfair_lock' in scope
 8 |         backing.initialize(to: os_unfair_lock())
 9 |     }
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:8:32: error: cannot find 'os_unfair_lock' in scope
 6 |     public init() {
 7 |         backing = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
 8 |         backing.initialize(to: os_unfair_lock())
   |                                `- error: cannot find 'os_unfair_lock' in scope
 9 |     }
10 |
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
16 |     public func locked<T>(_ block: () throws -> T) rethrows -> T {
17 |         // https://developer.apple.com/documentation/os/1646466-os_unfair_lock_lock
18 |         os_unfair_lock_lock(backing)
   |         `- error: cannot find 'os_unfair_lock_lock' in scope
19 |         defer { os_unfair_lock_unlock(backing) }
20 |         return try block()
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
17 |         // https://developer.apple.com/documentation/os/1646466-os_unfair_lock_lock
18 |         os_unfair_lock_lock(backing)
19 |         defer { os_unfair_lock_unlock(backing) }
   |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
20 |         return try block()
21 |     }
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:25:12: error: cannot find 'os_unfair_lock_trylock' in scope
23 |     public func tryLocked(_ block: () throws -> Void) rethrows -> Bool {
24 |         // https://developer.apple.com/documentation/os/1646469-os_unfair_lock_trylock
25 |         if os_unfair_lock_trylock(backing) {
   |            `- error: cannot find 'os_unfair_lock_trylock' in scope
26 |             defer { os_unfair_lock_unlock(backing) }
27 |             try block()
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:26:21: error: cannot find 'os_unfair_lock_unlock' in scope
24 |         // https://developer.apple.com/documentation/os/1646469-os_unfair_lock_trylock
25 |         if os_unfair_lock_trylock(backing) {
26 |             defer { os_unfair_lock_unlock(backing) }
   |                     `- error: cannot find 'os_unfair_lock_unlock' in scope
27 |             try block()
28 |             return true
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling Synchronized Locked.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:4:54: error: cannot find type 'os_unfair_lock' in scope
 2 |
 3 | public struct Locked<Element> {
 4 |     private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
   |                                                      `- error: cannot find type 'os_unfair_lock' in scope
 5 |         deinit {
 6 |             withUnsafeMutablePointerToElements { lock in
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:12:48: error: cannot find type 'os_unfair_lock' in scope
10 |     }
11 |
12 |     private let buffer: ManagedBuffer<Element, os_unfair_lock>
   |                                                `- error: cannot find type 'os_unfair_lock' in scope
13 |
14 |     public init(_ element: Element) {
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:6:13: error: type of expression is ambiguous without a type annotation
 4 |     private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
 5 |         deinit {
 6 |             withUnsafeMutablePointerToElements { lock in
   |             `- error: type of expression is ambiguous without a type annotation
 7 |                 _ = lock.deinitialize(count: 1)
 8 |             }
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:17:35: error: cannot find 'os_unfair_lock' in scope
15 |         buffer = Lock.create(minimumCapacity: 1) { buffer in
16 |             buffer.withUnsafeMutablePointerToElements {
17 |                 $0.initialize(to: os_unfair_lock())
   |                                   `- error: cannot find 'os_unfair_lock' in scope
18 |             }
19 |             return element
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:15:16: error: type of expression is ambiguous without a type annotation
13 |
14 |     public init(_ element: Element) {
15 |         buffer = Lock.create(minimumCapacity: 1) { buffer in
   |                `- error: type of expression is ambiguous without a type annotation
16 |             buffer.withUnsafeMutablePointerToElements {
17 |                 $0.initialize(to: os_unfair_lock())
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:25:13: error: cannot find 'os_unfair_lock_lock' in scope
23 |     public func access<Return>(_ block: (inout Element) throws -> Return) rethrows -> Return {
24 |         try buffer.withUnsafeMutablePointers { element, lock in
25 |             os_unfair_lock_lock(lock)
   |             `- error: cannot find 'os_unfair_lock_lock' in scope
26 |             defer { os_unfair_lock_unlock(lock) }
27 |             return try block(&element.pointee)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module Synchronized
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:4:47: error: cannot find type 'os_unfair_lock' in scope
 2 |
 3 | public final class Lock {
 4 |     private var backing: UnsafeMutablePointer<os_unfair_lock>
   |                                               `- error: cannot find type 'os_unfair_lock' in scope
 5 |
 6 |     public init() {
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:4:54: error: cannot find type 'os_unfair_lock' in scope
 2 |
 3 | public struct Locked<Element> {
 4 |     private final class Lock: ManagedBuffer<Element, os_unfair_lock> {
   |                                                      `- error: cannot find type 'os_unfair_lock' in scope
 5 |         deinit {
 6 |             withUnsafeMutablePointerToElements { lock in
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Locked.swift:12:48: error: cannot find type 'os_unfair_lock' in scope
10 |     }
11 |
12 |     private let buffer: ManagedBuffer<Element, os_unfair_lock>
   |                                                `- error: cannot find type 'os_unfair_lock' in scope
13 |
14 |     public init(_ element: Element) {
[4/5] Compiling Synchronized RecursiveLock.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:11:15: error: cannot find 'pthread_mutexattr_init' in scope
 9 |
10 |         var attributes = pthread_mutexattr_t()
11 |         guard pthread_mutexattr_init(&attributes) == 0
   |               `- error: cannot find 'pthread_mutexattr_init' in scope
12 |         else { preconditionFailure() }
13 |
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:14:15: error: cannot find 'pthread_mutexattr_settype' in scope
12 |         else { preconditionFailure() }
13 |
14 |         guard pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE) == 0
   |               `- error: cannot find 'pthread_mutexattr_settype' in scope
15 |         else { preconditionFailure() }
16 |
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:14:54: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
12 |         else { preconditionFailure() }
13 |
14 |         guard pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE) == 0
   |                                                      `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
15 |         else { preconditionFailure() }
16 |
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:17:15: error: cannot find 'pthread_mutex_init' in scope
15 |         else { preconditionFailure() }
16 |
17 |         guard pthread_mutex_init(backing, &attributes) == 0
   |               `- error: cannot find 'pthread_mutex_init' in scope
18 |         else { preconditionFailure() }
19 |
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:20:9: error: cannot find 'pthread_mutexattr_destroy' in scope
18 |         else { preconditionFailure() }
19 |
20 |         pthread_mutexattr_destroy(&attributes)
   |         `- error: cannot find 'pthread_mutexattr_destroy' in scope
21 |     }
22 |
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:24:9: error: cannot find 'pthread_mutex_destroy' in scope
22 |
23 |     deinit {
24 |         pthread_mutex_destroy(backing)
   |         `- error: cannot find 'pthread_mutex_destroy' in scope
25 |         backing.deinitialize(count: 1)
26 |         backing.deallocate()
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:30:19: error: cannot find 'pthread_mutex_lock' in scope
28 |
29 |     public func locked<T>(_ block: () throws -> T) rethrows -> T {
30 |         let ret = pthread_mutex_lock(backing)
   |                   `- error: cannot find 'pthread_mutex_lock' in scope
31 |         // https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pthread_mutex_lock.3.html
32 |         precondition(ret == 0, "Could not acquire lock: '\(ret)'")
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:33:17: error: cannot find 'pthread_mutex_unlock' in scope
31 |         // https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pthread_mutex_lock.3.html
32 |         precondition(ret == 0, "Could not acquire lock: '\(ret)'")
33 |         defer { pthread_mutex_unlock(backing) }
   |                 `- error: cannot find 'pthread_mutex_unlock' in scope
34 |         return try block()
35 |     }
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:39:12: error: cannot find 'pthread_mutex_trylock' in scope
37 |     public func tryLocked(_ block: () throws -> Void) rethrows -> Bool {
38 |         // https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pthread_mutex_trylock.3.html#//apple_ref/doc/man/3/pthread_mutex_trylock
39 |         if pthread_mutex_trylock(backing) == 0 {
   |            `- error: cannot find 'pthread_mutex_trylock' in scope
40 |             defer { pthread_mutex_unlock(backing) }
41 |             try block()
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/RecursiveLock.swift:40:21: error: cannot find 'pthread_mutex_unlock' in scope
38 |         // https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pthread_mutex_trylock.3.html#//apple_ref/doc/man/3/pthread_mutex_trylock
39 |         if pthread_mutex_trylock(backing) == 0 {
40 |             defer { pthread_mutex_unlock(backing) }
   |                     `- error: cannot find 'pthread_mutex_unlock' in scope
41 |             try block()
42 |             return true
[5/5] Compiling Synchronized Lock.swift
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:4:47: error: cannot find type 'os_unfair_lock' in scope
 2 |
 3 | public final class Lock {
 4 |     private var backing: UnsafeMutablePointer<os_unfair_lock>
   |                                               `- error: cannot find type 'os_unfair_lock' in scope
 5 |
 6 |     public init() {
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:7:40: error: cannot find type 'os_unfair_lock' in scope
 5 |
 6 |     public init() {
 7 |         backing = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
   |                                        `- error: cannot find type 'os_unfair_lock' in scope
 8 |         backing.initialize(to: os_unfair_lock())
 9 |     }
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:8:32: error: cannot find 'os_unfair_lock' in scope
 6 |     public init() {
 7 |         backing = UnsafeMutablePointer<os_unfair_lock>.allocate(capacity: 1)
 8 |         backing.initialize(to: os_unfair_lock())
   |                                `- error: cannot find 'os_unfair_lock' in scope
 9 |     }
10 |
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:18:9: error: cannot find 'os_unfair_lock_lock' in scope
16 |     public func locked<T>(_ block: () throws -> T) rethrows -> T {
17 |         // https://developer.apple.com/documentation/os/1646466-os_unfair_lock_lock
18 |         os_unfair_lock_lock(backing)
   |         `- error: cannot find 'os_unfair_lock_lock' in scope
19 |         defer { os_unfair_lock_unlock(backing) }
20 |         return try block()
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:19:17: error: cannot find 'os_unfair_lock_unlock' in scope
17 |         // https://developer.apple.com/documentation/os/1646466-os_unfair_lock_lock
18 |         os_unfair_lock_lock(backing)
19 |         defer { os_unfair_lock_unlock(backing) }
   |                 `- error: cannot find 'os_unfair_lock_unlock' in scope
20 |         return try block()
21 |     }
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:25:12: error: cannot find 'os_unfair_lock_trylock' in scope
23 |     public func tryLocked(_ block: () throws -> Void) rethrows -> Bool {
24 |         // https://developer.apple.com/documentation/os/1646469-os_unfair_lock_trylock
25 |         if os_unfair_lock_trylock(backing) {
   |            `- error: cannot find 'os_unfair_lock_trylock' in scope
26 |             defer { os_unfair_lock_unlock(backing) }
27 |             try block()
/host/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:26:21: error: cannot find 'os_unfair_lock_unlock' in scope
24 |         // https://developer.apple.com/documentation/os/1646469-os_unfair_lock_trylock
25 |         if os_unfair_lock_trylock(backing) {
26 |             defer { os_unfair_lock_unlock(backing) }
   |                     `- error: cannot find 'os_unfair_lock_unlock' in scope
27 |             try block()
28 |             return true
BUILD FAILURE 6.1 wasm