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.2 (beta) for Android on 22 Jun 2025 04:18:08 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Genaro-Chris/swift-concurrency-primitives.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/Genaro-Chris/swift-concurrency-primitives
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d7c711d V0.1.0
Cloned https://github.com/Genaro-Chris/swift-concurrency-primitives.git
Revision (git rev-parse @):
d7c711d397f144ac4e15726b8f1775cc314d42d7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Genaro-Chris/swift-concurrency-primitives.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/Genaro-Chris/swift-concurrency-primitives.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/30] Compiling Primitives Semaphore.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/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: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 |
[4/30] Compiling Primitives SingleElementStorage.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/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: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 |
[5/30] Compiling Primitives Storage.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/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: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 |
[6/30] Compiling Primitives TaskChannel.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/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: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 |
[7/33] Compiling Primitives UnboundedChannel.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/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: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 |
[8/33] Compiling Primitives UnbufferedChannel.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/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: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 |
[9/33] Compiling Primitives WaitGroup.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/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: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 |
[10/33] Compiling Primitives ThreadParker.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/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: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
/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/33] Compiling Primitives ThreadPool.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/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: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
/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
[12/33] Compiling Primitives TimeDuration.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/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: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
/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
[13/33] Compiling Primitives Timespec.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/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: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
/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
[14/33] Compiling Primitives ArrayStorage.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/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: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 |
[15/33] Compiling Primitives Barrier.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/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: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 |
[16/33] Compiling Primitives BoundedChannel.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/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: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 |
[17/33] Compiling Primitives Buffers.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/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: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 |
[18/33] Compiling Primitives OnceState.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/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: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 |
[19/33] Compiling Primitives OneShotChannel.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/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: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 |
[20/33] Compiling Primitives Operators.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/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: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 |
[21/33] Compiling Primitives Queue.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/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: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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/33] 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/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: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/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 |
/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
[23/33] Compiling Primitives Lock.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/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: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/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 |     }
[24/33] Compiling Primitives Locked.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/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: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/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 |     }
[25/33] Compiling Primitives Mutex.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/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: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/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 |     }
[26/33] Compiling Primitives Once.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/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: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/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 |     }
[27/33] 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/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: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/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: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/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/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: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/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: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/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/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: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/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: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/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/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: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/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: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 |                 }
[31/33] Compiling Primitives WaitType.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/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: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 |
[32/33] Compiling Primitives WorkerPool.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/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: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 |
[33/33] Compiling Primitives WorkerThread.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/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: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 |
BUILD FAILURE 6.2 android