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-concurrency-primitives, reference main (d7c711), with Swift 6.1 for Android on 29 May 2025 18:21:30 UTC.

Build Command

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

Build Log

 98 |             while true {
 99 |                 // wait until the time passed as argument as elapsed
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:102:22: error: cannot find 'ETIMEDOUT' in scope
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
103 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
104 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:148:29: error: cannot find type 'timespec' in scope
146 |         #else
147 |
148 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
149 |
150 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |                 }
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:185:34: error: cannot find 'pthread_cond_wait' in scope
183 |                 )
184 |             #else
185 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
186 |                 precondition(err == 0, "\(#function) failed due to \(err)")
187 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:211:34: error: cannot find 'pthread_cond_wait' in scope
209 |                 )
210 |             #else
211 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
212 |                 precondition(err == 0, "\(#function) failed due to \(err)")
213 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:231:30: error: cannot find 'pthread_cond_wait' in scope
229 |             )
230 |         #else
231 |             let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                              `- error: cannot find 'pthread_cond_wait' in scope
232 |             precondition(err == 0, "\(#function) failed due to error \(err)")
233 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:244:13: error: cannot find 'pthread_cond_signal' in scope
242 |             WakeConditionVariable(condition)
243 |         #else
244 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
245 |         #endif
246 |     }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:256:30: error: cannot find 'pthread_cond_broadcast' in scope
254 |             WakeAllConditionVariable(condition)
255 |         #else
256 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
257 |             precondition(err == 0, "\(#function) failed due to \(err)")
258 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:20:21: error: generic parameter 'Pointee' could not be inferred
 18 |
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
 22 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:21:17: error: generic parameter 'Pointee' could not be inferred
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
    |                 |- error: generic parameter 'Pointee' could not be inferred
    |                 `- note: explicitly specify the generic arguments to fix this issue
 22 |
 23 |         #if os(Windows)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:29:38: error: cannot find 'pthread_cond_t' in scope
 27 |             var err: Int32 = 0
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:30:34: error: cannot find 'pthread_mutex_t' in scope
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
 30 |             mutex.initialize(to: pthread_mutex_t())
    |                                  `- error: cannot find 'pthread_mutex_t' in scope
 31 |
 32 |             err = pthread_cond_init(condition, nil)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:19: error: cannot find 'pthread_cond_init' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                   `- error: cannot find 'pthread_cond_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:48: error: 'nil' requires a contextual type
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                                                `- error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:19: error: cannot find 'pthread_mutex_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:45: error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                                             `- error: 'nil' requires a contextual type
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:43:19: error: cannot find 'pthread_cond_destroy' in scope
 41 |         #if !os(Windows)
 42 |             var err: Int32 = 0
 43 |             err = pthread_cond_destroy(condition)
    |                   `- error: cannot find 'pthread_cond_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:46:19: error: cannot find 'pthread_mutex_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
 46 |             err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 47 |             precondition(err == 0, "Couldn't destroy pthread_mutex due to \(err)")
 48 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:58:30: error: cannot find 'pthread_mutex_lock' in scope
 56 |             AcquireSRWLockExclusive(mutex)
 57 |         #else
 58 |             let err: Int32 = pthread_mutex_lock(mutex)
    |                              `- error: cannot find 'pthread_mutex_lock' in scope
 59 |             precondition(err == 0, "\(#function) failed due to \(err)")
 60 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:67:30: error: cannot find 'pthread_mutex_unlock' in scope
 65 |             ReleaseSRWLockExclusive(mutex)
 66 |         #else
 67 |             let err: Int32 = pthread_mutex_unlock(mutex)
    |                              `- error: cannot find 'pthread_mutex_unlock' in scope
 68 |             precondition(err == 0, "\(#function) failed due to \(err)")
 69 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:76:13: error: cannot find 'pthread_cond_signal' in scope
 74 |             WakeConditionVariable(condition)
 75 |         #else
 76 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
 77 |         #endif
 78 |     }
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:84:30: error: cannot find 'pthread_cond_broadcast' in scope
 82 |             WakeAllConditionVariable(condition)
 83 |         #else
 84 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
 85 |             precondition(err == 0, "\(#function) failed due to \(err)")
 86 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:106:34: error: cannot find 'pthread_cond_wait' in scope
104 |                 )
105 |             #else
106 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
107 |                 precondition(err == 0, "\(#function) failed due to \(err)")
108 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:121:34: error: cannot find 'pthread_cond_wait' in scope
119 |                 )
120 |             #else
121 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
122 |                 precondition(err == 0, "\(#function) failed due to \(err)")
123 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:151:29: error: cannot find type 'timespec' in scope
149 |         #else
150 |
151 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
152 |
153 |             while true {
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |             while true {
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
[23/33] Compiling Primitives Condition.swift
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:44:21: error: generic parameter 'Pointee' could not be inferred
 42 |     /// Initialises an instance of `Condition` type
 43 |     init() {
 44 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 45 |         #if os(Windows)
 46 |             InitializeConditionVariable(condition)
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:48:38: error: cannot find 'pthread_cond_t' in scope
 46 |             InitializeConditionVariable(condition)
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:30: error: cannot find 'pthread_cond_init' in scope
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                              `- error: cannot find 'pthread_cond_init' in scope
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:59: error: 'nil' requires a contextual type
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                                                           `- error: 'nil' requires a contextual type
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:57:30: error: cannot find 'pthread_cond_destroy' in scope
 55 |     deinit {
 56 |         #if !os(Windows)
 57 |             let err: Int32 = pthread_cond_destroy(condition)
    |                              `- error: cannot find 'pthread_cond_destroy' in scope
 58 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 59 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:96:29: error: cannot find type 'timespec' in scope
 94 |         #else
 95 |
 96 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
 97 |
 98 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:100:24: error: cannot find 'pthread_cond_timedwait' in scope
 98 |             while true {
 99 |                 // wait until the time passed as argument as elapsed
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:102:22: error: cannot find 'ETIMEDOUT' in scope
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
103 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
104 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:148:29: error: cannot find type 'timespec' in scope
146 |         #else
147 |
148 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
149 |
150 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |                 }
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:185:34: error: cannot find 'pthread_cond_wait' in scope
183 |                 )
184 |             #else
185 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
186 |                 precondition(err == 0, "\(#function) failed due to \(err)")
187 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:211:34: error: cannot find 'pthread_cond_wait' in scope
209 |                 )
210 |             #else
211 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
212 |                 precondition(err == 0, "\(#function) failed due to \(err)")
213 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:231:30: error: cannot find 'pthread_cond_wait' in scope
229 |             )
230 |         #else
231 |             let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                              `- error: cannot find 'pthread_cond_wait' in scope
232 |             precondition(err == 0, "\(#function) failed due to error \(err)")
233 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:244:13: error: cannot find 'pthread_cond_signal' in scope
242 |             WakeConditionVariable(condition)
243 |         #else
244 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
245 |         #endif
246 |     }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:256:30: error: cannot find 'pthread_cond_broadcast' in scope
254 |             WakeAllConditionVariable(condition)
255 |         #else
256 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
257 |             precondition(err == 0, "\(#function) failed due to \(err)")
258 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:20:21: error: generic parameter 'Pointee' could not be inferred
 18 |
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
 22 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:21:17: error: generic parameter 'Pointee' could not be inferred
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
    |                 |- error: generic parameter 'Pointee' could not be inferred
    |                 `- note: explicitly specify the generic arguments to fix this issue
 22 |
 23 |         #if os(Windows)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:29:38: error: cannot find 'pthread_cond_t' in scope
 27 |             var err: Int32 = 0
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:30:34: error: cannot find 'pthread_mutex_t' in scope
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
 30 |             mutex.initialize(to: pthread_mutex_t())
    |                                  `- error: cannot find 'pthread_mutex_t' in scope
 31 |
 32 |             err = pthread_cond_init(condition, nil)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:19: error: cannot find 'pthread_cond_init' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                   `- error: cannot find 'pthread_cond_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:48: error: 'nil' requires a contextual type
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                                                `- error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:19: error: cannot find 'pthread_mutex_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:45: error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                                             `- error: 'nil' requires a contextual type
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:43:19: error: cannot find 'pthread_cond_destroy' in scope
 41 |         #if !os(Windows)
 42 |             var err: Int32 = 0
 43 |             err = pthread_cond_destroy(condition)
    |                   `- error: cannot find 'pthread_cond_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:46:19: error: cannot find 'pthread_mutex_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
 46 |             err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 47 |             precondition(err == 0, "Couldn't destroy pthread_mutex due to \(err)")
 48 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:58:30: error: cannot find 'pthread_mutex_lock' in scope
 56 |             AcquireSRWLockExclusive(mutex)
 57 |         #else
 58 |             let err: Int32 = pthread_mutex_lock(mutex)
    |                              `- error: cannot find 'pthread_mutex_lock' in scope
 59 |             precondition(err == 0, "\(#function) failed due to \(err)")
 60 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:67:30: error: cannot find 'pthread_mutex_unlock' in scope
 65 |             ReleaseSRWLockExclusive(mutex)
 66 |         #else
 67 |             let err: Int32 = pthread_mutex_unlock(mutex)
    |                              `- error: cannot find 'pthread_mutex_unlock' in scope
 68 |             precondition(err == 0, "\(#function) failed due to \(err)")
 69 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:76:13: error: cannot find 'pthread_cond_signal' in scope
 74 |             WakeConditionVariable(condition)
 75 |         #else
 76 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
 77 |         #endif
 78 |     }
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:84:30: error: cannot find 'pthread_cond_broadcast' in scope
 82 |             WakeAllConditionVariable(condition)
 83 |         #else
 84 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
 85 |             precondition(err == 0, "\(#function) failed due to \(err)")
 86 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:106:34: error: cannot find 'pthread_cond_wait' in scope
104 |                 )
105 |             #else
106 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
107 |                 precondition(err == 0, "\(#function) failed due to \(err)")
108 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:121:34: error: cannot find 'pthread_cond_wait' in scope
119 |                 )
120 |             #else
121 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
122 |                 precondition(err == 0, "\(#function) failed due to \(err)")
123 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:151:29: error: cannot find type 'timespec' in scope
149 |         #else
150 |
151 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
152 |
153 |             while true {
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |             while true {
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
[24/33] Compiling Primitives ConditionLock.swift
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:44:21: error: generic parameter 'Pointee' could not be inferred
 42 |     /// Initialises an instance of `Condition` type
 43 |     init() {
 44 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 45 |         #if os(Windows)
 46 |             InitializeConditionVariable(condition)
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:48:38: error: cannot find 'pthread_cond_t' in scope
 46 |             InitializeConditionVariable(condition)
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:30: error: cannot find 'pthread_cond_init' in scope
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                              `- error: cannot find 'pthread_cond_init' in scope
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:59: error: 'nil' requires a contextual type
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                                                           `- error: 'nil' requires a contextual type
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:57:30: error: cannot find 'pthread_cond_destroy' in scope
 55 |     deinit {
 56 |         #if !os(Windows)
 57 |             let err: Int32 = pthread_cond_destroy(condition)
    |                              `- error: cannot find 'pthread_cond_destroy' in scope
 58 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 59 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:96:29: error: cannot find type 'timespec' in scope
 94 |         #else
 95 |
 96 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
 97 |
 98 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:100:24: error: cannot find 'pthread_cond_timedwait' in scope
 98 |             while true {
 99 |                 // wait until the time passed as argument as elapsed
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:102:22: error: cannot find 'ETIMEDOUT' in scope
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
103 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
104 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:148:29: error: cannot find type 'timespec' in scope
146 |         #else
147 |
148 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
149 |
150 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |                 }
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:185:34: error: cannot find 'pthread_cond_wait' in scope
183 |                 )
184 |             #else
185 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
186 |                 precondition(err == 0, "\(#function) failed due to \(err)")
187 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:211:34: error: cannot find 'pthread_cond_wait' in scope
209 |                 )
210 |             #else
211 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
212 |                 precondition(err == 0, "\(#function) failed due to \(err)")
213 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:231:30: error: cannot find 'pthread_cond_wait' in scope
229 |             )
230 |         #else
231 |             let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                              `- error: cannot find 'pthread_cond_wait' in scope
232 |             precondition(err == 0, "\(#function) failed due to error \(err)")
233 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:244:13: error: cannot find 'pthread_cond_signal' in scope
242 |             WakeConditionVariable(condition)
243 |         #else
244 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
245 |         #endif
246 |     }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:256:30: error: cannot find 'pthread_cond_broadcast' in scope
254 |             WakeAllConditionVariable(condition)
255 |         #else
256 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
257 |             precondition(err == 0, "\(#function) failed due to \(err)")
258 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:20:21: error: generic parameter 'Pointee' could not be inferred
 18 |
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
 22 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:21:17: error: generic parameter 'Pointee' could not be inferred
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
    |                 |- error: generic parameter 'Pointee' could not be inferred
    |                 `- note: explicitly specify the generic arguments to fix this issue
 22 |
 23 |         #if os(Windows)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:29:38: error: cannot find 'pthread_cond_t' in scope
 27 |             var err: Int32 = 0
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:30:34: error: cannot find 'pthread_mutex_t' in scope
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
 30 |             mutex.initialize(to: pthread_mutex_t())
    |                                  `- error: cannot find 'pthread_mutex_t' in scope
 31 |
 32 |             err = pthread_cond_init(condition, nil)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:19: error: cannot find 'pthread_cond_init' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                   `- error: cannot find 'pthread_cond_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:48: error: 'nil' requires a contextual type
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                                                `- error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:19: error: cannot find 'pthread_mutex_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:45: error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                                             `- error: 'nil' requires a contextual type
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:43:19: error: cannot find 'pthread_cond_destroy' in scope
 41 |         #if !os(Windows)
 42 |             var err: Int32 = 0
 43 |             err = pthread_cond_destroy(condition)
    |                   `- error: cannot find 'pthread_cond_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:46:19: error: cannot find 'pthread_mutex_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
 46 |             err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 47 |             precondition(err == 0, "Couldn't destroy pthread_mutex due to \(err)")
 48 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:58:30: error: cannot find 'pthread_mutex_lock' in scope
 56 |             AcquireSRWLockExclusive(mutex)
 57 |         #else
 58 |             let err: Int32 = pthread_mutex_lock(mutex)
    |                              `- error: cannot find 'pthread_mutex_lock' in scope
 59 |             precondition(err == 0, "\(#function) failed due to \(err)")
 60 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:67:30: error: cannot find 'pthread_mutex_unlock' in scope
 65 |             ReleaseSRWLockExclusive(mutex)
 66 |         #else
 67 |             let err: Int32 = pthread_mutex_unlock(mutex)
    |                              `- error: cannot find 'pthread_mutex_unlock' in scope
 68 |             precondition(err == 0, "\(#function) failed due to \(err)")
 69 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:76:13: error: cannot find 'pthread_cond_signal' in scope
 74 |             WakeConditionVariable(condition)
 75 |         #else
 76 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
 77 |         #endif
 78 |     }
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:84:30: error: cannot find 'pthread_cond_broadcast' in scope
 82 |             WakeAllConditionVariable(condition)
 83 |         #else
 84 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
 85 |             precondition(err == 0, "\(#function) failed due to \(err)")
 86 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:106:34: error: cannot find 'pthread_cond_wait' in scope
104 |                 )
105 |             #else
106 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
107 |                 precondition(err == 0, "\(#function) failed due to \(err)")
108 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:121:34: error: cannot find 'pthread_cond_wait' in scope
119 |                 )
120 |             #else
121 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
122 |                 precondition(err == 0, "\(#function) failed due to \(err)")
123 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:151:29: error: cannot find type 'timespec' in scope
149 |         #else
150 |
151 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
152 |
153 |             while true {
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |             while true {
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
[25/33] Compiling Primitives Latch.swift
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:44:21: error: generic parameter 'Pointee' could not be inferred
 42 |     /// Initialises an instance of `Condition` type
 43 |     init() {
 44 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 45 |         #if os(Windows)
 46 |             InitializeConditionVariable(condition)
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:48:38: error: cannot find 'pthread_cond_t' in scope
 46 |             InitializeConditionVariable(condition)
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:30: error: cannot find 'pthread_cond_init' in scope
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                              `- error: cannot find 'pthread_cond_init' in scope
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:59: error: 'nil' requires a contextual type
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                                                           `- error: 'nil' requires a contextual type
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:57:30: error: cannot find 'pthread_cond_destroy' in scope
 55 |     deinit {
 56 |         #if !os(Windows)
 57 |             let err: Int32 = pthread_cond_destroy(condition)
    |                              `- error: cannot find 'pthread_cond_destroy' in scope
 58 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 59 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:96:29: error: cannot find type 'timespec' in scope
 94 |         #else
 95 |
 96 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
 97 |
 98 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:100:24: error: cannot find 'pthread_cond_timedwait' in scope
 98 |             while true {
 99 |                 // wait until the time passed as argument as elapsed
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:102:22: error: cannot find 'ETIMEDOUT' in scope
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
103 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
104 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:148:29: error: cannot find type 'timespec' in scope
146 |         #else
147 |
148 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
149 |
150 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |                 }
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:185:34: error: cannot find 'pthread_cond_wait' in scope
183 |                 )
184 |             #else
185 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
186 |                 precondition(err == 0, "\(#function) failed due to \(err)")
187 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:211:34: error: cannot find 'pthread_cond_wait' in scope
209 |                 )
210 |             #else
211 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
212 |                 precondition(err == 0, "\(#function) failed due to \(err)")
213 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:231:30: error: cannot find 'pthread_cond_wait' in scope
229 |             )
230 |         #else
231 |             let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                              `- error: cannot find 'pthread_cond_wait' in scope
232 |             precondition(err == 0, "\(#function) failed due to error \(err)")
233 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:244:13: error: cannot find 'pthread_cond_signal' in scope
242 |             WakeConditionVariable(condition)
243 |         #else
244 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
245 |         #endif
246 |     }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:256:30: error: cannot find 'pthread_cond_broadcast' in scope
254 |             WakeAllConditionVariable(condition)
255 |         #else
256 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
257 |             precondition(err == 0, "\(#function) failed due to \(err)")
258 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:20:21: error: generic parameter 'Pointee' could not be inferred
 18 |
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
 22 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:21:17: error: generic parameter 'Pointee' could not be inferred
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
    |                 |- error: generic parameter 'Pointee' could not be inferred
    |                 `- note: explicitly specify the generic arguments to fix this issue
 22 |
 23 |         #if os(Windows)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:29:38: error: cannot find 'pthread_cond_t' in scope
 27 |             var err: Int32 = 0
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:30:34: error: cannot find 'pthread_mutex_t' in scope
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
 30 |             mutex.initialize(to: pthread_mutex_t())
    |                                  `- error: cannot find 'pthread_mutex_t' in scope
 31 |
 32 |             err = pthread_cond_init(condition, nil)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:19: error: cannot find 'pthread_cond_init' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                   `- error: cannot find 'pthread_cond_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:48: error: 'nil' requires a contextual type
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                                                `- error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:19: error: cannot find 'pthread_mutex_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:45: error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                                             `- error: 'nil' requires a contextual type
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:43:19: error: cannot find 'pthread_cond_destroy' in scope
 41 |         #if !os(Windows)
 42 |             var err: Int32 = 0
 43 |             err = pthread_cond_destroy(condition)
    |                   `- error: cannot find 'pthread_cond_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:46:19: error: cannot find 'pthread_mutex_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
 46 |             err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 47 |             precondition(err == 0, "Couldn't destroy pthread_mutex due to \(err)")
 48 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:58:30: error: cannot find 'pthread_mutex_lock' in scope
 56 |             AcquireSRWLockExclusive(mutex)
 57 |         #else
 58 |             let err: Int32 = pthread_mutex_lock(mutex)
    |                              `- error: cannot find 'pthread_mutex_lock' in scope
 59 |             precondition(err == 0, "\(#function) failed due to \(err)")
 60 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:67:30: error: cannot find 'pthread_mutex_unlock' in scope
 65 |             ReleaseSRWLockExclusive(mutex)
 66 |         #else
 67 |             let err: Int32 = pthread_mutex_unlock(mutex)
    |                              `- error: cannot find 'pthread_mutex_unlock' in scope
 68 |             precondition(err == 0, "\(#function) failed due to \(err)")
 69 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:76:13: error: cannot find 'pthread_cond_signal' in scope
 74 |             WakeConditionVariable(condition)
 75 |         #else
 76 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
 77 |         #endif
 78 |     }
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:84:30: error: cannot find 'pthread_cond_broadcast' in scope
 82 |             WakeAllConditionVariable(condition)
 83 |         #else
 84 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
 85 |             precondition(err == 0, "\(#function) failed due to \(err)")
 86 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:106:34: error: cannot find 'pthread_cond_wait' in scope
104 |                 )
105 |             #else
106 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
107 |                 precondition(err == 0, "\(#function) failed due to \(err)")
108 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:121:34: error: cannot find 'pthread_cond_wait' in scope
119 |                 )
120 |             #else
121 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
122 |                 precondition(err == 0, "\(#function) failed due to \(err)")
123 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:151:29: error: cannot find type 'timespec' in scope
149 |         #else
150 |
151 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
152 |
153 |             while true {
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |             while true {
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
[26/33] Compiling Primitives ThreadParker.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 |     }
19 |
20 |     public static let nanoseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'nanoseconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         TimeDuration(duration: .nanoseconds, value: value)
22 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static let microseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'microseconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |         TimeDuration(duration: .microseconds, value: value)
26 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 |     }
27 |
28 |     public static let milliseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'milliseconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |         TimeDuration(duration: .milliseconds, value: value)
30 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     public static let seconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'seconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |         TimeDuration(duration: .seconds, value: value)
34 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 |     }
35 |
36 |     public static let minutes = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'minutes' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |         TimeDuration(duration: .minutes, value: value)
38 |     }
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:10:16: error: Unable to identify your underlying C library.
 8 |         import Musl
 9 |     #else
10 |         #error("Unable to identify your underlying C library.")
   |                `- error: Unable to identify your underlying C library.
11 |     #endif
12 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:16:53: error: cannot find type 'timespec' in scope
14 |     let nanoToSecs: Int = 1_000_000_000
15 |
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
   |                                                     `- error: cannot find type 'timespec' in scope
17 |
18 |         let timeoutAbs: timespec
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:18:25: error: cannot find type 'timespec' in scope
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
17 |
18 |         let timeoutAbs: timespec
   |                         `- error: cannot find type 'timespec' in scope
19 |         let allNanoSecs: Int
20 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:53:37: error: cannot find 'currentTime' in scope
51 |
52 |         assert(timeoutAbs.tv_nsec >= 0 && timeoutAbs.tv_nsec < nanoToSecs)
53 |         assert(timeoutAbs.tv_sec >= currentTime.tv_sec)
   |                                     `- error: cannot find 'currentTime' in scope
54 |
55 |         return timeoutAbs
[27/33] Compiling Primitives ThreadPool.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 |     }
19 |
20 |     public static let nanoseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'nanoseconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         TimeDuration(duration: .nanoseconds, value: value)
22 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static let microseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'microseconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |         TimeDuration(duration: .microseconds, value: value)
26 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 |     }
27 |
28 |     public static let milliseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'milliseconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |         TimeDuration(duration: .milliseconds, value: value)
30 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     public static let seconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'seconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |         TimeDuration(duration: .seconds, value: value)
34 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 |     }
35 |
36 |     public static let minutes = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'minutes' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |         TimeDuration(duration: .minutes, value: value)
38 |     }
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:10:16: error: Unable to identify your underlying C library.
 8 |         import Musl
 9 |     #else
10 |         #error("Unable to identify your underlying C library.")
   |                `- error: Unable to identify your underlying C library.
11 |     #endif
12 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:16:53: error: cannot find type 'timespec' in scope
14 |     let nanoToSecs: Int = 1_000_000_000
15 |
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
   |                                                     `- error: cannot find type 'timespec' in scope
17 |
18 |         let timeoutAbs: timespec
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:18:25: error: cannot find type 'timespec' in scope
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
17 |
18 |         let timeoutAbs: timespec
   |                         `- error: cannot find type 'timespec' in scope
19 |         let allNanoSecs: Int
20 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:53:37: error: cannot find 'currentTime' in scope
51 |
52 |         assert(timeoutAbs.tv_nsec >= 0 && timeoutAbs.tv_nsec < nanoToSecs)
53 |         assert(timeoutAbs.tv_sec >= currentTime.tv_sec)
   |                                     `- error: cannot find 'currentTime' in scope
54 |
55 |         return timeoutAbs
[28/33] Compiling Primitives TimeDuration.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 |     }
19 |
20 |     public static let nanoseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'nanoseconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         TimeDuration(duration: .nanoseconds, value: value)
22 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static let microseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'microseconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |         TimeDuration(duration: .microseconds, value: value)
26 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 |     }
27 |
28 |     public static let milliseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'milliseconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |         TimeDuration(duration: .milliseconds, value: value)
30 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     public static let seconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'seconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |         TimeDuration(duration: .seconds, value: value)
34 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 |     }
35 |
36 |     public static let minutes = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'minutes' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |         TimeDuration(duration: .minutes, value: value)
38 |     }
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:10:16: error: Unable to identify your underlying C library.
 8 |         import Musl
 9 |     #else
10 |         #error("Unable to identify your underlying C library.")
   |                `- error: Unable to identify your underlying C library.
11 |     #endif
12 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:16:53: error: cannot find type 'timespec' in scope
14 |     let nanoToSecs: Int = 1_000_000_000
15 |
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
   |                                                     `- error: cannot find type 'timespec' in scope
17 |
18 |         let timeoutAbs: timespec
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:18:25: error: cannot find type 'timespec' in scope
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
17 |
18 |         let timeoutAbs: timespec
   |                         `- error: cannot find type 'timespec' in scope
19 |         let allNanoSecs: Int
20 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:53:37: error: cannot find 'currentTime' in scope
51 |
52 |         assert(timeoutAbs.tv_nsec >= 0 && timeoutAbs.tv_nsec < nanoToSecs)
53 |         assert(timeoutAbs.tv_sec >= currentTime.tv_sec)
   |                                     `- error: cannot find 'currentTime' in scope
54 |
55 |         return timeoutAbs
[29/33] Compiling Primitives Timespec.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:20:23: warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
18 |     }
19 |
20 |     public static let nanoseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'nanoseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'nanoseconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |         TimeDuration(duration: .nanoseconds, value: value)
22 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:24:23: warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
22 |     }
23 |
24 |     public static let microseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'microseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'microseconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |         TimeDuration(duration: .microseconds, value: value)
26 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:28:23: warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
26 |     }
27 |
28 |     public static let milliseconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'milliseconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'milliseconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |         TimeDuration(duration: .milliseconds, value: value)
30 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:32:23: warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
30 |     }
31 |
32 |     public static let seconds = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'seconds' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'seconds' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |         TimeDuration(duration: .seconds, value: value)
34 |     }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Primitives/TimeDuration.swift:36:23: warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
34 |     }
35 |
36 |     public static let minutes = { (value: Double) -> TimeDuration in
   |                       |- warning: static property 'minutes' is not concurrency-safe because non-'Sendable' type '(Double) -> TimeDuration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'minutes' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |         TimeDuration(duration: .minutes, value: value)
38 |     }
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:10:16: error: Unable to identify your underlying C library.
 8 |         import Musl
 9 |     #else
10 |         #error("Unable to identify your underlying C library.")
   |                `- error: Unable to identify your underlying C library.
11 |     #endif
12 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:16:53: error: cannot find type 'timespec' in scope
14 |     let nanoToSecs: Int = 1_000_000_000
15 |
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
   |                                                     `- error: cannot find type 'timespec' in scope
17 |
18 |         let timeoutAbs: timespec
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:18:25: error: cannot find type 'timespec' in scope
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
17 |
18 |         let timeoutAbs: timespec
   |                         `- error: cannot find type 'timespec' in scope
19 |         let allNanoSecs: Int
20 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:53:37: error: cannot find 'currentTime' in scope
51 |
52 |         assert(timeoutAbs.tv_nsec >= 0 && timeoutAbs.tv_nsec < nanoToSecs)
53 |         assert(timeoutAbs.tv_sec >= currentTime.tv_sec)
   |                                     `- error: cannot find 'currentTime' in scope
54 |
55 |         return timeoutAbs
[30/33] Compiling Primitives OnceState.swift
[31/33] Compiling Primitives OneShotChannel.swift
[32/33] Compiling Primitives Operators.swift
[33/33] Compiling Primitives Queue.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/29] Emitting module Primitives
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:10:16: error: Unable to identify your underlying C library.
 8 |         import Musl
 9 |     #else
10 |         #error("Unable to identify your underlying C library.")
   |                `- error: Unable to identify your underlying C library.
11 |     #endif
12 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:16:53: error: cannot find type 'timespec' in scope
14 |     let nanoToSecs: Int = 1_000_000_000
15 |
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
   |                                                     `- error: cannot find type 'timespec' in scope
17 |
18 |         let timeoutAbs: timespec
[3/32] Compiling Primitives Lock.swift
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:32:17: error: generic parameter 'Pointee' could not be inferred
 30 |     /// Initialises an instance of the `Mutex` type
 31 |     init() {
 32 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
    |                 |- error: generic parameter 'Pointee' could not be inferred
    |                 `- note: explicitly specify the generic arguments to fix this issue
 33 |         #if os(Windows)
 34 |             InitializeSRWLock(mutex)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:37:34: error: cannot find 'pthread_mutex_t' in scope
 35 |         #else
 36 |
 37 |             mutex.initialize(to: pthread_mutex_t())
    |                                  `- error: cannot find 'pthread_mutex_t' in scope
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:38:28: error: cannot find type 'pthread_mutexattr_t' in scope
 36 |
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
    |                            `- error: cannot find type 'pthread_mutexattr_t' in scope
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
 40 |             pthread_mutexattr_init(&mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:39:13: error: cannot find 'pthread_mutexattr_settype' in scope
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:39:57: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                         `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:39:52: error: cannot infer contextual base in reference to member 'init'
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                    `- error: cannot infer contextual base in reference to member 'init'
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:40:13: error: cannot find 'pthread_mutexattr_init' in scope
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
 40 |             pthread_mutexattr_init(&mutexAttr)
    |             `- error: cannot find 'pthread_mutexattr_init' in scope
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
 42 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:41:30: error: cannot find 'pthread_mutex_init' in scope
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
    |                              `- error: cannot find 'pthread_mutex_init' in scope
 42 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 43 |             pthread_mutexattr_destroy(&mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:43:13: error: cannot find 'pthread_mutexattr_destroy' in scope
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
 42 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 43 |             pthread_mutexattr_destroy(&mutexAttr)
    |             `- error: cannot find 'pthread_mutexattr_destroy' in scope
 44 |         #endif
 45 |     }
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:49:30: error: cannot find 'pthread_mutex_destroy' in scope
 47 |     deinit {
 48 |         #if !os(Windows)
 49 |             let err: Int32 = pthread_mutex_destroy(mutex)
    |                              `- error: cannot find 'pthread_mutex_destroy' in scope
 50 |             precondition(err == 0, "Couldn't destroy pthread_mutex due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:60:30: error: cannot find 'pthread_mutex_lock' in scope
 58 |             AcquireSRWLockExclusive(mutex)
 59 |         #else
 60 |             let err: Int32 = pthread_mutex_lock(mutex)
    |                              `- error: cannot find 'pthread_mutex_lock' in scope
 61 |             precondition(err == 0, "\(#function) failed due to \(err)")
 62 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:72:30: error: cannot find 'pthread_mutex_unlock' in scope
 70 |             ReleaseSRWLockExclusive(mutex)
 71 |         #else
 72 |             let err: Int32 = pthread_mutex_unlock(mutex)
    |                              `- error: cannot find 'pthread_mutex_unlock' in scope
 73 |             precondition(err == 0, "\(#function) failed due to \(err)")
 74 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:83:13: error: cannot find 'pthread_mutex_trylock' in scope
 81 |             TryAcquireSRWLockExclusive(mutex) != 0
 82 |         #else
 83 |             pthread_mutex_trylock(mutex) == 0
    |             `- error: cannot find 'pthread_mutex_trylock' in scope
 84 |         #endif
 85 |     }
[4/32] Compiling Primitives Locked.swift
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:32:17: error: generic parameter 'Pointee' could not be inferred
 30 |     /// Initialises an instance of the `Mutex` type
 31 |     init() {
 32 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
    |                 |- error: generic parameter 'Pointee' could not be inferred
    |                 `- note: explicitly specify the generic arguments to fix this issue
 33 |         #if os(Windows)
 34 |             InitializeSRWLock(mutex)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:37:34: error: cannot find 'pthread_mutex_t' in scope
 35 |         #else
 36 |
 37 |             mutex.initialize(to: pthread_mutex_t())
    |                                  `- error: cannot find 'pthread_mutex_t' in scope
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:38:28: error: cannot find type 'pthread_mutexattr_t' in scope
 36 |
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
    |                            `- error: cannot find type 'pthread_mutexattr_t' in scope
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
 40 |             pthread_mutexattr_init(&mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:39:13: error: cannot find 'pthread_mutexattr_settype' in scope
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:39:57: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                         `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:39:52: error: cannot infer contextual base in reference to member 'init'
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                    `- error: cannot infer contextual base in reference to member 'init'
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:40:13: error: cannot find 'pthread_mutexattr_init' in scope
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
 40 |             pthread_mutexattr_init(&mutexAttr)
    |             `- error: cannot find 'pthread_mutexattr_init' in scope
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
 42 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:41:30: error: cannot find 'pthread_mutex_init' in scope
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
    |                              `- error: cannot find 'pthread_mutex_init' in scope
 42 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 43 |             pthread_mutexattr_destroy(&mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:43:13: error: cannot find 'pthread_mutexattr_destroy' in scope
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
 42 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 43 |             pthread_mutexattr_destroy(&mutexAttr)
    |             `- error: cannot find 'pthread_mutexattr_destroy' in scope
 44 |         #endif
 45 |     }
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:49:30: error: cannot find 'pthread_mutex_destroy' in scope
 47 |     deinit {
 48 |         #if !os(Windows)
 49 |             let err: Int32 = pthread_mutex_destroy(mutex)
    |                              `- error: cannot find 'pthread_mutex_destroy' in scope
 50 |             precondition(err == 0, "Couldn't destroy pthread_mutex due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:60:30: error: cannot find 'pthread_mutex_lock' in scope
 58 |             AcquireSRWLockExclusive(mutex)
 59 |         #else
 60 |             let err: Int32 = pthread_mutex_lock(mutex)
    |                              `- error: cannot find 'pthread_mutex_lock' in scope
 61 |             precondition(err == 0, "\(#function) failed due to \(err)")
 62 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:72:30: error: cannot find 'pthread_mutex_unlock' in scope
 70 |             ReleaseSRWLockExclusive(mutex)
 71 |         #else
 72 |             let err: Int32 = pthread_mutex_unlock(mutex)
    |                              `- error: cannot find 'pthread_mutex_unlock' in scope
 73 |             precondition(err == 0, "\(#function) failed due to \(err)")
 74 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:83:13: error: cannot find 'pthread_mutex_trylock' in scope
 81 |             TryAcquireSRWLockExclusive(mutex) != 0
 82 |         #else
 83 |             pthread_mutex_trylock(mutex) == 0
    |             `- error: cannot find 'pthread_mutex_trylock' in scope
 84 |         #endif
 85 |     }
[5/32] Compiling Primitives Mutex.swift
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:32:17: error: generic parameter 'Pointee' could not be inferred
 30 |     /// Initialises an instance of the `Mutex` type
 31 |     init() {
 32 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
    |                 |- error: generic parameter 'Pointee' could not be inferred
    |                 `- note: explicitly specify the generic arguments to fix this issue
 33 |         #if os(Windows)
 34 |             InitializeSRWLock(mutex)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:37:34: error: cannot find 'pthread_mutex_t' in scope
 35 |         #else
 36 |
 37 |             mutex.initialize(to: pthread_mutex_t())
    |                                  `- error: cannot find 'pthread_mutex_t' in scope
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:38:28: error: cannot find type 'pthread_mutexattr_t' in scope
 36 |
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
    |                            `- error: cannot find type 'pthread_mutexattr_t' in scope
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
 40 |             pthread_mutexattr_init(&mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:39:13: error: cannot find 'pthread_mutexattr_settype' in scope
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:39:57: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                         `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:39:52: error: cannot infer contextual base in reference to member 'init'
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                    `- error: cannot infer contextual base in reference to member 'init'
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:40:13: error: cannot find 'pthread_mutexattr_init' in scope
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
 40 |             pthread_mutexattr_init(&mutexAttr)
    |             `- error: cannot find 'pthread_mutexattr_init' in scope
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
 42 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:41:30: error: cannot find 'pthread_mutex_init' in scope
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
    |                              `- error: cannot find 'pthread_mutex_init' in scope
 42 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 43 |             pthread_mutexattr_destroy(&mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:43:13: error: cannot find 'pthread_mutexattr_destroy' in scope
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
 42 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 43 |             pthread_mutexattr_destroy(&mutexAttr)
    |             `- error: cannot find 'pthread_mutexattr_destroy' in scope
 44 |         #endif
 45 |     }
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:49:30: error: cannot find 'pthread_mutex_destroy' in scope
 47 |     deinit {
 48 |         #if !os(Windows)
 49 |             let err: Int32 = pthread_mutex_destroy(mutex)
    |                              `- error: cannot find 'pthread_mutex_destroy' in scope
 50 |             precondition(err == 0, "Couldn't destroy pthread_mutex due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:60:30: error: cannot find 'pthread_mutex_lock' in scope
 58 |             AcquireSRWLockExclusive(mutex)
 59 |         #else
 60 |             let err: Int32 = pthread_mutex_lock(mutex)
    |                              `- error: cannot find 'pthread_mutex_lock' in scope
 61 |             precondition(err == 0, "\(#function) failed due to \(err)")
 62 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:72:30: error: cannot find 'pthread_mutex_unlock' in scope
 70 |             ReleaseSRWLockExclusive(mutex)
 71 |         #else
 72 |             let err: Int32 = pthread_mutex_unlock(mutex)
    |                              `- error: cannot find 'pthread_mutex_unlock' in scope
 73 |             precondition(err == 0, "\(#function) failed due to \(err)")
 74 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:83:13: error: cannot find 'pthread_mutex_trylock' in scope
 81 |             TryAcquireSRWLockExclusive(mutex) != 0
 82 |         #else
 83 |             pthread_mutex_trylock(mutex) == 0
    |             `- error: cannot find 'pthread_mutex_trylock' in scope
 84 |         #endif
 85 |     }
[6/32] Compiling Primitives Once.swift
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:32:17: error: generic parameter 'Pointee' could not be inferred
 30 |     /// Initialises an instance of the `Mutex` type
 31 |     init() {
 32 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
    |                 |- error: generic parameter 'Pointee' could not be inferred
    |                 `- note: explicitly specify the generic arguments to fix this issue
 33 |         #if os(Windows)
 34 |             InitializeSRWLock(mutex)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:37:34: error: cannot find 'pthread_mutex_t' in scope
 35 |         #else
 36 |
 37 |             mutex.initialize(to: pthread_mutex_t())
    |                                  `- error: cannot find 'pthread_mutex_t' in scope
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:38:28: error: cannot find type 'pthread_mutexattr_t' in scope
 36 |
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
    |                            `- error: cannot find type 'pthread_mutexattr_t' in scope
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
 40 |             pthread_mutexattr_init(&mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:39:13: error: cannot find 'pthread_mutexattr_settype' in scope
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:39:57: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                         `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:39:52: error: cannot infer contextual base in reference to member 'init'
 37 |             mutex.initialize(to: pthread_mutex_t())
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                    `- error: cannot infer contextual base in reference to member 'init'
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:40:13: error: cannot find 'pthread_mutexattr_init' in scope
 38 |             var mutexAttr: pthread_mutexattr_t = pthread_mutexattr_t()
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
 40 |             pthread_mutexattr_init(&mutexAttr)
    |             `- error: cannot find 'pthread_mutexattr_init' in scope
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
 42 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:41:30: error: cannot find 'pthread_mutex_init' in scope
 39 |             pthread_mutexattr_settype(&mutexAttr, .init(PTHREAD_MUTEX_ERRORCHECK))
 40 |             pthread_mutexattr_init(&mutexAttr)
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
    |                              `- error: cannot find 'pthread_mutex_init' in scope
 42 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 43 |             pthread_mutexattr_destroy(&mutexAttr)
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:43:13: error: cannot find 'pthread_mutexattr_destroy' in scope
 41 |             let err: Int32 = pthread_mutex_init(mutex, &mutexAttr)
 42 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 43 |             pthread_mutexattr_destroy(&mutexAttr)
    |             `- error: cannot find 'pthread_mutexattr_destroy' in scope
 44 |         #endif
 45 |     }
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:49:30: error: cannot find 'pthread_mutex_destroy' in scope
 47 |     deinit {
 48 |         #if !os(Windows)
 49 |             let err: Int32 = pthread_mutex_destroy(mutex)
    |                              `- error: cannot find 'pthread_mutex_destroy' in scope
 50 |             precondition(err == 0, "Couldn't destroy pthread_mutex due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:60:30: error: cannot find 'pthread_mutex_lock' in scope
 58 |             AcquireSRWLockExclusive(mutex)
 59 |         #else
 60 |             let err: Int32 = pthread_mutex_lock(mutex)
    |                              `- error: cannot find 'pthread_mutex_lock' in scope
 61 |             precondition(err == 0, "\(#function) failed due to \(err)")
 62 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:72:30: error: cannot find 'pthread_mutex_unlock' in scope
 70 |             ReleaseSRWLockExclusive(mutex)
 71 |         #else
 72 |             let err: Int32 = pthread_mutex_unlock(mutex)
    |                              `- error: cannot find 'pthread_mutex_unlock' in scope
 73 |             precondition(err == 0, "\(#function) failed due to \(err)")
 74 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:83:13: error: cannot find 'pthread_mutex_trylock' in scope
 81 |             TryAcquireSRWLockExclusive(mutex) != 0
 82 |         #else
 83 |             pthread_mutex_trylock(mutex) == 0
    |             `- error: cannot find 'pthread_mutex_trylock' in scope
 84 |         #endif
 85 |     }
[7/32] Compiling Primitives ThreadParker.swift
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:10:16: error: Unable to identify your underlying C library.
 8 |         import Musl
 9 |     #else
10 |         #error("Unable to identify your underlying C library.")
   |                `- error: Unable to identify your underlying C library.
11 |     #endif
12 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:16:53: error: cannot find type 'timespec' in scope
14 |     let nanoToSecs: Int = 1_000_000_000
15 |
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
   |                                                     `- error: cannot find type 'timespec' in scope
17 |
18 |         let timeoutAbs: timespec
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:18:25: error: cannot find type 'timespec' in scope
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
17 |
18 |         let timeoutAbs: timespec
   |                         `- error: cannot find type 'timespec' in scope
19 |         let allNanoSecs: Int
20 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:53:37: error: cannot find 'currentTime' in scope
51 |
52 |         assert(timeoutAbs.tv_nsec >= 0 && timeoutAbs.tv_nsec < nanoToSecs)
53 |         assert(timeoutAbs.tv_sec >= currentTime.tv_sec)
   |                                     `- error: cannot find 'currentTime' in scope
54 |
55 |         return timeoutAbs
[8/32] Compiling Primitives ThreadPool.swift
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:10:16: error: Unable to identify your underlying C library.
 8 |         import Musl
 9 |     #else
10 |         #error("Unable to identify your underlying C library.")
   |                `- error: Unable to identify your underlying C library.
11 |     #endif
12 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:16:53: error: cannot find type 'timespec' in scope
14 |     let nanoToSecs: Int = 1_000_000_000
15 |
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
   |                                                     `- error: cannot find type 'timespec' in scope
17 |
18 |         let timeoutAbs: timespec
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:18:25: error: cannot find type 'timespec' in scope
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
17 |
18 |         let timeoutAbs: timespec
   |                         `- error: cannot find type 'timespec' in scope
19 |         let allNanoSecs: Int
20 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:53:37: error: cannot find 'currentTime' in scope
51 |
52 |         assert(timeoutAbs.tv_nsec >= 0 && timeoutAbs.tv_nsec < nanoToSecs)
53 |         assert(timeoutAbs.tv_sec >= currentTime.tv_sec)
   |                                     `- error: cannot find 'currentTime' in scope
54 |
55 |         return timeoutAbs
[9/32] Compiling Primitives TimeDuration.swift
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:10:16: error: Unable to identify your underlying C library.
 8 |         import Musl
 9 |     #else
10 |         #error("Unable to identify your underlying C library.")
   |                `- error: Unable to identify your underlying C library.
11 |     #endif
12 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:16:53: error: cannot find type 'timespec' in scope
14 |     let nanoToSecs: Int = 1_000_000_000
15 |
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
   |                                                     `- error: cannot find type 'timespec' in scope
17 |
18 |         let timeoutAbs: timespec
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:18:25: error: cannot find type 'timespec' in scope
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
17 |
18 |         let timeoutAbs: timespec
   |                         `- error: cannot find type 'timespec' in scope
19 |         let allNanoSecs: Int
20 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:53:37: error: cannot find 'currentTime' in scope
51 |
52 |         assert(timeoutAbs.tv_nsec >= 0 && timeoutAbs.tv_nsec < nanoToSecs)
53 |         assert(timeoutAbs.tv_sec >= currentTime.tv_sec)
   |                                     `- error: cannot find 'currentTime' in scope
54 |
55 |         return timeoutAbs
[10/32] Compiling Primitives Timespec.swift
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:10:16: error: Unable to identify your underlying C library.
 8 |         import Musl
 9 |     #else
10 |         #error("Unable to identify your underlying C library.")
   |                `- error: Unable to identify your underlying C library.
11 |     #endif
12 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:16:53: error: cannot find type 'timespec' in scope
14 |     let nanoToSecs: Int = 1_000_000_000
15 |
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
   |                                                     `- error: cannot find type 'timespec' in scope
17 |
18 |         let timeoutAbs: timespec
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:18:25: error: cannot find type 'timespec' in scope
16 |     func getTimeSpec(with timeout: TimeDuration) -> timespec {
17 |
18 |         let timeoutAbs: timespec
   |                         `- error: cannot find type 'timespec' in scope
19 |         let allNanoSecs: Int
20 |
/host/spi-builder-workspace/Sources/Primitives/Timespec.swift:53:37: error: cannot find 'currentTime' in scope
51 |
52 |         assert(timeoutAbs.tv_nsec >= 0 && timeoutAbs.tv_nsec < nanoToSecs)
53 |         assert(timeoutAbs.tv_sec >= currentTime.tv_sec)
   |                                     `- error: cannot find 'currentTime' in scope
54 |
55 |         return timeoutAbs
[11/32] Compiling Primitives OnceState.swift
[12/32] Compiling Primitives OneShotChannel.swift
[13/32] Compiling Primitives Operators.swift
[14/32] Compiling Primitives Queue.swift
[15/32] Compiling Primitives ArrayStorage.swift
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
[16/32] Compiling Primitives Barrier.swift
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
[17/32] Compiling Primitives BoundedChannel.swift
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
[18/32] Compiling Primitives Buffers.swift
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
[19/32] Compiling Primitives Semaphore.swift
[20/32] Compiling Primitives SingleElementStorage.swift
[21/32] Compiling Primitives Storage.swift
[22/32] Compiling Primitives TaskChannel.swift
[23/32] Compiling Primitives UnboundedChannel.swift
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
[24/32] Compiling Primitives UnbufferedChannel.swift
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
[25/32] Compiling Primitives WaitGroup.swift
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
[26/32] Compiling Primitives Channel.swift
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:44:21: error: generic parameter 'Pointee' could not be inferred
 42 |     /// Initialises an instance of `Condition` type
 43 |     init() {
 44 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 45 |         #if os(Windows)
 46 |             InitializeConditionVariable(condition)
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:48:38: error: cannot find 'pthread_cond_t' in scope
 46 |             InitializeConditionVariable(condition)
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:30: error: cannot find 'pthread_cond_init' in scope
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                              `- error: cannot find 'pthread_cond_init' in scope
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:59: error: 'nil' requires a contextual type
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                                                           `- error: 'nil' requires a contextual type
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:57:30: error: cannot find 'pthread_cond_destroy' in scope
 55 |     deinit {
 56 |         #if !os(Windows)
 57 |             let err: Int32 = pthread_cond_destroy(condition)
    |                              `- error: cannot find 'pthread_cond_destroy' in scope
 58 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 59 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:96:29: error: cannot find type 'timespec' in scope
 94 |         #else
 95 |
 96 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
 97 |
 98 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:100:24: error: cannot find 'pthread_cond_timedwait' in scope
 98 |             while true {
 99 |                 // wait until the time passed as argument as elapsed
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:102:22: error: cannot find 'ETIMEDOUT' in scope
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
103 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
104 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:148:29: error: cannot find type 'timespec' in scope
146 |         #else
147 |
148 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
149 |
150 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |                 }
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:185:34: error: cannot find 'pthread_cond_wait' in scope
183 |                 )
184 |             #else
185 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
186 |                 precondition(err == 0, "\(#function) failed due to \(err)")
187 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:211:34: error: cannot find 'pthread_cond_wait' in scope
209 |                 )
210 |             #else
211 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
212 |                 precondition(err == 0, "\(#function) failed due to \(err)")
213 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:231:30: error: cannot find 'pthread_cond_wait' in scope
229 |             )
230 |         #else
231 |             let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                              `- error: cannot find 'pthread_cond_wait' in scope
232 |             precondition(err == 0, "\(#function) failed due to error \(err)")
233 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:244:13: error: cannot find 'pthread_cond_signal' in scope
242 |             WakeConditionVariable(condition)
243 |         #else
244 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
245 |         #endif
246 |     }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:256:30: error: cannot find 'pthread_cond_broadcast' in scope
254 |             WakeAllConditionVariable(condition)
255 |         #else
256 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
257 |             precondition(err == 0, "\(#function) failed due to \(err)")
258 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:20:21: error: generic parameter 'Pointee' could not be inferred
 18 |
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
 22 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:21:17: error: generic parameter 'Pointee' could not be inferred
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
    |                 |- error: generic parameter 'Pointee' could not be inferred
    |                 `- note: explicitly specify the generic arguments to fix this issue
 22 |
 23 |         #if os(Windows)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:29:38: error: cannot find 'pthread_cond_t' in scope
 27 |             var err: Int32 = 0
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:30:34: error: cannot find 'pthread_mutex_t' in scope
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
 30 |             mutex.initialize(to: pthread_mutex_t())
    |                                  `- error: cannot find 'pthread_mutex_t' in scope
 31 |
 32 |             err = pthread_cond_init(condition, nil)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:19: error: cannot find 'pthread_cond_init' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                   `- error: cannot find 'pthread_cond_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:48: error: 'nil' requires a contextual type
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                                                `- error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:19: error: cannot find 'pthread_mutex_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:45: error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                                             `- error: 'nil' requires a contextual type
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:43:19: error: cannot find 'pthread_cond_destroy' in scope
 41 |         #if !os(Windows)
 42 |             var err: Int32 = 0
 43 |             err = pthread_cond_destroy(condition)
    |                   `- error: cannot find 'pthread_cond_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:46:19: error: cannot find 'pthread_mutex_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
 46 |             err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 47 |             precondition(err == 0, "Couldn't destroy pthread_mutex due to \(err)")
 48 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:58:30: error: cannot find 'pthread_mutex_lock' in scope
 56 |             AcquireSRWLockExclusive(mutex)
 57 |         #else
 58 |             let err: Int32 = pthread_mutex_lock(mutex)
    |                              `- error: cannot find 'pthread_mutex_lock' in scope
 59 |             precondition(err == 0, "\(#function) failed due to \(err)")
 60 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:67:30: error: cannot find 'pthread_mutex_unlock' in scope
 65 |             ReleaseSRWLockExclusive(mutex)
 66 |         #else
 67 |             let err: Int32 = pthread_mutex_unlock(mutex)
    |                              `- error: cannot find 'pthread_mutex_unlock' in scope
 68 |             precondition(err == 0, "\(#function) failed due to \(err)")
 69 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:76:13: error: cannot find 'pthread_cond_signal' in scope
 74 |             WakeConditionVariable(condition)
 75 |         #else
 76 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
 77 |         #endif
 78 |     }
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:84:30: error: cannot find 'pthread_cond_broadcast' in scope
 82 |             WakeAllConditionVariable(condition)
 83 |         #else
 84 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
 85 |             precondition(err == 0, "\(#function) failed due to \(err)")
 86 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:106:34: error: cannot find 'pthread_cond_wait' in scope
104 |                 )
105 |             #else
106 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
107 |                 precondition(err == 0, "\(#function) failed due to \(err)")
108 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:121:34: error: cannot find 'pthread_cond_wait' in scope
119 |                 )
120 |             #else
121 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
122 |                 precondition(err == 0, "\(#function) failed due to \(err)")
123 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:151:29: error: cannot find type 'timespec' in scope
149 |         #else
150 |
151 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
152 |
153 |             while true {
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |             while true {
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
[27/32] Compiling Primitives Condition.swift
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:44:21: error: generic parameter 'Pointee' could not be inferred
 42 |     /// Initialises an instance of `Condition` type
 43 |     init() {
 44 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 45 |         #if os(Windows)
 46 |             InitializeConditionVariable(condition)
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:48:38: error: cannot find 'pthread_cond_t' in scope
 46 |             InitializeConditionVariable(condition)
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:30: error: cannot find 'pthread_cond_init' in scope
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                              `- error: cannot find 'pthread_cond_init' in scope
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:59: error: 'nil' requires a contextual type
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                                                           `- error: 'nil' requires a contextual type
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:57:30: error: cannot find 'pthread_cond_destroy' in scope
 55 |     deinit {
 56 |         #if !os(Windows)
 57 |             let err: Int32 = pthread_cond_destroy(condition)
    |                              `- error: cannot find 'pthread_cond_destroy' in scope
 58 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 59 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:96:29: error: cannot find type 'timespec' in scope
 94 |         #else
 95 |
 96 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
 97 |
 98 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:100:24: error: cannot find 'pthread_cond_timedwait' in scope
 98 |             while true {
 99 |                 // wait until the time passed as argument as elapsed
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:102:22: error: cannot find 'ETIMEDOUT' in scope
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
103 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
104 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:148:29: error: cannot find type 'timespec' in scope
146 |         #else
147 |
148 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
149 |
150 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |                 }
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:185:34: error: cannot find 'pthread_cond_wait' in scope
183 |                 )
184 |             #else
185 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
186 |                 precondition(err == 0, "\(#function) failed due to \(err)")
187 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:211:34: error: cannot find 'pthread_cond_wait' in scope
209 |                 )
210 |             #else
211 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
212 |                 precondition(err == 0, "\(#function) failed due to \(err)")
213 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:231:30: error: cannot find 'pthread_cond_wait' in scope
229 |             )
230 |         #else
231 |             let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                              `- error: cannot find 'pthread_cond_wait' in scope
232 |             precondition(err == 0, "\(#function) failed due to error \(err)")
233 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:244:13: error: cannot find 'pthread_cond_signal' in scope
242 |             WakeConditionVariable(condition)
243 |         #else
244 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
245 |         #endif
246 |     }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:256:30: error: cannot find 'pthread_cond_broadcast' in scope
254 |             WakeAllConditionVariable(condition)
255 |         #else
256 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
257 |             precondition(err == 0, "\(#function) failed due to \(err)")
258 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:20:21: error: generic parameter 'Pointee' could not be inferred
 18 |
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
 22 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:21:17: error: generic parameter 'Pointee' could not be inferred
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
    |                 |- error: generic parameter 'Pointee' could not be inferred
    |                 `- note: explicitly specify the generic arguments to fix this issue
 22 |
 23 |         #if os(Windows)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:29:38: error: cannot find 'pthread_cond_t' in scope
 27 |             var err: Int32 = 0
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:30:34: error: cannot find 'pthread_mutex_t' in scope
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
 30 |             mutex.initialize(to: pthread_mutex_t())
    |                                  `- error: cannot find 'pthread_mutex_t' in scope
 31 |
 32 |             err = pthread_cond_init(condition, nil)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:19: error: cannot find 'pthread_cond_init' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                   `- error: cannot find 'pthread_cond_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:48: error: 'nil' requires a contextual type
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                                                `- error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:19: error: cannot find 'pthread_mutex_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:45: error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                                             `- error: 'nil' requires a contextual type
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:43:19: error: cannot find 'pthread_cond_destroy' in scope
 41 |         #if !os(Windows)
 42 |             var err: Int32 = 0
 43 |             err = pthread_cond_destroy(condition)
    |                   `- error: cannot find 'pthread_cond_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:46:19: error: cannot find 'pthread_mutex_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
 46 |             err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 47 |             precondition(err == 0, "Couldn't destroy pthread_mutex due to \(err)")
 48 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:58:30: error: cannot find 'pthread_mutex_lock' in scope
 56 |             AcquireSRWLockExclusive(mutex)
 57 |         #else
 58 |             let err: Int32 = pthread_mutex_lock(mutex)
    |                              `- error: cannot find 'pthread_mutex_lock' in scope
 59 |             precondition(err == 0, "\(#function) failed due to \(err)")
 60 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:67:30: error: cannot find 'pthread_mutex_unlock' in scope
 65 |             ReleaseSRWLockExclusive(mutex)
 66 |         #else
 67 |             let err: Int32 = pthread_mutex_unlock(mutex)
    |                              `- error: cannot find 'pthread_mutex_unlock' in scope
 68 |             precondition(err == 0, "\(#function) failed due to \(err)")
 69 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:76:13: error: cannot find 'pthread_cond_signal' in scope
 74 |             WakeConditionVariable(condition)
 75 |         #else
 76 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
 77 |         #endif
 78 |     }
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:84:30: error: cannot find 'pthread_cond_broadcast' in scope
 82 |             WakeAllConditionVariable(condition)
 83 |         #else
 84 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
 85 |             precondition(err == 0, "\(#function) failed due to \(err)")
 86 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:106:34: error: cannot find 'pthread_cond_wait' in scope
104 |                 )
105 |             #else
106 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
107 |                 precondition(err == 0, "\(#function) failed due to \(err)")
108 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:121:34: error: cannot find 'pthread_cond_wait' in scope
119 |                 )
120 |             #else
121 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
122 |                 precondition(err == 0, "\(#function) failed due to \(err)")
123 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:151:29: error: cannot find type 'timespec' in scope
149 |         #else
150 |
151 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
152 |
153 |             while true {
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |             while true {
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
[28/32] Compiling Primitives ConditionLock.swift
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:44:21: error: generic parameter 'Pointee' could not be inferred
 42 |     /// Initialises an instance of `Condition` type
 43 |     init() {
 44 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 45 |         #if os(Windows)
 46 |             InitializeConditionVariable(condition)
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:48:38: error: cannot find 'pthread_cond_t' in scope
 46 |             InitializeConditionVariable(condition)
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:30: error: cannot find 'pthread_cond_init' in scope
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                              `- error: cannot find 'pthread_cond_init' in scope
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:59: error: 'nil' requires a contextual type
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                                                           `- error: 'nil' requires a contextual type
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:57:30: error: cannot find 'pthread_cond_destroy' in scope
 55 |     deinit {
 56 |         #if !os(Windows)
 57 |             let err: Int32 = pthread_cond_destroy(condition)
    |                              `- error: cannot find 'pthread_cond_destroy' in scope
 58 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 59 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:96:29: error: cannot find type 'timespec' in scope
 94 |         #else
 95 |
 96 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
 97 |
 98 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:100:24: error: cannot find 'pthread_cond_timedwait' in scope
 98 |             while true {
 99 |                 // wait until the time passed as argument as elapsed
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:102:22: error: cannot find 'ETIMEDOUT' in scope
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
103 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
104 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:148:29: error: cannot find type 'timespec' in scope
146 |         #else
147 |
148 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
149 |
150 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |                 }
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:185:34: error: cannot find 'pthread_cond_wait' in scope
183 |                 )
184 |             #else
185 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
186 |                 precondition(err == 0, "\(#function) failed due to \(err)")
187 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:211:34: error: cannot find 'pthread_cond_wait' in scope
209 |                 )
210 |             #else
211 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
212 |                 precondition(err == 0, "\(#function) failed due to \(err)")
213 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:231:30: error: cannot find 'pthread_cond_wait' in scope
229 |             )
230 |         #else
231 |             let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                              `- error: cannot find 'pthread_cond_wait' in scope
232 |             precondition(err == 0, "\(#function) failed due to error \(err)")
233 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:244:13: error: cannot find 'pthread_cond_signal' in scope
242 |             WakeConditionVariable(condition)
243 |         #else
244 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
245 |         #endif
246 |     }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:256:30: error: cannot find 'pthread_cond_broadcast' in scope
254 |             WakeAllConditionVariable(condition)
255 |         #else
256 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
257 |             precondition(err == 0, "\(#function) failed due to \(err)")
258 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:20:21: error: generic parameter 'Pointee' could not be inferred
 18 |
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
 22 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:21:17: error: generic parameter 'Pointee' could not be inferred
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
    |                 |- error: generic parameter 'Pointee' could not be inferred
    |                 `- note: explicitly specify the generic arguments to fix this issue
 22 |
 23 |         #if os(Windows)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:29:38: error: cannot find 'pthread_cond_t' in scope
 27 |             var err: Int32 = 0
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:30:34: error: cannot find 'pthread_mutex_t' in scope
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
 30 |             mutex.initialize(to: pthread_mutex_t())
    |                                  `- error: cannot find 'pthread_mutex_t' in scope
 31 |
 32 |             err = pthread_cond_init(condition, nil)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:19: error: cannot find 'pthread_cond_init' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                   `- error: cannot find 'pthread_cond_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:48: error: 'nil' requires a contextual type
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                                                `- error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:19: error: cannot find 'pthread_mutex_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:45: error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                                             `- error: 'nil' requires a contextual type
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:43:19: error: cannot find 'pthread_cond_destroy' in scope
 41 |         #if !os(Windows)
 42 |             var err: Int32 = 0
 43 |             err = pthread_cond_destroy(condition)
    |                   `- error: cannot find 'pthread_cond_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:46:19: error: cannot find 'pthread_mutex_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
 46 |             err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 47 |             precondition(err == 0, "Couldn't destroy pthread_mutex due to \(err)")
 48 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:58:30: error: cannot find 'pthread_mutex_lock' in scope
 56 |             AcquireSRWLockExclusive(mutex)
 57 |         #else
 58 |             let err: Int32 = pthread_mutex_lock(mutex)
    |                              `- error: cannot find 'pthread_mutex_lock' in scope
 59 |             precondition(err == 0, "\(#function) failed due to \(err)")
 60 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:67:30: error: cannot find 'pthread_mutex_unlock' in scope
 65 |             ReleaseSRWLockExclusive(mutex)
 66 |         #else
 67 |             let err: Int32 = pthread_mutex_unlock(mutex)
    |                              `- error: cannot find 'pthread_mutex_unlock' in scope
 68 |             precondition(err == 0, "\(#function) failed due to \(err)")
 69 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:76:13: error: cannot find 'pthread_cond_signal' in scope
 74 |             WakeConditionVariable(condition)
 75 |         #else
 76 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
 77 |         #endif
 78 |     }
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:84:30: error: cannot find 'pthread_cond_broadcast' in scope
 82 |             WakeAllConditionVariable(condition)
 83 |         #else
 84 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
 85 |             precondition(err == 0, "\(#function) failed due to \(err)")
 86 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:106:34: error: cannot find 'pthread_cond_wait' in scope
104 |                 )
105 |             #else
106 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
107 |                 precondition(err == 0, "\(#function) failed due to \(err)")
108 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:121:34: error: cannot find 'pthread_cond_wait' in scope
119 |                 )
120 |             #else
121 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
122 |                 precondition(err == 0, "\(#function) failed due to \(err)")
123 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:151:29: error: cannot find type 'timespec' in scope
149 |         #else
150 |
151 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
152 |
153 |             while true {
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |             while true {
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
[29/32] Compiling Primitives Latch.swift
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:17:31: error: cannot find type 'pthread_cond_t' in scope
 15 |     typealias ConditionType = CONDITION_VARIABLE
 16 | #else
 17 |     typealias ConditionType = pthread_cond_t
    |                               `- error: cannot find type 'pthread_cond_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:44:21: error: generic parameter 'Pointee' could not be inferred
 42 |     /// Initialises an instance of `Condition` type
 43 |     init() {
 44 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 45 |         #if os(Windows)
 46 |             InitializeConditionVariable(condition)
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:48:38: error: cannot find 'pthread_cond_t' in scope
 46 |             InitializeConditionVariable(condition)
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:30: error: cannot find 'pthread_cond_init' in scope
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                              `- error: cannot find 'pthread_cond_init' in scope
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:49:59: error: 'nil' requires a contextual type
 47 |         #else
 48 |             condition.initialize(to: pthread_cond_t())
 49 |             let err: Int32 = pthread_cond_init(condition, nil)
    |                                                           `- error: 'nil' requires a contextual type
 50 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 51 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:57:30: error: cannot find 'pthread_cond_destroy' in scope
 55 |     deinit {
 56 |         #if !os(Windows)
 57 |             let err: Int32 = pthread_cond_destroy(condition)
    |                              `- error: cannot find 'pthread_cond_destroy' in scope
 58 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 59 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:96:29: error: cannot find type 'timespec' in scope
 94 |         #else
 95 |
 96 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
 97 |
 98 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:100:24: error: cannot find 'pthread_cond_timedwait' in scope
 98 |             while true {
 99 |                 // wait until the time passed as argument as elapsed
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Mutex.swift:17:27: error: cannot find type 'pthread_mutex_t' in scope
 15 |     typealias MutexType = SRWLOCK
 16 | #else
 17 |     typealias MutexType = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 18 | #endif
 19 |
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:102:22: error: cannot find 'ETIMEDOUT' in scope
100 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
101 |                 case 0: continue
102 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
103 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
104 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:148:29: error: cannot find type 'timespec' in scope
146 |         #else
147 |
148 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
149 |
150 |             while true {
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |                 }
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex.mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return false
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:185:34: error: cannot find 'pthread_cond_wait' in scope
183 |                 )
184 |             #else
185 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
186 |                 precondition(err == 0, "\(#function) failed due to \(err)")
187 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:211:34: error: cannot find 'pthread_cond_wait' in scope
209 |                 )
210 |             #else
211 |                 let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
212 |                 precondition(err == 0, "\(#function) failed due to \(err)")
213 |             #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:231:30: error: cannot find 'pthread_cond_wait' in scope
229 |             )
230 |         #else
231 |             let err: Int32 = pthread_cond_wait(condition, mutex.mutex)
    |                              `- error: cannot find 'pthread_cond_wait' in scope
232 |             precondition(err == 0, "\(#function) failed due to error \(err)")
233 |         #endif
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:244:13: error: cannot find 'pthread_cond_signal' in scope
242 |             WakeConditionVariable(condition)
243 |         #else
244 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
245 |         #endif
246 |     }
/host/spi-builder-workspace/Sources/Primitives/Condition.swift:256:30: error: cannot find 'pthread_cond_broadcast' in scope
254 |             WakeAllConditionVariable(condition)
255 |         #else
256 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
257 |             precondition(err == 0, "\(#function) failed due to \(err)")
258 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:11:12: error: Unable to identify your underlying C library.
  9 |     import Musl
 10 | #else
 11 |     #error("Unable to identify your underlying C library.")
    |            `- error: Unable to identify your underlying C library.
 12 | #endif
 13 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:20:21: error: generic parameter 'Pointee' could not be inferred
 18 |
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
    |                     |- error: generic parameter 'Pointee' could not be inferred
    |                     `- note: explicitly specify the generic arguments to fix this issue
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
 22 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:21:17: error: generic parameter 'Pointee' could not be inferred
 19 |     init() {
 20 |         condition = UnsafeMutablePointer.allocate(capacity: 1)
 21 |         mutex = UnsafeMutablePointer.allocate(capacity: 1)
    |                 |- error: generic parameter 'Pointee' could not be inferred
    |                 `- note: explicitly specify the generic arguments to fix this issue
 22 |
 23 |         #if os(Windows)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:29:38: error: cannot find 'pthread_cond_t' in scope
 27 |             var err: Int32 = 0
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
    |                                      `- error: cannot find 'pthread_cond_t' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:30:34: error: cannot find 'pthread_mutex_t' in scope
 28 |
 29 |             condition.initialize(to: pthread_cond_t())
 30 |             mutex.initialize(to: pthread_mutex_t())
    |                                  `- error: cannot find 'pthread_mutex_t' in scope
 31 |
 32 |             err = pthread_cond_init(condition, nil)
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:19: error: cannot find 'pthread_cond_init' in scope
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                   `- error: cannot find 'pthread_cond_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:32:48: error: 'nil' requires a contextual type
 30 |             mutex.initialize(to: pthread_mutex_t())
 31 |
 32 |             err = pthread_cond_init(condition, nil)
    |                                                `- error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:19: error: cannot find 'pthread_mutex_init' in scope
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:35:45: error: 'nil' requires a contextual type
 33 |             precondition(err == 0, "Couldn't initialise pthread_cond due to \(err)")
 34 |
 35 |             err = pthread_mutex_init(mutex, nil)
    |                                             `- error: 'nil' requires a contextual type
 36 |             precondition(err == 0, "Couldn't initialise pthread_mutex due to \(err)")
 37 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:43:19: error: cannot find 'pthread_cond_destroy' in scope
 41 |         #if !os(Windows)
 42 |             var err: Int32 = 0
 43 |             err = pthread_cond_destroy(condition)
    |                   `- error: cannot find 'pthread_cond_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:46:19: error: cannot find 'pthread_mutex_destroy' in scope
 44 |             precondition(err == 0, "Couldn't destroy pthread_cond due to \(err)")
 45 |
 46 |             err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 47 |             precondition(err == 0, "Couldn't destroy pthread_mutex due to \(err)")
 48 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:58:30: error: cannot find 'pthread_mutex_lock' in scope
 56 |             AcquireSRWLockExclusive(mutex)
 57 |         #else
 58 |             let err: Int32 = pthread_mutex_lock(mutex)
    |                              `- error: cannot find 'pthread_mutex_lock' in scope
 59 |             precondition(err == 0, "\(#function) failed due to \(err)")
 60 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:67:30: error: cannot find 'pthread_mutex_unlock' in scope
 65 |             ReleaseSRWLockExclusive(mutex)
 66 |         #else
 67 |             let err: Int32 = pthread_mutex_unlock(mutex)
    |                              `- error: cannot find 'pthread_mutex_unlock' in scope
 68 |             precondition(err == 0, "\(#function) failed due to \(err)")
 69 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:76:13: error: cannot find 'pthread_cond_signal' in scope
 74 |             WakeConditionVariable(condition)
 75 |         #else
 76 |             pthread_cond_signal(condition)
    |             `- error: cannot find 'pthread_cond_signal' in scope
 77 |         #endif
 78 |     }
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:84:30: error: cannot find 'pthread_cond_broadcast' in scope
 82 |             WakeAllConditionVariable(condition)
 83 |         #else
 84 |             let err: Int32 = pthread_cond_broadcast(condition)
    |                              `- error: cannot find 'pthread_cond_broadcast' in scope
 85 |             precondition(err == 0, "\(#function) failed due to \(err)")
 86 |         #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:106:34: error: cannot find 'pthread_cond_wait' in scope
104 |                 )
105 |             #else
106 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
107 |                 precondition(err == 0, "\(#function) failed due to \(err)")
108 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:121:34: error: cannot find 'pthread_cond_wait' in scope
119 |                 )
120 |             #else
121 |                 let err: Int32 = pthread_cond_wait(condition, mutex)
    |                                  `- error: cannot find 'pthread_cond_wait' in scope
122 |                 precondition(err == 0, "\(#function) failed due to \(err)")
123 |             #endif
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:151:29: error: cannot find type 'timespec' in scope
149 |         #else
150 |
151 |             var timeoutAbs: timespec = getTimeSpec(with: timeout)
    |                             `- error: cannot find type 'timespec' in scope
152 |
153 |             while true {
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:155:24: error: cannot find 'pthread_cond_timedwait' in scope
153 |             while true {
154 |                 // wait until the time passed as argument as elapsed
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
    |                        `- error: cannot find 'pthread_cond_timedwait' in scope
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
/host/spi-builder-workspace/Sources/Primitives/ConditionLock.swift:157:22: error: cannot find 'ETIMEDOUT' in scope
155 |                 switch pthread_cond_timedwait(condition, mutex, &timeoutAbs) {
156 |                 case 0: continue
157 |                 case ETIMEDOUT: return
    |                      `- error: cannot find 'ETIMEDOUT' in scope
158 |                 case let err: fatalError("caught error \(err) while calling pthread_cond_timedwait")
159 |                 }
[30/32] Compiling Primitives WaitType.swift
[31/32] Compiling Primitives WorkerPool.swift
[32/32] Compiling Primitives WorkerThread.swift
BUILD FAILURE 6.1 android