The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Ambassador, reference v5.0.0-rc.1 (b6d3cf), with Swift 6.1 for Android on 29 Sep 2026 07:50:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

194 |     private func interruptSelector() {
195 |         let byte = [UInt8](repeating: 0, count: 1)
196 |         let rc = write(pipeSender, byte, byte.count)
    |                  `- error: cannot find 'write' in scope
197 |         assert(
198 |             rc >= 0,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:199:52: error: cannot find 'errno' in scope
197 |         assert(
198 |             rc >= 0,
199 |             "Failed to interrupt selector, errno=\(errno), message=\(lastErrorDescription())"
    |                                                    `- error: cannot find 'errno' in scope
200 |         )
201 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:218:58: error: cannot find 'errno' in scope
216 |             assert(number == EINTR, "Failed to call selector, errno=\(number), message=\(message)")
217 |         } catch {
218 |             fatalError("Failed to call selector, errno=\(errno), message=\(lastErrorDescription())")
    |                                                          `- error: cannot find 'errno' in scope
219 |         }
220 |         for (key, ioEvents) in events {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[24/32] Compiling Embassy SelectorEventLoop.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:52:13: error: cannot find 'Darwin' in scope
 50 |         var pipeFds = [Int32](repeating: 0, count: 2)
 51 |         let pipeResult = pipeFds.withUnsafeMutableBufferPointer {
 52 |             Darwin.pipe($0.baseAddress)
    |             `- error: cannot find 'Darwin' in scope
 53 |         }
 54 |         guard pipeResult >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:74:21: error: cannot find 'Darwin' in scope
 72 |             while readSize > 0 {
 73 |                 readSize = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
 74 |                     Darwin.read(localPipeReceiver, buffer.baseAddress, buffer.count)
    |                     `- error: cannot find 'Darwin' in scope
 75 |                 }
 76 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:83:13: error: cannot find 'Darwin' in scope
 81 |         stop()
 82 |         removeReader(pipeReceiver)
 83 |         _ = Darwin.close(pipeSender)
    |             `- error: cannot find 'Darwin' in scope
 84 |         _ = Darwin.close(pipeReceiver)
 85 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:84:13: error: cannot find 'Darwin' in scope
 82 |         removeReader(pipeReceiver)
 83 |         _ = Darwin.close(pipeSender)
 84 |         _ = Darwin.close(pipeReceiver)
    |             `- error: cannot find 'Darwin' in scope
 85 |     }
 86 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:190:78: error: cannot find 'NSEC_PER_SEC' in scope
188 |         let now = DispatchTime.now().uptimeNanoseconds
189 |         guard deadline.uptimeNanoseconds > now else { return 0 }
190 |         return TimeInterval(deadline.uptimeNanoseconds - now) / TimeInterval(NSEC_PER_SEC)
    |                                                                              `- error: cannot find 'NSEC_PER_SEC' in scope
191 |     }
192 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:196:18: error: cannot find 'write' in scope
194 |     private func interruptSelector() {
195 |         let byte = [UInt8](repeating: 0, count: 1)
196 |         let rc = write(pipeSender, byte, byte.count)
    |                  `- error: cannot find 'write' in scope
197 |         assert(
198 |             rc >= 0,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:199:52: error: cannot find 'errno' in scope
197 |         assert(
198 |             rc >= 0,
199 |             "Failed to interrupt selector, errno=\(errno), message=\(lastErrorDescription())"
    |                                                    `- error: cannot find 'errno' in scope
200 |         )
201 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:218:58: error: cannot find 'errno' in scope
216 |             assert(number == EINTR, "Failed to call selector, errno=\(number), message=\(message)")
217 |         } catch {
218 |             fatalError("Failed to call selector, errno=\(errno), message=\(lastErrorDescription())")
    |                                                          `- error: cannot find 'errno' in scope
219 |         }
220 |         for (key, ioEvents) in events {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[25/32] Compiling Embassy Atomic.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:16:26: error: cannot find 'errno' in scope
14 |     /// Return a socket error with the last error number and description
15 |     static func lastIOError() -> OSError {
16 |         .ioError(number: errno, message: lastErrorDescription())
   |                          `- error: cannot find 'errno' in scope
17 |     }
18 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:22:30: error: cannot find 'errno' in scope
20 | /// Return description for last error
21 | func lastErrorDescription() -> String {
22 |     String(cString: strerror(errno))
   |                              `- error: cannot find 'errno' in scope
23 | }
24 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[26/32] Compiling Embassy Errors.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:16:26: error: cannot find 'errno' in scope
14 |     /// Return a socket error with the last error number and description
15 |     static func lastIOError() -> OSError {
16 |         .ioError(number: errno, message: lastErrorDescription())
   |                          `- error: cannot find 'errno' in scope
17 |     }
18 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:22:30: error: cannot find 'errno' in scope
20 | /// Return description for last error
21 | func lastErrorDescription() -> String {
22 |     String(cString: strerror(errno))
   |                              `- error: cannot find 'errno' in scope
23 | }
24 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[27/32] Compiling Embassy EventLoop.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:16:26: error: cannot find 'errno' in scope
14 |     /// Return a socket error with the last error number and description
15 |     static func lastIOError() -> OSError {
16 |         .ioError(number: errno, message: lastErrorDescription())
   |                          `- error: cannot find 'errno' in scope
17 |     }
18 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:22:30: error: cannot find 'errno' in scope
20 | /// Return description for last error
21 | func lastErrorDescription() -> String {
22 |     String(cString: strerror(errno))
   |                              `- error: cannot find 'errno' in scope
23 | }
24 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[28/32] Compiling Embassy HeapSort.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:16:26: error: cannot find 'errno' in scope
14 |     /// Return a socket error with the last error number and description
15 |     static func lastIOError() -> OSError {
16 |         .ioError(number: errno, message: lastErrorDescription())
   |                          `- error: cannot find 'errno' in scope
17 |     }
18 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:22:30: error: cannot find 'errno' in scope
20 | /// Return description for last error
21 | func lastErrorDescription() -> String {
22 |     String(cString: strerror(errno))
   |                              `- error: cannot find 'errno' in scope
23 | }
24 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[29/32] Compiling Embassy PrintLogHandler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:114:36: error: cannot find 'SOMAXCONN' in scope
112 |     /// Listen incomming connections
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
    |                                    `- error: cannot find 'SOMAXCONN' in scope
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
116 |             throw OSError.lastIOError()
[30/32] Compiling Embassy TransformLogHandler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:114:36: error: cannot find 'SOMAXCONN' in scope
112 |     /// Listen incomming connections
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
    |                                    `- error: cannot find 'SOMAXCONN' in scope
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
116 |             throw OSError.lastIOError()
[31/32] Compiling Embassy MultiDictionary.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:114:36: error: cannot find 'SOMAXCONN' in scope
112 |     /// Listen incomming connections
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
    |                                    `- error: cannot find 'SOMAXCONN' in scope
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
116 |             throw OSError.lastIOError()
[32/32] Compiling Embassy DefaultHTTPServer.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:114:36: error: cannot find 'SOMAXCONN' in scope
112 |     /// Listen incomming connections
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
    |                                    `- error: cannot find 'SOMAXCONN' in scope
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
116 |             throw OSError.lastIOError()
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:a7f4f752e160f6cbd9e0c26490aa43ccd5312d524c4c6d77f8b144559b526afa
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/27] Compiling Embassy Atomic.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:16:26: error: cannot find 'errno' in scope
14 |     /// Return a socket error with the last error number and description
15 |     static func lastIOError() -> OSError {
16 |         .ioError(number: errno, message: lastErrorDescription())
   |                          `- error: cannot find 'errno' in scope
17 |     }
18 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:22:30: error: cannot find 'errno' in scope
20 | /// Return description for last error
21 | func lastErrorDescription() -> String {
22 |     String(cString: strerror(errno))
   |                              `- error: cannot find 'errno' in scope
23 | }
24 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[3/27] Compiling Embassy Errors.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:16:26: error: cannot find 'errno' in scope
14 |     /// Return a socket error with the last error number and description
15 |     static func lastIOError() -> OSError {
16 |         .ioError(number: errno, message: lastErrorDescription())
   |                          `- error: cannot find 'errno' in scope
17 |     }
18 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:22:30: error: cannot find 'errno' in scope
20 | /// Return description for last error
21 | func lastErrorDescription() -> String {
22 |     String(cString: strerror(errno))
   |                              `- error: cannot find 'errno' in scope
23 | }
24 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[4/27] Compiling Embassy EventLoop.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:16:26: error: cannot find 'errno' in scope
14 |     /// Return a socket error with the last error number and description
15 |     static func lastIOError() -> OSError {
16 |         .ioError(number: errno, message: lastErrorDescription())
   |                          `- error: cannot find 'errno' in scope
17 |     }
18 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:22:30: error: cannot find 'errno' in scope
20 | /// Return description for last error
21 | func lastErrorDescription() -> String {
22 |     String(cString: strerror(errno))
   |                              `- error: cannot find 'errno' in scope
23 | }
24 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[5/27] Compiling Embassy HeapSort.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:16:26: error: cannot find 'errno' in scope
14 |     /// Return a socket error with the last error number and description
15 |     static func lastIOError() -> OSError {
16 |         .ioError(number: errno, message: lastErrorDescription())
   |                          `- error: cannot find 'errno' in scope
17 |     }
18 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Errors.swift:22:30: error: cannot find 'errno' in scope
20 | /// Return description for last error
21 | func lastErrorDescription() -> String {
22 |     String(cString: strerror(errno))
   |                              `- error: cannot find 'errno' in scope
23 | }
24 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[6/30] Compiling Embassy PrintLogHandler.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:114:36: error: cannot find 'SOMAXCONN' in scope
112 |     /// Listen incomming connections
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
    |                                    `- error: cannot find 'SOMAXCONN' in scope
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
116 |             throw OSError.lastIOError()
[7/30] Compiling Embassy TransformLogHandler.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:114:36: error: cannot find 'SOMAXCONN' in scope
112 |     /// Listen incomming connections
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
    |                                    `- error: cannot find 'SOMAXCONN' in scope
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
116 |             throw OSError.lastIOError()
[8/30] Compiling Embassy MultiDictionary.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:114:36: error: cannot find 'SOMAXCONN' in scope
112 |     /// Listen incomming connections
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
    |                                    `- error: cannot find 'SOMAXCONN' in scope
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
116 |             throw OSError.lastIOError()
[9/30] Compiling Embassy DefaultHTTPServer.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:114:36: error: cannot find 'SOMAXCONN' in scope
112 |     /// Listen incomming connections
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
    |                                    `- error: cannot find 'SOMAXCONN' in scope
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
116 |             throw OSError.lastIOError()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/30] Emitting module Embassy
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:24:31: error: cannot find type 'Darwin' in scope
 22 |     // reusable buffer for kevent() to write ready events into; allocated once
 23 |     // rather than on every select() call
 24 |     private var readyEvents: [Darwin.kevent]
    |                               `- error: cannot find type 'Darwin' in scope
 25 |
 26 |     public init(selectMaximumEvent: Int = 1024) throws {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:91:89: error: cannot find type 'Darwin' in scope
 89 |
 90 |     /// One kevent change per event in `events`, all carrying `flags`
 91 |     private func changes(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) -> [Darwin.kevent] {
    |                                                                                         `- error: cannot find type 'Darwin' in scope
 92 |         events.elements.map { event in
 93 |             Darwin.kevent(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:105:36: error: cannot find type 'Darwin' in scope
103 |
104 |     /// Submit a batch of kevent changes in one syscall
105 |     private func apply(_ changes: [Darwin.kevent]) throws {
    |                                    `- error: cannot find type 'Darwin' in scope
106 |         guard !changes.isEmpty else {
107 |             return
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:114:36: error: cannot find 'SOMAXCONN' in scope
112 |     /// Listen incomming connections
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
    |                                    `- error: cannot find 'SOMAXCONN' in scope
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
116 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:208:48: error: cannot find type 'sockaddr' in scope
206 |
207 |     private func getName(
208 |         function: (Int32, UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) -> Int32
    |                                                `- error: cannot find type 'sockaddr' in scope
209 |     ) throws -> (String, Int) {
210 |         var address = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:258:63: error: cannot find type 'in6_addr' in scope
256 |
257 |     // Convert IP address to binary struct
258 |     private func ipAddressToStruct(address: String) throws -> in6_addr {
    |                                                               `- error: cannot find type 'in6_addr' in scope
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
[11/30] Compiling Embassy FileLogHandler.swift
[12/30] Compiling Embassy LogFormatter.swift
[13/30] Compiling Embassy LogHandler.swift
[14/30] Compiling Embassy Logger.swift
[15/30] Compiling Embassy HTTPServer.swift
[16/30] Compiling Embassy PropagateLogHandler.swift
[17/30] Compiling Embassy SWSGI.swift
[18/30] Compiling Embassy TCPSocket.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:114:36: error: cannot find 'SOMAXCONN' in scope
112 |     /// Listen incomming connections
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
    |                                    `- error: cannot find 'SOMAXCONN' in scope
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
116 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:208:48: error: cannot find type 'sockaddr' in scope
206 |
207 |     private func getName(
208 |         function: (Int32, UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) -> Int32
    |                                                `- error: cannot find type 'sockaddr' in scope
209 |     ) throws -> (String, Int) {
210 |         var address = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:258:63: error: cannot find type 'in6_addr' in scope
256 |
257 |     // Convert IP address to binary struct
258 |     private func ipAddressToStruct(address: String) throws -> in6_addr {
    |                                                               `- error: cannot find type 'in6_addr' in scope
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:36:17: error: cannot find 'getsockopt' in scope
 34 |             var size = socklen_t(MemoryLayout<Int32>.size)
 35 |             assert(
 36 |                 getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
    |                 `- error: cannot find 'getsockopt' in scope
 37 |                 "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
 38 |             )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:36:44: error: cannot find 'SOL_SOCKET' in scope
 34 |             var size = socklen_t(MemoryLayout<Int32>.size)
 35 |             assert(
 36 |                 getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
    |                                            `- error: cannot find 'SOL_SOCKET' in scope
 37 |                 "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
 38 |             )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:36:56: error: cannot find 'SO_NOSIGPIPE' in scope
 34 |             var size = socklen_t(MemoryLayout<Int32>.size)
 35 |             assert(
 36 |                 getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
    |                                                        `- error: cannot find 'SO_NOSIGPIPE' in scope
 37 |                 "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
 38 |             )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:37:54: error: cannot find 'errno' in scope
 35 |             assert(
 36 |                 getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
 37 |                 "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
    |                                                      `- error: cannot find 'errno' in scope
 38 |             )
 39 |             return value == 1
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:45:17: error: cannot find 'setsockopt' in scope
 43 |             var value: Int32 = newValue ? 1 : 0
 44 |             assert(
 45 |                 setsockopt(
    |                 `- error: cannot find 'setsockopt' in scope
 46 |                     fileDescriptor,
 47 |                     SOL_SOCKET,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:47:21: error: cannot find 'SOL_SOCKET' in scope
 45 |                 setsockopt(
 46 |                     fileDescriptor,
 47 |                     SOL_SOCKET,
    |                     `- error: cannot find 'SOL_SOCKET' in scope
 48 |                     SO_NOSIGPIPE,
 49 |                     &value,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:48:21: error: cannot find 'SO_NOSIGPIPE' in scope
 46 |                     fileDescriptor,
 47 |                     SOL_SOCKET,
 48 |                     SO_NOSIGPIPE,
    |                     `- error: cannot find 'SO_NOSIGPIPE' in scope
 49 |                     &value,
 50 |                     socklen_t(MemoryLayout<Int32>.size)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:52:54: error: cannot find 'errno' in scope
 50 |                     socklen_t(MemoryLayout<Int32>.size)
 51 |                     ) >= 0,
 52 |                 "Failed to set SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
    |                                                      `- error: cannot find 'errno' in scope
 53 |             )
 54 |         }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:58:26: error: cannot find 'SOCK_STREAM' in scope
 56 |
 57 |     init(blocking: Bool = false) throws {
 58 |         let socketType = SOCK_STREAM
    |                          `- error: cannot find 'SOCK_STREAM' in scope
 59 |         fileDescriptor = Darwin.socket(AF_INET6, socketType, 0)
 60 |         guard fileDescriptor >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:59:26: error: cannot find 'Darwin' in scope
 57 |     init(blocking: Bool = false) throws {
 58 |         let socketType = SOCK_STREAM
 59 |         fileDescriptor = Darwin.socket(AF_INET6, socketType, 0)
    |                          `- error: cannot find 'Darwin' in scope
 60 |         guard fileDescriptor >= 0 else {
 61 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:59:40: error: cannot find 'AF_INET6' in scope
 57 |     init(blocking: Bool = false) throws {
 58 |         let socketType = SOCK_STREAM
 59 |         fileDescriptor = Darwin.socket(AF_INET6, socketType, 0)
    |                                        `- error: cannot find 'AF_INET6' in scope
 60 |         guard fileDescriptor >= 0 else {
 61 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:83:19: error: cannot find 'setsockopt' in scope
 81 |         if addressReusable {
 82 |             var reuse = Int32(1)
 83 |             guard setsockopt(
    |                   `- error: cannot find 'setsockopt' in scope
 84 |                 fileDescriptor,
 85 |                 SOL_SOCKET,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:85:17: error: cannot find 'SOL_SOCKET' in scope
 83 |             guard setsockopt(
 84 |                 fileDescriptor,
 85 |                 SOL_SOCKET,
    |                 `- error: cannot find 'SOL_SOCKET' in scope
 86 |                 SO_REUSEADDR,
 87 |                 &reuse,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:86:17: error: cannot find 'SO_REUSEADDR' in scope
 84 |                 fileDescriptor,
 85 |                 SOL_SOCKET,
 86 |                 SO_REUSEADDR,
    |                 `- error: cannot find 'SO_REUSEADDR' in scope
 87 |                 &reuse,
 88 |                 socklen_t(MemoryLayout<Int32>.size)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:94:23: error: cannot find 'sockaddr_in6' in scope
 92 |         }
 93 |         // create IPv6 socket address
 94 |         var address = sockaddr_in6()
    |                       `- error: cannot find 'sockaddr_in6' in scope
 95 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
 96 |         address.sin6_family = sa_family_t(AF_INET6)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:95:47: error: cannot find type 'sockaddr_in6' in scope
 93 |         // create IPv6 socket address
 94 |         var address = sockaddr_in6()
 95 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
    |                                               `- error: cannot find type 'sockaddr_in6' in scope
 96 |         address.sin6_family = sa_family_t(AF_INET6)
 97 |         address.sin6_port = UInt16(port).bigEndian
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:96:31: error: cannot find 'sa_family_t' in scope
 94 |         var address = sockaddr_in6()
 95 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
 96 |         address.sin6_family = sa_family_t(AF_INET6)
    |                               `- error: cannot find 'sa_family_t' in scope
 97 |         address.sin6_port = UInt16(port).bigEndian
 98 |         address.sin6_flowinfo = 0
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:96:43: error: cannot find 'AF_INET6' in scope
 94 |         var address = sockaddr_in6()
 95 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
 96 |         address.sin6_family = sa_family_t(AF_INET6)
    |                                           `- error: cannot find 'AF_INET6' in scope
 97 |         address.sin6_port = UInt16(port).bigEndian
 98 |         address.sin6_flowinfo = 0
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:101:43: error: cannot find type 'sockaddr_in6' in scope
 99 |         address.sin6_addr = try ipAddressToStruct(address: interface)
100 |         address.sin6_scope_id = 0
101 |         let size = socklen_t(MemoryLayout<sockaddr_in6>.size)
    |                                           `- error: cannot find type 'sockaddr_in6' in scope
102 |         // bind the address and port on socket
103 |         guard withUnsafePointer(to: &address, { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:104:50: error: cannot find 'sockaddr' in scope
102 |         // bind the address and port on socket
103 |         guard withUnsafePointer(to: &address, { pointer in
104 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                                  `- error: cannot find 'sockaddr' in scope
105 |                 Darwin.bind(fileDescriptor, pointer, size) >= 0
106 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:105:17: error: cannot find 'Darwin' in scope
103 |         guard withUnsafePointer(to: &address, { pointer in
104 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
105 |                 Darwin.bind(fileDescriptor, pointer, size) >= 0
    |                 `- error: cannot find 'Darwin' in scope
106 |             }
107 |         }) else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:104:28: error: generic parameter 'T' could not be inferred
102 |         // bind the address and port on socket
103 |         guard withUnsafePointer(to: &address, { pointer in
104 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                            `- error: generic parameter 'T' could not be inferred
105 |                 Darwin.bind(fileDescriptor, pointer, size) >= 0
106 |             }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:115:15: error: cannot find 'Darwin' in scope
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
    |               `- error: cannot find 'Darwin' in scope
116 |             throw OSError.lastIOError()
117 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:122:23: error: cannot find 'sockaddr_in6' in scope
120 |     /// Accept a new connection
121 |     func accept() throws -> TCPSocket {
122 |         var address = sockaddr_in6()
    |                       `- error: cannot find 'sockaddr_in6' in scope
123 |         var size = socklen_t(MemoryLayout<sockaddr_in6>.size)
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:123:43: error: cannot find type 'sockaddr_in6' in scope
121 |     func accept() throws -> TCPSocket {
122 |         var address = sockaddr_in6()
123 |         var size = socklen_t(MemoryLayout<sockaddr_in6>.size)
    |                                           `- error: cannot find type 'sockaddr_in6' in scope
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:125:50: error: cannot find 'sockaddr' in scope
123 |         var size = socklen_t(MemoryLayout<sockaddr_in6>.size)
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                                  `- error: cannot find 'sockaddr' in scope
126 |                 Darwin.accept(fileDescriptor, pointer, &size)
127 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:126:17: error: cannot find 'Darwin' in scope
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
126 |                 Darwin.accept(fileDescriptor, pointer, &size)
    |                 `- error: cannot find 'Darwin' in scope
127 |             }
128 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:125:28: error: generic parameter 'T' could not be inferred
123 |         var size = socklen_t(MemoryLayout<sockaddr_in6>.size)
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                            `- error: generic parameter 'T' could not be inferred
126 |                 Darwin.accept(fileDescriptor, pointer, &size)
127 |             }
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:140:23: error: cannot find 'sockaddr_in6' in scope
138 |     func connect(host: String, port: Int) throws {
139 |         // create IPv6 socket address
140 |         var address = sockaddr_in6()
    |                       `- error: cannot find 'sockaddr_in6' in scope
141 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
142 |         address.sin6_family = sa_family_t(AF_INET6)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:141:47: error: cannot find type 'sockaddr_in6' in scope
139 |         // create IPv6 socket address
140 |         var address = sockaddr_in6()
141 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
    |                                               `- error: cannot find type 'sockaddr_in6' in scope
142 |         address.sin6_family = sa_family_t(AF_INET6)
143 |         address.sin6_port = UInt16(port).bigEndian
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:142:31: error: cannot find 'sa_family_t' in scope
140 |         var address = sockaddr_in6()
141 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
142 |         address.sin6_family = sa_family_t(AF_INET6)
    |                               `- error: cannot find 'sa_family_t' in scope
143 |         address.sin6_port = UInt16(port).bigEndian
144 |         address.sin6_flowinfo = 0
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:142:43: error: cannot find 'AF_INET6' in scope
140 |         var address = sockaddr_in6()
141 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
142 |         address.sin6_family = sa_family_t(AF_INET6)
    |                                           `- error: cannot find 'AF_INET6' in scope
143 |         address.sin6_port = UInt16(port).bigEndian
144 |         address.sin6_flowinfo = 0
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:147:43: error: cannot find type 'sockaddr_in6' in scope
145 |         address.sin6_addr = try ipAddressToStruct(address: host)
146 |         address.sin6_scope_id = 0
147 |         let size = socklen_t(MemoryLayout<sockaddr_in6>.size)
    |                                           `- error: cannot find type 'sockaddr_in6' in scope
148 |         // connect to the host and port
149 |         let connectResult = withUnsafePointer(to: &address) { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:150:50: error: cannot find 'sockaddr' in scope
148 |         // connect to the host and port
149 |         let connectResult = withUnsafePointer(to: &address) { pointer in
150 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                                  `- error: cannot find 'sockaddr' in scope
151 |                 Darwin.connect(fileDescriptor, pointer, size)
152 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:151:17: error: cannot find 'Darwin' in scope
149 |         let connectResult = withUnsafePointer(to: &address) { pointer in
150 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
151 |                 Darwin.connect(fileDescriptor, pointer, size)
    |                 `- error: cannot find 'Darwin' in scope
152 |             }
153 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:150:28: error: generic parameter 'T' could not be inferred
148 |         // connect to the host and port
149 |         let connectResult = withUnsafePointer(to: &address) { pointer in
150 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                            `- error: generic parameter 'T' could not be inferred
151 |                 Darwin.connect(fileDescriptor, pointer, size)
152 |             }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:154:37: error: cannot find 'errno' in scope
152 |             }
153 |         }
154 |         guard connectResult >= 0 || errno == EINPROGRESS else {
    |                                     `- error: cannot find 'errno' in scope
155 |             throw OSError.lastIOError()
156 |         }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:165:13: error: cannot find 'Darwin' in scope
163 |     func send(data: Data) throws -> Int {
164 |         let bytesSent = data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
165 |             Darwin.send(fileDescriptor, buffer.baseAddress, buffer.count, Int32(0))
    |             `- error: cannot find 'Darwin' in scope
166 |         }
167 |         guard bytesSent >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:179:13: error: cannot find 'Darwin' in scope
177 |         var bytes = Data(count: size)
178 |         let bytesRead = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
179 |             Darwin.recv(fileDescriptor, buffer.baseAddress, buffer.count, Int32(0))
    |             `- error: cannot find 'Darwin' in scope
180 |         }
181 |         guard bytesRead >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:194:13: error: cannot find 'Darwin' in scope
192 |             return
193 |         }
194 |         _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
    |             `- error: cannot find 'Darwin' in scope
195 |         _ = Darwin.close(fileDescriptor)
196 |         fileDescriptor = -1
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:194:51: error: cannot find 'SHUT_WR' in scope
192 |             return
193 |         }
194 |         _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
    |                                                   `- error: cannot find 'SHUT_WR' in scope
195 |         _ = Darwin.close(fileDescriptor)
196 |         fileDescriptor = -1
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:195:13: error: cannot find 'Darwin' in scope
193 |         }
194 |         _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
195 |         _ = Darwin.close(fileDescriptor)
    |             `- error: cannot find 'Darwin' in scope
196 |         fileDescriptor = -1
197 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:200:31: error: cannot find 'getpeername' in scope
198 |
199 |     func getPeerName() throws -> (String, Int) {
200 |         try getName(function: getpeername)
    |                               `- error: cannot find 'getpeername' in scope
201 |     }
202 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:204:31: error: cannot find 'getsockname' in scope
202 |
203 |     func getSockName() throws -> (String, Int) {
204 |         try getName(function: getsockname)
    |                               `- error: cannot find 'getsockname' in scope
205 |     }
206 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:210:23: error: cannot find 'sockaddr_storage' in scope
208 |         function: (Int32, UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) -> Int32
209 |     ) throws -> (String, Int) {
210 |         var address = sockaddr_storage()
    |                       `- error: cannot find 'sockaddr_storage' in scope
211 |         var size = socklen_t(MemoryLayout<sockaddr_storage>.size)
212 |         return try withUnsafeMutablePointer(to: &address) { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:211:43: error: cannot find type 'sockaddr_storage' in scope
209 |     ) throws -> (String, Int) {
210 |         var address = sockaddr_storage()
211 |         var size = socklen_t(MemoryLayout<sockaddr_storage>.size)
    |                                           `- error: cannot find type 'sockaddr_storage' in scope
212 |         return try withUnsafeMutablePointer(to: &address) { pointer in
213 |             let result = pointer.withMemoryRebound(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:214:21: error: cannot find 'sockaddr' in scope
212 |         return try withUnsafeMutablePointer(to: &address) { pointer in
213 |             let result = pointer.withMemoryRebound(
214 |                 to: sockaddr.self,
    |                     `- error: cannot find 'sockaddr' in scope
215 |                 capacity: 1
216 |             ) { addressptr in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:225:25: error: cannot find 'sockaddr_in' in scope
223 |             case AF_INET:
224 |                 return try pointer.withMemoryRebound(
225 |                     to: sockaddr_in.self,
    |                         `- error: cannot find 'sockaddr_in' in scope
226 |                     capacity: 1
227 |                 ) { addressptr in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:231:37: error: cannot find 'AF_INET' in scope
229 |                         try structToAddress(
230 |                             addrStruct: addressptr.pointee.sin_addr,
231 |                             family: AF_INET,
    |                                     `- error: cannot find 'AF_INET' in scope
232 |                             addressLength: INET_ADDRSTRLEN
233 |                         ),
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:232:44: error: cannot find 'INET_ADDRSTRLEN' in scope
230 |                             addrStruct: addressptr.pointee.sin_addr,
231 |                             family: AF_INET,
232 |                             addressLength: INET_ADDRSTRLEN
    |                                            `- error: cannot find 'INET_ADDRSTRLEN' in scope
233 |                         ),
234 |                         Int(UInt16(bigEndian: addressptr.pointee.sin_port))
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:239:25: error: cannot find 'sockaddr_in6' in scope
237 |             case AF_INET6:
238 |                 return try pointer.withMemoryRebound(
239 |                     to: sockaddr_in6.self,
    |                         `- error: cannot find 'sockaddr_in6' in scope
240 |                     capacity: 1
241 |                 ) { addressptr in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:245:37: error: cannot find 'AF_INET6' in scope
243 |                         try structToAddress(
244 |                             addrStruct: addressptr.pointee.sin6_addr,
245 |                             family: AF_INET6,
    |                                     `- error: cannot find 'AF_INET6' in scope
246 |                             addressLength: INET6_ADDRSTRLEN
247 |                         ),
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:246:44: error: cannot find 'INET6_ADDRSTRLEN' in scope
244 |                             addrStruct: addressptr.pointee.sin6_addr,
245 |                             family: AF_INET6,
246 |                             addressLength: INET6_ADDRSTRLEN
    |                                            `- error: cannot find 'INET6_ADDRSTRLEN' in scope
247 |                         ),
248 |                         Int(UInt16(bigEndian: addressptr.pointee.sin6_port))
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:213:34: error: generic parameter 'T' could not be inferred
211 |         var size = socklen_t(MemoryLayout<sockaddr_storage>.size)
212 |         return try withUnsafeMutablePointer(to: &address) { pointer in
213 |             let result = pointer.withMemoryRebound(
    |                                  `- error: generic parameter 'T' could not be inferred
214 |                 to: sockaddr.self,
215 |                 capacity: 1
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:260:21: error: cannot find type 'in6_addr' in scope
258 |     private func ipAddressToStruct(address: String) throws -> in6_addr {
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
    |                     `- error: cannot find type 'in6_addr' in scope
261 |         guard address.withCString({ inet_pton(AF_INET6, $0, &binary) >= 0 }) else {
262 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:261:37: error: cannot find 'inet_pton' in scope
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
261 |         guard address.withCString({ inet_pton(AF_INET6, $0, &binary) >= 0 }) else {
    |                                     `- error: cannot find 'inet_pton' in scope
262 |             throw OSError.lastIOError()
263 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:261:47: error: cannot find 'AF_INET6' in scope
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
261 |         guard address.withCString({ inet_pton(AF_INET6, $0, &binary) >= 0 }) else {
    |                                               `- error: cannot find 'AF_INET6' in scope
262 |             throw OSError.lastIOError()
263 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:276:13: error: cannot find 'inet_ntop' in scope
274 |         var address = [CChar](repeating: 0, count: Int(addressLength))
275 |         let converted = withUnsafePointer(to: &addrStruct) { structPointer in
276 |             inet_ntop(family, structPointer, &address, socklen_t(addressLength)) != nil
    |             `- error: cannot find 'inet_ntop' in scope
277 |         }
278 |         guard converted else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Transport.swift:161:49: error: cannot find 'errno' in scope
159 |                 return
160 |             }
161 |             fatalError("Failed to read, errno=\(errno), message=\(lastErrorDescription())")
    |                                                 `- error: cannot find 'errno' in scope
162 |         } catch {
163 |             fatalError("Failed to read")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[19/30] Compiling Embassy Transport.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:114:36: error: cannot find 'SOMAXCONN' in scope
112 |     /// Listen incomming connections
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
    |                                    `- error: cannot find 'SOMAXCONN' in scope
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
116 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:208:48: error: cannot find type 'sockaddr' in scope
206 |
207 |     private func getName(
208 |         function: (Int32, UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) -> Int32
    |                                                `- error: cannot find type 'sockaddr' in scope
209 |     ) throws -> (String, Int) {
210 |         var address = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:258:63: error: cannot find type 'in6_addr' in scope
256 |
257 |     // Convert IP address to binary struct
258 |     private func ipAddressToStruct(address: String) throws -> in6_addr {
    |                                                               `- error: cannot find type 'in6_addr' in scope
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:36:17: error: cannot find 'getsockopt' in scope
 34 |             var size = socklen_t(MemoryLayout<Int32>.size)
 35 |             assert(
 36 |                 getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
    |                 `- error: cannot find 'getsockopt' in scope
 37 |                 "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
 38 |             )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:36:44: error: cannot find 'SOL_SOCKET' in scope
 34 |             var size = socklen_t(MemoryLayout<Int32>.size)
 35 |             assert(
 36 |                 getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
    |                                            `- error: cannot find 'SOL_SOCKET' in scope
 37 |                 "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
 38 |             )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:36:56: error: cannot find 'SO_NOSIGPIPE' in scope
 34 |             var size = socklen_t(MemoryLayout<Int32>.size)
 35 |             assert(
 36 |                 getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
    |                                                        `- error: cannot find 'SO_NOSIGPIPE' in scope
 37 |                 "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
 38 |             )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:37:54: error: cannot find 'errno' in scope
 35 |             assert(
 36 |                 getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
 37 |                 "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
    |                                                      `- error: cannot find 'errno' in scope
 38 |             )
 39 |             return value == 1
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:45:17: error: cannot find 'setsockopt' in scope
 43 |             var value: Int32 = newValue ? 1 : 0
 44 |             assert(
 45 |                 setsockopt(
    |                 `- error: cannot find 'setsockopt' in scope
 46 |                     fileDescriptor,
 47 |                     SOL_SOCKET,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:47:21: error: cannot find 'SOL_SOCKET' in scope
 45 |                 setsockopt(
 46 |                     fileDescriptor,
 47 |                     SOL_SOCKET,
    |                     `- error: cannot find 'SOL_SOCKET' in scope
 48 |                     SO_NOSIGPIPE,
 49 |                     &value,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:48:21: error: cannot find 'SO_NOSIGPIPE' in scope
 46 |                     fileDescriptor,
 47 |                     SOL_SOCKET,
 48 |                     SO_NOSIGPIPE,
    |                     `- error: cannot find 'SO_NOSIGPIPE' in scope
 49 |                     &value,
 50 |                     socklen_t(MemoryLayout<Int32>.size)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:52:54: error: cannot find 'errno' in scope
 50 |                     socklen_t(MemoryLayout<Int32>.size)
 51 |                     ) >= 0,
 52 |                 "Failed to set SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
    |                                                      `- error: cannot find 'errno' in scope
 53 |             )
 54 |         }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:58:26: error: cannot find 'SOCK_STREAM' in scope
 56 |
 57 |     init(blocking: Bool = false) throws {
 58 |         let socketType = SOCK_STREAM
    |                          `- error: cannot find 'SOCK_STREAM' in scope
 59 |         fileDescriptor = Darwin.socket(AF_INET6, socketType, 0)
 60 |         guard fileDescriptor >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:59:26: error: cannot find 'Darwin' in scope
 57 |     init(blocking: Bool = false) throws {
 58 |         let socketType = SOCK_STREAM
 59 |         fileDescriptor = Darwin.socket(AF_INET6, socketType, 0)
    |                          `- error: cannot find 'Darwin' in scope
 60 |         guard fileDescriptor >= 0 else {
 61 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:59:40: error: cannot find 'AF_INET6' in scope
 57 |     init(blocking: Bool = false) throws {
 58 |         let socketType = SOCK_STREAM
 59 |         fileDescriptor = Darwin.socket(AF_INET6, socketType, 0)
    |                                        `- error: cannot find 'AF_INET6' in scope
 60 |         guard fileDescriptor >= 0 else {
 61 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:83:19: error: cannot find 'setsockopt' in scope
 81 |         if addressReusable {
 82 |             var reuse = Int32(1)
 83 |             guard setsockopt(
    |                   `- error: cannot find 'setsockopt' in scope
 84 |                 fileDescriptor,
 85 |                 SOL_SOCKET,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:85:17: error: cannot find 'SOL_SOCKET' in scope
 83 |             guard setsockopt(
 84 |                 fileDescriptor,
 85 |                 SOL_SOCKET,
    |                 `- error: cannot find 'SOL_SOCKET' in scope
 86 |                 SO_REUSEADDR,
 87 |                 &reuse,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:86:17: error: cannot find 'SO_REUSEADDR' in scope
 84 |                 fileDescriptor,
 85 |                 SOL_SOCKET,
 86 |                 SO_REUSEADDR,
    |                 `- error: cannot find 'SO_REUSEADDR' in scope
 87 |                 &reuse,
 88 |                 socklen_t(MemoryLayout<Int32>.size)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:94:23: error: cannot find 'sockaddr_in6' in scope
 92 |         }
 93 |         // create IPv6 socket address
 94 |         var address = sockaddr_in6()
    |                       `- error: cannot find 'sockaddr_in6' in scope
 95 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
 96 |         address.sin6_family = sa_family_t(AF_INET6)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:95:47: error: cannot find type 'sockaddr_in6' in scope
 93 |         // create IPv6 socket address
 94 |         var address = sockaddr_in6()
 95 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
    |                                               `- error: cannot find type 'sockaddr_in6' in scope
 96 |         address.sin6_family = sa_family_t(AF_INET6)
 97 |         address.sin6_port = UInt16(port).bigEndian
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:96:31: error: cannot find 'sa_family_t' in scope
 94 |         var address = sockaddr_in6()
 95 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
 96 |         address.sin6_family = sa_family_t(AF_INET6)
    |                               `- error: cannot find 'sa_family_t' in scope
 97 |         address.sin6_port = UInt16(port).bigEndian
 98 |         address.sin6_flowinfo = 0
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:96:43: error: cannot find 'AF_INET6' in scope
 94 |         var address = sockaddr_in6()
 95 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
 96 |         address.sin6_family = sa_family_t(AF_INET6)
    |                                           `- error: cannot find 'AF_INET6' in scope
 97 |         address.sin6_port = UInt16(port).bigEndian
 98 |         address.sin6_flowinfo = 0
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:101:43: error: cannot find type 'sockaddr_in6' in scope
 99 |         address.sin6_addr = try ipAddressToStruct(address: interface)
100 |         address.sin6_scope_id = 0
101 |         let size = socklen_t(MemoryLayout<sockaddr_in6>.size)
    |                                           `- error: cannot find type 'sockaddr_in6' in scope
102 |         // bind the address and port on socket
103 |         guard withUnsafePointer(to: &address, { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:104:50: error: cannot find 'sockaddr' in scope
102 |         // bind the address and port on socket
103 |         guard withUnsafePointer(to: &address, { pointer in
104 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                                  `- error: cannot find 'sockaddr' in scope
105 |                 Darwin.bind(fileDescriptor, pointer, size) >= 0
106 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:105:17: error: cannot find 'Darwin' in scope
103 |         guard withUnsafePointer(to: &address, { pointer in
104 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
105 |                 Darwin.bind(fileDescriptor, pointer, size) >= 0
    |                 `- error: cannot find 'Darwin' in scope
106 |             }
107 |         }) else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:104:28: error: generic parameter 'T' could not be inferred
102 |         // bind the address and port on socket
103 |         guard withUnsafePointer(to: &address, { pointer in
104 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                            `- error: generic parameter 'T' could not be inferred
105 |                 Darwin.bind(fileDescriptor, pointer, size) >= 0
106 |             }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:115:15: error: cannot find 'Darwin' in scope
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
    |               `- error: cannot find 'Darwin' in scope
116 |             throw OSError.lastIOError()
117 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:122:23: error: cannot find 'sockaddr_in6' in scope
120 |     /// Accept a new connection
121 |     func accept() throws -> TCPSocket {
122 |         var address = sockaddr_in6()
    |                       `- error: cannot find 'sockaddr_in6' in scope
123 |         var size = socklen_t(MemoryLayout<sockaddr_in6>.size)
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:123:43: error: cannot find type 'sockaddr_in6' in scope
121 |     func accept() throws -> TCPSocket {
122 |         var address = sockaddr_in6()
123 |         var size = socklen_t(MemoryLayout<sockaddr_in6>.size)
    |                                           `- error: cannot find type 'sockaddr_in6' in scope
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:125:50: error: cannot find 'sockaddr' in scope
123 |         var size = socklen_t(MemoryLayout<sockaddr_in6>.size)
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                                  `- error: cannot find 'sockaddr' in scope
126 |                 Darwin.accept(fileDescriptor, pointer, &size)
127 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:126:17: error: cannot find 'Darwin' in scope
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
126 |                 Darwin.accept(fileDescriptor, pointer, &size)
    |                 `- error: cannot find 'Darwin' in scope
127 |             }
128 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:125:28: error: generic parameter 'T' could not be inferred
123 |         var size = socklen_t(MemoryLayout<sockaddr_in6>.size)
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                            `- error: generic parameter 'T' could not be inferred
126 |                 Darwin.accept(fileDescriptor, pointer, &size)
127 |             }
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:140:23: error: cannot find 'sockaddr_in6' in scope
138 |     func connect(host: String, port: Int) throws {
139 |         // create IPv6 socket address
140 |         var address = sockaddr_in6()
    |                       `- error: cannot find 'sockaddr_in6' in scope
141 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
142 |         address.sin6_family = sa_family_t(AF_INET6)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:141:47: error: cannot find type 'sockaddr_in6' in scope
139 |         // create IPv6 socket address
140 |         var address = sockaddr_in6()
141 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
    |                                               `- error: cannot find type 'sockaddr_in6' in scope
142 |         address.sin6_family = sa_family_t(AF_INET6)
143 |         address.sin6_port = UInt16(port).bigEndian
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:142:31: error: cannot find 'sa_family_t' in scope
140 |         var address = sockaddr_in6()
141 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
142 |         address.sin6_family = sa_family_t(AF_INET6)
    |                               `- error: cannot find 'sa_family_t' in scope
143 |         address.sin6_port = UInt16(port).bigEndian
144 |         address.sin6_flowinfo = 0
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:142:43: error: cannot find 'AF_INET6' in scope
140 |         var address = sockaddr_in6()
141 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
142 |         address.sin6_family = sa_family_t(AF_INET6)
    |                                           `- error: cannot find 'AF_INET6' in scope
143 |         address.sin6_port = UInt16(port).bigEndian
144 |         address.sin6_flowinfo = 0
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:147:43: error: cannot find type 'sockaddr_in6' in scope
145 |         address.sin6_addr = try ipAddressToStruct(address: host)
146 |         address.sin6_scope_id = 0
147 |         let size = socklen_t(MemoryLayout<sockaddr_in6>.size)
    |                                           `- error: cannot find type 'sockaddr_in6' in scope
148 |         // connect to the host and port
149 |         let connectResult = withUnsafePointer(to: &address) { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:150:50: error: cannot find 'sockaddr' in scope
148 |         // connect to the host and port
149 |         let connectResult = withUnsafePointer(to: &address) { pointer in
150 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                                  `- error: cannot find 'sockaddr' in scope
151 |                 Darwin.connect(fileDescriptor, pointer, size)
152 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:151:17: error: cannot find 'Darwin' in scope
149 |         let connectResult = withUnsafePointer(to: &address) { pointer in
150 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
151 |                 Darwin.connect(fileDescriptor, pointer, size)
    |                 `- error: cannot find 'Darwin' in scope
152 |             }
153 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:150:28: error: generic parameter 'T' could not be inferred
148 |         // connect to the host and port
149 |         let connectResult = withUnsafePointer(to: &address) { pointer in
150 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                            `- error: generic parameter 'T' could not be inferred
151 |                 Darwin.connect(fileDescriptor, pointer, size)
152 |             }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:154:37: error: cannot find 'errno' in scope
152 |             }
153 |         }
154 |         guard connectResult >= 0 || errno == EINPROGRESS else {
    |                                     `- error: cannot find 'errno' in scope
155 |             throw OSError.lastIOError()
156 |         }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:165:13: error: cannot find 'Darwin' in scope
163 |     func send(data: Data) throws -> Int {
164 |         let bytesSent = data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
165 |             Darwin.send(fileDescriptor, buffer.baseAddress, buffer.count, Int32(0))
    |             `- error: cannot find 'Darwin' in scope
166 |         }
167 |         guard bytesSent >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:179:13: error: cannot find 'Darwin' in scope
177 |         var bytes = Data(count: size)
178 |         let bytesRead = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
179 |             Darwin.recv(fileDescriptor, buffer.baseAddress, buffer.count, Int32(0))
    |             `- error: cannot find 'Darwin' in scope
180 |         }
181 |         guard bytesRead >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:194:13: error: cannot find 'Darwin' in scope
192 |             return
193 |         }
194 |         _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
    |             `- error: cannot find 'Darwin' in scope
195 |         _ = Darwin.close(fileDescriptor)
196 |         fileDescriptor = -1
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:194:51: error: cannot find 'SHUT_WR' in scope
192 |             return
193 |         }
194 |         _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
    |                                                   `- error: cannot find 'SHUT_WR' in scope
195 |         _ = Darwin.close(fileDescriptor)
196 |         fileDescriptor = -1
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:195:13: error: cannot find 'Darwin' in scope
193 |         }
194 |         _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
195 |         _ = Darwin.close(fileDescriptor)
    |             `- error: cannot find 'Darwin' in scope
196 |         fileDescriptor = -1
197 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:200:31: error: cannot find 'getpeername' in scope
198 |
199 |     func getPeerName() throws -> (String, Int) {
200 |         try getName(function: getpeername)
    |                               `- error: cannot find 'getpeername' in scope
201 |     }
202 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:204:31: error: cannot find 'getsockname' in scope
202 |
203 |     func getSockName() throws -> (String, Int) {
204 |         try getName(function: getsockname)
    |                               `- error: cannot find 'getsockname' in scope
205 |     }
206 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:210:23: error: cannot find 'sockaddr_storage' in scope
208 |         function: (Int32, UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) -> Int32
209 |     ) throws -> (String, Int) {
210 |         var address = sockaddr_storage()
    |                       `- error: cannot find 'sockaddr_storage' in scope
211 |         var size = socklen_t(MemoryLayout<sockaddr_storage>.size)
212 |         return try withUnsafeMutablePointer(to: &address) { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:211:43: error: cannot find type 'sockaddr_storage' in scope
209 |     ) throws -> (String, Int) {
210 |         var address = sockaddr_storage()
211 |         var size = socklen_t(MemoryLayout<sockaddr_storage>.size)
    |                                           `- error: cannot find type 'sockaddr_storage' in scope
212 |         return try withUnsafeMutablePointer(to: &address) { pointer in
213 |             let result = pointer.withMemoryRebound(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:214:21: error: cannot find 'sockaddr' in scope
212 |         return try withUnsafeMutablePointer(to: &address) { pointer in
213 |             let result = pointer.withMemoryRebound(
214 |                 to: sockaddr.self,
    |                     `- error: cannot find 'sockaddr' in scope
215 |                 capacity: 1
216 |             ) { addressptr in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:225:25: error: cannot find 'sockaddr_in' in scope
223 |             case AF_INET:
224 |                 return try pointer.withMemoryRebound(
225 |                     to: sockaddr_in.self,
    |                         `- error: cannot find 'sockaddr_in' in scope
226 |                     capacity: 1
227 |                 ) { addressptr in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:231:37: error: cannot find 'AF_INET' in scope
229 |                         try structToAddress(
230 |                             addrStruct: addressptr.pointee.sin_addr,
231 |                             family: AF_INET,
    |                                     `- error: cannot find 'AF_INET' in scope
232 |                             addressLength: INET_ADDRSTRLEN
233 |                         ),
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:232:44: error: cannot find 'INET_ADDRSTRLEN' in scope
230 |                             addrStruct: addressptr.pointee.sin_addr,
231 |                             family: AF_INET,
232 |                             addressLength: INET_ADDRSTRLEN
    |                                            `- error: cannot find 'INET_ADDRSTRLEN' in scope
233 |                         ),
234 |                         Int(UInt16(bigEndian: addressptr.pointee.sin_port))
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:239:25: error: cannot find 'sockaddr_in6' in scope
237 |             case AF_INET6:
238 |                 return try pointer.withMemoryRebound(
239 |                     to: sockaddr_in6.self,
    |                         `- error: cannot find 'sockaddr_in6' in scope
240 |                     capacity: 1
241 |                 ) { addressptr in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:245:37: error: cannot find 'AF_INET6' in scope
243 |                         try structToAddress(
244 |                             addrStruct: addressptr.pointee.sin6_addr,
245 |                             family: AF_INET6,
    |                                     `- error: cannot find 'AF_INET6' in scope
246 |                             addressLength: INET6_ADDRSTRLEN
247 |                         ),
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:246:44: error: cannot find 'INET6_ADDRSTRLEN' in scope
244 |                             addrStruct: addressptr.pointee.sin6_addr,
245 |                             family: AF_INET6,
246 |                             addressLength: INET6_ADDRSTRLEN
    |                                            `- error: cannot find 'INET6_ADDRSTRLEN' in scope
247 |                         ),
248 |                         Int(UInt16(bigEndian: addressptr.pointee.sin6_port))
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:213:34: error: generic parameter 'T' could not be inferred
211 |         var size = socklen_t(MemoryLayout<sockaddr_storage>.size)
212 |         return try withUnsafeMutablePointer(to: &address) { pointer in
213 |             let result = pointer.withMemoryRebound(
    |                                  `- error: generic parameter 'T' could not be inferred
214 |                 to: sockaddr.self,
215 |                 capacity: 1
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:260:21: error: cannot find type 'in6_addr' in scope
258 |     private func ipAddressToStruct(address: String) throws -> in6_addr {
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
    |                     `- error: cannot find type 'in6_addr' in scope
261 |         guard address.withCString({ inet_pton(AF_INET6, $0, &binary) >= 0 }) else {
262 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:261:37: error: cannot find 'inet_pton' in scope
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
261 |         guard address.withCString({ inet_pton(AF_INET6, $0, &binary) >= 0 }) else {
    |                                     `- error: cannot find 'inet_pton' in scope
262 |             throw OSError.lastIOError()
263 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:261:47: error: cannot find 'AF_INET6' in scope
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
261 |         guard address.withCString({ inet_pton(AF_INET6, $0, &binary) >= 0 }) else {
    |                                               `- error: cannot find 'AF_INET6' in scope
262 |             throw OSError.lastIOError()
263 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:276:13: error: cannot find 'inet_ntop' in scope
274 |         var address = [CChar](repeating: 0, count: Int(addressLength))
275 |         let converted = withUnsafePointer(to: &addrStruct) { structPointer in
276 |             inet_ntop(family, structPointer, &address, socklen_t(addressLength)) != nil
    |             `- error: cannot find 'inet_ntop' in scope
277 |         }
278 |         guard converted else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Transport.swift:161:49: error: cannot find 'errno' in scope
159 |                 return
160 |             }
161 |             fatalError("Failed to read, errno=\(errno), message=\(lastErrorDescription())")
    |                                                 `- error: cannot find 'errno' in scope
162 |         } catch {
163 |             fatalError("Failed to read")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[20/30] Compiling Embassy Version.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:114:36: error: cannot find 'SOMAXCONN' in scope
112 |     /// Listen incomming connections
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
    |                                    `- error: cannot find 'SOMAXCONN' in scope
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
116 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:208:48: error: cannot find type 'sockaddr' in scope
206 |
207 |     private func getName(
208 |         function: (Int32, UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) -> Int32
    |                                                `- error: cannot find type 'sockaddr' in scope
209 |     ) throws -> (String, Int) {
210 |         var address = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:258:63: error: cannot find type 'in6_addr' in scope
256 |
257 |     // Convert IP address to binary struct
258 |     private func ipAddressToStruct(address: String) throws -> in6_addr {
    |                                                               `- error: cannot find type 'in6_addr' in scope
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:36:17: error: cannot find 'getsockopt' in scope
 34 |             var size = socklen_t(MemoryLayout<Int32>.size)
 35 |             assert(
 36 |                 getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
    |                 `- error: cannot find 'getsockopt' in scope
 37 |                 "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
 38 |             )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:36:44: error: cannot find 'SOL_SOCKET' in scope
 34 |             var size = socklen_t(MemoryLayout<Int32>.size)
 35 |             assert(
 36 |                 getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
    |                                            `- error: cannot find 'SOL_SOCKET' in scope
 37 |                 "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
 38 |             )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:36:56: error: cannot find 'SO_NOSIGPIPE' in scope
 34 |             var size = socklen_t(MemoryLayout<Int32>.size)
 35 |             assert(
 36 |                 getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
    |                                                        `- error: cannot find 'SO_NOSIGPIPE' in scope
 37 |                 "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
 38 |             )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:37:54: error: cannot find 'errno' in scope
 35 |             assert(
 36 |                 getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
 37 |                 "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
    |                                                      `- error: cannot find 'errno' in scope
 38 |             )
 39 |             return value == 1
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:45:17: error: cannot find 'setsockopt' in scope
 43 |             var value: Int32 = newValue ? 1 : 0
 44 |             assert(
 45 |                 setsockopt(
    |                 `- error: cannot find 'setsockopt' in scope
 46 |                     fileDescriptor,
 47 |                     SOL_SOCKET,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:47:21: error: cannot find 'SOL_SOCKET' in scope
 45 |                 setsockopt(
 46 |                     fileDescriptor,
 47 |                     SOL_SOCKET,
    |                     `- error: cannot find 'SOL_SOCKET' in scope
 48 |                     SO_NOSIGPIPE,
 49 |                     &value,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:48:21: error: cannot find 'SO_NOSIGPIPE' in scope
 46 |                     fileDescriptor,
 47 |                     SOL_SOCKET,
 48 |                     SO_NOSIGPIPE,
    |                     `- error: cannot find 'SO_NOSIGPIPE' in scope
 49 |                     &value,
 50 |                     socklen_t(MemoryLayout<Int32>.size)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:52:54: error: cannot find 'errno' in scope
 50 |                     socklen_t(MemoryLayout<Int32>.size)
 51 |                     ) >= 0,
 52 |                 "Failed to set SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
    |                                                      `- error: cannot find 'errno' in scope
 53 |             )
 54 |         }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:58:26: error: cannot find 'SOCK_STREAM' in scope
 56 |
 57 |     init(blocking: Bool = false) throws {
 58 |         let socketType = SOCK_STREAM
    |                          `- error: cannot find 'SOCK_STREAM' in scope
 59 |         fileDescriptor = Darwin.socket(AF_INET6, socketType, 0)
 60 |         guard fileDescriptor >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:59:26: error: cannot find 'Darwin' in scope
 57 |     init(blocking: Bool = false) throws {
 58 |         let socketType = SOCK_STREAM
 59 |         fileDescriptor = Darwin.socket(AF_INET6, socketType, 0)
    |                          `- error: cannot find 'Darwin' in scope
 60 |         guard fileDescriptor >= 0 else {
 61 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:59:40: error: cannot find 'AF_INET6' in scope
 57 |     init(blocking: Bool = false) throws {
 58 |         let socketType = SOCK_STREAM
 59 |         fileDescriptor = Darwin.socket(AF_INET6, socketType, 0)
    |                                        `- error: cannot find 'AF_INET6' in scope
 60 |         guard fileDescriptor >= 0 else {
 61 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:83:19: error: cannot find 'setsockopt' in scope
 81 |         if addressReusable {
 82 |             var reuse = Int32(1)
 83 |             guard setsockopt(
    |                   `- error: cannot find 'setsockopt' in scope
 84 |                 fileDescriptor,
 85 |                 SOL_SOCKET,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:85:17: error: cannot find 'SOL_SOCKET' in scope
 83 |             guard setsockopt(
 84 |                 fileDescriptor,
 85 |                 SOL_SOCKET,
    |                 `- error: cannot find 'SOL_SOCKET' in scope
 86 |                 SO_REUSEADDR,
 87 |                 &reuse,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:86:17: error: cannot find 'SO_REUSEADDR' in scope
 84 |                 fileDescriptor,
 85 |                 SOL_SOCKET,
 86 |                 SO_REUSEADDR,
    |                 `- error: cannot find 'SO_REUSEADDR' in scope
 87 |                 &reuse,
 88 |                 socklen_t(MemoryLayout<Int32>.size)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:94:23: error: cannot find 'sockaddr_in6' in scope
 92 |         }
 93 |         // create IPv6 socket address
 94 |         var address = sockaddr_in6()
    |                       `- error: cannot find 'sockaddr_in6' in scope
 95 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
 96 |         address.sin6_family = sa_family_t(AF_INET6)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:95:47: error: cannot find type 'sockaddr_in6' in scope
 93 |         // create IPv6 socket address
 94 |         var address = sockaddr_in6()
 95 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
    |                                               `- error: cannot find type 'sockaddr_in6' in scope
 96 |         address.sin6_family = sa_family_t(AF_INET6)
 97 |         address.sin6_port = UInt16(port).bigEndian
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:96:31: error: cannot find 'sa_family_t' in scope
 94 |         var address = sockaddr_in6()
 95 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
 96 |         address.sin6_family = sa_family_t(AF_INET6)
    |                               `- error: cannot find 'sa_family_t' in scope
 97 |         address.sin6_port = UInt16(port).bigEndian
 98 |         address.sin6_flowinfo = 0
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:96:43: error: cannot find 'AF_INET6' in scope
 94 |         var address = sockaddr_in6()
 95 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
 96 |         address.sin6_family = sa_family_t(AF_INET6)
    |                                           `- error: cannot find 'AF_INET6' in scope
 97 |         address.sin6_port = UInt16(port).bigEndian
 98 |         address.sin6_flowinfo = 0
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:101:43: error: cannot find type 'sockaddr_in6' in scope
 99 |         address.sin6_addr = try ipAddressToStruct(address: interface)
100 |         address.sin6_scope_id = 0
101 |         let size = socklen_t(MemoryLayout<sockaddr_in6>.size)
    |                                           `- error: cannot find type 'sockaddr_in6' in scope
102 |         // bind the address and port on socket
103 |         guard withUnsafePointer(to: &address, { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:104:50: error: cannot find 'sockaddr' in scope
102 |         // bind the address and port on socket
103 |         guard withUnsafePointer(to: &address, { pointer in
104 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                                  `- error: cannot find 'sockaddr' in scope
105 |                 Darwin.bind(fileDescriptor, pointer, size) >= 0
106 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:105:17: error: cannot find 'Darwin' in scope
103 |         guard withUnsafePointer(to: &address, { pointer in
104 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
105 |                 Darwin.bind(fileDescriptor, pointer, size) >= 0
    |                 `- error: cannot find 'Darwin' in scope
106 |             }
107 |         }) else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:104:28: error: generic parameter 'T' could not be inferred
102 |         // bind the address and port on socket
103 |         guard withUnsafePointer(to: &address, { pointer in
104 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                            `- error: generic parameter 'T' could not be inferred
105 |                 Darwin.bind(fileDescriptor, pointer, size) >= 0
106 |             }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:115:15: error: cannot find 'Darwin' in scope
113 |     ///  - Parameter backlog: maximum backlog of incoming connections
114 |     func listen(backlog: Int = Int(SOMAXCONN)) throws {
115 |         guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
    |               `- error: cannot find 'Darwin' in scope
116 |             throw OSError.lastIOError()
117 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:122:23: error: cannot find 'sockaddr_in6' in scope
120 |     /// Accept a new connection
121 |     func accept() throws -> TCPSocket {
122 |         var address = sockaddr_in6()
    |                       `- error: cannot find 'sockaddr_in6' in scope
123 |         var size = socklen_t(MemoryLayout<sockaddr_in6>.size)
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:123:43: error: cannot find type 'sockaddr_in6' in scope
121 |     func accept() throws -> TCPSocket {
122 |         var address = sockaddr_in6()
123 |         var size = socklen_t(MemoryLayout<sockaddr_in6>.size)
    |                                           `- error: cannot find type 'sockaddr_in6' in scope
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:125:50: error: cannot find 'sockaddr' in scope
123 |         var size = socklen_t(MemoryLayout<sockaddr_in6>.size)
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                                  `- error: cannot find 'sockaddr' in scope
126 |                 Darwin.accept(fileDescriptor, pointer, &size)
127 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:126:17: error: cannot find 'Darwin' in scope
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
126 |                 Darwin.accept(fileDescriptor, pointer, &size)
    |                 `- error: cannot find 'Darwin' in scope
127 |             }
128 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:125:28: error: generic parameter 'T' could not be inferred
123 |         var size = socklen_t(MemoryLayout<sockaddr_in6>.size)
124 |         let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                            `- error: generic parameter 'T' could not be inferred
126 |                 Darwin.accept(fileDescriptor, pointer, &size)
127 |             }
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:140:23: error: cannot find 'sockaddr_in6' in scope
138 |     func connect(host: String, port: Int) throws {
139 |         // create IPv6 socket address
140 |         var address = sockaddr_in6()
    |                       `- error: cannot find 'sockaddr_in6' in scope
141 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
142 |         address.sin6_family = sa_family_t(AF_INET6)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:141:47: error: cannot find type 'sockaddr_in6' in scope
139 |         // create IPv6 socket address
140 |         var address = sockaddr_in6()
141 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
    |                                               `- error: cannot find type 'sockaddr_in6' in scope
142 |         address.sin6_family = sa_family_t(AF_INET6)
143 |         address.sin6_port = UInt16(port).bigEndian
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:142:31: error: cannot find 'sa_family_t' in scope
140 |         var address = sockaddr_in6()
141 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
142 |         address.sin6_family = sa_family_t(AF_INET6)
    |                               `- error: cannot find 'sa_family_t' in scope
143 |         address.sin6_port = UInt16(port).bigEndian
144 |         address.sin6_flowinfo = 0
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:142:43: error: cannot find 'AF_INET6' in scope
140 |         var address = sockaddr_in6()
141 |         address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
142 |         address.sin6_family = sa_family_t(AF_INET6)
    |                                           `- error: cannot find 'AF_INET6' in scope
143 |         address.sin6_port = UInt16(port).bigEndian
144 |         address.sin6_flowinfo = 0
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:147:43: error: cannot find type 'sockaddr_in6' in scope
145 |         address.sin6_addr = try ipAddressToStruct(address: host)
146 |         address.sin6_scope_id = 0
147 |         let size = socklen_t(MemoryLayout<sockaddr_in6>.size)
    |                                           `- error: cannot find type 'sockaddr_in6' in scope
148 |         // connect to the host and port
149 |         let connectResult = withUnsafePointer(to: &address) { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:150:50: error: cannot find 'sockaddr' in scope
148 |         // connect to the host and port
149 |         let connectResult = withUnsafePointer(to: &address) { pointer in
150 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                                  `- error: cannot find 'sockaddr' in scope
151 |                 Darwin.connect(fileDescriptor, pointer, size)
152 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:151:17: error: cannot find 'Darwin' in scope
149 |         let connectResult = withUnsafePointer(to: &address) { pointer in
150 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
151 |                 Darwin.connect(fileDescriptor, pointer, size)
    |                 `- error: cannot find 'Darwin' in scope
152 |             }
153 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:150:28: error: generic parameter 'T' could not be inferred
148 |         // connect to the host and port
149 |         let connectResult = withUnsafePointer(to: &address) { pointer in
150 |             return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                            `- error: generic parameter 'T' could not be inferred
151 |                 Darwin.connect(fileDescriptor, pointer, size)
152 |             }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:154:37: error: cannot find 'errno' in scope
152 |             }
153 |         }
154 |         guard connectResult >= 0 || errno == EINPROGRESS else {
    |                                     `- error: cannot find 'errno' in scope
155 |             throw OSError.lastIOError()
156 |         }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:165:13: error: cannot find 'Darwin' in scope
163 |     func send(data: Data) throws -> Int {
164 |         let bytesSent = data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
165 |             Darwin.send(fileDescriptor, buffer.baseAddress, buffer.count, Int32(0))
    |             `- error: cannot find 'Darwin' in scope
166 |         }
167 |         guard bytesSent >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:179:13: error: cannot find 'Darwin' in scope
177 |         var bytes = Data(count: size)
178 |         let bytesRead = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
179 |             Darwin.recv(fileDescriptor, buffer.baseAddress, buffer.count, Int32(0))
    |             `- error: cannot find 'Darwin' in scope
180 |         }
181 |         guard bytesRead >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:194:13: error: cannot find 'Darwin' in scope
192 |             return
193 |         }
194 |         _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
    |             `- error: cannot find 'Darwin' in scope
195 |         _ = Darwin.close(fileDescriptor)
196 |         fileDescriptor = -1
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:194:51: error: cannot find 'SHUT_WR' in scope
192 |             return
193 |         }
194 |         _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
    |                                                   `- error: cannot find 'SHUT_WR' in scope
195 |         _ = Darwin.close(fileDescriptor)
196 |         fileDescriptor = -1
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:195:13: error: cannot find 'Darwin' in scope
193 |         }
194 |         _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
195 |         _ = Darwin.close(fileDescriptor)
    |             `- error: cannot find 'Darwin' in scope
196 |         fileDescriptor = -1
197 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:200:31: error: cannot find 'getpeername' in scope
198 |
199 |     func getPeerName() throws -> (String, Int) {
200 |         try getName(function: getpeername)
    |                               `- error: cannot find 'getpeername' in scope
201 |     }
202 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:204:31: error: cannot find 'getsockname' in scope
202 |
203 |     func getSockName() throws -> (String, Int) {
204 |         try getName(function: getsockname)
    |                               `- error: cannot find 'getsockname' in scope
205 |     }
206 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:210:23: error: cannot find 'sockaddr_storage' in scope
208 |         function: (Int32, UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) -> Int32
209 |     ) throws -> (String, Int) {
210 |         var address = sockaddr_storage()
    |                       `- error: cannot find 'sockaddr_storage' in scope
211 |         var size = socklen_t(MemoryLayout<sockaddr_storage>.size)
212 |         return try withUnsafeMutablePointer(to: &address) { pointer in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:211:43: error: cannot find type 'sockaddr_storage' in scope
209 |     ) throws -> (String, Int) {
210 |         var address = sockaddr_storage()
211 |         var size = socklen_t(MemoryLayout<sockaddr_storage>.size)
    |                                           `- error: cannot find type 'sockaddr_storage' in scope
212 |         return try withUnsafeMutablePointer(to: &address) { pointer in
213 |             let result = pointer.withMemoryRebound(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:214:21: error: cannot find 'sockaddr' in scope
212 |         return try withUnsafeMutablePointer(to: &address) { pointer in
213 |             let result = pointer.withMemoryRebound(
214 |                 to: sockaddr.self,
    |                     `- error: cannot find 'sockaddr' in scope
215 |                 capacity: 1
216 |             ) { addressptr in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:225:25: error: cannot find 'sockaddr_in' in scope
223 |             case AF_INET:
224 |                 return try pointer.withMemoryRebound(
225 |                     to: sockaddr_in.self,
    |                         `- error: cannot find 'sockaddr_in' in scope
226 |                     capacity: 1
227 |                 ) { addressptr in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:231:37: error: cannot find 'AF_INET' in scope
229 |                         try structToAddress(
230 |                             addrStruct: addressptr.pointee.sin_addr,
231 |                             family: AF_INET,
    |                                     `- error: cannot find 'AF_INET' in scope
232 |                             addressLength: INET_ADDRSTRLEN
233 |                         ),
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:232:44: error: cannot find 'INET_ADDRSTRLEN' in scope
230 |                             addrStruct: addressptr.pointee.sin_addr,
231 |                             family: AF_INET,
232 |                             addressLength: INET_ADDRSTRLEN
    |                                            `- error: cannot find 'INET_ADDRSTRLEN' in scope
233 |                         ),
234 |                         Int(UInt16(bigEndian: addressptr.pointee.sin_port))
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:239:25: error: cannot find 'sockaddr_in6' in scope
237 |             case AF_INET6:
238 |                 return try pointer.withMemoryRebound(
239 |                     to: sockaddr_in6.self,
    |                         `- error: cannot find 'sockaddr_in6' in scope
240 |                     capacity: 1
241 |                 ) { addressptr in
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:245:37: error: cannot find 'AF_INET6' in scope
243 |                         try structToAddress(
244 |                             addrStruct: addressptr.pointee.sin6_addr,
245 |                             family: AF_INET6,
    |                                     `- error: cannot find 'AF_INET6' in scope
246 |                             addressLength: INET6_ADDRSTRLEN
247 |                         ),
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:246:44: error: cannot find 'INET6_ADDRSTRLEN' in scope
244 |                             addrStruct: addressptr.pointee.sin6_addr,
245 |                             family: AF_INET6,
246 |                             addressLength: INET6_ADDRSTRLEN
    |                                            `- error: cannot find 'INET6_ADDRSTRLEN' in scope
247 |                         ),
248 |                         Int(UInt16(bigEndian: addressptr.pointee.sin6_port))
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:213:34: error: generic parameter 'T' could not be inferred
211 |         var size = socklen_t(MemoryLayout<sockaddr_storage>.size)
212 |         return try withUnsafeMutablePointer(to: &address) { pointer in
213 |             let result = pointer.withMemoryRebound(
    |                                  `- error: generic parameter 'T' could not be inferred
214 |                 to: sockaddr.self,
215 |                 capacity: 1
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:260:21: error: cannot find type 'in6_addr' in scope
258 |     private func ipAddressToStruct(address: String) throws -> in6_addr {
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
    |                     `- error: cannot find type 'in6_addr' in scope
261 |         guard address.withCString({ inet_pton(AF_INET6, $0, &binary) >= 0 }) else {
262 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:261:37: error: cannot find 'inet_pton' in scope
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
261 |         guard address.withCString({ inet_pton(AF_INET6, $0, &binary) >= 0 }) else {
    |                                     `- error: cannot find 'inet_pton' in scope
262 |             throw OSError.lastIOError()
263 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:261:47: error: cannot find 'AF_INET6' in scope
259 |         // convert interface string into IPv6 address struct
260 |         var binary: in6_addr = in6_addr()
261 |         guard address.withCString({ inet_pton(AF_INET6, $0, &binary) >= 0 }) else {
    |                                               `- error: cannot find 'AF_INET6' in scope
262 |             throw OSError.lastIOError()
263 |         }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:276:13: error: cannot find 'inet_ntop' in scope
274 |         var address = [CChar](repeating: 0, count: Int(addressLength))
275 |         let converted = withUnsafePointer(to: &addrStruct) { structPointer in
276 |             inet_ntop(family, structPointer, &address, socklen_t(addressLength)) != nil
    |             `- error: cannot find 'inet_ntop' in scope
277 |         }
278 |         guard converted else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/Transport.swift:161:49: error: cannot find 'errno' in scope
159 |                 return
160 |             }
161 |             fatalError("Failed to read, errno=\(errno), message=\(lastErrorDescription())")
    |                                                 `- error: cannot find 'errno' in scope
162 |         } catch {
163 |             fatalError("Failed to read")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[21/30] Compiling Embassy SWSGIUtils.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:52:13: error: cannot find 'Darwin' in scope
 50 |         var pipeFds = [Int32](repeating: 0, count: 2)
 51 |         let pipeResult = pipeFds.withUnsafeMutableBufferPointer {
 52 |             Darwin.pipe($0.baseAddress)
    |             `- error: cannot find 'Darwin' in scope
 53 |         }
 54 |         guard pipeResult >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:74:21: error: cannot find 'Darwin' in scope
 72 |             while readSize > 0 {
 73 |                 readSize = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
 74 |                     Darwin.read(localPipeReceiver, buffer.baseAddress, buffer.count)
    |                     `- error: cannot find 'Darwin' in scope
 75 |                 }
 76 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:83:13: error: cannot find 'Darwin' in scope
 81 |         stop()
 82 |         removeReader(pipeReceiver)
 83 |         _ = Darwin.close(pipeSender)
    |             `- error: cannot find 'Darwin' in scope
 84 |         _ = Darwin.close(pipeReceiver)
 85 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:84:13: error: cannot find 'Darwin' in scope
 82 |         removeReader(pipeReceiver)
 83 |         _ = Darwin.close(pipeSender)
 84 |         _ = Darwin.close(pipeReceiver)
    |             `- error: cannot find 'Darwin' in scope
 85 |     }
 86 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:190:78: error: cannot find 'NSEC_PER_SEC' in scope
188 |         let now = DispatchTime.now().uptimeNanoseconds
189 |         guard deadline.uptimeNanoseconds > now else { return 0 }
190 |         return TimeInterval(deadline.uptimeNanoseconds - now) / TimeInterval(NSEC_PER_SEC)
    |                                                                              `- error: cannot find 'NSEC_PER_SEC' in scope
191 |     }
192 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:196:18: error: cannot find 'write' in scope
194 |     private func interruptSelector() {
195 |         let byte = [UInt8](repeating: 0, count: 1)
196 |         let rc = write(pipeSender, byte, byte.count)
    |                  `- error: cannot find 'write' in scope
197 |         assert(
198 |             rc >= 0,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:199:52: error: cannot find 'errno' in scope
197 |         assert(
198 |             rc >= 0,
199 |             "Failed to interrupt selector, errno=\(errno), message=\(lastErrorDescription())"
    |                                                    `- error: cannot find 'errno' in scope
200 |         )
201 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:218:58: error: cannot find 'errno' in scope
216 |             assert(number == EINTR, "Failed to call selector, errno=\(number), message=\(message)")
217 |         } catch {
218 |             fatalError("Failed to call selector, errno=\(errno), message=\(lastErrorDescription())")
    |                                                          `- error: cannot find 'errno' in scope
219 |         }
220 |         for (key, ioEvents) in events {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[22/30] Compiling Embassy Selector.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:52:13: error: cannot find 'Darwin' in scope
 50 |         var pipeFds = [Int32](repeating: 0, count: 2)
 51 |         let pipeResult = pipeFds.withUnsafeMutableBufferPointer {
 52 |             Darwin.pipe($0.baseAddress)
    |             `- error: cannot find 'Darwin' in scope
 53 |         }
 54 |         guard pipeResult >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:74:21: error: cannot find 'Darwin' in scope
 72 |             while readSize > 0 {
 73 |                 readSize = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
 74 |                     Darwin.read(localPipeReceiver, buffer.baseAddress, buffer.count)
    |                     `- error: cannot find 'Darwin' in scope
 75 |                 }
 76 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:83:13: error: cannot find 'Darwin' in scope
 81 |         stop()
 82 |         removeReader(pipeReceiver)
 83 |         _ = Darwin.close(pipeSender)
    |             `- error: cannot find 'Darwin' in scope
 84 |         _ = Darwin.close(pipeReceiver)
 85 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:84:13: error: cannot find 'Darwin' in scope
 82 |         removeReader(pipeReceiver)
 83 |         _ = Darwin.close(pipeSender)
 84 |         _ = Darwin.close(pipeReceiver)
    |             `- error: cannot find 'Darwin' in scope
 85 |     }
 86 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:190:78: error: cannot find 'NSEC_PER_SEC' in scope
188 |         let now = DispatchTime.now().uptimeNanoseconds
189 |         guard deadline.uptimeNanoseconds > now else { return 0 }
190 |         return TimeInterval(deadline.uptimeNanoseconds - now) / TimeInterval(NSEC_PER_SEC)
    |                                                                              `- error: cannot find 'NSEC_PER_SEC' in scope
191 |     }
192 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:196:18: error: cannot find 'write' in scope
194 |     private func interruptSelector() {
195 |         let byte = [UInt8](repeating: 0, count: 1)
196 |         let rc = write(pipeSender, byte, byte.count)
    |                  `- error: cannot find 'write' in scope
197 |         assert(
198 |             rc >= 0,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:199:52: error: cannot find 'errno' in scope
197 |         assert(
198 |             rc >= 0,
199 |             "Failed to interrupt selector, errno=\(errno), message=\(lastErrorDescription())"
    |                                                    `- error: cannot find 'errno' in scope
200 |         )
201 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:218:58: error: cannot find 'errno' in scope
216 |             assert(number == EINTR, "Failed to call selector, errno=\(number), message=\(message)")
217 |         } catch {
218 |             fatalError("Failed to call selector, errno=\(errno), message=\(lastErrorDescription())")
    |                                                          `- error: cannot find 'errno' in scope
219 |         }
220 |         for (key, ioEvents) in events {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[23/30] Compiling Embassy SelectorEventLoop.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:52:13: error: cannot find 'Darwin' in scope
 50 |         var pipeFds = [Int32](repeating: 0, count: 2)
 51 |         let pipeResult = pipeFds.withUnsafeMutableBufferPointer {
 52 |             Darwin.pipe($0.baseAddress)
    |             `- error: cannot find 'Darwin' in scope
 53 |         }
 54 |         guard pipeResult >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:74:21: error: cannot find 'Darwin' in scope
 72 |             while readSize > 0 {
 73 |                 readSize = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
 74 |                     Darwin.read(localPipeReceiver, buffer.baseAddress, buffer.count)
    |                     `- error: cannot find 'Darwin' in scope
 75 |                 }
 76 |             }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:83:13: error: cannot find 'Darwin' in scope
 81 |         stop()
 82 |         removeReader(pipeReceiver)
 83 |         _ = Darwin.close(pipeSender)
    |             `- error: cannot find 'Darwin' in scope
 84 |         _ = Darwin.close(pipeReceiver)
 85 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:84:13: error: cannot find 'Darwin' in scope
 82 |         removeReader(pipeReceiver)
 83 |         _ = Darwin.close(pipeSender)
 84 |         _ = Darwin.close(pipeReceiver)
    |             `- error: cannot find 'Darwin' in scope
 85 |     }
 86 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:190:78: error: cannot find 'NSEC_PER_SEC' in scope
188 |         let now = DispatchTime.now().uptimeNanoseconds
189 |         guard deadline.uptimeNanoseconds > now else { return 0 }
190 |         return TimeInterval(deadline.uptimeNanoseconds - now) / TimeInterval(NSEC_PER_SEC)
    |                                                                              `- error: cannot find 'NSEC_PER_SEC' in scope
191 |     }
192 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:196:18: error: cannot find 'write' in scope
194 |     private func interruptSelector() {
195 |         let byte = [UInt8](repeating: 0, count: 1)
196 |         let rc = write(pipeSender, byte, byte.count)
    |                  `- error: cannot find 'write' in scope
197 |         assert(
198 |             rc >= 0,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:199:52: error: cannot find 'errno' in scope
197 |         assert(
198 |             rc >= 0,
199 |             "Failed to interrupt selector, errno=\(errno), message=\(lastErrorDescription())"
    |                                                    `- error: cannot find 'errno' in scope
200 |         )
201 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:218:58: error: cannot find 'errno' in scope
216 |             assert(number == EINTR, "Failed to call selector, errno=\(number), message=\(message)")
217 |         } catch {
218 |             fatalError("Failed to call selector, errno=\(errno), message=\(lastErrorDescription())")
    |                                                          `- error: cannot find 'errno' in scope
219 |         }
220 |         for (key, ioEvents) in events {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[24/30] Compiling Embassy HTTPConnection.swift
[25/30] Compiling Embassy HTTPHeaderParser.swift
[26/30] Compiling Embassy HTTPRequest.swift
[27/30] Compiling Embassy IOUtils.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:16:21: error: cannot find 'fcntl' in scope
14 |     ///  - Returns: is the file in blocking mode or not
15 |     static func getBlocking(fileDescriptor: Int32) -> Bool {
16 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                     `- error: cannot find 'fcntl' in scope
17 |         return flags & O_NONBLOCK == 0
18 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:16:43: error: cannot find 'F_GETFL' in scope
14 |     ///  - Returns: is the file in blocking mode or not
15 |     static func getBlocking(fileDescriptor: Int32) -> Bool {
16 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                                           `- error: cannot find 'F_GETFL' in scope
17 |         return flags & O_NONBLOCK == 0
18 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:17:24: error: cannot find 'O_NONBLOCK' in scope
15 |     static func getBlocking(fileDescriptor: Int32) -> Bool {
16 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
17 |         return flags & O_NONBLOCK == 0
   |                        `- error: cannot find 'O_NONBLOCK' in scope
18 |     }
19 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:24:21: error: cannot find 'fcntl' in scope
22 |     ///  - Parameter blocking: enable blocking mode or not
23 |     static func setBlocking(fileDescriptor: Int32, blocking: Bool) {
24 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                     `- error: cannot find 'fcntl' in scope
25 |         let newFlags: Int32
26 |         if blocking {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:24:43: error: cannot find 'F_GETFL' in scope
22 |     ///  - Parameter blocking: enable blocking mode or not
23 |     static func setBlocking(fileDescriptor: Int32, blocking: Bool) {
24 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                                           `- error: cannot find 'F_GETFL' in scope
25 |         let newFlags: Int32
26 |         if blocking {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:27:33: error: cannot find 'O_NONBLOCK' in scope
25 |         let newFlags: Int32
26 |         if blocking {
27 |             newFlags = flags & ~O_NONBLOCK
   |                                 `- error: cannot find 'O_NONBLOCK' in scope
28 |         } else {
29 |             newFlags = flags | O_NONBLOCK
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:29:32: error: cannot find 'O_NONBLOCK' in scope
27 |             newFlags = flags & ~O_NONBLOCK
28 |         } else {
29 |             newFlags = flags | O_NONBLOCK
   |                                `- error: cannot find 'O_NONBLOCK' in scope
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:29:30: error: cannot assign value of type 'UInt8' to type 'Int32'
27 |             newFlags = flags & ~O_NONBLOCK
28 |         } else {
29 |             newFlags = flags | O_NONBLOCK
   |                              `- error: cannot assign value of type 'UInt8' to type 'Int32'
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:31:13: error: cannot find 'fcntl' in scope
29 |             newFlags = flags | O_NONBLOCK
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
   |             `- error: cannot find 'fcntl' in scope
32 |     }
33 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:31:35: error: cannot find 'F_SETFL' in scope
29 |             newFlags = flags | O_NONBLOCK
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
   |                                   `- error: cannot find 'F_SETFL' in scope
32 |     }
33 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:24:31: error: cannot find type 'Darwin' in scope
 22 |     // reusable buffer for kevent() to write ready events into; allocated once
 23 |     // rather than on every select() call
 24 |     private var readyEvents: [Darwin.kevent]
    |                               `- error: cannot find type 'Darwin' in scope
 25 |
 26 |     public init(selectMaximumEvent: Int = 1024) throws {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:91:89: error: cannot find type 'Darwin' in scope
 89 |
 90 |     /// One kevent change per event in `events`, all carrying `flags`
 91 |     private func changes(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) -> [Darwin.kevent] {
    |                                                                                         `- error: cannot find type 'Darwin' in scope
 92 |         events.elements.map { event in
 93 |             Darwin.kevent(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:105:36: error: cannot find type 'Darwin' in scope
103 |
104 |     /// Submit a batch of kevent changes in one syscall
105 |     private func apply(_ changes: [Darwin.kevent]) throws {
    |                                    `- error: cannot find type 'Darwin' in scope
106 |         guard !changes.isEmpty else {
107 |             return
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:27:18: error: cannot find 'Darwin' in scope
 25 |
 26 |     public init(selectMaximumEvent: Int = 1024) throws {
 27 |         kqueue = Darwin.kqueue()
    |                  `- error: cannot find 'Darwin' in scope
 28 |         guard kqueue >= 0 else {
 29 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:24: error: cannot find 'Darwin' in scope
 30 |         }
 31 |         self.selectMaximumEvent = selectMaximumEvent
 32 |         readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
    |                        `- error: cannot find 'Darwin' in scope
 33 |     }
 34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:50: error: cannot find 'Darwin' in scope
 30 |         }
 31 |         self.selectMaximumEvent = selectMaximumEvent
 32 |         readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
    |                                                  `- error: cannot find 'Darwin' in scope
 33 |     }
 34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:23: error: cannot call value of non-function type '[Any]'
 30 |         }
 31 |         self.selectMaximumEvent = selectMaximumEvent
 32 |         readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
    |                       `- error: cannot call value of non-function type '[Any]'
 33 |     }
 34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:51:54: error: cannot find 'EV_ADD' in scope
 49 |         let key = SelectorKey(fileDescriptor: fileDescriptor, events: events, data: data)
 50 |         fileDescriptorMap[fileDescriptor] = key
 51 |         try apply(events, to: fileDescriptor, flags: EV_ADD)
    |                                                      `- error: cannot find 'EV_ADD' in scope
 52 |         return key
 53 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:62:58: error: cannot find 'EV_DELETE' in scope
 60 |         }
 61 |         fileDescriptorMap.removeValue(forKey: fileDescriptor)
 62 |         try apply(key.events, to: fileDescriptor, flags: EV_DELETE)
    |                                                          `- error: cannot find 'EV_DELETE' in scope
 63 |         return key
 64 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:80: error: cannot find 'EV_ADD' in scope
 77 |         // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
    |                                                                                `- error: cannot find 'EV_ADD' in scope
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
 81 |         )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:86: error: cannot find 'EV_DELETE' in scope
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
    |                                                                                      `- error: cannot find 'EV_DELETE' in scope
 81 |         )
 82 |         return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:13: error: missing arguments for parameters 'to', 'flags' in call
 77 |         // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
    |             `- error: missing arguments for parameters 'to', 'flags' in call
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
 81 |         )
    :
 84 |
 85 |     /// Submit one kevent change per event in `events` for the file descriptor
 86 |     private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
    |                  `- note: 'apply(_:to:flags:)' declared here
 87 |         try apply(changes(events, to: fileDescriptor, flags: flags))
 88 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:17: error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
    |                 `- error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
 81 |         )
 82 |         return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:87:19: error: missing arguments for parameters 'to', 'flags' in call
 84 |
 85 |     /// Submit one kevent change per event in `events` for the file descriptor
 86 |     private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
    |                  `- note: 'apply(_:to:flags:)' declared here
 87 |         try apply(changes(events, to: fileDescriptor, flags: flags))
    |                   `- error: missing arguments for parameters 'to', 'flags' in call
 88 |     }
 89 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:13: error: cannot find 'kevent' in scope
109 |         var changes = changes
110 |         let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 |             kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
    |             `- error: cannot find 'kevent' in scope
112 |         }
113 |         guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:71: error: 'nil' requires a contextual type
109 |         var changes = changes
110 |         let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 |             kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
    |                                                                       `- error: 'nil' requires a contextual type
112 |         }
113 |         guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:79: error: 'nil' requires a contextual type
109 |         var changes = changes
110 |         let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 |             kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
    |                                                                               `- error: 'nil' requires a contextual type
112 |         }
113 |         guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:119:13: error: cannot find 'Darwin' in scope
117 |
118 |     public func close() {
119 |         _ = Darwin.close(kqueue)
    |             `- error: cannot find 'Darwin' in scope
120 |     }
121 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:127:65: error: cannot find 'NSEC_PER_SEC' in scope
125 |             if timeout > 0 {
126 |                 var integer = 0.0
127 |                 let nsec = Int(modf(timeout, &integer) * Double(NSEC_PER_SEC))
    |                                                                 `- error: cannot find 'NSEC_PER_SEC' in scope
128 |                 timeSpec = timespec(tv_sec: Int(timeout), tv_nsec: nsec)
129 |             } else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:136:24: error: cannot find 'kevent' in scope
134 |         let eventCount: Int32 = readyEvents.withUnsafeMutableBufferPointer { pointer in
135 |             return withUnsafeOptionalPointer(to: &timeSpec) { timeSpecPointer in
136 |                 return kevent(
    |                        `- error: cannot find 'kevent' in scope
137 |                     kqueue,
138 |                     nil,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:138:21: error: 'nil' requires a contextual type
136 |                 return kevent(
137 |                     kqueue,
138 |                     nil,
    |                     `- error: 'nil' requires a contextual type
139 |                     0,
140 |                     pointer.baseAddress,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:160:18: error: cannot find 'EVFILT_READ' in scope
158 |             let ioEvent: IOEvent
159 |             switch Int32(event.filter) {
160 |             case EVFILT_READ:
    |                  `- error: cannot find 'EVFILT_READ' in scope
161 |                 ioEvent = .read
162 |             case EVFILT_WRITE:
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:162:18: error: cannot find 'EVFILT_WRITE' in scope
160 |             case EVFILT_READ:
161 |                 ioEvent = .read
162 |             case EVFILT_WRITE:
    |                  `- error: cannot find 'EVFILT_WRITE' in scope
163 |                 ioEvent = .write
164 |             default:
[28/30] Compiling Embassy KqueueSelector.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:16:21: error: cannot find 'fcntl' in scope
14 |     ///  - Returns: is the file in blocking mode or not
15 |     static func getBlocking(fileDescriptor: Int32) -> Bool {
16 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                     `- error: cannot find 'fcntl' in scope
17 |         return flags & O_NONBLOCK == 0
18 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:16:43: error: cannot find 'F_GETFL' in scope
14 |     ///  - Returns: is the file in blocking mode or not
15 |     static func getBlocking(fileDescriptor: Int32) -> Bool {
16 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                                           `- error: cannot find 'F_GETFL' in scope
17 |         return flags & O_NONBLOCK == 0
18 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:17:24: error: cannot find 'O_NONBLOCK' in scope
15 |     static func getBlocking(fileDescriptor: Int32) -> Bool {
16 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
17 |         return flags & O_NONBLOCK == 0
   |                        `- error: cannot find 'O_NONBLOCK' in scope
18 |     }
19 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:24:21: error: cannot find 'fcntl' in scope
22 |     ///  - Parameter blocking: enable blocking mode or not
23 |     static func setBlocking(fileDescriptor: Int32, blocking: Bool) {
24 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                     `- error: cannot find 'fcntl' in scope
25 |         let newFlags: Int32
26 |         if blocking {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:24:43: error: cannot find 'F_GETFL' in scope
22 |     ///  - Parameter blocking: enable blocking mode or not
23 |     static func setBlocking(fileDescriptor: Int32, blocking: Bool) {
24 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                                           `- error: cannot find 'F_GETFL' in scope
25 |         let newFlags: Int32
26 |         if blocking {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:27:33: error: cannot find 'O_NONBLOCK' in scope
25 |         let newFlags: Int32
26 |         if blocking {
27 |             newFlags = flags & ~O_NONBLOCK
   |                                 `- error: cannot find 'O_NONBLOCK' in scope
28 |         } else {
29 |             newFlags = flags | O_NONBLOCK
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:29:32: error: cannot find 'O_NONBLOCK' in scope
27 |             newFlags = flags & ~O_NONBLOCK
28 |         } else {
29 |             newFlags = flags | O_NONBLOCK
   |                                `- error: cannot find 'O_NONBLOCK' in scope
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:29:30: error: cannot assign value of type 'UInt8' to type 'Int32'
27 |             newFlags = flags & ~O_NONBLOCK
28 |         } else {
29 |             newFlags = flags | O_NONBLOCK
   |                              `- error: cannot assign value of type 'UInt8' to type 'Int32'
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:31:13: error: cannot find 'fcntl' in scope
29 |             newFlags = flags | O_NONBLOCK
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
   |             `- error: cannot find 'fcntl' in scope
32 |     }
33 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:31:35: error: cannot find 'F_SETFL' in scope
29 |             newFlags = flags | O_NONBLOCK
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
   |                                   `- error: cannot find 'F_SETFL' in scope
32 |     }
33 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:24:31: error: cannot find type 'Darwin' in scope
 22 |     // reusable buffer for kevent() to write ready events into; allocated once
 23 |     // rather than on every select() call
 24 |     private var readyEvents: [Darwin.kevent]
    |                               `- error: cannot find type 'Darwin' in scope
 25 |
 26 |     public init(selectMaximumEvent: Int = 1024) throws {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:91:89: error: cannot find type 'Darwin' in scope
 89 |
 90 |     /// One kevent change per event in `events`, all carrying `flags`
 91 |     private func changes(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) -> [Darwin.kevent] {
    |                                                                                         `- error: cannot find type 'Darwin' in scope
 92 |         events.elements.map { event in
 93 |             Darwin.kevent(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:105:36: error: cannot find type 'Darwin' in scope
103 |
104 |     /// Submit a batch of kevent changes in one syscall
105 |     private func apply(_ changes: [Darwin.kevent]) throws {
    |                                    `- error: cannot find type 'Darwin' in scope
106 |         guard !changes.isEmpty else {
107 |             return
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:27:18: error: cannot find 'Darwin' in scope
 25 |
 26 |     public init(selectMaximumEvent: Int = 1024) throws {
 27 |         kqueue = Darwin.kqueue()
    |                  `- error: cannot find 'Darwin' in scope
 28 |         guard kqueue >= 0 else {
 29 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:24: error: cannot find 'Darwin' in scope
 30 |         }
 31 |         self.selectMaximumEvent = selectMaximumEvent
 32 |         readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
    |                        `- error: cannot find 'Darwin' in scope
 33 |     }
 34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:50: error: cannot find 'Darwin' in scope
 30 |         }
 31 |         self.selectMaximumEvent = selectMaximumEvent
 32 |         readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
    |                                                  `- error: cannot find 'Darwin' in scope
 33 |     }
 34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:23: error: cannot call value of non-function type '[Any]'
 30 |         }
 31 |         self.selectMaximumEvent = selectMaximumEvent
 32 |         readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
    |                       `- error: cannot call value of non-function type '[Any]'
 33 |     }
 34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:51:54: error: cannot find 'EV_ADD' in scope
 49 |         let key = SelectorKey(fileDescriptor: fileDescriptor, events: events, data: data)
 50 |         fileDescriptorMap[fileDescriptor] = key
 51 |         try apply(events, to: fileDescriptor, flags: EV_ADD)
    |                                                      `- error: cannot find 'EV_ADD' in scope
 52 |         return key
 53 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:62:58: error: cannot find 'EV_DELETE' in scope
 60 |         }
 61 |         fileDescriptorMap.removeValue(forKey: fileDescriptor)
 62 |         try apply(key.events, to: fileDescriptor, flags: EV_DELETE)
    |                                                          `- error: cannot find 'EV_DELETE' in scope
 63 |         return key
 64 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:80: error: cannot find 'EV_ADD' in scope
 77 |         // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
    |                                                                                `- error: cannot find 'EV_ADD' in scope
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
 81 |         )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:86: error: cannot find 'EV_DELETE' in scope
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
    |                                                                                      `- error: cannot find 'EV_DELETE' in scope
 81 |         )
 82 |         return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:13: error: missing arguments for parameters 'to', 'flags' in call
 77 |         // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
    |             `- error: missing arguments for parameters 'to', 'flags' in call
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
 81 |         )
    :
 84 |
 85 |     /// Submit one kevent change per event in `events` for the file descriptor
 86 |     private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
    |                  `- note: 'apply(_:to:flags:)' declared here
 87 |         try apply(changes(events, to: fileDescriptor, flags: flags))
 88 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:17: error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
    |                 `- error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
 81 |         )
 82 |         return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:87:19: error: missing arguments for parameters 'to', 'flags' in call
 84 |
 85 |     /// Submit one kevent change per event in `events` for the file descriptor
 86 |     private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
    |                  `- note: 'apply(_:to:flags:)' declared here
 87 |         try apply(changes(events, to: fileDescriptor, flags: flags))
    |                   `- error: missing arguments for parameters 'to', 'flags' in call
 88 |     }
 89 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:13: error: cannot find 'kevent' in scope
109 |         var changes = changes
110 |         let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 |             kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
    |             `- error: cannot find 'kevent' in scope
112 |         }
113 |         guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:71: error: 'nil' requires a contextual type
109 |         var changes = changes
110 |         let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 |             kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
    |                                                                       `- error: 'nil' requires a contextual type
112 |         }
113 |         guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:79: error: 'nil' requires a contextual type
109 |         var changes = changes
110 |         let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 |             kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
    |                                                                               `- error: 'nil' requires a contextual type
112 |         }
113 |         guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:119:13: error: cannot find 'Darwin' in scope
117 |
118 |     public func close() {
119 |         _ = Darwin.close(kqueue)
    |             `- error: cannot find 'Darwin' in scope
120 |     }
121 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:127:65: error: cannot find 'NSEC_PER_SEC' in scope
125 |             if timeout > 0 {
126 |                 var integer = 0.0
127 |                 let nsec = Int(modf(timeout, &integer) * Double(NSEC_PER_SEC))
    |                                                                 `- error: cannot find 'NSEC_PER_SEC' in scope
128 |                 timeSpec = timespec(tv_sec: Int(timeout), tv_nsec: nsec)
129 |             } else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:136:24: error: cannot find 'kevent' in scope
134 |         let eventCount: Int32 = readyEvents.withUnsafeMutableBufferPointer { pointer in
135 |             return withUnsafeOptionalPointer(to: &timeSpec) { timeSpecPointer in
136 |                 return kevent(
    |                        `- error: cannot find 'kevent' in scope
137 |                     kqueue,
138 |                     nil,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:138:21: error: 'nil' requires a contextual type
136 |                 return kevent(
137 |                     kqueue,
138 |                     nil,
    |                     `- error: 'nil' requires a contextual type
139 |                     0,
140 |                     pointer.baseAddress,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:160:18: error: cannot find 'EVFILT_READ' in scope
158 |             let ioEvent: IOEvent
159 |             switch Int32(event.filter) {
160 |             case EVFILT_READ:
    |                  `- error: cannot find 'EVFILT_READ' in scope
161 |                 ioEvent = .read
162 |             case EVFILT_WRITE:
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:162:18: error: cannot find 'EVFILT_WRITE' in scope
160 |             case EVFILT_READ:
161 |                 ioEvent = .read
162 |             case EVFILT_WRITE:
    |                  `- error: cannot find 'EVFILT_WRITE' in scope
163 |                 ioEvent = .write
164 |             default:
[29/30] Compiling Embassy DefaultLogFormatter.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:16:21: error: cannot find 'fcntl' in scope
14 |     ///  - Returns: is the file in blocking mode or not
15 |     static func getBlocking(fileDescriptor: Int32) -> Bool {
16 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                     `- error: cannot find 'fcntl' in scope
17 |         return flags & O_NONBLOCK == 0
18 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:16:43: error: cannot find 'F_GETFL' in scope
14 |     ///  - Returns: is the file in blocking mode or not
15 |     static func getBlocking(fileDescriptor: Int32) -> Bool {
16 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                                           `- error: cannot find 'F_GETFL' in scope
17 |         return flags & O_NONBLOCK == 0
18 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:17:24: error: cannot find 'O_NONBLOCK' in scope
15 |     static func getBlocking(fileDescriptor: Int32) -> Bool {
16 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
17 |         return flags & O_NONBLOCK == 0
   |                        `- error: cannot find 'O_NONBLOCK' in scope
18 |     }
19 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:24:21: error: cannot find 'fcntl' in scope
22 |     ///  - Parameter blocking: enable blocking mode or not
23 |     static func setBlocking(fileDescriptor: Int32, blocking: Bool) {
24 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                     `- error: cannot find 'fcntl' in scope
25 |         let newFlags: Int32
26 |         if blocking {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:24:43: error: cannot find 'F_GETFL' in scope
22 |     ///  - Parameter blocking: enable blocking mode or not
23 |     static func setBlocking(fileDescriptor: Int32, blocking: Bool) {
24 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                                           `- error: cannot find 'F_GETFL' in scope
25 |         let newFlags: Int32
26 |         if blocking {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:27:33: error: cannot find 'O_NONBLOCK' in scope
25 |         let newFlags: Int32
26 |         if blocking {
27 |             newFlags = flags & ~O_NONBLOCK
   |                                 `- error: cannot find 'O_NONBLOCK' in scope
28 |         } else {
29 |             newFlags = flags | O_NONBLOCK
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:29:32: error: cannot find 'O_NONBLOCK' in scope
27 |             newFlags = flags & ~O_NONBLOCK
28 |         } else {
29 |             newFlags = flags | O_NONBLOCK
   |                                `- error: cannot find 'O_NONBLOCK' in scope
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:29:30: error: cannot assign value of type 'UInt8' to type 'Int32'
27 |             newFlags = flags & ~O_NONBLOCK
28 |         } else {
29 |             newFlags = flags | O_NONBLOCK
   |                              `- error: cannot assign value of type 'UInt8' to type 'Int32'
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:31:13: error: cannot find 'fcntl' in scope
29 |             newFlags = flags | O_NONBLOCK
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
   |             `- error: cannot find 'fcntl' in scope
32 |     }
33 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:31:35: error: cannot find 'F_SETFL' in scope
29 |             newFlags = flags | O_NONBLOCK
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
   |                                   `- error: cannot find 'F_SETFL' in scope
32 |     }
33 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:24:31: error: cannot find type 'Darwin' in scope
 22 |     // reusable buffer for kevent() to write ready events into; allocated once
 23 |     // rather than on every select() call
 24 |     private var readyEvents: [Darwin.kevent]
    |                               `- error: cannot find type 'Darwin' in scope
 25 |
 26 |     public init(selectMaximumEvent: Int = 1024) throws {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:91:89: error: cannot find type 'Darwin' in scope
 89 |
 90 |     /// One kevent change per event in `events`, all carrying `flags`
 91 |     private func changes(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) -> [Darwin.kevent] {
    |                                                                                         `- error: cannot find type 'Darwin' in scope
 92 |         events.elements.map { event in
 93 |             Darwin.kevent(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:105:36: error: cannot find type 'Darwin' in scope
103 |
104 |     /// Submit a batch of kevent changes in one syscall
105 |     private func apply(_ changes: [Darwin.kevent]) throws {
    |                                    `- error: cannot find type 'Darwin' in scope
106 |         guard !changes.isEmpty else {
107 |             return
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:27:18: error: cannot find 'Darwin' in scope
 25 |
 26 |     public init(selectMaximumEvent: Int = 1024) throws {
 27 |         kqueue = Darwin.kqueue()
    |                  `- error: cannot find 'Darwin' in scope
 28 |         guard kqueue >= 0 else {
 29 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:24: error: cannot find 'Darwin' in scope
 30 |         }
 31 |         self.selectMaximumEvent = selectMaximumEvent
 32 |         readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
    |                        `- error: cannot find 'Darwin' in scope
 33 |     }
 34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:50: error: cannot find 'Darwin' in scope
 30 |         }
 31 |         self.selectMaximumEvent = selectMaximumEvent
 32 |         readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
    |                                                  `- error: cannot find 'Darwin' in scope
 33 |     }
 34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:23: error: cannot call value of non-function type '[Any]'
 30 |         }
 31 |         self.selectMaximumEvent = selectMaximumEvent
 32 |         readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
    |                       `- error: cannot call value of non-function type '[Any]'
 33 |     }
 34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:51:54: error: cannot find 'EV_ADD' in scope
 49 |         let key = SelectorKey(fileDescriptor: fileDescriptor, events: events, data: data)
 50 |         fileDescriptorMap[fileDescriptor] = key
 51 |         try apply(events, to: fileDescriptor, flags: EV_ADD)
    |                                                      `- error: cannot find 'EV_ADD' in scope
 52 |         return key
 53 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:62:58: error: cannot find 'EV_DELETE' in scope
 60 |         }
 61 |         fileDescriptorMap.removeValue(forKey: fileDescriptor)
 62 |         try apply(key.events, to: fileDescriptor, flags: EV_DELETE)
    |                                                          `- error: cannot find 'EV_DELETE' in scope
 63 |         return key
 64 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:80: error: cannot find 'EV_ADD' in scope
 77 |         // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
    |                                                                                `- error: cannot find 'EV_ADD' in scope
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
 81 |         )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:86: error: cannot find 'EV_DELETE' in scope
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
    |                                                                                      `- error: cannot find 'EV_DELETE' in scope
 81 |         )
 82 |         return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:13: error: missing arguments for parameters 'to', 'flags' in call
 77 |         // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
    |             `- error: missing arguments for parameters 'to', 'flags' in call
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
 81 |         )
    :
 84 |
 85 |     /// Submit one kevent change per event in `events` for the file descriptor
 86 |     private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
    |                  `- note: 'apply(_:to:flags:)' declared here
 87 |         try apply(changes(events, to: fileDescriptor, flags: flags))
 88 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:17: error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
    |                 `- error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
 81 |         )
 82 |         return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:87:19: error: missing arguments for parameters 'to', 'flags' in call
 84 |
 85 |     /// Submit one kevent change per event in `events` for the file descriptor
 86 |     private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
    |                  `- note: 'apply(_:to:flags:)' declared here
 87 |         try apply(changes(events, to: fileDescriptor, flags: flags))
    |                   `- error: missing arguments for parameters 'to', 'flags' in call
 88 |     }
 89 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:13: error: cannot find 'kevent' in scope
109 |         var changes = changes
110 |         let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 |             kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
    |             `- error: cannot find 'kevent' in scope
112 |         }
113 |         guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:71: error: 'nil' requires a contextual type
109 |         var changes = changes
110 |         let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 |             kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
    |                                                                       `- error: 'nil' requires a contextual type
112 |         }
113 |         guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:79: error: 'nil' requires a contextual type
109 |         var changes = changes
110 |         let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 |             kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
    |                                                                               `- error: 'nil' requires a contextual type
112 |         }
113 |         guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:119:13: error: cannot find 'Darwin' in scope
117 |
118 |     public func close() {
119 |         _ = Darwin.close(kqueue)
    |             `- error: cannot find 'Darwin' in scope
120 |     }
121 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:127:65: error: cannot find 'NSEC_PER_SEC' in scope
125 |             if timeout > 0 {
126 |                 var integer = 0.0
127 |                 let nsec = Int(modf(timeout, &integer) * Double(NSEC_PER_SEC))
    |                                                                 `- error: cannot find 'NSEC_PER_SEC' in scope
128 |                 timeSpec = timespec(tv_sec: Int(timeout), tv_nsec: nsec)
129 |             } else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:136:24: error: cannot find 'kevent' in scope
134 |         let eventCount: Int32 = readyEvents.withUnsafeMutableBufferPointer { pointer in
135 |             return withUnsafeOptionalPointer(to: &timeSpec) { timeSpecPointer in
136 |                 return kevent(
    |                        `- error: cannot find 'kevent' in scope
137 |                     kqueue,
138 |                     nil,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:138:21: error: 'nil' requires a contextual type
136 |                 return kevent(
137 |                     kqueue,
138 |                     nil,
    |                     `- error: 'nil' requires a contextual type
139 |                     0,
140 |                     pointer.baseAddress,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:160:18: error: cannot find 'EVFILT_READ' in scope
158 |             let ioEvent: IOEvent
159 |             switch Int32(event.filter) {
160 |             case EVFILT_READ:
    |                  `- error: cannot find 'EVFILT_READ' in scope
161 |                 ioEvent = .read
162 |             case EVFILT_WRITE:
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:162:18: error: cannot find 'EVFILT_WRITE' in scope
160 |             case EVFILT_READ:
161 |                 ioEvent = .read
162 |             case EVFILT_WRITE:
    |                  `- error: cannot find 'EVFILT_WRITE' in scope
163 |                 ioEvent = .write
164 |             default:
[30/30] Compiling Embassy DefaultLogger.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:16:21: error: cannot find 'fcntl' in scope
14 |     ///  - Returns: is the file in blocking mode or not
15 |     static func getBlocking(fileDescriptor: Int32) -> Bool {
16 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                     `- error: cannot find 'fcntl' in scope
17 |         return flags & O_NONBLOCK == 0
18 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:16:43: error: cannot find 'F_GETFL' in scope
14 |     ///  - Returns: is the file in blocking mode or not
15 |     static func getBlocking(fileDescriptor: Int32) -> Bool {
16 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                                           `- error: cannot find 'F_GETFL' in scope
17 |         return flags & O_NONBLOCK == 0
18 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:17:24: error: cannot find 'O_NONBLOCK' in scope
15 |     static func getBlocking(fileDescriptor: Int32) -> Bool {
16 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
17 |         return flags & O_NONBLOCK == 0
   |                        `- error: cannot find 'O_NONBLOCK' in scope
18 |     }
19 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:24:21: error: cannot find 'fcntl' in scope
22 |     ///  - Parameter blocking: enable blocking mode or not
23 |     static func setBlocking(fileDescriptor: Int32, blocking: Bool) {
24 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                     `- error: cannot find 'fcntl' in scope
25 |         let newFlags: Int32
26 |         if blocking {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:24:43: error: cannot find 'F_GETFL' in scope
22 |     ///  - Parameter blocking: enable blocking mode or not
23 |     static func setBlocking(fileDescriptor: Int32, blocking: Bool) {
24 |         let flags = fcntl(fileDescriptor, F_GETFL, 0)
   |                                           `- error: cannot find 'F_GETFL' in scope
25 |         let newFlags: Int32
26 |         if blocking {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:27:33: error: cannot find 'O_NONBLOCK' in scope
25 |         let newFlags: Int32
26 |         if blocking {
27 |             newFlags = flags & ~O_NONBLOCK
   |                                 `- error: cannot find 'O_NONBLOCK' in scope
28 |         } else {
29 |             newFlags = flags | O_NONBLOCK
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:29:32: error: cannot find 'O_NONBLOCK' in scope
27 |             newFlags = flags & ~O_NONBLOCK
28 |         } else {
29 |             newFlags = flags | O_NONBLOCK
   |                                `- error: cannot find 'O_NONBLOCK' in scope
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:29:30: error: cannot assign value of type 'UInt8' to type 'Int32'
27 |             newFlags = flags & ~O_NONBLOCK
28 |         } else {
29 |             newFlags = flags | O_NONBLOCK
   |                              `- error: cannot assign value of type 'UInt8' to type 'Int32'
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:31:13: error: cannot find 'fcntl' in scope
29 |             newFlags = flags | O_NONBLOCK
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
   |             `- error: cannot find 'fcntl' in scope
32 |     }
33 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/IOUtils.swift:31:35: error: cannot find 'F_SETFL' in scope
29 |             newFlags = flags | O_NONBLOCK
30 |         }
31 |         _ = fcntl(fileDescriptor, F_SETFL, newFlags)
   |                                   `- error: cannot find 'F_SETFL' in scope
32 |     }
33 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:24:31: error: cannot find type 'Darwin' in scope
 22 |     // reusable buffer for kevent() to write ready events into; allocated once
 23 |     // rather than on every select() call
 24 |     private var readyEvents: [Darwin.kevent]
    |                               `- error: cannot find type 'Darwin' in scope
 25 |
 26 |     public init(selectMaximumEvent: Int = 1024) throws {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:91:89: error: cannot find type 'Darwin' in scope
 89 |
 90 |     /// One kevent change per event in `events`, all carrying `flags`
 91 |     private func changes(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) -> [Darwin.kevent] {
    |                                                                                         `- error: cannot find type 'Darwin' in scope
 92 |         events.elements.map { event in
 93 |             Darwin.kevent(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:105:36: error: cannot find type 'Darwin' in scope
103 |
104 |     /// Submit a batch of kevent changes in one syscall
105 |     private func apply(_ changes: [Darwin.kevent]) throws {
    |                                    `- error: cannot find type 'Darwin' in scope
106 |         guard !changes.isEmpty else {
107 |             return
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:27:18: error: cannot find 'Darwin' in scope
 25 |
 26 |     public init(selectMaximumEvent: Int = 1024) throws {
 27 |         kqueue = Darwin.kqueue()
    |                  `- error: cannot find 'Darwin' in scope
 28 |         guard kqueue >= 0 else {
 29 |             throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:24: error: cannot find 'Darwin' in scope
 30 |         }
 31 |         self.selectMaximumEvent = selectMaximumEvent
 32 |         readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
    |                        `- error: cannot find 'Darwin' in scope
 33 |     }
 34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:50: error: cannot find 'Darwin' in scope
 30 |         }
 31 |         self.selectMaximumEvent = selectMaximumEvent
 32 |         readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
    |                                                  `- error: cannot find 'Darwin' in scope
 33 |     }
 34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:23: error: cannot call value of non-function type '[Any]'
 30 |         }
 31 |         self.selectMaximumEvent = selectMaximumEvent
 32 |         readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
    |                       `- error: cannot call value of non-function type '[Any]'
 33 |     }
 34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:51:54: error: cannot find 'EV_ADD' in scope
 49 |         let key = SelectorKey(fileDescriptor: fileDescriptor, events: events, data: data)
 50 |         fileDescriptorMap[fileDescriptor] = key
 51 |         try apply(events, to: fileDescriptor, flags: EV_ADD)
    |                                                      `- error: cannot find 'EV_ADD' in scope
 52 |         return key
 53 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:62:58: error: cannot find 'EV_DELETE' in scope
 60 |         }
 61 |         fileDescriptorMap.removeValue(forKey: fileDescriptor)
 62 |         try apply(key.events, to: fileDescriptor, flags: EV_DELETE)
    |                                                          `- error: cannot find 'EV_DELETE' in scope
 63 |         return key
 64 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:80: error: cannot find 'EV_ADD' in scope
 77 |         // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
    |                                                                                `- error: cannot find 'EV_ADD' in scope
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
 81 |         )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:86: error: cannot find 'EV_DELETE' in scope
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
    |                                                                                      `- error: cannot find 'EV_DELETE' in scope
 81 |         )
 82 |         return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:13: error: missing arguments for parameters 'to', 'flags' in call
 77 |         // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
    |             `- error: missing arguments for parameters 'to', 'flags' in call
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
 81 |         )
    :
 84 |
 85 |     /// Submit one kevent change per event in `events` for the file descriptor
 86 |     private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
    |                  `- note: 'apply(_:to:flags:)' declared here
 87 |         try apply(changes(events, to: fileDescriptor, flags: flags))
 88 |     }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:17: error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
 78 |         try apply(
 79 |             changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
 80 |                 + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
    |                 `- error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
 81 |         )
 82 |         return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:87:19: error: missing arguments for parameters 'to', 'flags' in call
 84 |
 85 |     /// Submit one kevent change per event in `events` for the file descriptor
 86 |     private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
    |                  `- note: 'apply(_:to:flags:)' declared here
 87 |         try apply(changes(events, to: fileDescriptor, flags: flags))
    |                   `- error: missing arguments for parameters 'to', 'flags' in call
 88 |     }
 89 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:13: error: cannot find 'kevent' in scope
109 |         var changes = changes
110 |         let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 |             kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
    |             `- error: cannot find 'kevent' in scope
112 |         }
113 |         guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:71: error: 'nil' requires a contextual type
109 |         var changes = changes
110 |         let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 |             kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
    |                                                                       `- error: 'nil' requires a contextual type
112 |         }
113 |         guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:79: error: 'nil' requires a contextual type
109 |         var changes = changes
110 |         let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 |             kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
    |                                                                               `- error: 'nil' requires a contextual type
112 |         }
113 |         guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:119:13: error: cannot find 'Darwin' in scope
117 |
118 |     public func close() {
119 |         _ = Darwin.close(kqueue)
    |             `- error: cannot find 'Darwin' in scope
120 |     }
121 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:127:65: error: cannot find 'NSEC_PER_SEC' in scope
125 |             if timeout > 0 {
126 |                 var integer = 0.0
127 |                 let nsec = Int(modf(timeout, &integer) * Double(NSEC_PER_SEC))
    |                                                                 `- error: cannot find 'NSEC_PER_SEC' in scope
128 |                 timeSpec = timespec(tv_sec: Int(timeout), tv_nsec: nsec)
129 |             } else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:136:24: error: cannot find 'kevent' in scope
134 |         let eventCount: Int32 = readyEvents.withUnsafeMutableBufferPointer { pointer in
135 |             return withUnsafeOptionalPointer(to: &timeSpec) { timeSpecPointer in
136 |                 return kevent(
    |                        `- error: cannot find 'kevent' in scope
137 |                     kqueue,
138 |                     nil,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:138:21: error: 'nil' requires a contextual type
136 |                 return kevent(
137 |                     kqueue,
138 |                     nil,
    |                     `- error: 'nil' requires a contextual type
139 |                     0,
140 |                     pointer.baseAddress,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:160:18: error: cannot find 'EVFILT_READ' in scope
158 |             let ioEvent: IOEvent
159 |             switch Int32(event.filter) {
160 |             case EVFILT_READ:
    |                  `- error: cannot find 'EVFILT_READ' in scope
161 |                 ioEvent = .read
162 |             case EVFILT_WRITE:
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:162:18: error: cannot find 'EVFILT_WRITE' in scope
160 |             case EVFILT_READ:
161 |                 ioEvent = .read
162 |             case EVFILT_WRITE:
    |                  `- error: cannot find 'EVFILT_WRITE' in scope
163 |                 ioEvent = .write
164 |             default:
BUILD FAILURE 6.1 android