The Swift Package Index logo.Swift Package Index

Build Information

Failed to build slash, reference master (01e55c), with Swift 6.2 for Linux on 18 Jun 2025 00:28:28 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/slash-hq/slash.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/slash-hq/slash
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 01e55ce Add support for message reactions.
Cloned https://github.com/slash-hq/slash.git
Revision (git rev-parse @):
01e55ce89b9015c98bae32ba1371ef7a48a3c0f0
SUCCESS checkout https://github.com/slash-hq/slash.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/slash-hq/slash.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/33] Emitting module slash
/host/spi-builder-workspace/Sources/Server.swift:189:9: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
187 |     }
188 |
189 |     var hashValue: Int { return Int(self.socket) }
    |         `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
190 |
191 |     func process(_ chunk: ArraySlice<UInt8>) throws {
/host/spi-builder-workspace/Sources/Server.swift:601:51: error: cannot find 'kevent' in scope
599 | class KernelQueue {
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
    |                                                   `- error: cannot find 'kevent' in scope
602 |     private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:601:32: error: cannot find type 'kevent' in scope
599 | class KernelQueue {
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
    |                                `- error: cannot find type 'kevent' in scope
602 |     private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:602:33: error: cannot find type 'kevent' in scope
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
602 |     private var changes = Array<kevent>()
    |                                 `- error: cannot find type 'kevent' in scope
603 |
604 |     private let queue: Int32
/host/spi-builder-workspace/Sources/Server.swift:644:76: error: cannot find type 'kevent' in scope
642 |     }
643 |
644 |     private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
    |                                                                            `- error: cannot find type 'kevent' in scope
645 |         return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
646 |     }
/host/spi-builder-workspace/Sources/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 7 | import Foundation
 8 |
 9 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 |
11 |     /// Synchonized version of dataTask(with URLRequest)
/host/spi-builder-workspace/Sources/WebSocketClient.swift:37:25: error: cannot find type 'TLSSocket' in scope
 35 |
 36 |     private let mask: [UInt8]
 37 |     private let socket: TLSSocket
    |                         `- error: cannot find type 'TLSSocket' in scope
 38 |
 39 |     private var inputBuffer = [UInt8]()
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[4/36] Compiling slash TextLayout.swift
/host/spi-builder-workspace/Sources/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 7 | import Foundation
 8 |
 9 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 |
11 |     /// Synchonized version of dataTask(with URLRequest)
/host/spi-builder-workspace/Sources/URLSession.swift:12:44: error: cannot find type 'URLRequest' in scope
10 |
11 |     /// Synchonized version of dataTask(with URLRequest)
12 |     func synchronousDataTask(with request: URLRequest) throws -> (data: Data?, response: HTTPURLResponse?) {
   |                                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |         let semaphore = DispatchSemaphore(value: 0)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[5/36] Compiling slash URLSession.swift
/host/spi-builder-workspace/Sources/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 7 | import Foundation
 8 |
 9 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 |
11 |     /// Synchonized version of dataTask(with URLRequest)
/host/spi-builder-workspace/Sources/URLSession.swift:12:44: error: cannot find type 'URLRequest' in scope
10 |
11 |     /// Synchonized version of dataTask(with URLRequest)
12 |     func synchronousDataTask(with request: URLRequest) throws -> (data: Data?, response: HTTPURLResponse?) {
   |                                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |         let semaphore = DispatchSemaphore(value: 0)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[6/36] Compiling slash UserInputView.swift
/host/spi-builder-workspace/Sources/URLSession.swift:9:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 7 | import Foundation
 8 |
 9 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
10 |
11 |     /// Synchonized version of dataTask(with URLRequest)
/host/spi-builder-workspace/Sources/URLSession.swift:12:44: error: cannot find type 'URLRequest' in scope
10 |
11 |     /// Synchonized version of dataTask(with URLRequest)
12 |     func synchronousDataTask(with request: URLRequest) throws -> (data: Data?, response: HTTPURLResponse?) {
   |                                            `- error: cannot find type 'URLRequest' in scope
13 |
14 |         let semaphore = DispatchSemaphore(value: 0)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[7/36] Compiling slash Application.swift
/host/spi-builder-workspace/Sources/Application.swift:138:40: warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it [#no-usage]
136 |             return
137 |
138 |         case .messageReactionAdded(let reaction, let channel, let ts):
    |                                        `- warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it [#no-usage]
139 |
140 |             if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/Application.swift:138:67: warning: immutable value 'ts' was never used; consider replacing with '_' or removing it [#no-usage]
136 |             return
137 |
138 |         case .messageReactionAdded(let reaction, let channel, let ts):
    |                                                                   `- warning: immutable value 'ts' was never used; consider replacing with '_' or removing it [#no-usage]
139 |
140 |             if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/CrashReporter.swift:18:9: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
16 |         CrashReporter.terminalDevice = device
17 |
18 |         NSSetUncaughtExceptionHandler { _ in
   |         `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
19 |             CrashReporter.report()
20 |         }
[8/36] Compiling slash ChannelsListView.swift
/host/spi-builder-workspace/Sources/Application.swift:138:40: warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it [#no-usage]
136 |             return
137 |
138 |         case .messageReactionAdded(let reaction, let channel, let ts):
    |                                        `- warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it [#no-usage]
139 |
140 |             if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/Application.swift:138:67: warning: immutable value 'ts' was never used; consider replacing with '_' or removing it [#no-usage]
136 |             return
137 |
138 |         case .messageReactionAdded(let reaction, let channel, let ts):
    |                                                                   `- warning: immutable value 'ts' was never used; consider replacing with '_' or removing it [#no-usage]
139 |
140 |             if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/CrashReporter.swift:18:9: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
16 |         CrashReporter.terminalDevice = device
17 |
18 |         NSSetUncaughtExceptionHandler { _ in
   |         `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
19 |             CrashReporter.report()
20 |         }
[9/36] Compiling slash CrashReporter.swift
/host/spi-builder-workspace/Sources/Application.swift:138:40: warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it [#no-usage]
136 |             return
137 |
138 |         case .messageReactionAdded(let reaction, let channel, let ts):
    |                                        `- warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it [#no-usage]
139 |
140 |             if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/Application.swift:138:67: warning: immutable value 'ts' was never used; consider replacing with '_' or removing it [#no-usage]
136 |             return
137 |
138 |         case .messageReactionAdded(let reaction, let channel, let ts):
    |                                                                   `- warning: immutable value 'ts' was never used; consider replacing with '_' or removing it [#no-usage]
139 |
140 |             if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/CrashReporter.swift:18:9: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
16 |         CrashReporter.terminalDevice = device
17 |
18 |         NSSetUncaughtExceptionHandler { _ in
   |         `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
19 |             CrashReporter.report()
20 |         }
[10/36] Compiling slash MessagesListView.swift
/host/spi-builder-workspace/Sources/Application.swift:138:40: warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it [#no-usage]
136 |             return
137 |
138 |         case .messageReactionAdded(let reaction, let channel, let ts):
    |                                        `- warning: immutable value 'reaction' was never used; consider replacing with '_' or removing it [#no-usage]
139 |
140 |             if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/Application.swift:138:67: warning: immutable value 'ts' was never used; consider replacing with '_' or removing it [#no-usage]
136 |             return
137 |
138 |         case .messageReactionAdded(let reaction, let channel, let ts):
    |                                                                   `- warning: immutable value 'ts' was never used; consider replacing with '_' or removing it [#no-usage]
139 |
140 |             if channel == self.selectedChannel {
/host/spi-builder-workspace/Sources/CrashReporter.swift:18:9: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
16 |         CrashReporter.terminalDevice = device
17 |
18 |         NSSetUncaughtExceptionHandler { _ in
   |         `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
19 |             CrashReporter.report()
20 |         }
[11/36] Compiling slash SlackIM.swift
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:88: error: cannot find 'URLRequest' in scope
59 |                 do {
60 |
61 |                     let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
   |                                                                                        `- error: cannot find 'URLRequest' in scope
62 |                     guard let data = theData else {
63 |                         responder(TextResponse(200, "No response from Slack."))
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 |                 do {
60 |
61 |                     let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
   |                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 |                     guard let data = theData else {
63 |                         responder(TextResponse(200, "No response from Slack."))
[12/36] Compiling slash SlackMessage.swift
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:88: error: cannot find 'URLRequest' in scope
59 |                 do {
60 |
61 |                     let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
   |                                                                                        `- error: cannot find 'URLRequest' in scope
62 |                     guard let data = theData else {
63 |                         responder(TextResponse(200, "No response from Slack."))
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 |                 do {
60 |
61 |                     let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
   |                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 |                     guard let data = theData else {
63 |                         responder(TextResponse(200, "No response from Slack."))
[13/36] Compiling slash SlackMessageReaction.swift
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:88: error: cannot find 'URLRequest' in scope
59 |                 do {
60 |
61 |                     let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
   |                                                                                        `- error: cannot find 'URLRequest' in scope
62 |                     guard let data = theData else {
63 |                         responder(TextResponse(200, "No response from Slack."))
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 |                 do {
60 |
61 |                     let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
   |                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 |                     guard let data = theData else {
63 |                         responder(TextResponse(200, "No response from Slack."))
[14/36] Compiling slash SlackOAuth2.swift
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:88: error: cannot find 'URLRequest' in scope
59 |                 do {
60 |
61 |                     let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
   |                                                                                        `- error: cannot find 'URLRequest' in scope
62 |                     guard let data = theData else {
63 |                         responder(TextResponse(200, "No response from Slack."))
/host/spi-builder-workspace/Sources/SlackOAuth2.swift:61:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
59 |                 do {
60 |
61 |                     let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
   |                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
62 |                     guard let data = theData else {
63 |                         responder(TextResponse(200, "No response from Slack."))
[15/36] Compiling slash R.swift
/host/spi-builder-workspace/Sources/Server.swift:189:9: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
187 |     }
188 |
189 |     var hashValue: Int { return Int(self.socket) }
    |         `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
190 |
191 |     func process(_ chunk: ArraySlice<UInt8>) throws {
/host/spi-builder-workspace/Sources/Server.swift:601:51: error: cannot find 'kevent' in scope
599 | class KernelQueue {
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
    |                                                   `- error: cannot find 'kevent' in scope
602 |     private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:601:32: error: cannot find type 'kevent' in scope
599 | class KernelQueue {
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
    |                                `- error: cannot find type 'kevent' in scope
602 |     private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:602:33: error: cannot find type 'kevent' in scope
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
602 |     private var changes = Array<kevent>()
    |                                 `- error: cannot find type 'kevent' in scope
603 |
604 |     private let queue: Int32
/host/spi-builder-workspace/Sources/Server.swift:644:76: error: cannot find type 'kevent' in scope
642 |     }
643 |
644 |     private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
    |                                                                            `- error: cannot find type 'kevent' in scope
645 |         return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
646 |     }
/host/spi-builder-workspace/Sources/Server.swift:320:31: error: cannot find 'LinuxAsyncServer' in scope
318 |     init(_ port: in_port_t = 8080) throws {
319 |         #if os(Linux)
320 |             self.server = try LinuxAsyncServer(port)
    |                               `- error: cannot find 'LinuxAsyncServer' in scope
321 |         #else
322 |             self.server = try MacOSAsyncTCPServer(port)
/host/spi-builder-workspace/Sources/Server.swift:481:25: warning: variable 'chunk' was never mutated; consider changing to 'let' constant
479 |             case .write:
480 |                 while let backlogElement = self.backlog[Int32(signal.ident)]?.first {
481 |                     var chunk = backlogElement.chunk
    |                         `- warning: variable 'chunk' was never mutated; consider changing to 'let' constant
482 |                     let result = Socket.write(Int32(signal.ident), chunk, min(chunk.count, signal.data))
483 |                     if result == -1 {
/host/spi-builder-workspace/Sources/Server.swift:533:22: error: cannot find 'Darwin' in scope
531 |     static func nonBlockingSocketForListenening(_ port: in_port_t = 8080) throws -> Int32 {
532 |
533 |         let server = Darwin.socket(AF_INET, SOCK_STREAM, 0)
    |                      `- error: cannot find 'Darwin' in scope
534 |
535 |         guard server != -1 else {
/host/spi-builder-workspace/Sources/Server.swift:540:12: error: cannot find 'Darwin' in scope
538 |
539 |         var value: Int32 = 1
540 |         if Darwin.setsockopt(server, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'Darwin' in scope
541 |             defer { let _ = Socket.close(server) }
542 |             throw AsyncError.setReuseAddrFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:550:43: error: cannot find 'Darwin' in scope
548 |         var addr = anyAddrForPort(port)
549 |
550 |         if withUnsafePointer(to: &addr, { Darwin.bind(server, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size)) }) == -1 {
    |                                           `- error: cannot find 'Darwin' in scope
551 |             defer { let _ = Socket.close(server) }
552 |             throw AsyncError.bindFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:555:12: error: cannot find 'Darwin' in scope
553 |         }
554 |
555 |         if Darwin.listen(server, SOMAXCONN) == -1 {
    |            `- error: cannot find 'Darwin' in scope
556 |             defer { let _ = Socket.close(server) }
557 |             throw AsyncError.listenFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:565:33: error: cannot find 'Darwin' in scope
563 |     static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 |         guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
    |                                 `- error: cannot find 'Darwin' in scope
566 |             throw AsyncError.acceptFailed(Process.error)
567 |         }
/host/spi-builder-workspace/Sources/Server.swift:565:55: error: 'nil' requires a contextual type
563 |     static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 |         guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
    |                                                       `- error: 'nil' requires a contextual type
566 |             throw AsyncError.acceptFailed(Process.error)
567 |         }
/host/spi-builder-workspace/Sources/Server.swift:565:60: error: 'nil' requires a contextual type
563 |     static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 |         guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
    |                                                            `- error: 'nil' requires a contextual type
566 |             throw AsyncError.acceptFailed(Process.error)
567 |         }
/host/spi-builder-workspace/Sources/Server.swift:577:14: error: value of type 'sockaddr_in' has no member 'sin_len'
575 |     static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
576 |         var addr = sockaddr_in()
577 |         addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
    |              `- error: value of type 'sockaddr_in' has no member 'sin_len'
578 |         addr.sin_family = sa_family_t(AF_INET)
579 |         addr.sin_port = port.bigEndian
/host/spi-builder-workspace/Sources/Server.swift:586:12: error: cannot find 'Darwin' in scope
584 |
585 |     static func setSocketNonBlocking(_ socket: Int32) throws {
586 |         if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
    |            `- error: cannot find 'Darwin' in scope
587 |             throw AsyncError.setNonBlockFailed(Process.error)
588 |         }
/host/spi-builder-workspace/Sources/Server.swift:586:42: error: cannot find 'Darwin' in scope
584 |
585 |     static func setSocketNonBlocking(_ socket: Int32) throws {
586 |         if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
    |                                          `- error: cannot find 'Darwin' in scope
587 |             throw AsyncError.setNonBlockFailed(Process.error)
588 |         }
/host/spi-builder-workspace/Sources/Server.swift:593:12: error: cannot find 'Darwin' in scope
591 |     static func setSocketNoSigPipe(_ socket: Int32) throws {
592 |         var value = 1
593 |         if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'Darwin' in scope
594 |             throw AsyncError.setNoSigPipeFailed(Process.error)
595 |         }
/host/spi-builder-workspace/Sources/Server.swift:593:50: error: cannot find 'SO_NOSIGPIPE' in scope
591 |     static func setSocketNoSigPipe(_ socket: Int32) throws {
592 |         var value = 1
593 |         if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                                  `- error: cannot find 'SO_NOSIGPIPE' in scope
594 |             throw AsyncError.setNoSigPipeFailed(Process.error)
595 |         }
/host/spi-builder-workspace/Sources/Server.swift:610:32: error: cannot find 'kqueue' in scope
608 |
609 |     init() throws {
610 |         guard case let queue = kqueue(), queue != -1 else {
    |                                `- error: cannot find 'kqueue' in scope
611 |             throw AsyncError.async(Process.error)
612 |         }
/host/spi-builder-workspace/Sources/Server.swift:618:68: error: cannot find 'EVFILT_READ' in scope
616 |     func subscribe(_ ident: UInt, _ event: Subscription) {
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 |         }
/host/spi-builder-workspace/Sources/Server.swift:618:89: error: cannot find 'EV_ADD' in scope
616 |     func subscribe(_ ident: UInt, _ event: Subscription) {
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                         `- error: cannot find 'EV_ADD' in scope
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 |         }
/host/spi-builder-workspace/Sources/Server.swift:618:106: error: cannot find 'EV_ENABLE' in scope
616 |     func subscribe(_ ident: UInt, _ event: Subscription) {
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                                          `- error: cannot find 'EV_ENABLE' in scope
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 |         }
/host/spi-builder-workspace/Sources/Server.swift:619:68: error: cannot find 'EVFILT_WRITE' in scope
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
620 |         }
621 |     }
/host/spi-builder-workspace/Sources/Server.swift:619:90: error: cannot find 'EV_ADD' in scope
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                          `- error: cannot find 'EV_ADD' in scope
620 |         }
621 |     }
/host/spi-builder-workspace/Sources/Server.swift:619:107: error: cannot find 'EV_ENABLE' in scope
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                                           `- error: cannot find 'EV_ENABLE' in scope
620 |         }
621 |     }
/host/spi-builder-workspace/Sources/Server.swift:625:68: error: cannot find 'EVFILT_READ' in scope
623 |     func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 |         }
/host/spi-builder-workspace/Sources/Server.swift:625:89: error: cannot find 'EV_DELETE' in scope
623 |     func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
    |                                                                                         `- error: cannot find 'EV_DELETE' in scope
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 |         }
/host/spi-builder-workspace/Sources/Server.swift:626:68: error: cannot find 'EVFILT_WRITE' in scope
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
627 |         }
628 |     }
/host/spi-builder-workspace/Sources/Server.swift:626:90: error: cannot find 'EV_DELETE' in scope
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
    |                                                                                          `- error: cannot find 'EV_DELETE' in scope
627 |         }
628 |     }
/host/spi-builder-workspace/Sources/Server.swift:632:68: error: cannot find 'EVFILT_READ' in scope
630 |     func pause(_ ident: UInt, _ event: Subscription) {
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 |         }
/host/spi-builder-workspace/Sources/Server.swift:632:89: error: cannot find 'EV_DISABLE' in scope
630 |     func pause(_ ident: UInt, _ event: Subscription) {
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
    |                                                                                         `- error: cannot find 'EV_DISABLE' in scope
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 |         }
/host/spi-builder-workspace/Sources/Server.swift:633:68: error: cannot find 'EVFILT_WRITE' in scope
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
634 |         }
635 |     }
/host/spi-builder-workspace/Sources/Server.swift:633:90: error: cannot find 'EV_DISABLE' in scope
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
    |                                                                                          `- error: cannot find 'EV_DISABLE' in scope
634 |         }
635 |     }
/host/spi-builder-workspace/Sources/Server.swift:639:68: error: cannot find 'EVFILT_READ' in scope
637 |     func resume(_ ident: UInt, _ event: Subscription) {
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 |         }
/host/spi-builder-workspace/Sources/Server.swift:639:89: error: cannot find 'EV_ENABLE' in scope
637 |     func resume(_ ident: UInt, _ event: Subscription) {
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
    |                                                                                         `- error: cannot find 'EV_ENABLE' in scope
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 |         }
/host/spi-builder-workspace/Sources/Server.swift:640:68: error: cannot find 'EVFILT_WRITE' in scope
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
641 |         }
642 |     }
/host/spi-builder-workspace/Sources/Server.swift:640:90: error: cannot find 'EV_ENABLE' in scope
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
    |                                                                                          `- error: cannot find 'EV_ENABLE' in scope
641 |         }
642 |     }
/host/spi-builder-workspace/Sources/Server.swift:651:16: error: cannot find 'kevent' in scope
649 |
650 |         if !changes.isEmpty {
651 |             if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
    |                `- error: cannot find 'kevent' in scope
652 |                 throw AsyncError.async(Process.error)
653 |             }
/host/spi-builder-workspace/Sources/Server.swift:651:67: error: 'nil' requires a contextual type
649 |
650 |         if !changes.isEmpty {
651 |             if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
    |                                                                   `- error: 'nil' requires a contextual type
652 |                 throw AsyncError.async(Process.error)
653 |             }
/host/spi-builder-workspace/Sources/Server.swift:651:75: error: 'nil' requires a contextual type
649 |
650 |         if !changes.isEmpty {
651 |             if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
    |                                                                           `- error: 'nil' requires a contextual type
652 |                 throw AsyncError.async(Process.error)
653 |             }
/host/spi-builder-workspace/Sources/Server.swift:658:32: error: cannot find 'kevent' in scope
656 |         self.changes.removeAll(keepingCapacity: true)
657 |
658 |         guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
    |                                `- error: cannot find 'kevent' in scope
659 |             throw AsyncError.async(Process.error)
660 |         }
/host/spi-builder-workspace/Sources/Server.swift:658:51: error: 'nil' requires a contextual type
656 |         self.changes.removeAll(keepingCapacity: true)
657 |
658 |         guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
    |                                                   `- error: 'nil' requires a contextual type
659 |             throw AsyncError.async(Process.error)
660 |         }
/host/spi-builder-workspace/Sources/Server.swift:658:89: error: 'nil' requires a contextual type
656 |         self.changes.removeAll(keepingCapacity: true)
657 |
658 |         guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
    |                                                                                         `- error: 'nil' requires a contextual type
659 |             throw AsyncError.async(Process.error)
660 |         }
/host/spi-builder-workspace/Sources/Server.swift:664:37: error: cannot find 'EV_EOF' in scope
662 |         for event in events[0..<Int(count)] {
663 |
664 |             if Int32(event.flags) & EV_EOF != 0 || Int32(event.flags) & EV_ERROR != 0 {
    |                                     `- error: cannot find 'EV_EOF' in scope
665 |                 try callback((.error, event.ident, 0))
666 |                 continue
/host/spi-builder-workspace/Sources/Server.swift:664:73: error: cannot find 'EV_ERROR' in scope
662 |         for event in events[0..<Int(count)] {
663 |
664 |             if Int32(event.flags) & EV_EOF != 0 || Int32(event.flags) & EV_ERROR != 0 {
    |                                                                         `- error: cannot find 'EV_ERROR' in scope
665 |                 try callback((.error, event.ident, 0))
666 |                 continue
/host/spi-builder-workspace/Sources/Server.swift:668:39: error: cannot find 'EVFILT_READ' in scope
666 |                 continue
667 |             }
668 |             if Int32(event.filter) == EVFILT_READ {
    |                                       `- error: cannot find 'EVFILT_READ' in scope
669 |                 try callback((.read, event.ident, event.data))
670 |                 continue
/host/spi-builder-workspace/Sources/Server.swift:672:39: error: cannot find 'EVFILT_WRITE' in scope
670 |                 continue
671 |             }
672 |             if Int32(event.filter) == EVFILT_WRITE {
    |                                       `- error: cannot find 'EVFILT_WRITE' in scope
673 |                 try callback((.write, event.ident, event.data))
674 |                 continue
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[16/36] Compiling slash Server.swift
/host/spi-builder-workspace/Sources/Server.swift:189:9: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
187 |     }
188 |
189 |     var hashValue: Int { return Int(self.socket) }
    |         `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
190 |
191 |     func process(_ chunk: ArraySlice<UInt8>) throws {
/host/spi-builder-workspace/Sources/Server.swift:601:51: error: cannot find 'kevent' in scope
599 | class KernelQueue {
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
    |                                                   `- error: cannot find 'kevent' in scope
602 |     private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:601:32: error: cannot find type 'kevent' in scope
599 | class KernelQueue {
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
    |                                `- error: cannot find type 'kevent' in scope
602 |     private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:602:33: error: cannot find type 'kevent' in scope
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
602 |     private var changes = Array<kevent>()
    |                                 `- error: cannot find type 'kevent' in scope
603 |
604 |     private let queue: Int32
/host/spi-builder-workspace/Sources/Server.swift:644:76: error: cannot find type 'kevent' in scope
642 |     }
643 |
644 |     private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
    |                                                                            `- error: cannot find type 'kevent' in scope
645 |         return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
646 |     }
/host/spi-builder-workspace/Sources/Server.swift:320:31: error: cannot find 'LinuxAsyncServer' in scope
318 |     init(_ port: in_port_t = 8080) throws {
319 |         #if os(Linux)
320 |             self.server = try LinuxAsyncServer(port)
    |                               `- error: cannot find 'LinuxAsyncServer' in scope
321 |         #else
322 |             self.server = try MacOSAsyncTCPServer(port)
/host/spi-builder-workspace/Sources/Server.swift:481:25: warning: variable 'chunk' was never mutated; consider changing to 'let' constant
479 |             case .write:
480 |                 while let backlogElement = self.backlog[Int32(signal.ident)]?.first {
481 |                     var chunk = backlogElement.chunk
    |                         `- warning: variable 'chunk' was never mutated; consider changing to 'let' constant
482 |                     let result = Socket.write(Int32(signal.ident), chunk, min(chunk.count, signal.data))
483 |                     if result == -1 {
/host/spi-builder-workspace/Sources/Server.swift:533:22: error: cannot find 'Darwin' in scope
531 |     static func nonBlockingSocketForListenening(_ port: in_port_t = 8080) throws -> Int32 {
532 |
533 |         let server = Darwin.socket(AF_INET, SOCK_STREAM, 0)
    |                      `- error: cannot find 'Darwin' in scope
534 |
535 |         guard server != -1 else {
/host/spi-builder-workspace/Sources/Server.swift:540:12: error: cannot find 'Darwin' in scope
538 |
539 |         var value: Int32 = 1
540 |         if Darwin.setsockopt(server, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'Darwin' in scope
541 |             defer { let _ = Socket.close(server) }
542 |             throw AsyncError.setReuseAddrFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:550:43: error: cannot find 'Darwin' in scope
548 |         var addr = anyAddrForPort(port)
549 |
550 |         if withUnsafePointer(to: &addr, { Darwin.bind(server, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size)) }) == -1 {
    |                                           `- error: cannot find 'Darwin' in scope
551 |             defer { let _ = Socket.close(server) }
552 |             throw AsyncError.bindFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:555:12: error: cannot find 'Darwin' in scope
553 |         }
554 |
555 |         if Darwin.listen(server, SOMAXCONN) == -1 {
    |            `- error: cannot find 'Darwin' in scope
556 |             defer { let _ = Socket.close(server) }
557 |             throw AsyncError.listenFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:565:33: error: cannot find 'Darwin' in scope
563 |     static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 |         guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
    |                                 `- error: cannot find 'Darwin' in scope
566 |             throw AsyncError.acceptFailed(Process.error)
567 |         }
/host/spi-builder-workspace/Sources/Server.swift:565:55: error: 'nil' requires a contextual type
563 |     static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 |         guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
    |                                                       `- error: 'nil' requires a contextual type
566 |             throw AsyncError.acceptFailed(Process.error)
567 |         }
/host/spi-builder-workspace/Sources/Server.swift:565:60: error: 'nil' requires a contextual type
563 |     static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 |         guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
    |                                                            `- error: 'nil' requires a contextual type
566 |             throw AsyncError.acceptFailed(Process.error)
567 |         }
/host/spi-builder-workspace/Sources/Server.swift:577:14: error: value of type 'sockaddr_in' has no member 'sin_len'
575 |     static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
576 |         var addr = sockaddr_in()
577 |         addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
    |              `- error: value of type 'sockaddr_in' has no member 'sin_len'
578 |         addr.sin_family = sa_family_t(AF_INET)
579 |         addr.sin_port = port.bigEndian
/host/spi-builder-workspace/Sources/Server.swift:586:12: error: cannot find 'Darwin' in scope
584 |
585 |     static func setSocketNonBlocking(_ socket: Int32) throws {
586 |         if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
    |            `- error: cannot find 'Darwin' in scope
587 |             throw AsyncError.setNonBlockFailed(Process.error)
588 |         }
/host/spi-builder-workspace/Sources/Server.swift:586:42: error: cannot find 'Darwin' in scope
584 |
585 |     static func setSocketNonBlocking(_ socket: Int32) throws {
586 |         if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
    |                                          `- error: cannot find 'Darwin' in scope
587 |             throw AsyncError.setNonBlockFailed(Process.error)
588 |         }
/host/spi-builder-workspace/Sources/Server.swift:593:12: error: cannot find 'Darwin' in scope
591 |     static func setSocketNoSigPipe(_ socket: Int32) throws {
592 |         var value = 1
593 |         if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'Darwin' in scope
594 |             throw AsyncError.setNoSigPipeFailed(Process.error)
595 |         }
/host/spi-builder-workspace/Sources/Server.swift:593:50: error: cannot find 'SO_NOSIGPIPE' in scope
591 |     static func setSocketNoSigPipe(_ socket: Int32) throws {
592 |         var value = 1
593 |         if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                                  `- error: cannot find 'SO_NOSIGPIPE' in scope
594 |             throw AsyncError.setNoSigPipeFailed(Process.error)
595 |         }
/host/spi-builder-workspace/Sources/Server.swift:610:32: error: cannot find 'kqueue' in scope
608 |
609 |     init() throws {
610 |         guard case let queue = kqueue(), queue != -1 else {
    |                                `- error: cannot find 'kqueue' in scope
611 |             throw AsyncError.async(Process.error)
612 |         }
/host/spi-builder-workspace/Sources/Server.swift:618:68: error: cannot find 'EVFILT_READ' in scope
616 |     func subscribe(_ ident: UInt, _ event: Subscription) {
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 |         }
/host/spi-builder-workspace/Sources/Server.swift:618:89: error: cannot find 'EV_ADD' in scope
616 |     func subscribe(_ ident: UInt, _ event: Subscription) {
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                         `- error: cannot find 'EV_ADD' in scope
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 |         }
/host/spi-builder-workspace/Sources/Server.swift:618:106: error: cannot find 'EV_ENABLE' in scope
616 |     func subscribe(_ ident: UInt, _ event: Subscription) {
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                                          `- error: cannot find 'EV_ENABLE' in scope
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 |         }
/host/spi-builder-workspace/Sources/Server.swift:619:68: error: cannot find 'EVFILT_WRITE' in scope
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
620 |         }
621 |     }
/host/spi-builder-workspace/Sources/Server.swift:619:90: error: cannot find 'EV_ADD' in scope
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                          `- error: cannot find 'EV_ADD' in scope
620 |         }
621 |     }
/host/spi-builder-workspace/Sources/Server.swift:619:107: error: cannot find 'EV_ENABLE' in scope
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                                           `- error: cannot find 'EV_ENABLE' in scope
620 |         }
621 |     }
/host/spi-builder-workspace/Sources/Server.swift:625:68: error: cannot find 'EVFILT_READ' in scope
623 |     func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 |         }
/host/spi-builder-workspace/Sources/Server.swift:625:89: error: cannot find 'EV_DELETE' in scope
623 |     func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
    |                                                                                         `- error: cannot find 'EV_DELETE' in scope
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 |         }
/host/spi-builder-workspace/Sources/Server.swift:626:68: error: cannot find 'EVFILT_WRITE' in scope
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
627 |         }
628 |     }
/host/spi-builder-workspace/Sources/Server.swift:626:90: error: cannot find 'EV_DELETE' in scope
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
    |                                                                                          `- error: cannot find 'EV_DELETE' in scope
627 |         }
628 |     }
/host/spi-builder-workspace/Sources/Server.swift:632:68: error: cannot find 'EVFILT_READ' in scope
630 |     func pause(_ ident: UInt, _ event: Subscription) {
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 |         }
/host/spi-builder-workspace/Sources/Server.swift:632:89: error: cannot find 'EV_DISABLE' in scope
630 |     func pause(_ ident: UInt, _ event: Subscription) {
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
    |                                                                                         `- error: cannot find 'EV_DISABLE' in scope
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 |         }
/host/spi-builder-workspace/Sources/Server.swift:633:68: error: cannot find 'EVFILT_WRITE' in scope
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
634 |         }
635 |     }
/host/spi-builder-workspace/Sources/Server.swift:633:90: error: cannot find 'EV_DISABLE' in scope
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
    |                                                                                          `- error: cannot find 'EV_DISABLE' in scope
634 |         }
635 |     }
/host/spi-builder-workspace/Sources/Server.swift:639:68: error: cannot find 'EVFILT_READ' in scope
637 |     func resume(_ ident: UInt, _ event: Subscription) {
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 |         }
/host/spi-builder-workspace/Sources/Server.swift:639:89: error: cannot find 'EV_ENABLE' in scope
637 |     func resume(_ ident: UInt, _ event: Subscription) {
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
    |                                                                                         `- error: cannot find 'EV_ENABLE' in scope
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 |         }
/host/spi-builder-workspace/Sources/Server.swift:640:68: error: cannot find 'EVFILT_WRITE' in scope
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
641 |         }
642 |     }
/host/spi-builder-workspace/Sources/Server.swift:640:90: error: cannot find 'EV_ENABLE' in scope
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
    |                                                                                          `- error: cannot find 'EV_ENABLE' in scope
641 |         }
642 |     }
/host/spi-builder-workspace/Sources/Server.swift:651:16: error: cannot find 'kevent' in scope
649 |
650 |         if !changes.isEmpty {
651 |             if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
    |                `- error: cannot find 'kevent' in scope
652 |                 throw AsyncError.async(Process.error)
653 |             }
/host/spi-builder-workspace/Sources/Server.swift:651:67: error: 'nil' requires a contextual type
649 |
650 |         if !changes.isEmpty {
651 |             if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
    |                                                                   `- error: 'nil' requires a contextual type
652 |                 throw AsyncError.async(Process.error)
653 |             }
/host/spi-builder-workspace/Sources/Server.swift:651:75: error: 'nil' requires a contextual type
649 |
650 |         if !changes.isEmpty {
651 |             if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
    |                                                                           `- error: 'nil' requires a contextual type
652 |                 throw AsyncError.async(Process.error)
653 |             }
/host/spi-builder-workspace/Sources/Server.swift:658:32: error: cannot find 'kevent' in scope
656 |         self.changes.removeAll(keepingCapacity: true)
657 |
658 |         guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
    |                                `- error: cannot find 'kevent' in scope
659 |             throw AsyncError.async(Process.error)
660 |         }
/host/spi-builder-workspace/Sources/Server.swift:658:51: error: 'nil' requires a contextual type
656 |         self.changes.removeAll(keepingCapacity: true)
657 |
658 |         guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
    |                                                   `- error: 'nil' requires a contextual type
659 |             throw AsyncError.async(Process.error)
660 |         }
/host/spi-builder-workspace/Sources/Server.swift:658:89: error: 'nil' requires a contextual type
656 |         self.changes.removeAll(keepingCapacity: true)
657 |
658 |         guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
    |                                                                                         `- error: 'nil' requires a contextual type
659 |             throw AsyncError.async(Process.error)
660 |         }
/host/spi-builder-workspace/Sources/Server.swift:664:37: error: cannot find 'EV_EOF' in scope
662 |         for event in events[0..<Int(count)] {
663 |
664 |             if Int32(event.flags) & EV_EOF != 0 || Int32(event.flags) & EV_ERROR != 0 {
    |                                     `- error: cannot find 'EV_EOF' in scope
665 |                 try callback((.error, event.ident, 0))
666 |                 continue
/host/spi-builder-workspace/Sources/Server.swift:664:73: error: cannot find 'EV_ERROR' in scope
662 |         for event in events[0..<Int(count)] {
663 |
664 |             if Int32(event.flags) & EV_EOF != 0 || Int32(event.flags) & EV_ERROR != 0 {
    |                                                                         `- error: cannot find 'EV_ERROR' in scope
665 |                 try callback((.error, event.ident, 0))
666 |                 continue
/host/spi-builder-workspace/Sources/Server.swift:668:39: error: cannot find 'EVFILT_READ' in scope
666 |                 continue
667 |             }
668 |             if Int32(event.filter) == EVFILT_READ {
    |                                       `- error: cannot find 'EVFILT_READ' in scope
669 |                 try callback((.read, event.ident, event.data))
670 |                 continue
/host/spi-builder-workspace/Sources/Server.swift:672:39: error: cannot find 'EVFILT_WRITE' in scope
670 |                 continue
671 |             }
672 |             if Int32(event.filter) == EVFILT_WRITE {
    |                                       `- error: cannot find 'EVFILT_WRITE' in scope
673 |                 try callback((.write, event.ident, event.data))
674 |                 continue
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[17/36] Compiling slash SlackAdapter.swift
/host/spi-builder-workspace/Sources/Server.swift:189:9: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
187 |     }
188 |
189 |     var hashValue: Int { return Int(self.socket) }
    |         `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
190 |
191 |     func process(_ chunk: ArraySlice<UInt8>) throws {
/host/spi-builder-workspace/Sources/Server.swift:601:51: error: cannot find 'kevent' in scope
599 | class KernelQueue {
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
    |                                                   `- error: cannot find 'kevent' in scope
602 |     private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:601:32: error: cannot find type 'kevent' in scope
599 | class KernelQueue {
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
    |                                `- error: cannot find type 'kevent' in scope
602 |     private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:602:33: error: cannot find type 'kevent' in scope
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
602 |     private var changes = Array<kevent>()
    |                                 `- error: cannot find type 'kevent' in scope
603 |
604 |     private let queue: Int32
/host/spi-builder-workspace/Sources/Server.swift:644:76: error: cannot find type 'kevent' in scope
642 |     }
643 |
644 |     private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
    |                                                                            `- error: cannot find type 'kevent' in scope
645 |         return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
646 |     }
/host/spi-builder-workspace/Sources/Server.swift:320:31: error: cannot find 'LinuxAsyncServer' in scope
318 |     init(_ port: in_port_t = 8080) throws {
319 |         #if os(Linux)
320 |             self.server = try LinuxAsyncServer(port)
    |                               `- error: cannot find 'LinuxAsyncServer' in scope
321 |         #else
322 |             self.server = try MacOSAsyncTCPServer(port)
/host/spi-builder-workspace/Sources/Server.swift:481:25: warning: variable 'chunk' was never mutated; consider changing to 'let' constant
479 |             case .write:
480 |                 while let backlogElement = self.backlog[Int32(signal.ident)]?.first {
481 |                     var chunk = backlogElement.chunk
    |                         `- warning: variable 'chunk' was never mutated; consider changing to 'let' constant
482 |                     let result = Socket.write(Int32(signal.ident), chunk, min(chunk.count, signal.data))
483 |                     if result == -1 {
/host/spi-builder-workspace/Sources/Server.swift:533:22: error: cannot find 'Darwin' in scope
531 |     static func nonBlockingSocketForListenening(_ port: in_port_t = 8080) throws -> Int32 {
532 |
533 |         let server = Darwin.socket(AF_INET, SOCK_STREAM, 0)
    |                      `- error: cannot find 'Darwin' in scope
534 |
535 |         guard server != -1 else {
/host/spi-builder-workspace/Sources/Server.swift:540:12: error: cannot find 'Darwin' in scope
538 |
539 |         var value: Int32 = 1
540 |         if Darwin.setsockopt(server, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'Darwin' in scope
541 |             defer { let _ = Socket.close(server) }
542 |             throw AsyncError.setReuseAddrFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:550:43: error: cannot find 'Darwin' in scope
548 |         var addr = anyAddrForPort(port)
549 |
550 |         if withUnsafePointer(to: &addr, { Darwin.bind(server, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size)) }) == -1 {
    |                                           `- error: cannot find 'Darwin' in scope
551 |             defer { let _ = Socket.close(server) }
552 |             throw AsyncError.bindFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:555:12: error: cannot find 'Darwin' in scope
553 |         }
554 |
555 |         if Darwin.listen(server, SOMAXCONN) == -1 {
    |            `- error: cannot find 'Darwin' in scope
556 |             defer { let _ = Socket.close(server) }
557 |             throw AsyncError.listenFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:565:33: error: cannot find 'Darwin' in scope
563 |     static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 |         guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
    |                                 `- error: cannot find 'Darwin' in scope
566 |             throw AsyncError.acceptFailed(Process.error)
567 |         }
/host/spi-builder-workspace/Sources/Server.swift:565:55: error: 'nil' requires a contextual type
563 |     static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 |         guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
    |                                                       `- error: 'nil' requires a contextual type
566 |             throw AsyncError.acceptFailed(Process.error)
567 |         }
/host/spi-builder-workspace/Sources/Server.swift:565:60: error: 'nil' requires a contextual type
563 |     static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 |         guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
    |                                                            `- error: 'nil' requires a contextual type
566 |             throw AsyncError.acceptFailed(Process.error)
567 |         }
/host/spi-builder-workspace/Sources/Server.swift:577:14: error: value of type 'sockaddr_in' has no member 'sin_len'
575 |     static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
576 |         var addr = sockaddr_in()
577 |         addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
    |              `- error: value of type 'sockaddr_in' has no member 'sin_len'
578 |         addr.sin_family = sa_family_t(AF_INET)
579 |         addr.sin_port = port.bigEndian
/host/spi-builder-workspace/Sources/Server.swift:586:12: error: cannot find 'Darwin' in scope
584 |
585 |     static func setSocketNonBlocking(_ socket: Int32) throws {
586 |         if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
    |            `- error: cannot find 'Darwin' in scope
587 |             throw AsyncError.setNonBlockFailed(Process.error)
588 |         }
/host/spi-builder-workspace/Sources/Server.swift:586:42: error: cannot find 'Darwin' in scope
584 |
585 |     static func setSocketNonBlocking(_ socket: Int32) throws {
586 |         if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
    |                                          `- error: cannot find 'Darwin' in scope
587 |             throw AsyncError.setNonBlockFailed(Process.error)
588 |         }
/host/spi-builder-workspace/Sources/Server.swift:593:12: error: cannot find 'Darwin' in scope
591 |     static func setSocketNoSigPipe(_ socket: Int32) throws {
592 |         var value = 1
593 |         if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'Darwin' in scope
594 |             throw AsyncError.setNoSigPipeFailed(Process.error)
595 |         }
/host/spi-builder-workspace/Sources/Server.swift:593:50: error: cannot find 'SO_NOSIGPIPE' in scope
591 |     static func setSocketNoSigPipe(_ socket: Int32) throws {
592 |         var value = 1
593 |         if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                                  `- error: cannot find 'SO_NOSIGPIPE' in scope
594 |             throw AsyncError.setNoSigPipeFailed(Process.error)
595 |         }
/host/spi-builder-workspace/Sources/Server.swift:610:32: error: cannot find 'kqueue' in scope
608 |
609 |     init() throws {
610 |         guard case let queue = kqueue(), queue != -1 else {
    |                                `- error: cannot find 'kqueue' in scope
611 |             throw AsyncError.async(Process.error)
612 |         }
/host/spi-builder-workspace/Sources/Server.swift:618:68: error: cannot find 'EVFILT_READ' in scope
616 |     func subscribe(_ ident: UInt, _ event: Subscription) {
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 |         }
/host/spi-builder-workspace/Sources/Server.swift:618:89: error: cannot find 'EV_ADD' in scope
616 |     func subscribe(_ ident: UInt, _ event: Subscription) {
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                         `- error: cannot find 'EV_ADD' in scope
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 |         }
/host/spi-builder-workspace/Sources/Server.swift:618:106: error: cannot find 'EV_ENABLE' in scope
616 |     func subscribe(_ ident: UInt, _ event: Subscription) {
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                                          `- error: cannot find 'EV_ENABLE' in scope
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 |         }
/host/spi-builder-workspace/Sources/Server.swift:619:68: error: cannot find 'EVFILT_WRITE' in scope
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
620 |         }
621 |     }
/host/spi-builder-workspace/Sources/Server.swift:619:90: error: cannot find 'EV_ADD' in scope
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                          `- error: cannot find 'EV_ADD' in scope
620 |         }
621 |     }
/host/spi-builder-workspace/Sources/Server.swift:619:107: error: cannot find 'EV_ENABLE' in scope
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                                           `- error: cannot find 'EV_ENABLE' in scope
620 |         }
621 |     }
/host/spi-builder-workspace/Sources/Server.swift:625:68: error: cannot find 'EVFILT_READ' in scope
623 |     func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 |         }
/host/spi-builder-workspace/Sources/Server.swift:625:89: error: cannot find 'EV_DELETE' in scope
623 |     func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
    |                                                                                         `- error: cannot find 'EV_DELETE' in scope
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 |         }
/host/spi-builder-workspace/Sources/Server.swift:626:68: error: cannot find 'EVFILT_WRITE' in scope
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
627 |         }
628 |     }
/host/spi-builder-workspace/Sources/Server.swift:626:90: error: cannot find 'EV_DELETE' in scope
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
    |                                                                                          `- error: cannot find 'EV_DELETE' in scope
627 |         }
628 |     }
/host/spi-builder-workspace/Sources/Server.swift:632:68: error: cannot find 'EVFILT_READ' in scope
630 |     func pause(_ ident: UInt, _ event: Subscription) {
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 |         }
/host/spi-builder-workspace/Sources/Server.swift:632:89: error: cannot find 'EV_DISABLE' in scope
630 |     func pause(_ ident: UInt, _ event: Subscription) {
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
    |                                                                                         `- error: cannot find 'EV_DISABLE' in scope
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 |         }
/host/spi-builder-workspace/Sources/Server.swift:633:68: error: cannot find 'EVFILT_WRITE' in scope
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
634 |         }
635 |     }
/host/spi-builder-workspace/Sources/Server.swift:633:90: error: cannot find 'EV_DISABLE' in scope
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
    |                                                                                          `- error: cannot find 'EV_DISABLE' in scope
634 |         }
635 |     }
/host/spi-builder-workspace/Sources/Server.swift:639:68: error: cannot find 'EVFILT_READ' in scope
637 |     func resume(_ ident: UInt, _ event: Subscription) {
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 |         }
/host/spi-builder-workspace/Sources/Server.swift:639:89: error: cannot find 'EV_ENABLE' in scope
637 |     func resume(_ ident: UInt, _ event: Subscription) {
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
    |                                                                                         `- error: cannot find 'EV_ENABLE' in scope
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 |         }
/host/spi-builder-workspace/Sources/Server.swift:640:68: error: cannot find 'EVFILT_WRITE' in scope
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
641 |         }
642 |     }
/host/spi-builder-workspace/Sources/Server.swift:640:90: error: cannot find 'EV_ENABLE' in scope
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
    |                                                                                          `- error: cannot find 'EV_ENABLE' in scope
641 |         }
642 |     }
/host/spi-builder-workspace/Sources/Server.swift:651:16: error: cannot find 'kevent' in scope
649 |
650 |         if !changes.isEmpty {
651 |             if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
    |                `- error: cannot find 'kevent' in scope
652 |                 throw AsyncError.async(Process.error)
653 |             }
/host/spi-builder-workspace/Sources/Server.swift:651:67: error: 'nil' requires a contextual type
649 |
650 |         if !changes.isEmpty {
651 |             if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
    |                                                                   `- error: 'nil' requires a contextual type
652 |                 throw AsyncError.async(Process.error)
653 |             }
/host/spi-builder-workspace/Sources/Server.swift:651:75: error: 'nil' requires a contextual type
649 |
650 |         if !changes.isEmpty {
651 |             if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
    |                                                                           `- error: 'nil' requires a contextual type
652 |                 throw AsyncError.async(Process.error)
653 |             }
/host/spi-builder-workspace/Sources/Server.swift:658:32: error: cannot find 'kevent' in scope
656 |         self.changes.removeAll(keepingCapacity: true)
657 |
658 |         guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
    |                                `- error: cannot find 'kevent' in scope
659 |             throw AsyncError.async(Process.error)
660 |         }
/host/spi-builder-workspace/Sources/Server.swift:658:51: error: 'nil' requires a contextual type
656 |         self.changes.removeAll(keepingCapacity: true)
657 |
658 |         guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
    |                                                   `- error: 'nil' requires a contextual type
659 |             throw AsyncError.async(Process.error)
660 |         }
/host/spi-builder-workspace/Sources/Server.swift:658:89: error: 'nil' requires a contextual type
656 |         self.changes.removeAll(keepingCapacity: true)
657 |
658 |         guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
    |                                                                                         `- error: 'nil' requires a contextual type
659 |             throw AsyncError.async(Process.error)
660 |         }
/host/spi-builder-workspace/Sources/Server.swift:664:37: error: cannot find 'EV_EOF' in scope
662 |         for event in events[0..<Int(count)] {
663 |
664 |             if Int32(event.flags) & EV_EOF != 0 || Int32(event.flags) & EV_ERROR != 0 {
    |                                     `- error: cannot find 'EV_EOF' in scope
665 |                 try callback((.error, event.ident, 0))
666 |                 continue
/host/spi-builder-workspace/Sources/Server.swift:664:73: error: cannot find 'EV_ERROR' in scope
662 |         for event in events[0..<Int(count)] {
663 |
664 |             if Int32(event.flags) & EV_EOF != 0 || Int32(event.flags) & EV_ERROR != 0 {
    |                                                                         `- error: cannot find 'EV_ERROR' in scope
665 |                 try callback((.error, event.ident, 0))
666 |                 continue
/host/spi-builder-workspace/Sources/Server.swift:668:39: error: cannot find 'EVFILT_READ' in scope
666 |                 continue
667 |             }
668 |             if Int32(event.filter) == EVFILT_READ {
    |                                       `- error: cannot find 'EVFILT_READ' in scope
669 |                 try callback((.read, event.ident, event.data))
670 |                 continue
/host/spi-builder-workspace/Sources/Server.swift:672:39: error: cannot find 'EVFILT_WRITE' in scope
670 |                 continue
671 |             }
672 |             if Int32(event.filter) == EVFILT_WRITE {
    |                                       `- error: cannot find 'EVFILT_WRITE' in scope
673 |                 try callback((.write, event.ident, event.data))
674 |                 continue
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[18/36] Compiling slash SlackChannel.swift
/host/spi-builder-workspace/Sources/Server.swift:189:9: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
187 |     }
188 |
189 |     var hashValue: Int { return Int(self.socket) }
    |         `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'HttpIncomingDataPorcessor' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
190 |
191 |     func process(_ chunk: ArraySlice<UInt8>) throws {
/host/spi-builder-workspace/Sources/Server.swift:601:51: error: cannot find 'kevent' in scope
599 | class KernelQueue {
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
    |                                                   `- error: cannot find 'kevent' in scope
602 |     private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:601:32: error: cannot find type 'kevent' in scope
599 | class KernelQueue {
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
    |                                `- error: cannot find type 'kevent' in scope
602 |     private var changes = Array<kevent>()
603 |
/host/spi-builder-workspace/Sources/Server.swift:602:33: error: cannot find type 'kevent' in scope
600 |
601 |     private var events = Array<kevent>(repeating: kevent(), count: 256)
602 |     private var changes = Array<kevent>()
    |                                 `- error: cannot find type 'kevent' in scope
603 |
604 |     private let queue: Int32
/host/spi-builder-workspace/Sources/Server.swift:644:76: error: cannot find type 'kevent' in scope
642 |     }
643 |
644 |     private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
    |                                                                            `- error: cannot find type 'kevent' in scope
645 |         return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
646 |     }
/host/spi-builder-workspace/Sources/Server.swift:320:31: error: cannot find 'LinuxAsyncServer' in scope
318 |     init(_ port: in_port_t = 8080) throws {
319 |         #if os(Linux)
320 |             self.server = try LinuxAsyncServer(port)
    |                               `- error: cannot find 'LinuxAsyncServer' in scope
321 |         #else
322 |             self.server = try MacOSAsyncTCPServer(port)
/host/spi-builder-workspace/Sources/Server.swift:481:25: warning: variable 'chunk' was never mutated; consider changing to 'let' constant
479 |             case .write:
480 |                 while let backlogElement = self.backlog[Int32(signal.ident)]?.first {
481 |                     var chunk = backlogElement.chunk
    |                         `- warning: variable 'chunk' was never mutated; consider changing to 'let' constant
482 |                     let result = Socket.write(Int32(signal.ident), chunk, min(chunk.count, signal.data))
483 |                     if result == -1 {
/host/spi-builder-workspace/Sources/Server.swift:533:22: error: cannot find 'Darwin' in scope
531 |     static func nonBlockingSocketForListenening(_ port: in_port_t = 8080) throws -> Int32 {
532 |
533 |         let server = Darwin.socket(AF_INET, SOCK_STREAM, 0)
    |                      `- error: cannot find 'Darwin' in scope
534 |
535 |         guard server != -1 else {
/host/spi-builder-workspace/Sources/Server.swift:540:12: error: cannot find 'Darwin' in scope
538 |
539 |         var value: Int32 = 1
540 |         if Darwin.setsockopt(server, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'Darwin' in scope
541 |             defer { let _ = Socket.close(server) }
542 |             throw AsyncError.setReuseAddrFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:550:43: error: cannot find 'Darwin' in scope
548 |         var addr = anyAddrForPort(port)
549 |
550 |         if withUnsafePointer(to: &addr, { Darwin.bind(server, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size)) }) == -1 {
    |                                           `- error: cannot find 'Darwin' in scope
551 |             defer { let _ = Socket.close(server) }
552 |             throw AsyncError.bindFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:555:12: error: cannot find 'Darwin' in scope
553 |         }
554 |
555 |         if Darwin.listen(server, SOMAXCONN) == -1 {
    |            `- error: cannot find 'Darwin' in scope
556 |             defer { let _ = Socket.close(server) }
557 |             throw AsyncError.listenFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:565:33: error: cannot find 'Darwin' in scope
563 |     static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 |         guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
    |                                 `- error: cannot find 'Darwin' in scope
566 |             throw AsyncError.acceptFailed(Process.error)
567 |         }
/host/spi-builder-workspace/Sources/Server.swift:565:55: error: 'nil' requires a contextual type
563 |     static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 |         guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
    |                                                       `- error: 'nil' requires a contextual type
566 |             throw AsyncError.acceptFailed(Process.error)
567 |         }
/host/spi-builder-workspace/Sources/Server.swift:565:60: error: 'nil' requires a contextual type
563 |     static func acceptAndConfigureClientSocket(_ socket: Int32) throws -> Int32 {
564 |
565 |         guard case let client = Darwin.accept(socket, nil, nil), client != -1 else {
    |                                                            `- error: 'nil' requires a contextual type
566 |             throw AsyncError.acceptFailed(Process.error)
567 |         }
/host/spi-builder-workspace/Sources/Server.swift:577:14: error: value of type 'sockaddr_in' has no member 'sin_len'
575 |     static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
576 |         var addr = sockaddr_in()
577 |         addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
    |              `- error: value of type 'sockaddr_in' has no member 'sin_len'
578 |         addr.sin_family = sa_family_t(AF_INET)
579 |         addr.sin_port = port.bigEndian
/host/spi-builder-workspace/Sources/Server.swift:586:12: error: cannot find 'Darwin' in scope
584 |
585 |     static func setSocketNonBlocking(_ socket: Int32) throws {
586 |         if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
    |            `- error: cannot find 'Darwin' in scope
587 |             throw AsyncError.setNonBlockFailed(Process.error)
588 |         }
/host/spi-builder-workspace/Sources/Server.swift:586:42: error: cannot find 'Darwin' in scope
584 |
585 |     static func setSocketNonBlocking(_ socket: Int32) throws {
586 |         if Darwin.fcntl(socket, F_SETFL, Darwin.fcntl(socket, F_GETFL, 0) | O_NONBLOCK) == -1 {
    |                                          `- error: cannot find 'Darwin' in scope
587 |             throw AsyncError.setNonBlockFailed(Process.error)
588 |         }
/host/spi-builder-workspace/Sources/Server.swift:593:12: error: cannot find 'Darwin' in scope
591 |     static func setSocketNoSigPipe(_ socket: Int32) throws {
592 |         var value = 1
593 |         if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'Darwin' in scope
594 |             throw AsyncError.setNoSigPipeFailed(Process.error)
595 |         }
/host/spi-builder-workspace/Sources/Server.swift:593:50: error: cannot find 'SO_NOSIGPIPE' in scope
591 |     static func setSocketNoSigPipe(_ socket: Int32) throws {
592 |         var value = 1
593 |         if Darwin.setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                                  `- error: cannot find 'SO_NOSIGPIPE' in scope
594 |             throw AsyncError.setNoSigPipeFailed(Process.error)
595 |         }
/host/spi-builder-workspace/Sources/Server.swift:610:32: error: cannot find 'kqueue' in scope
608 |
609 |     init() throws {
610 |         guard case let queue = kqueue(), queue != -1 else {
    |                                `- error: cannot find 'kqueue' in scope
611 |             throw AsyncError.async(Process.error)
612 |         }
/host/spi-builder-workspace/Sources/Server.swift:618:68: error: cannot find 'EVFILT_READ' in scope
616 |     func subscribe(_ ident: UInt, _ event: Subscription) {
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 |         }
/host/spi-builder-workspace/Sources/Server.swift:618:89: error: cannot find 'EV_ADD' in scope
616 |     func subscribe(_ ident: UInt, _ event: Subscription) {
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                         `- error: cannot find 'EV_ADD' in scope
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 |         }
/host/spi-builder-workspace/Sources/Server.swift:618:106: error: cannot find 'EV_ENABLE' in scope
616 |     func subscribe(_ ident: UInt, _ event: Subscription) {
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                                          `- error: cannot find 'EV_ENABLE' in scope
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
620 |         }
/host/spi-builder-workspace/Sources/Server.swift:619:68: error: cannot find 'EVFILT_WRITE' in scope
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
620 |         }
621 |     }
/host/spi-builder-workspace/Sources/Server.swift:619:90: error: cannot find 'EV_ADD' in scope
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                          `- error: cannot find 'EV_ADD' in scope
620 |         }
621 |     }
/host/spi-builder-workspace/Sources/Server.swift:619:107: error: cannot find 'EV_ENABLE' in scope
617 |         switch event {
618 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
619 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ADD) | UInt16(EV_ENABLE)))
    |                                                                                                           `- error: cannot find 'EV_ENABLE' in scope
620 |         }
621 |     }
/host/spi-builder-workspace/Sources/Server.swift:625:68: error: cannot find 'EVFILT_READ' in scope
623 |     func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 |         }
/host/spi-builder-workspace/Sources/Server.swift:625:89: error: cannot find 'EV_DELETE' in scope
623 |     func unsubscribe(_ ident: UInt, _ event: Subscription) {
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
    |                                                                                         `- error: cannot find 'EV_DELETE' in scope
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
627 |         }
/host/spi-builder-workspace/Sources/Server.swift:626:68: error: cannot find 'EVFILT_WRITE' in scope
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
627 |         }
628 |     }
/host/spi-builder-workspace/Sources/Server.swift:626:90: error: cannot find 'EV_DELETE' in scope
624 |         switch event {
625 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DELETE)))
626 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DELETE)))
    |                                                                                          `- error: cannot find 'EV_DELETE' in scope
627 |         }
628 |     }
/host/spi-builder-workspace/Sources/Server.swift:632:68: error: cannot find 'EVFILT_READ' in scope
630 |     func pause(_ ident: UInt, _ event: Subscription) {
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 |         }
/host/spi-builder-workspace/Sources/Server.swift:632:89: error: cannot find 'EV_DISABLE' in scope
630 |     func pause(_ ident: UInt, _ event: Subscription) {
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
    |                                                                                         `- error: cannot find 'EV_DISABLE' in scope
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
634 |         }
/host/spi-builder-workspace/Sources/Server.swift:633:68: error: cannot find 'EVFILT_WRITE' in scope
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
634 |         }
635 |     }
/host/spi-builder-workspace/Sources/Server.swift:633:90: error: cannot find 'EV_DISABLE' in scope
631 |         switch event {
632 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_DISABLE)))
633 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_DISABLE)))
    |                                                                                          `- error: cannot find 'EV_DISABLE' in scope
634 |         }
635 |     }
/host/spi-builder-workspace/Sources/Server.swift:639:68: error: cannot find 'EVFILT_READ' in scope
637 |     func resume(_ ident: UInt, _ event: Subscription) {
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_READ' in scope
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 |         }
/host/spi-builder-workspace/Sources/Server.swift:639:89: error: cannot find 'EV_ENABLE' in scope
637 |     func resume(_ ident: UInt, _ event: Subscription) {
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
    |                                                                                         `- error: cannot find 'EV_ENABLE' in scope
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
641 |         }
/host/spi-builder-workspace/Sources/Server.swift:640:68: error: cannot find 'EVFILT_WRITE' in scope
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
    |                                                                    `- error: cannot find 'EVFILT_WRITE' in scope
641 |         }
642 |     }
/host/spi-builder-workspace/Sources/Server.swift:640:90: error: cannot find 'EV_ENABLE' in scope
638 |         switch event {
639 |         case .read  : changes.append(self.event(UInt(ident), Int16(EVFILT_READ), UInt16(EV_ENABLE)))
640 |         case .write : changes.append(self.event(UInt(ident), Int16(EVFILT_WRITE), UInt16(EV_ENABLE)))
    |                                                                                          `- error: cannot find 'EV_ENABLE' in scope
641 |         }
642 |     }
/host/spi-builder-workspace/Sources/Server.swift:651:16: error: cannot find 'kevent' in scope
649 |
650 |         if !changes.isEmpty {
651 |             if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
    |                `- error: cannot find 'kevent' in scope
652 |                 throw AsyncError.async(Process.error)
653 |             }
/host/spi-builder-workspace/Sources/Server.swift:651:67: error: 'nil' requires a contextual type
649 |
650 |         if !changes.isEmpty {
651 |             if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
    |                                                                   `- error: 'nil' requires a contextual type
652 |                 throw AsyncError.async(Process.error)
653 |             }
/host/spi-builder-workspace/Sources/Server.swift:651:75: error: 'nil' requires a contextual type
649 |
650 |         if !changes.isEmpty {
651 |             if kevent(self.queue, &changes, Int32(changes.count), nil, 0, nil) == -1 {
    |                                                                           `- error: 'nil' requires a contextual type
652 |                 throw AsyncError.async(Process.error)
653 |             }
/host/spi-builder-workspace/Sources/Server.swift:658:32: error: cannot find 'kevent' in scope
656 |         self.changes.removeAll(keepingCapacity: true)
657 |
658 |         guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
    |                                `- error: cannot find 'kevent' in scope
659 |             throw AsyncError.async(Process.error)
660 |         }
/host/spi-builder-workspace/Sources/Server.swift:658:51: error: 'nil' requires a contextual type
656 |         self.changes.removeAll(keepingCapacity: true)
657 |
658 |         guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
    |                                                   `- error: 'nil' requires a contextual type
659 |             throw AsyncError.async(Process.error)
660 |         }
/host/spi-builder-workspace/Sources/Server.swift:658:89: error: 'nil' requires a contextual type
656 |         self.changes.removeAll(keepingCapacity: true)
657 |
658 |         guard case let count = kevent(self.queue, nil, 0, &events, Int32(events.count), nil), count != -1 else {
    |                                                                                         `- error: 'nil' requires a contextual type
659 |             throw AsyncError.async(Process.error)
660 |         }
/host/spi-builder-workspace/Sources/Server.swift:664:37: error: cannot find 'EV_EOF' in scope
662 |         for event in events[0..<Int(count)] {
663 |
664 |             if Int32(event.flags) & EV_EOF != 0 || Int32(event.flags) & EV_ERROR != 0 {
    |                                     `- error: cannot find 'EV_EOF' in scope
665 |                 try callback((.error, event.ident, 0))
666 |                 continue
/host/spi-builder-workspace/Sources/Server.swift:664:73: error: cannot find 'EV_ERROR' in scope
662 |         for event in events[0..<Int(count)] {
663 |
664 |             if Int32(event.flags) & EV_EOF != 0 || Int32(event.flags) & EV_ERROR != 0 {
    |                                                                         `- error: cannot find 'EV_ERROR' in scope
665 |                 try callback((.error, event.ident, 0))
666 |                 continue
/host/spi-builder-workspace/Sources/Server.swift:668:39: error: cannot find 'EVFILT_READ' in scope
666 |                 continue
667 |             }
668 |             if Int32(event.filter) == EVFILT_READ {
    |                                       `- error: cannot find 'EVFILT_READ' in scope
669 |                 try callback((.read, event.ident, event.data))
670 |                 continue
/host/spi-builder-workspace/Sources/Server.swift:672:39: error: cannot find 'EVFILT_WRITE' in scope
670 |                 continue
671 |             }
672 |             if Int32(event.filter) == EVFILT_WRITE {
    |                                       `- error: cannot find 'EVFILT_WRITE' in scope
673 |                 try callback((.write, event.ident, event.data))
674 |                 continue
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[19/36] Compiling slash SlackRealTimeClient.swift
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:76: error: cannot find 'URLRequest' in scope
 76 |         }
 77 |
 78 |         let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
    |                                                                            `- error: cannot find 'URLRequest' in scope
 79 |         guard let data = theData else {
 80 |             throw SlackWebClientError.error("Error receiving data.")
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         }
 77 |
 78 |         let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |         guard let data = theData else {
 80 |             throw SlackWebClientError.error("Error receiving data.")
[20/36] Compiling slash SlackTeam.swift
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:76: error: cannot find 'URLRequest' in scope
 76 |         }
 77 |
 78 |         let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
    |                                                                            `- error: cannot find 'URLRequest' in scope
 79 |         guard let data = theData else {
 80 |             throw SlackWebClientError.error("Error receiving data.")
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         }
 77 |
 78 |         let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |         guard let data = theData else {
 80 |             throw SlackWebClientError.error("Error receiving data.")
[21/36] Compiling slash SlackUser.swift
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:76: error: cannot find 'URLRequest' in scope
 76 |         }
 77 |
 78 |         let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
    |                                                                            `- error: cannot find 'URLRequest' in scope
 79 |         guard let data = theData else {
 80 |             throw SlackWebClientError.error("Error receiving data.")
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         }
 77 |
 78 |         let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |         guard let data = theData else {
 80 |             throw SlackWebClientError.error("Error receiving data.")
[22/36] Compiling slash SlackWebClient.swift
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:76: error: cannot find 'URLRequest' in scope
 76 |         }
 77 |
 78 |         let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
    |                                                                            `- error: cannot find 'URLRequest' in scope
 79 |         guard let data = theData else {
 80 |             throw SlackWebClientError.error("Error receiving data.")
/host/spi-builder-workspace/Sources/SlackWebClient.swift:78:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 76 |         }
 77 |
 78 |         let (theData, _) = try URLSession.shared.synchronousDataTask(with: URLRequest(url: url))
    |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 79 |         guard let data = theData else {
 80 |             throw SlackWebClientError.error("Error receiving data.")
[23/36] Compiling slash Utils.swift
/host/spi-builder-workspace/Sources/Utils.swift:14:14: warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
12 |     class func shell(_ args: String...) {
13 |         let task = Process()
14 |         task.launchPath = "/usr/bin/env"
   |              |- warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
   |              `- note: use 'executableURL' instead
15 |         task.arguments = args
16 |         task.launch()
/host/spi-builder-workspace/Sources/Utils.swift:16:14: warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
14 |         task.launchPath = "/usr/bin/env"
15 |         task.arguments = args
16 |         task.launch()
   |              |- warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
   |              `- note: use 'run' instead
17 |     }
18 |
/host/spi-builder-workspace/Sources/WebSocketClient.swift:37:25: error: cannot find type 'TLSSocket' in scope
 35 |
 36 |     private let mask: [UInt8]
 37 |     private let socket: TLSSocket
    |                         `- error: cannot find type 'TLSSocket' in scope
 38 |
 39 |     private var inputBuffer = [UInt8]()
/host/spi-builder-workspace/Sources/WebSocketClient.swift:45:27: error: cannot find 'TLSSocket' in scope
 43 |         self.mask = WebSocketClient.provideRandomValues(4)
 44 |
 45 |         self.socket = try TLSSocket(try WebSocketClient.addressForHost(host))
    |                           `- error: cannot find 'TLSSocket' in scope
 46 |
 47 |         let secWebSocketKey = Data(WebSocketClient.provideRandomValues(16)).base64EncodedString()
/host/spi-builder-workspace/Sources/WebSocketClient.swift:90:33: error: cannot find 'arc4random' in scope
 88 |         var result = [UInt8]()
 89 |         for _ in 0..<count {
 90 |             result.append(UInt8(arc4random() % UInt32(UInt8.max)))
    |                                 `- error: cannot find 'arc4random' in scope
 91 |         }
 92 |         return result
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[24/36] Compiling slash WebSocketClient.swift
/host/spi-builder-workspace/Sources/Utils.swift:14:14: warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
12 |     class func shell(_ args: String...) {
13 |         let task = Process()
14 |         task.launchPath = "/usr/bin/env"
   |              |- warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
   |              `- note: use 'executableURL' instead
15 |         task.arguments = args
16 |         task.launch()
/host/spi-builder-workspace/Sources/Utils.swift:16:14: warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
14 |         task.launchPath = "/usr/bin/env"
15 |         task.arguments = args
16 |         task.launch()
   |              |- warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
   |              `- note: use 'run' instead
17 |     }
18 |
/host/spi-builder-workspace/Sources/WebSocketClient.swift:37:25: error: cannot find type 'TLSSocket' in scope
 35 |
 36 |     private let mask: [UInt8]
 37 |     private let socket: TLSSocket
    |                         `- error: cannot find type 'TLSSocket' in scope
 38 |
 39 |     private var inputBuffer = [UInt8]()
/host/spi-builder-workspace/Sources/WebSocketClient.swift:45:27: error: cannot find 'TLSSocket' in scope
 43 |         self.mask = WebSocketClient.provideRandomValues(4)
 44 |
 45 |         self.socket = try TLSSocket(try WebSocketClient.addressForHost(host))
    |                           `- error: cannot find 'TLSSocket' in scope
 46 |
 47 |         let secWebSocketKey = Data(WebSocketClient.provideRandomValues(16)).base64EncodedString()
/host/spi-builder-workspace/Sources/WebSocketClient.swift:90:33: error: cannot find 'arc4random' in scope
 88 |         var result = [UInt8]()
 89 |         for _ in 0..<count {
 90 |             result.append(UInt8(arc4random() % UInt32(UInt8.max)))
    |                                 `- error: cannot find 'arc4random' in scope
 91 |         }
 92 |         return result
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[25/36] Compiling slash main.swift
/host/spi-builder-workspace/Sources/Utils.swift:14:14: warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
12 |     class func shell(_ args: String...) {
13 |         let task = Process()
14 |         task.launchPath = "/usr/bin/env"
   |              |- warning: 'launchPath' is deprecated: renamed to 'executableURL' [#DeprecatedDeclaration]
   |              `- note: use 'executableURL' instead
15 |         task.arguments = args
16 |         task.launch()
/host/spi-builder-workspace/Sources/Utils.swift:16:14: warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
14 |         task.launchPath = "/usr/bin/env"
15 |         task.arguments = args
16 |         task.launch()
   |              |- warning: 'launch()' is deprecated: renamed to 'run' [#DeprecatedDeclaration]
   |              `- note: use 'run' instead
17 |     }
18 |
/host/spi-builder-workspace/Sources/WebSocketClient.swift:37:25: error: cannot find type 'TLSSocket' in scope
 35 |
 36 |     private let mask: [UInt8]
 37 |     private let socket: TLSSocket
    |                         `- error: cannot find type 'TLSSocket' in scope
 38 |
 39 |     private var inputBuffer = [UInt8]()
/host/spi-builder-workspace/Sources/WebSocketClient.swift:45:27: error: cannot find 'TLSSocket' in scope
 43 |         self.mask = WebSocketClient.provideRandomValues(4)
 44 |
 45 |         self.socket = try TLSSocket(try WebSocketClient.addressForHost(host))
    |                           `- error: cannot find 'TLSSocket' in scope
 46 |
 47 |         let secWebSocketKey = Data(WebSocketClient.provideRandomValues(16)).base64EncodedString()
/host/spi-builder-workspace/Sources/WebSocketClient.swift:90:33: error: cannot find 'arc4random' in scope
 88 |         var result = [UInt8]()
 89 |         for _ in 0..<count {
 90 |             result.append(UInt8(arc4random() % UInt32(UInt8.max)))
    |                                 `- error: cannot find 'arc4random' in scope
 91 |         }
 92 |         return result
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[26/36] Compiling slash Socket.swift
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:37: error: cannot convert value of type 'Int32' to expected argument type 'UInt'
 50 |     var size: (width: Int, height: Int) {
 51 |         var w = winsize()
 52 |         guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
    |                                     `- error: cannot convert value of type 'Int32' to expected argument type 'UInt'
 53 |             exit(1)
 54 |         }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:60:17: error: cannot find 'getwchar' in scope
 58 |     func key() -> ControlKey {
 59 |
 60 |         let c = getwchar()
    |                 `- error: cannot find 'getwchar' in scope
 61 |
 62 |         switch c {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:79:26: error: cannot find 'getwchar' in scope
 77 |             case 27:
 78 |
 79 |                 let c1 = getwchar()
    |                          `- error: cannot find 'getwchar' in scope
 80 |                 let c2 = getwchar()
 81 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:80:26: error: cannot find 'getwchar' in scope
 78 |
 79 |                 let c1 = getwchar()
 80 |                 let c2 = getwchar()
    |                          `- error: cannot find 'getwchar' in scope
 81 |
 82 |                 if c1 == 91 {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:118:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
116 |         memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
117 |
118 |         rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
    |         `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
119 |
120 |             & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:122:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
120 |             & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
121 |
122 |         rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
    |         `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
123 |
124 |             & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:126:34: error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
124 |             & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
125 |
126 |         rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
    |                                  `- error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
127 |         rawModeTermios.c_oflag = 0
128 |
[27/36] Compiling slash TLSSocket.swift
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:37: error: cannot convert value of type 'Int32' to expected argument type 'UInt'
 50 |     var size: (width: Int, height: Int) {
 51 |         var w = winsize()
 52 |         guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
    |                                     `- error: cannot convert value of type 'Int32' to expected argument type 'UInt'
 53 |             exit(1)
 54 |         }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:60:17: error: cannot find 'getwchar' in scope
 58 |     func key() -> ControlKey {
 59 |
 60 |         let c = getwchar()
    |                 `- error: cannot find 'getwchar' in scope
 61 |
 62 |         switch c {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:79:26: error: cannot find 'getwchar' in scope
 77 |             case 27:
 78 |
 79 |                 let c1 = getwchar()
    |                          `- error: cannot find 'getwchar' in scope
 80 |                 let c2 = getwchar()
 81 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:80:26: error: cannot find 'getwchar' in scope
 78 |
 79 |                 let c1 = getwchar()
 80 |                 let c2 = getwchar()
    |                          `- error: cannot find 'getwchar' in scope
 81 |
 82 |                 if c1 == 91 {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:118:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
116 |         memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
117 |
118 |         rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
    |         `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
119 |
120 |             & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:122:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
120 |             & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
121 |
122 |         rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
    |         `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
123 |
124 |             & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:126:34: error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
124 |             & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
125 |
126 |         rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
    |                                  `- error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
127 |         rawModeTermios.c_oflag = 0
128 |
[28/36] Compiling slash TerminalCanvas.swift
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:37: error: cannot convert value of type 'Int32' to expected argument type 'UInt'
 50 |     var size: (width: Int, height: Int) {
 51 |         var w = winsize()
 52 |         guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
    |                                     `- error: cannot convert value of type 'Int32' to expected argument type 'UInt'
 53 |             exit(1)
 54 |         }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:60:17: error: cannot find 'getwchar' in scope
 58 |     func key() -> ControlKey {
 59 |
 60 |         let c = getwchar()
    |                 `- error: cannot find 'getwchar' in scope
 61 |
 62 |         switch c {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:79:26: error: cannot find 'getwchar' in scope
 77 |             case 27:
 78 |
 79 |                 let c1 = getwchar()
    |                          `- error: cannot find 'getwchar' in scope
 80 |                 let c2 = getwchar()
 81 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:80:26: error: cannot find 'getwchar' in scope
 78 |
 79 |                 let c1 = getwchar()
 80 |                 let c2 = getwchar()
    |                          `- error: cannot find 'getwchar' in scope
 81 |
 82 |                 if c1 == 91 {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:118:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
116 |         memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
117 |
118 |         rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
    |         `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
119 |
120 |             & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:122:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
120 |             & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
121 |
122 |         rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
    |         `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
123 |
124 |             & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:126:34: error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
124 |             & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
125 |
126 |         rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
    |                                  `- error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
127 |         rawModeTermios.c_oflag = 0
128 |
[29/36] Compiling slash TerminalDevice.swift
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:37: error: cannot convert value of type 'Int32' to expected argument type 'UInt'
 50 |     var size: (width: Int, height: Int) {
 51 |         var w = winsize()
 52 |         guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
    |                                     `- error: cannot convert value of type 'Int32' to expected argument type 'UInt'
 53 |             exit(1)
 54 |         }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:60:17: error: cannot find 'getwchar' in scope
 58 |     func key() -> ControlKey {
 59 |
 60 |         let c = getwchar()
    |                 `- error: cannot find 'getwchar' in scope
 61 |
 62 |         switch c {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:79:26: error: cannot find 'getwchar' in scope
 77 |             case 27:
 78 |
 79 |                 let c1 = getwchar()
    |                          `- error: cannot find 'getwchar' in scope
 80 |                 let c2 = getwchar()
 81 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:80:26: error: cannot find 'getwchar' in scope
 78 |
 79 |                 let c1 = getwchar()
 80 |                 let c2 = getwchar()
    |                          `- error: cannot find 'getwchar' in scope
 81 |
 82 |                 if c1 == 91 {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:118:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
116 |         memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
117 |
118 |         rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
    |         `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
119 |
120 |             & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:122:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
120 |             & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
121 |
122 |         rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
    |         `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
123 |
124 |             & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
/host/spi-builder-workspace/Sources/TerminalDevice.swift:126:34: error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
124 |             & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
125 |
126 |         rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
    |                                  `- error: cannot assign value of type 'UInt' to type 'tcflag_t' (aka 'UInt32')
127 |         rawModeTermios.c_oflag = 0
128 |
[30/36] Compiling slash SlackContext.swift
/host/spi-builder-workspace/Sources/SlackEmojiDecoder.swift:13:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
  11 |     func decode(_ text: String) -> String {
  12 |         //TODO - improve this by iterating only once over the text.
  13 |         return text
     |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
  14 |             .replacingOccurrences(of: ":skin-tone-1:", with: "🏻")
  15 |             .replacingOccurrences(of: ":skin-tone-2:", with: "🏻")
[31/36] Compiling slash SlackEmojiDecoder.swift
/host/spi-builder-workspace/Sources/SlackEmojiDecoder.swift:13:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
  11 |     func decode(_ text: String) -> String {
  12 |         //TODO - improve this by iterating only once over the text.
  13 |         return text
     |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
  14 |             .replacingOccurrences(of: ":skin-tone-1:", with: "🏻")
  15 |             .replacingOccurrences(of: ":skin-tone-2:", with: "🏻")
[32/36] Compiling slash SlackEvent.swift
/host/spi-builder-workspace/Sources/SlackEmojiDecoder.swift:13:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
  11 |     func decode(_ text: String) -> String {
  12 |         //TODO - improve this by iterating only once over the text.
  13 |         return text
     |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
  14 |             .replacingOccurrences(of: ":skin-tone-1:", with: "🏻")
  15 |             .replacingOccurrences(of: ":skin-tone-2:", with: "🏻")
[33/36] Compiling slash SlackGroup.swift
/host/spi-builder-workspace/Sources/SlackEmojiDecoder.swift:13:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
  11 |     func decode(_ text: String) -> String {
  12 |         //TODO - improve this by iterating only once over the text.
  13 |         return text
     |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
  14 |             .replacingOccurrences(of: ":skin-tone-1:", with: "🏻")
  15 |             .replacingOccurrences(of: ":skin-tone-2:", with: "🏻")
BUILD FAILURE 6.2 linux