The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-service-lifecycle, reference 2.8.0 (e71873), with Swift 6.1 for Wasm on 30 May 2025 23:25:23 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/swift-server/swift-service-lifecycle.git
Reference: 2.8.0
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/swift-server/swift-service-lifecycle
 * tag               2.8.0      -> FETCH_HEAD
HEAD is now at e718730 Remove platforms from manifest (#203)
Cloned https://github.com/swift-server/swift-service-lifecycle.git
Revision (git rev-parse @):
e7187309187695115033536e8fc9b2eb87fd956d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swift-server/swift-service-lifecycle.git at 2.8.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/swift-server/swift-service-lifecycle.git
https://github.com/swift-server/swift-service-lifecycle.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "swift-async-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.4",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-async-algorithms.git"
    }
  ],
  "manifest_display_name" : "swift-service-lifecycle",
  "name" : "swift-service-lifecycle",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "ServiceLifecycle",
      "targets" : [
        "ServiceLifecycle"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "ServiceLifecycleTestKit",
      "targets" : [
        "ServiceLifecycleTestKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "UnixSignals",
      "targets" : [
        "UnixSignals"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UnixSignalsTests",
      "module_type" : "SwiftTarget",
      "name" : "UnixSignalsTests",
      "path" : "Tests/UnixSignalsTests",
      "sources" : [
        "UnixSignalTests.swift"
      ],
      "target_dependencies" : [
        "UnixSignals"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UnixSignals",
      "module_type" : "SwiftTarget",
      "name" : "UnixSignals",
      "path" : "Sources/UnixSignals",
      "product_memberships" : [
        "ServiceLifecycle",
        "ServiceLifecycleTestKit",
        "UnixSignals"
      ],
      "sources" : [
        "UnixSignal.swift",
        "UnixSignalsSequence.swift"
      ],
      "target_dependencies" : [
        "ConcurrencyHelpers"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ServiceLifecycleTests",
      "module_type" : "SwiftTarget",
      "name" : "ServiceLifecycleTests",
      "path" : "Tests/ServiceLifecycleTests",
      "sources" : [
        "AsyncCancelOnGracefulShutdownSequenceTests.swift",
        "GracefulShutdownTests.swift",
        "MockService.swift",
        "ServiceGroupAddServiceTests.swift",
        "ServiceGroupTests.swift",
        "XCTest+Async.swift"
      ],
      "target_dependencies" : [
        "ServiceLifecycle",
        "ServiceLifecycleTestKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ServiceLifecycleTestKit",
      "module_type" : "SwiftTarget",
      "name" : "ServiceLifecycleTestKit",
      "path" : "Sources/ServiceLifecycleTestKit",
      "product_memberships" : [
        "ServiceLifecycleTestKit"
      ],
      "sources" : [
        "GracefulShutdown.swift"
      ],
      "target_dependencies" : [
        "ServiceLifecycle"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ServiceLifecycle",
      "module_type" : "SwiftTarget",
      "name" : "ServiceLifecycle",
      "path" : "Sources/ServiceLifecycle",
      "product_dependencies" : [
        "Logging",
        "AsyncAlgorithms"
      ],
      "product_memberships" : [
        "ServiceLifecycle",
        "ServiceLifecycleTestKit"
      ],
      "sources" : [
        "AsyncCancelOnGracefulShutdownSequence.swift",
        "AsyncGracefulShutdownSequence.swift",
        "CancellationWaiter.swift",
        "GracefulShutdown.swift",
        "Service.swift",
        "ServiceGroup.swift",
        "ServiceGroupConfiguration.swift",
        "ServiceRunnerError.swift"
      ],
      "target_dependencies" : [
        "UnixSignals",
        "ConcurrencyHelpers"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ConcurrencyHelpers",
      "module_type" : "SwiftTarget",
      "name" : "ConcurrencyHelpers",
      "path" : "Sources/ConcurrencyHelpers",
      "product_memberships" : [
        "ServiceLifecycle",
        "ServiceLifecycleTestKit",
        "UnixSignals"
      ],
      "sources" : [
        "Lock.swift",
        "LockedValueBox.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-log.git
[1/4985] Fetching swift-async-algorithms
[3690/8821] Fetching swift-async-algorithms, swift-log
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.10s)
Fetched https://github.com/apple/swift-log.git from cache (1.10s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.0.4 (1.64s)
Fetching https://github.com/apple/swift-collections.git
[1/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (0.96s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.88s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.94s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.0.4
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Building for debugging...
[0/10] Write sources
[9/10] Write swift-version-24593BA9C3E375BF.txt
[11/32] Emitting module Logging
[12/32] Compiling InternalCollectionsUtilities Descriptions.swift
[13/32] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[14/33] Emitting module InternalCollectionsUtilities
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/33] Emitting module ConcurrencyHelpers
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:47:27: error: cannot find type 'pthread_mutex_t' in scope
 45 | #else
 46 | @usableFromInline
 47 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 48 | #endif
 49 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:61:20: error: cannot find 'pthread_mutexattr_t' in scope
 59 |         InitializeSRWLock(mutex)
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:62:9: error: cannot find 'pthread_mutexattr_init' in scope
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
 62 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:64:19: error: cannot find 'pthread_mutex_init' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 65 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 66 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:76:19: error: cannot find 'pthread_mutex_destroy' in scope
 74 |         // SRWLOCK does not need to be free'd
 75 |         #else
 76 |         let err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 77 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 78 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:88:19: error: cannot find 'pthread_mutex_lock' in scope
 86 |         AcquireSRWLockExclusive(mutex)
 87 |         #else
 88 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 89 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 90 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:100:19: error: cannot find 'pthread_mutex_unlock' in scope
 98 |         ReleaseSRWLockExclusive(mutex)
 99 |         #else
100 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
101 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
102 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:138:27: error: type of expression is ambiguous without a type annotation
136 |     @inlinable
137 |     static func create(value: Value) -> Self {
138 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: type of expression is ambiguous without a type annotation
139 |             return value
140 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:153:14: error: type of expression is ambiguous without a type annotation
151 |     @inlinable
152 |     func lock() {
153 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
154 |             LockOperations.lock(lockPtr)
155 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:160:14: error: type of expression is ambiguous without a type annotation
158 |     @inlinable
159 |     func unlock() {
160 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
161 |             LockOperations.unlock(lockPtr)
162 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:167:14: error: type of expression is ambiguous without a type annotation
165 |     @inlinable
166 |     deinit {
167 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
168 |             LockOperations.destroy(lockPtr)
169 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:174:18: error: type of expression is ambiguous without a type annotation
172 |     @inlinable
173 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
174 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
175 |             return try body(lockPtr)
176 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:181:18: error: type of expression is ambiguous without a type annotation
179 |     @inlinable
180 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
181 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
182 |             LockOperations.lock(lockPtr)
183 |             defer { LockOperations.unlock(lockPtr) }
[16/33] Compiling ConcurrencyHelpers LockedValueBox.swift
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:47:27: error: cannot find type 'pthread_mutex_t' in scope
 45 | #else
 46 | @usableFromInline
 47 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 48 | #endif
 49 |
[17/33] Compiling ConcurrencyHelpers Lock.swift
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:47:27: error: cannot find type 'pthread_mutex_t' in scope
 45 | #else
 46 | @usableFromInline
 47 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 48 | #endif
 49 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:61:20: error: cannot find 'pthread_mutexattr_t' in scope
 59 |         InitializeSRWLock(mutex)
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:62:9: error: cannot find 'pthread_mutexattr_init' in scope
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
 62 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:64:19: error: cannot find 'pthread_mutex_init' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 65 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 66 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:76:19: error: cannot find 'pthread_mutex_destroy' in scope
 74 |         // SRWLOCK does not need to be free'd
 75 |         #else
 76 |         let err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 77 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 78 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:88:19: error: cannot find 'pthread_mutex_lock' in scope
 86 |         AcquireSRWLockExclusive(mutex)
 87 |         #else
 88 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 89 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 90 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:100:19: error: cannot find 'pthread_mutex_unlock' in scope
 98 |         ReleaseSRWLockExclusive(mutex)
 99 |         #else
100 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
101 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
102 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:138:27: error: type of expression is ambiguous without a type annotation
136 |     @inlinable
137 |     static func create(value: Value) -> Self {
138 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: type of expression is ambiguous without a type annotation
139 |             return value
140 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:153:14: error: type of expression is ambiguous without a type annotation
151 |     @inlinable
152 |     func lock() {
153 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
154 |             LockOperations.lock(lockPtr)
155 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:160:14: error: type of expression is ambiguous without a type annotation
158 |     @inlinable
159 |     func unlock() {
160 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
161 |             LockOperations.unlock(lockPtr)
162 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:167:14: error: type of expression is ambiguous without a type annotation
165 |     @inlinable
166 |     deinit {
167 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
168 |             LockOperations.destroy(lockPtr)
169 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:174:18: error: type of expression is ambiguous without a type annotation
172 |     @inlinable
173 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
174 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
175 |             return try body(lockPtr)
176 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:181:18: error: type of expression is ambiguous without a type annotation
179 |     @inlinable
180 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
181 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
182 |             LockOperations.lock(lockPtr)
183 |             defer { LockOperations.unlock(lockPtr) }
[18/33] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/11] Compiling ConcurrencyHelpers LockedValueBox.swift
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:47:27: error: cannot find type 'pthread_mutex_t' in scope
 45 | #else
 46 | @usableFromInline
 47 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 48 | #endif
 49 |
[3/23] Compiling ConcurrencyHelpers Lock.swift
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:47:27: error: cannot find type 'pthread_mutex_t' in scope
 45 | #else
 46 | @usableFromInline
 47 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 48 | #endif
 49 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:61:20: error: cannot find 'pthread_mutexattr_t' in scope
 59 |         InitializeSRWLock(mutex)
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:62:9: error: cannot find 'pthread_mutexattr_init' in scope
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
 62 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:64:19: error: cannot find 'pthread_mutex_init' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 65 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 66 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:76:19: error: cannot find 'pthread_mutex_destroy' in scope
 74 |         // SRWLOCK does not need to be free'd
 75 |         #else
 76 |         let err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 77 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 78 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:88:19: error: cannot find 'pthread_mutex_lock' in scope
 86 |         AcquireSRWLockExclusive(mutex)
 87 |         #else
 88 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 89 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 90 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:100:19: error: cannot find 'pthread_mutex_unlock' in scope
 98 |         ReleaseSRWLockExclusive(mutex)
 99 |         #else
100 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
101 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
102 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:138:27: error: type of expression is ambiguous without a type annotation
136 |     @inlinable
137 |     static func create(value: Value) -> Self {
138 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: type of expression is ambiguous without a type annotation
139 |             return value
140 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:153:14: error: type of expression is ambiguous without a type annotation
151 |     @inlinable
152 |     func lock() {
153 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
154 |             LockOperations.lock(lockPtr)
155 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:160:14: error: type of expression is ambiguous without a type annotation
158 |     @inlinable
159 |     func unlock() {
160 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
161 |             LockOperations.unlock(lockPtr)
162 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:167:14: error: type of expression is ambiguous without a type annotation
165 |     @inlinable
166 |     deinit {
167 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
168 |             LockOperations.destroy(lockPtr)
169 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:174:18: error: type of expression is ambiguous without a type annotation
172 |     @inlinable
173 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
174 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
175 |             return try body(lockPtr)
176 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:181:18: error: type of expression is ambiguous without a type annotation
179 |     @inlinable
180 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
181 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
182 |             LockOperations.lock(lockPtr)
183 |             defer { LockOperations.unlock(lockPtr) }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/23] Emitting module ConcurrencyHelpers
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:47:27: error: cannot find type 'pthread_mutex_t' in scope
 45 | #else
 46 | @usableFromInline
 47 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 48 | #endif
 49 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:61:20: error: cannot find 'pthread_mutexattr_t' in scope
 59 |         InitializeSRWLock(mutex)
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:62:9: error: cannot find 'pthread_mutexattr_init' in scope
 60 |         #else
 61 |         var attr = pthread_mutexattr_t()
 62 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:64:19: error: cannot find 'pthread_mutex_init' in scope
 62 |         pthread_mutexattr_init(&attr)
 63 |
 64 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 65 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 66 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:76:19: error: cannot find 'pthread_mutex_destroy' in scope
 74 |         // SRWLOCK does not need to be free'd
 75 |         #else
 76 |         let err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 77 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 78 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:88:19: error: cannot find 'pthread_mutex_lock' in scope
 86 |         AcquireSRWLockExclusive(mutex)
 87 |         #else
 88 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 89 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 90 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:100:19: error: cannot find 'pthread_mutex_unlock' in scope
 98 |         ReleaseSRWLockExclusive(mutex)
 99 |         #else
100 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
101 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
102 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:138:27: error: type of expression is ambiguous without a type annotation
136 |     @inlinable
137 |     static func create(value: Value) -> Self {
138 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: type of expression is ambiguous without a type annotation
139 |             return value
140 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:153:14: error: type of expression is ambiguous without a type annotation
151 |     @inlinable
152 |     func lock() {
153 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
154 |             LockOperations.lock(lockPtr)
155 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:160:14: error: type of expression is ambiguous without a type annotation
158 |     @inlinable
159 |     func unlock() {
160 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
161 |             LockOperations.unlock(lockPtr)
162 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:167:14: error: type of expression is ambiguous without a type annotation
165 |     @inlinable
166 |     deinit {
167 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
168 |             LockOperations.destroy(lockPtr)
169 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:174:18: error: type of expression is ambiguous without a type annotation
172 |     @inlinable
173 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
174 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
175 |             return try body(lockPtr)
176 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:181:18: error: type of expression is ambiguous without a type annotation
179 |     @inlinable
180 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
181 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
182 |             LockOperations.lock(lockPtr)
183 |             defer { LockOperations.unlock(lockPtr) }
BUILD FAILURE 6.1 wasm