The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Factory, reference 3.5.3 (5f4ea2), with Swift 6.2 for Wasm on 9 Nov 2026 19:19:58 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hmlongco/Factory.git
Reference: 3.5.3
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/hmlongco/Factory
 * tag               3.5.3      -> FETCH_HEAD
HEAD is now at 5f4ea2b Use FoundationEssentials on Linux and Android #391
Cloned https://github.com/hmlongco/Factory.git
Revision (git rev-parse @):
5f4ea2bf876fd08db3442af96270424120bd2c70
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/hmlongco/Factory.git at 3.5.3
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/hmlongco/Factory.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ba6864ed1873dc28d63134b1bd648b09c5ec8270a0ae95720b7f96d84a66a058
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.51s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (1.41s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3865] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.15s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.37s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/8] Write sources
[4/8] Write swift-version-24593BA9C3E375BF.txt
[6/21] Compiling FactoryKit Key.swift
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Key.swift:93:20: error: cannot find 'strcmp' in scope
 91 |         }
 92 |         if lhs.hasPointerRepresentation {
 93 |             return strcmp(lhs.utf8Start, rhs.utf8Start) == 0
    |                    `- error: cannot find 'strcmp' in scope
 94 |         } else {
 95 |             return lhs.unicodeScalar == rhs.unicodeScalar
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:81:45: error: cannot find type 'pthread_mutex_t' in scope
 79 |     }
 80 |
 81 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
 82 |
 83 | }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:134:45: error: cannot find type 'pthread_mutex_t' in scope
132 |     }
133 |
134 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
135 | }
136 | #endif
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:175:46: error: cannot find type 'pthread_rwlock_t' in scope
173 |     }
174 |
175 |     private let rwlock: UnsafeMutablePointer<pthread_rwlock_t>
    |                                              `- error: cannot find type 'pthread_rwlock_t' in scope
176 |
177 | }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:59:46: error: cannot find type 'pthread_mutexattr_t' in scope
 57 |
 58 |     init() {
 59 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
    |                                              `- error: cannot find type 'pthread_mutexattr_t' in scope
 60 |         pthread_mutexattr_init(mutexAttr)
 61 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:60:9: error: cannot find 'pthread_mutexattr_init' in scope
 58 |     init() {
 59 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
 60 |         pthread_mutexattr_init(mutexAttr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 61 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
 62 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:61:9: error: cannot find 'pthread_mutexattr_settype' in scope
 59 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
 60 |         pthread_mutexattr_init(mutexAttr)
 61 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
    |         `- error: cannot find 'pthread_mutexattr_settype' in scope
 62 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
 63 |         pthread_mutex_init(mutex, mutexAttr)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:61:52: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
 59 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
 60 |         pthread_mutexattr_init(mutexAttr)
 61 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
    |                                                    `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
 62 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
 63 |         pthread_mutex_init(mutex, mutexAttr)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:62:38: error: cannot find type 'pthread_mutex_t' in scope
 60 |         pthread_mutexattr_init(mutexAttr)
 61 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
 62 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
    |                                      `- error: cannot find type 'pthread_mutex_t' in scope
 63 |         pthread_mutex_init(mutex, mutexAttr)
 64 |         pthread_mutexattr_destroy(mutexAttr)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:63:9: error: cannot find 'pthread_mutex_init' in scope
 61 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
 62 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
 63 |         pthread_mutex_init(mutex, mutexAttr)
    |         `- error: cannot find 'pthread_mutex_init' in scope
 64 |         pthread_mutexattr_destroy(mutexAttr)
 65 |         mutexAttr.deallocate()
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:64:9: error: cannot find 'pthread_mutexattr_destroy' in scope
 62 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
 63 |         pthread_mutex_init(mutex, mutexAttr)
 64 |         pthread_mutexattr_destroy(mutexAttr)
    |         `- error: cannot find 'pthread_mutexattr_destroy' in scope
 65 |         mutexAttr.deallocate()
 66 |     }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:69:9: error: cannot find 'pthread_mutex_destroy' in scope
 67 |
 68 |     deinit {
 69 |         pthread_mutex_destroy(mutex)
    |         `- error: cannot find 'pthread_mutex_destroy' in scope
 70 |         mutex.deallocate()
 71 |     }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:74:9: error: cannot find 'pthread_mutex_lock' in scope
 72 |
 73 |     @inlinable @inline(__always) func lock() {
 74 |         pthread_mutex_lock(mutex)
    |         `- error: cannot find 'pthread_mutex_lock' in scope
 75 |     }
 76 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:78:9: error: cannot find 'pthread_mutex_unlock' in scope
 76 |
 77 |     @inlinable @inline(__always) func unlock() {
 78 |         pthread_mutex_unlock(mutex)
    |         `- error: cannot find 'pthread_mutex_unlock' in scope
 79 |     }
 80 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:112:38: error: cannot find type 'pthread_mutex_t' in scope
110 |
111 |     init() {
112 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
    |                                      `- error: cannot find type 'pthread_mutex_t' in scope
113 |         let attributes = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
114 |         pthread_mutexattr_init(attributes)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:113:47: error: cannot find type 'pthread_mutexattr_t' in scope
111 |     init() {
112 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
113 |         let attributes = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
    |                                               `- error: cannot find type 'pthread_mutexattr_t' in scope
114 |         pthread_mutexattr_init(attributes)
115 |         pthread_mutexattr_settype(attributes, Int32(PTHREAD_MUTEX_NORMAL))
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:114:9: error: cannot find 'pthread_mutexattr_init' in scope
112 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
113 |         let attributes = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
114 |         pthread_mutexattr_init(attributes)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
115 |         pthread_mutexattr_settype(attributes, Int32(PTHREAD_MUTEX_NORMAL))
116 |         pthread_mutex_init(mutex, attributes)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:115:9: error: cannot find 'pthread_mutexattr_settype' in scope
113 |         let attributes = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
114 |         pthread_mutexattr_init(attributes)
115 |         pthread_mutexattr_settype(attributes, Int32(PTHREAD_MUTEX_NORMAL))
    |         `- error: cannot find 'pthread_mutexattr_settype' in scope
116 |         pthread_mutex_init(mutex, attributes)
117 |         pthread_mutexattr_destroy(attributes)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:115:53: error: cannot find 'PTHREAD_MUTEX_NORMAL' in scope
113 |         let attributes = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
114 |         pthread_mutexattr_init(attributes)
115 |         pthread_mutexattr_settype(attributes, Int32(PTHREAD_MUTEX_NORMAL))
    |                                                     `- error: cannot find 'PTHREAD_MUTEX_NORMAL' in scope
116 |         pthread_mutex_init(mutex, attributes)
117 |         pthread_mutexattr_destroy(attributes)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:116:9: error: cannot find 'pthread_mutex_init' in scope
114 |         pthread_mutexattr_init(attributes)
115 |         pthread_mutexattr_settype(attributes, Int32(PTHREAD_MUTEX_NORMAL))
116 |         pthread_mutex_init(mutex, attributes)
    |         `- error: cannot find 'pthread_mutex_init' in scope
117 |         pthread_mutexattr_destroy(attributes)
118 |         attributes.deallocate()
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:117:9: error: cannot find 'pthread_mutexattr_destroy' in scope
115 |         pthread_mutexattr_settype(attributes, Int32(PTHREAD_MUTEX_NORMAL))
116 |         pthread_mutex_init(mutex, attributes)
117 |         pthread_mutexattr_destroy(attributes)
    |         `- error: cannot find 'pthread_mutexattr_destroy' in scope
118 |         attributes.deallocate()
119 |     }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:122:9: error: cannot find 'pthread_mutex_destroy' in scope
120 |
121 |     deinit {
122 |         pthread_mutex_destroy(mutex)
    |         `- error: cannot find 'pthread_mutex_destroy' in scope
123 |         mutex.deallocate()
124 |     }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:127:9: error: cannot find 'pthread_mutex_lock' in scope
125 |
126 |     @inlinable @inline(__always) func lock() {
127 |         pthread_mutex_lock(mutex)
    |         `- error: cannot find 'pthread_mutex_lock' in scope
128 |     }
129 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:131:9: error: cannot find 'pthread_mutex_unlock' in scope
129 |
130 |     @inlinable @inline(__always) func unlock() {
131 |         pthread_mutex_unlock(mutex)
    |         `- error: cannot find 'pthread_mutex_unlock' in scope
132 |     }
133 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:144:39: error: cannot find type 'pthread_rwlock_t' in scope
142 |
143 |     init() {
144 |         rwlock = UnsafeMutablePointer<pthread_rwlock_t>.allocate(capacity: 1)
    |                                       `- error: cannot find type 'pthread_rwlock_t' in scope
145 |         pthread_rwlock_init(rwlock, nil)
146 |     }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:145:9: error: cannot find 'pthread_rwlock_init' in scope
143 |     init() {
144 |         rwlock = UnsafeMutablePointer<pthread_rwlock_t>.allocate(capacity: 1)
145 |         pthread_rwlock_init(rwlock, nil)
    |         `- error: cannot find 'pthread_rwlock_init' in scope
146 |     }
147 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:145:37: error: 'nil' requires a contextual type
143 |     init() {
144 |         rwlock = UnsafeMutablePointer<pthread_rwlock_t>.allocate(capacity: 1)
145 |         pthread_rwlock_init(rwlock, nil)
    |                                     `- error: 'nil' requires a contextual type
146 |     }
147 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:149:9: error: cannot find 'pthread_rwlock_destroy' in scope
147 |
148 |     deinit {
149 |         pthread_rwlock_destroy(rwlock)
    |         `- error: cannot find 'pthread_rwlock_destroy' in scope
150 |         rwlock.deallocate()
151 |     }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:154:9: error: cannot find 'pthread_rwlock_rdlock' in scope
152 |
153 |     @inlinable @inline(__always) func readLock() {
154 |         pthread_rwlock_rdlock(rwlock)
    |         `- error: cannot find 'pthread_rwlock_rdlock' in scope
155 |     }
156 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:158:9: error: cannot find 'pthread_rwlock_wrlock' in scope
156 |
157 |     @inlinable @inline(__always) func writeLock() {
158 |         pthread_rwlock_wrlock(rwlock)
    |         `- error: cannot find 'pthread_rwlock_wrlock' in scope
159 |     }
160 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:162:9: error: cannot find 'pthread_rwlock_unlock' in scope
160 |
161 |     @inlinable @inline(__always) func unlock() {
162 |         pthread_rwlock_unlock(rwlock)
    |         `- error: cannot find 'pthread_rwlock_unlock' in scope
163 |     }
164 |
[7/21] Compiling FactoryKit Locking.swift
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Key.swift:93:20: error: cannot find 'strcmp' in scope
 91 |         }
 92 |         if lhs.hasPointerRepresentation {
 93 |             return strcmp(lhs.utf8Start, rhs.utf8Start) == 0
    |                    `- error: cannot find 'strcmp' in scope
 94 |         } else {
 95 |             return lhs.unicodeScalar == rhs.unicodeScalar
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:81:45: error: cannot find type 'pthread_mutex_t' in scope
 79 |     }
 80 |
 81 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
 82 |
 83 | }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:134:45: error: cannot find type 'pthread_mutex_t' in scope
132 |     }
133 |
134 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
135 | }
136 | #endif
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:175:46: error: cannot find type 'pthread_rwlock_t' in scope
173 |     }
174 |
175 |     private let rwlock: UnsafeMutablePointer<pthread_rwlock_t>
    |                                              `- error: cannot find type 'pthread_rwlock_t' in scope
176 |
177 | }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:59:46: error: cannot find type 'pthread_mutexattr_t' in scope
 57 |
 58 |     init() {
 59 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
    |                                              `- error: cannot find type 'pthread_mutexattr_t' in scope
 60 |         pthread_mutexattr_init(mutexAttr)
 61 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:60:9: error: cannot find 'pthread_mutexattr_init' in scope
 58 |     init() {
 59 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
 60 |         pthread_mutexattr_init(mutexAttr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 61 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
 62 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:61:9: error: cannot find 'pthread_mutexattr_settype' in scope
 59 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
 60 |         pthread_mutexattr_init(mutexAttr)
 61 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
    |         `- error: cannot find 'pthread_mutexattr_settype' in scope
 62 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
 63 |         pthread_mutex_init(mutex, mutexAttr)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:61:52: error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
 59 |         let mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
 60 |         pthread_mutexattr_init(mutexAttr)
 61 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
    |                                                    `- error: cannot find 'PTHREAD_MUTEX_RECURSIVE' in scope
 62 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
 63 |         pthread_mutex_init(mutex, mutexAttr)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:62:38: error: cannot find type 'pthread_mutex_t' in scope
 60 |         pthread_mutexattr_init(mutexAttr)
 61 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
 62 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
    |                                      `- error: cannot find type 'pthread_mutex_t' in scope
 63 |         pthread_mutex_init(mutex, mutexAttr)
 64 |         pthread_mutexattr_destroy(mutexAttr)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:63:9: error: cannot find 'pthread_mutex_init' in scope
 61 |         pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
 62 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
 63 |         pthread_mutex_init(mutex, mutexAttr)
    |         `- error: cannot find 'pthread_mutex_init' in scope
 64 |         pthread_mutexattr_destroy(mutexAttr)
 65 |         mutexAttr.deallocate()
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:64:9: error: cannot find 'pthread_mutexattr_destroy' in scope
 62 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
 63 |         pthread_mutex_init(mutex, mutexAttr)
 64 |         pthread_mutexattr_destroy(mutexAttr)
    |         `- error: cannot find 'pthread_mutexattr_destroy' in scope
 65 |         mutexAttr.deallocate()
 66 |     }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:69:9: error: cannot find 'pthread_mutex_destroy' in scope
 67 |
 68 |     deinit {
 69 |         pthread_mutex_destroy(mutex)
    |         `- error: cannot find 'pthread_mutex_destroy' in scope
 70 |         mutex.deallocate()
 71 |     }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:74:9: error: cannot find 'pthread_mutex_lock' in scope
 72 |
 73 |     @inlinable @inline(__always) func lock() {
 74 |         pthread_mutex_lock(mutex)
    |         `- error: cannot find 'pthread_mutex_lock' in scope
 75 |     }
 76 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:78:9: error: cannot find 'pthread_mutex_unlock' in scope
 76 |
 77 |     @inlinable @inline(__always) func unlock() {
 78 |         pthread_mutex_unlock(mutex)
    |         `- error: cannot find 'pthread_mutex_unlock' in scope
 79 |     }
 80 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:112:38: error: cannot find type 'pthread_mutex_t' in scope
110 |
111 |     init() {
112 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
    |                                      `- error: cannot find type 'pthread_mutex_t' in scope
113 |         let attributes = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
114 |         pthread_mutexattr_init(attributes)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:113:47: error: cannot find type 'pthread_mutexattr_t' in scope
111 |     init() {
112 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
113 |         let attributes = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
    |                                               `- error: cannot find type 'pthread_mutexattr_t' in scope
114 |         pthread_mutexattr_init(attributes)
115 |         pthread_mutexattr_settype(attributes, Int32(PTHREAD_MUTEX_NORMAL))
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:114:9: error: cannot find 'pthread_mutexattr_init' in scope
112 |         mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
113 |         let attributes = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
114 |         pthread_mutexattr_init(attributes)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
115 |         pthread_mutexattr_settype(attributes, Int32(PTHREAD_MUTEX_NORMAL))
116 |         pthread_mutex_init(mutex, attributes)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:115:9: error: cannot find 'pthread_mutexattr_settype' in scope
113 |         let attributes = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
114 |         pthread_mutexattr_init(attributes)
115 |         pthread_mutexattr_settype(attributes, Int32(PTHREAD_MUTEX_NORMAL))
    |         `- error: cannot find 'pthread_mutexattr_settype' in scope
116 |         pthread_mutex_init(mutex, attributes)
117 |         pthread_mutexattr_destroy(attributes)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:115:53: error: cannot find 'PTHREAD_MUTEX_NORMAL' in scope
113 |         let attributes = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
114 |         pthread_mutexattr_init(attributes)
115 |         pthread_mutexattr_settype(attributes, Int32(PTHREAD_MUTEX_NORMAL))
    |                                                     `- error: cannot find 'PTHREAD_MUTEX_NORMAL' in scope
116 |         pthread_mutex_init(mutex, attributes)
117 |         pthread_mutexattr_destroy(attributes)
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:116:9: error: cannot find 'pthread_mutex_init' in scope
114 |         pthread_mutexattr_init(attributes)
115 |         pthread_mutexattr_settype(attributes, Int32(PTHREAD_MUTEX_NORMAL))
116 |         pthread_mutex_init(mutex, attributes)
    |         `- error: cannot find 'pthread_mutex_init' in scope
117 |         pthread_mutexattr_destroy(attributes)
118 |         attributes.deallocate()
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:117:9: error: cannot find 'pthread_mutexattr_destroy' in scope
115 |         pthread_mutexattr_settype(attributes, Int32(PTHREAD_MUTEX_NORMAL))
116 |         pthread_mutex_init(mutex, attributes)
117 |         pthread_mutexattr_destroy(attributes)
    |         `- error: cannot find 'pthread_mutexattr_destroy' in scope
118 |         attributes.deallocate()
119 |     }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:122:9: error: cannot find 'pthread_mutex_destroy' in scope
120 |
121 |     deinit {
122 |         pthread_mutex_destroy(mutex)
    |         `- error: cannot find 'pthread_mutex_destroy' in scope
123 |         mutex.deallocate()
124 |     }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:127:9: error: cannot find 'pthread_mutex_lock' in scope
125 |
126 |     @inlinable @inline(__always) func lock() {
127 |         pthread_mutex_lock(mutex)
    |         `- error: cannot find 'pthread_mutex_lock' in scope
128 |     }
129 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:131:9: error: cannot find 'pthread_mutex_unlock' in scope
129 |
130 |     @inlinable @inline(__always) func unlock() {
131 |         pthread_mutex_unlock(mutex)
    |         `- error: cannot find 'pthread_mutex_unlock' in scope
132 |     }
133 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:144:39: error: cannot find type 'pthread_rwlock_t' in scope
142 |
143 |     init() {
144 |         rwlock = UnsafeMutablePointer<pthread_rwlock_t>.allocate(capacity: 1)
    |                                       `- error: cannot find type 'pthread_rwlock_t' in scope
145 |         pthread_rwlock_init(rwlock, nil)
146 |     }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:145:9: error: cannot find 'pthread_rwlock_init' in scope
143 |     init() {
144 |         rwlock = UnsafeMutablePointer<pthread_rwlock_t>.allocate(capacity: 1)
145 |         pthread_rwlock_init(rwlock, nil)
    |         `- error: cannot find 'pthread_rwlock_init' in scope
146 |     }
147 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:145:37: error: 'nil' requires a contextual type
143 |     init() {
144 |         rwlock = UnsafeMutablePointer<pthread_rwlock_t>.allocate(capacity: 1)
145 |         pthread_rwlock_init(rwlock, nil)
    |                                     `- error: 'nil' requires a contextual type
146 |     }
147 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:149:9: error: cannot find 'pthread_rwlock_destroy' in scope
147 |
148 |     deinit {
149 |         pthread_rwlock_destroy(rwlock)
    |         `- error: cannot find 'pthread_rwlock_destroy' in scope
150 |         rwlock.deallocate()
151 |     }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:154:9: error: cannot find 'pthread_rwlock_rdlock' in scope
152 |
153 |     @inlinable @inline(__always) func readLock() {
154 |         pthread_rwlock_rdlock(rwlock)
    |         `- error: cannot find 'pthread_rwlock_rdlock' in scope
155 |     }
156 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:158:9: error: cannot find 'pthread_rwlock_wrlock' in scope
156 |
157 |     @inlinable @inline(__always) func writeLock() {
158 |         pthread_rwlock_wrlock(rwlock)
    |         `- error: cannot find 'pthread_rwlock_wrlock' in scope
159 |     }
160 |
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:162:9: error: cannot find 'pthread_rwlock_unlock' in scope
160 |
161 |     @inlinable @inline(__always) func unlock() {
162 |         pthread_rwlock_unlock(rwlock)
    |         `- error: cannot find 'pthread_rwlock_unlock' in scope
163 |     }
164 |
[8/22] Compiling FactoryKit Scenes.swift
[9/22] Compiling FactoryKit Resolver.swift
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:81:45: error: cannot find type 'pthread_mutex_t' in scope
 79 |     }
 80 |
 81 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
 82 |
 83 | }
[10/22] Compiling FactoryKit Modifiers.swift
[11/22] Compiling FactoryKit Registrations.swift
[12/22] Compiling FactoryKit Scopes.swift
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:134:45: error: cannot find type 'pthread_mutex_t' in scope
132 |     }
133 |
134 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
135 | }
136 | #endif
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:175:46: error: cannot find type 'pthread_rwlock_t' in scope
173 |     }
174 |
175 |     private let rwlock: UnsafeMutablePointer<pthread_rwlock_t>
    |                                              `- error: cannot find type 'pthread_rwlock_t' in scope
176 |
177 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/22] Emitting module FactoryKit
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:81:45: error: cannot find type 'pthread_mutex_t' in scope
 79 |     }
 80 |
 81 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
 82 |
 83 | }
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:134:45: error: cannot find type 'pthread_mutex_t' in scope
132 |     }
133 |
134 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
135 | }
136 | #endif
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:175:46: error: cannot find type 'pthread_rwlock_t' in scope
173 |     }
174 |
175 |     private let rwlock: UnsafeMutablePointer<pthread_rwlock_t>
    |                                              `- error: cannot find type 'pthread_rwlock_t' in scope
176 |
177 | }
[14/22] Compiling FactoryKit Containers.swift
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:134:45: error: cannot find type 'pthread_mutex_t' in scope
132 |     }
133 |
134 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
135 | }
136 | #endif
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:81:45: error: cannot find type 'pthread_mutex_t' in scope
 79 |     }
 80 |
 81 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
 82 |
 83 | }
[15/22] Compiling FactoryKit Contexts.swift
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:134:45: error: cannot find type 'pthread_mutex_t' in scope
132 |     }
133 |
134 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
135 | }
136 | #endif
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:81:45: error: cannot find type 'pthread_mutex_t' in scope
 79 |     }
 80 |
 81 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
 82 |
 83 | }
[16/22] Compiling FactoryKit Globals.swift
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:81:45: error: cannot find type 'pthread_mutex_t' in scope
 79 |     }
 80 |
 81 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
 82 |
 83 | }
[17/22] Compiling FactoryKit Injections.swift
/host/spi-builder-workspace/Sources/FactoryKit/FactoryKit/Locking.swift:81:45: error: cannot find type 'pthread_mutex_t' in scope
 79 |     }
 80 |
 81 |     private let mutex: UnsafeMutablePointer<pthread_mutex_t>
    |                                             `- error: cannot find type 'pthread_mutex_t' in scope
 82 |
 83 | }
[18/22] Compiling FactoryKit Dependency.swift
[19/22] Compiling FactoryKit Factory.swift
BUILD FAILURE 6.2 wasm