Build Information
Failed to build Ambassador, reference v5.0.0-rc.1 (b6d3cf), with Swift 6.2 for Linux on 29 Sep 2026 07:54:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/envoy/Ambassador.git
Reference: v5.0.0-rc.1
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/envoy/Ambassador
* tag v5.0.0-rc.1 -> FETCH_HEAD
HEAD is now at b6d3cf1 Declare iOS 15 / macOS 12 / tvOS 15 platforms to match Embassy 5
Cloned https://github.com/envoy/Ambassador.git
Revision (git rev-parse @):
b6d3cf1c7d138955871826607715fc3b7f65ee69
SUCCESS checkout https://github.com/envoy/Ambassador.git at v5.0.0-rc.1
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/envoy/Ambassador.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:813c8e8a77634154d7d247705cb89167ff1c866446abbe321f542129dc4cf5a7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.2-latest
Fetching https://github.com/envoy/Embassy.git
[1/2100] Fetching embassy
Fetched https://github.com/envoy/Embassy.git from cache (0.53s)
Computing version for https://github.com/envoy/Embassy.git
Computed https://github.com/envoy/Embassy.git at 5.0.0-rc (0.68s)
Creating working copy for https://github.com/envoy/Embassy.git
Working copy of https://github.com/envoy/Embassy.git resolved at 5.0.0-rc
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/29] Compiling Embassy FileLogHandler.swift
[5/29] Compiling Embassy LogFormatter.swift
[6/29] Compiling Embassy LogHandler.swift
[7/29] Compiling Embassy Logger.swift
[8/29] Compiling Embassy HTTPServer.swift
[9/29] Compiling Embassy PropagateLogHandler.swift
[10/29] Compiling Embassy SWSGI.swift
[11/32] Compiling Embassy PrintLogHandler.swift
[12/32] Compiling Embassy TransformLogHandler.swift
[13/32] Compiling Embassy MultiDictionary.swift
[14/32] Compiling Embassy DefaultHTTPServer.swift
[15/32] Compiling Embassy HTTPConnection.swift
[16/32] Compiling Embassy HTTPHeaderParser.swift
[17/32] Compiling Embassy HTTPRequest.swift
[18/32] Compiling Embassy SWSGIUtils.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:52:13: error: cannot find 'Darwin' in scope
50 | var pipeFds = [Int32](repeating: 0, count: 2)
51 | let pipeResult = pipeFds.withUnsafeMutableBufferPointer {
52 | Darwin.pipe($0.baseAddress)
| `- error: cannot find 'Darwin' in scope
53 | }
54 | guard pipeResult >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:74:21: error: cannot find 'Darwin' in scope
72 | while readSize > 0 {
73 | readSize = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
74 | Darwin.read(localPipeReceiver, buffer.baseAddress, buffer.count)
| `- error: cannot find 'Darwin' in scope
75 | }
76 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:83:13: error: cannot find 'Darwin' in scope
81 | stop()
82 | removeReader(pipeReceiver)
83 | _ = Darwin.close(pipeSender)
| `- error: cannot find 'Darwin' in scope
84 | _ = Darwin.close(pipeReceiver)
85 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:84:13: error: cannot find 'Darwin' in scope
82 | removeReader(pipeReceiver)
83 | _ = Darwin.close(pipeSender)
84 | _ = Darwin.close(pipeReceiver)
| `- error: cannot find 'Darwin' in scope
85 | }
86 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:190:78: error: cannot find 'NSEC_PER_SEC' in scope
188 | let now = DispatchTime.now().uptimeNanoseconds
189 | guard deadline.uptimeNanoseconds > now else { return 0 }
190 | return TimeInterval(deadline.uptimeNanoseconds - now) / TimeInterval(NSEC_PER_SEC)
| `- error: cannot find 'NSEC_PER_SEC' in scope
191 | }
192 |
[19/32] Compiling Embassy Selector.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:52:13: error: cannot find 'Darwin' in scope
50 | var pipeFds = [Int32](repeating: 0, count: 2)
51 | let pipeResult = pipeFds.withUnsafeMutableBufferPointer {
52 | Darwin.pipe($0.baseAddress)
| `- error: cannot find 'Darwin' in scope
53 | }
54 | guard pipeResult >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:74:21: error: cannot find 'Darwin' in scope
72 | while readSize > 0 {
73 | readSize = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
74 | Darwin.read(localPipeReceiver, buffer.baseAddress, buffer.count)
| `- error: cannot find 'Darwin' in scope
75 | }
76 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:83:13: error: cannot find 'Darwin' in scope
81 | stop()
82 | removeReader(pipeReceiver)
83 | _ = Darwin.close(pipeSender)
| `- error: cannot find 'Darwin' in scope
84 | _ = Darwin.close(pipeReceiver)
85 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:84:13: error: cannot find 'Darwin' in scope
82 | removeReader(pipeReceiver)
83 | _ = Darwin.close(pipeSender)
84 | _ = Darwin.close(pipeReceiver)
| `- error: cannot find 'Darwin' in scope
85 | }
86 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:190:78: error: cannot find 'NSEC_PER_SEC' in scope
188 | let now = DispatchTime.now().uptimeNanoseconds
189 | guard deadline.uptimeNanoseconds > now else { return 0 }
190 | return TimeInterval(deadline.uptimeNanoseconds - now) / TimeInterval(NSEC_PER_SEC)
| `- error: cannot find 'NSEC_PER_SEC' in scope
191 | }
192 |
[20/32] Compiling Embassy SelectorEventLoop.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:52:13: error: cannot find 'Darwin' in scope
50 | var pipeFds = [Int32](repeating: 0, count: 2)
51 | let pipeResult = pipeFds.withUnsafeMutableBufferPointer {
52 | Darwin.pipe($0.baseAddress)
| `- error: cannot find 'Darwin' in scope
53 | }
54 | guard pipeResult >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:74:21: error: cannot find 'Darwin' in scope
72 | while readSize > 0 {
73 | readSize = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
74 | Darwin.read(localPipeReceiver, buffer.baseAddress, buffer.count)
| `- error: cannot find 'Darwin' in scope
75 | }
76 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:83:13: error: cannot find 'Darwin' in scope
81 | stop()
82 | removeReader(pipeReceiver)
83 | _ = Darwin.close(pipeSender)
| `- error: cannot find 'Darwin' in scope
84 | _ = Darwin.close(pipeReceiver)
85 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:84:13: error: cannot find 'Darwin' in scope
82 | removeReader(pipeReceiver)
83 | _ = Darwin.close(pipeSender)
84 | _ = Darwin.close(pipeReceiver)
| `- error: cannot find 'Darwin' in scope
85 | }
86 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/SelectorEventLoop.swift:190:78: error: cannot find 'NSEC_PER_SEC' in scope
188 | let now = DispatchTime.now().uptimeNanoseconds
189 | guard deadline.uptimeNanoseconds > now else { return 0 }
190 | return TimeInterval(deadline.uptimeNanoseconds - now) / TimeInterval(NSEC_PER_SEC)
| `- error: cannot find 'NSEC_PER_SEC' in scope
191 | }
192 |
[21/32] Compiling Embassy Atomic.swift
[22/32] Compiling Embassy Errors.swift
[23/32] Compiling Embassy EventLoop.swift
[24/32] Compiling Embassy HeapSort.swift
[25/32] Compiling Embassy TCPSocket.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:36:56: error: cannot find 'SO_NOSIGPIPE' in scope
34 | var size = socklen_t(MemoryLayout<Int32>.size)
35 | assert(
36 | getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
| `- error: cannot find 'SO_NOSIGPIPE' in scope
37 | "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
38 | )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:48:21: error: cannot find 'SO_NOSIGPIPE' in scope
46 | fileDescriptor,
47 | SOL_SOCKET,
48 | SO_NOSIGPIPE,
| `- error: cannot find 'SO_NOSIGPIPE' in scope
49 | &value,
50 | socklen_t(MemoryLayout<Int32>.size)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:59:26: error: cannot find 'Darwin' in scope
57 | init(blocking: Bool = false) throws {
58 | let socketType = SOCK_STREAM
59 | fileDescriptor = Darwin.socket(AF_INET6, socketType, 0)
| `- error: cannot find 'Darwin' in scope
60 | guard fileDescriptor >= 0 else {
61 | throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:95:17: error: value of type 'sockaddr_in6' has no member 'sin6_len'
93 | // create IPv6 socket address
94 | var address = sockaddr_in6()
95 | address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
| `- error: value of type 'sockaddr_in6' has no member 'sin6_len'
96 | address.sin6_family = sa_family_t(AF_INET6)
97 | address.sin6_port = UInt16(port).bigEndian
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:105:17: error: cannot find 'Darwin' in scope
103 | guard withUnsafePointer(to: &address, { pointer in
104 | return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
105 | Darwin.bind(fileDescriptor, pointer, size) >= 0
| `- error: cannot find 'Darwin' in scope
106 | }
107 | }) else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:115:15: error: cannot find 'Darwin' in scope
113 | /// - Parameter backlog: maximum backlog of incoming connections
114 | func listen(backlog: Int = Int(SOMAXCONN)) throws {
115 | guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
| `- error: cannot find 'Darwin' in scope
116 | throw OSError.lastIOError()
117 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:126:17: error: cannot find 'Darwin' in scope
124 | let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 | return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
126 | Darwin.accept(fileDescriptor, pointer, &size)
| `- error: cannot find 'Darwin' in scope
127 | }
128 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:141:17: error: value of type 'sockaddr_in6' has no member 'sin6_len'
139 | // create IPv6 socket address
140 | var address = sockaddr_in6()
141 | address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
| `- error: value of type 'sockaddr_in6' has no member 'sin6_len'
142 | address.sin6_family = sa_family_t(AF_INET6)
143 | address.sin6_port = UInt16(port).bigEndian
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:151:17: error: cannot find 'Darwin' in scope
149 | let connectResult = withUnsafePointer(to: &address) { pointer in
150 | return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
151 | Darwin.connect(fileDescriptor, pointer, size)
| `- error: cannot find 'Darwin' in scope
152 | }
153 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:165:13: error: cannot find 'Darwin' in scope
163 | func send(data: Data) throws -> Int {
164 | let bytesSent = data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
165 | Darwin.send(fileDescriptor, buffer.baseAddress, buffer.count, Int32(0))
| `- error: cannot find 'Darwin' in scope
166 | }
167 | guard bytesSent >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:179:13: error: cannot find 'Darwin' in scope
177 | var bytes = Data(count: size)
178 | let bytesRead = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
179 | Darwin.recv(fileDescriptor, buffer.baseAddress, buffer.count, Int32(0))
| `- error: cannot find 'Darwin' in scope
180 | }
181 | guard bytesRead >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:194:13: error: cannot find 'Darwin' in scope
192 | return
193 | }
194 | _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
| `- error: cannot find 'Darwin' in scope
195 | _ = Darwin.close(fileDescriptor)
196 | fileDescriptor = -1
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:195:13: error: cannot find 'Darwin' in scope
193 | }
194 | _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
195 | _ = Darwin.close(fileDescriptor)
| `- error: cannot find 'Darwin' in scope
196 | fileDescriptor = -1
197 | }
[26/32] Compiling Embassy Transport.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:36:56: error: cannot find 'SO_NOSIGPIPE' in scope
34 | var size = socklen_t(MemoryLayout<Int32>.size)
35 | assert(
36 | getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
| `- error: cannot find 'SO_NOSIGPIPE' in scope
37 | "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
38 | )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:48:21: error: cannot find 'SO_NOSIGPIPE' in scope
46 | fileDescriptor,
47 | SOL_SOCKET,
48 | SO_NOSIGPIPE,
| `- error: cannot find 'SO_NOSIGPIPE' in scope
49 | &value,
50 | socklen_t(MemoryLayout<Int32>.size)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:59:26: error: cannot find 'Darwin' in scope
57 | init(blocking: Bool = false) throws {
58 | let socketType = SOCK_STREAM
59 | fileDescriptor = Darwin.socket(AF_INET6, socketType, 0)
| `- error: cannot find 'Darwin' in scope
60 | guard fileDescriptor >= 0 else {
61 | throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:95:17: error: value of type 'sockaddr_in6' has no member 'sin6_len'
93 | // create IPv6 socket address
94 | var address = sockaddr_in6()
95 | address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
| `- error: value of type 'sockaddr_in6' has no member 'sin6_len'
96 | address.sin6_family = sa_family_t(AF_INET6)
97 | address.sin6_port = UInt16(port).bigEndian
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:105:17: error: cannot find 'Darwin' in scope
103 | guard withUnsafePointer(to: &address, { pointer in
104 | return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
105 | Darwin.bind(fileDescriptor, pointer, size) >= 0
| `- error: cannot find 'Darwin' in scope
106 | }
107 | }) else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:115:15: error: cannot find 'Darwin' in scope
113 | /// - Parameter backlog: maximum backlog of incoming connections
114 | func listen(backlog: Int = Int(SOMAXCONN)) throws {
115 | guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
| `- error: cannot find 'Darwin' in scope
116 | throw OSError.lastIOError()
117 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:126:17: error: cannot find 'Darwin' in scope
124 | let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 | return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
126 | Darwin.accept(fileDescriptor, pointer, &size)
| `- error: cannot find 'Darwin' in scope
127 | }
128 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:141:17: error: value of type 'sockaddr_in6' has no member 'sin6_len'
139 | // create IPv6 socket address
140 | var address = sockaddr_in6()
141 | address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
| `- error: value of type 'sockaddr_in6' has no member 'sin6_len'
142 | address.sin6_family = sa_family_t(AF_INET6)
143 | address.sin6_port = UInt16(port).bigEndian
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:151:17: error: cannot find 'Darwin' in scope
149 | let connectResult = withUnsafePointer(to: &address) { pointer in
150 | return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
151 | Darwin.connect(fileDescriptor, pointer, size)
| `- error: cannot find 'Darwin' in scope
152 | }
153 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:165:13: error: cannot find 'Darwin' in scope
163 | func send(data: Data) throws -> Int {
164 | let bytesSent = data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
165 | Darwin.send(fileDescriptor, buffer.baseAddress, buffer.count, Int32(0))
| `- error: cannot find 'Darwin' in scope
166 | }
167 | guard bytesSent >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:179:13: error: cannot find 'Darwin' in scope
177 | var bytes = Data(count: size)
178 | let bytesRead = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
179 | Darwin.recv(fileDescriptor, buffer.baseAddress, buffer.count, Int32(0))
| `- error: cannot find 'Darwin' in scope
180 | }
181 | guard bytesRead >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:194:13: error: cannot find 'Darwin' in scope
192 | return
193 | }
194 | _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
| `- error: cannot find 'Darwin' in scope
195 | _ = Darwin.close(fileDescriptor)
196 | fileDescriptor = -1
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:195:13: error: cannot find 'Darwin' in scope
193 | }
194 | _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
195 | _ = Darwin.close(fileDescriptor)
| `- error: cannot find 'Darwin' in scope
196 | fileDescriptor = -1
197 | }
[27/32] Compiling Embassy Version.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:36:56: error: cannot find 'SO_NOSIGPIPE' in scope
34 | var size = socklen_t(MemoryLayout<Int32>.size)
35 | assert(
36 | getsockopt(fileDescriptor, SOL_SOCKET, SO_NOSIGPIPE, &value, &size) >= 0,
| `- error: cannot find 'SO_NOSIGPIPE' in scope
37 | "Failed to get SO_NOSIGPIPE, errno=\(errno), message=\(lastErrorDescription())"
38 | )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:48:21: error: cannot find 'SO_NOSIGPIPE' in scope
46 | fileDescriptor,
47 | SOL_SOCKET,
48 | SO_NOSIGPIPE,
| `- error: cannot find 'SO_NOSIGPIPE' in scope
49 | &value,
50 | socklen_t(MemoryLayout<Int32>.size)
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:59:26: error: cannot find 'Darwin' in scope
57 | init(blocking: Bool = false) throws {
58 | let socketType = SOCK_STREAM
59 | fileDescriptor = Darwin.socket(AF_INET6, socketType, 0)
| `- error: cannot find 'Darwin' in scope
60 | guard fileDescriptor >= 0 else {
61 | throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:95:17: error: value of type 'sockaddr_in6' has no member 'sin6_len'
93 | // create IPv6 socket address
94 | var address = sockaddr_in6()
95 | address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
| `- error: value of type 'sockaddr_in6' has no member 'sin6_len'
96 | address.sin6_family = sa_family_t(AF_INET6)
97 | address.sin6_port = UInt16(port).bigEndian
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:105:17: error: cannot find 'Darwin' in scope
103 | guard withUnsafePointer(to: &address, { pointer in
104 | return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
105 | Darwin.bind(fileDescriptor, pointer, size) >= 0
| `- error: cannot find 'Darwin' in scope
106 | }
107 | }) else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:115:15: error: cannot find 'Darwin' in scope
113 | /// - Parameter backlog: maximum backlog of incoming connections
114 | func listen(backlog: Int = Int(SOMAXCONN)) throws {
115 | guard Darwin.listen(fileDescriptor, Int32(backlog)) != -1 else {
| `- error: cannot find 'Darwin' in scope
116 | throw OSError.lastIOError()
117 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:126:17: error: cannot find 'Darwin' in scope
124 | let clientFileDescriptor = withUnsafeMutablePointer(to: &address) { pointer in
125 | return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
126 | Darwin.accept(fileDescriptor, pointer, &size)
| `- error: cannot find 'Darwin' in scope
127 | }
128 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:141:17: error: value of type 'sockaddr_in6' has no member 'sin6_len'
139 | // create IPv6 socket address
140 | var address = sockaddr_in6()
141 | address.sin6_len = UInt8(MemoryLayout<sockaddr_in6>.stride)
| `- error: value of type 'sockaddr_in6' has no member 'sin6_len'
142 | address.sin6_family = sa_family_t(AF_INET6)
143 | address.sin6_port = UInt16(port).bigEndian
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:151:17: error: cannot find 'Darwin' in scope
149 | let connectResult = withUnsafePointer(to: &address) { pointer in
150 | return pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
151 | Darwin.connect(fileDescriptor, pointer, size)
| `- error: cannot find 'Darwin' in scope
152 | }
153 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:165:13: error: cannot find 'Darwin' in scope
163 | func send(data: Data) throws -> Int {
164 | let bytesSent = data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
165 | Darwin.send(fileDescriptor, buffer.baseAddress, buffer.count, Int32(0))
| `- error: cannot find 'Darwin' in scope
166 | }
167 | guard bytesSent >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:179:13: error: cannot find 'Darwin' in scope
177 | var bytes = Data(count: size)
178 | let bytesRead = bytes.withUnsafeMutableBytes { (buffer: UnsafeMutableRawBufferPointer) in
179 | Darwin.recv(fileDescriptor, buffer.baseAddress, buffer.count, Int32(0))
| `- error: cannot find 'Darwin' in scope
180 | }
181 | guard bytesRead >= 0 else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:194:13: error: cannot find 'Darwin' in scope
192 | return
193 | }
194 | _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
| `- error: cannot find 'Darwin' in scope
195 | _ = Darwin.close(fileDescriptor)
196 | fileDescriptor = -1
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/TCPSocket.swift:195:13: error: cannot find 'Darwin' in scope
193 | }
194 | _ = Darwin.shutdown(fileDescriptor, Int32(SHUT_WR))
195 | _ = Darwin.close(fileDescriptor)
| `- error: cannot find 'Darwin' in scope
196 | fileDescriptor = -1
197 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/32] Compiling Embassy IOUtils.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:24:31: error: cannot find type 'Darwin' in scope
22 | // reusable buffer for kevent() to write ready events into; allocated once
23 | // rather than on every select() call
24 | private var readyEvents: [Darwin.kevent]
| `- error: cannot find type 'Darwin' in scope
25 |
26 | public init(selectMaximumEvent: Int = 1024) throws {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:91:89: error: cannot find type 'Darwin' in scope
89 |
90 | /// One kevent change per event in `events`, all carrying `flags`
91 | private func changes(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) -> [Darwin.kevent] {
| `- error: cannot find type 'Darwin' in scope
92 | events.elements.map { event in
93 | Darwin.kevent(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:105:36: error: cannot find type 'Darwin' in scope
103 |
104 | /// Submit a batch of kevent changes in one syscall
105 | private func apply(_ changes: [Darwin.kevent]) throws {
| `- error: cannot find type 'Darwin' in scope
106 | guard !changes.isEmpty else {
107 | return
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:27:18: error: cannot find 'Darwin' in scope
25 |
26 | public init(selectMaximumEvent: Int = 1024) throws {
27 | kqueue = Darwin.kqueue()
| `- error: cannot find 'Darwin' in scope
28 | guard kqueue >= 0 else {
29 | throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:24: error: cannot find 'Darwin' in scope
30 | }
31 | self.selectMaximumEvent = selectMaximumEvent
32 | readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
| `- error: cannot find 'Darwin' in scope
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:50: error: cannot find 'Darwin' in scope
30 | }
31 | self.selectMaximumEvent = selectMaximumEvent
32 | readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
| `- error: cannot find 'Darwin' in scope
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:23: error: cannot call value of non-function type '[Any]'
30 | }
31 | self.selectMaximumEvent = selectMaximumEvent
32 | readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
| `- error: cannot call value of non-function type '[Any]'
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:51:54: error: cannot find 'EV_ADD' in scope
49 | let key = SelectorKey(fileDescriptor: fileDescriptor, events: events, data: data)
50 | fileDescriptorMap[fileDescriptor] = key
51 | try apply(events, to: fileDescriptor, flags: EV_ADD)
| `- error: cannot find 'EV_ADD' in scope
52 | return key
53 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:62:58: error: cannot find 'EV_DELETE' in scope
60 | }
61 | fileDescriptorMap.removeValue(forKey: fileDescriptor)
62 | try apply(key.events, to: fileDescriptor, flags: EV_DELETE)
| `- error: cannot find 'EV_DELETE' in scope
63 | return key
64 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:80: error: cannot find 'EV_ADD' in scope
77 | // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
| `- error: cannot find 'EV_ADD' in scope
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
81 | )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:86: error: cannot find 'EV_DELETE' in scope
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
| `- error: cannot find 'EV_DELETE' in scope
81 | )
82 | return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:13: error: missing arguments for parameters 'to', 'flags' in call
77 | // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
| `- error: missing arguments for parameters 'to', 'flags' in call
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
81 | )
:
84 |
85 | /// Submit one kevent change per event in `events` for the file descriptor
86 | private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
| `- note: 'apply(_:to:flags:)' declared here
87 | try apply(changes(events, to: fileDescriptor, flags: flags))
88 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:17: error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
| `- error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
81 | )
82 | return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:87:19: error: missing arguments for parameters 'to', 'flags' in call
84 |
85 | /// Submit one kevent change per event in `events` for the file descriptor
86 | private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
| `- note: 'apply(_:to:flags:)' declared here
87 | try apply(changes(events, to: fileDescriptor, flags: flags))
| `- error: missing arguments for parameters 'to', 'flags' in call
88 | }
89 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:13: error: cannot find 'kevent' in scope
109 | var changes = changes
110 | let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 | kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
| `- error: cannot find 'kevent' in scope
112 | }
113 | guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:71: error: 'nil' requires a contextual type
109 | var changes = changes
110 | let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 | kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
| `- error: 'nil' requires a contextual type
112 | }
113 | guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:79: error: 'nil' requires a contextual type
109 | var changes = changes
110 | let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 | kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
| `- error: 'nil' requires a contextual type
112 | }
113 | guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:119:13: error: cannot find 'Darwin' in scope
117 |
118 | public func close() {
119 | _ = Darwin.close(kqueue)
| `- error: cannot find 'Darwin' in scope
120 | }
121 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:127:65: error: cannot find 'NSEC_PER_SEC' in scope
125 | if timeout > 0 {
126 | var integer = 0.0
127 | let nsec = Int(modf(timeout, &integer) * Double(NSEC_PER_SEC))
| `- error: cannot find 'NSEC_PER_SEC' in scope
128 | timeSpec = timespec(tv_sec: Int(timeout), tv_nsec: nsec)
129 | } else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:136:24: error: cannot find 'kevent' in scope
134 | let eventCount: Int32 = readyEvents.withUnsafeMutableBufferPointer { pointer in
135 | return withUnsafeOptionalPointer(to: &timeSpec) { timeSpecPointer in
136 | return kevent(
| `- error: cannot find 'kevent' in scope
137 | kqueue,
138 | nil,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:138:21: error: 'nil' requires a contextual type
136 | return kevent(
137 | kqueue,
138 | nil,
| `- error: 'nil' requires a contextual type
139 | 0,
140 | pointer.baseAddress,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:160:18: error: cannot find 'EVFILT_READ' in scope
158 | let ioEvent: IOEvent
159 | switch Int32(event.filter) {
160 | case EVFILT_READ:
| `- error: cannot find 'EVFILT_READ' in scope
161 | ioEvent = .read
162 | case EVFILT_WRITE:
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:162:18: error: cannot find 'EVFILT_WRITE' in scope
160 | case EVFILT_READ:
161 | ioEvent = .read
162 | case EVFILT_WRITE:
| `- error: cannot find 'EVFILT_WRITE' in scope
163 | ioEvent = .write
164 | default:
[29/32] Compiling Embassy KqueueSelector.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:24:31: error: cannot find type 'Darwin' in scope
22 | // reusable buffer for kevent() to write ready events into; allocated once
23 | // rather than on every select() call
24 | private var readyEvents: [Darwin.kevent]
| `- error: cannot find type 'Darwin' in scope
25 |
26 | public init(selectMaximumEvent: Int = 1024) throws {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:91:89: error: cannot find type 'Darwin' in scope
89 |
90 | /// One kevent change per event in `events`, all carrying `flags`
91 | private func changes(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) -> [Darwin.kevent] {
| `- error: cannot find type 'Darwin' in scope
92 | events.elements.map { event in
93 | Darwin.kevent(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:105:36: error: cannot find type 'Darwin' in scope
103 |
104 | /// Submit a batch of kevent changes in one syscall
105 | private func apply(_ changes: [Darwin.kevent]) throws {
| `- error: cannot find type 'Darwin' in scope
106 | guard !changes.isEmpty else {
107 | return
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:27:18: error: cannot find 'Darwin' in scope
25 |
26 | public init(selectMaximumEvent: Int = 1024) throws {
27 | kqueue = Darwin.kqueue()
| `- error: cannot find 'Darwin' in scope
28 | guard kqueue >= 0 else {
29 | throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:24: error: cannot find 'Darwin' in scope
30 | }
31 | self.selectMaximumEvent = selectMaximumEvent
32 | readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
| `- error: cannot find 'Darwin' in scope
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:50: error: cannot find 'Darwin' in scope
30 | }
31 | self.selectMaximumEvent = selectMaximumEvent
32 | readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
| `- error: cannot find 'Darwin' in scope
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:23: error: cannot call value of non-function type '[Any]'
30 | }
31 | self.selectMaximumEvent = selectMaximumEvent
32 | readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
| `- error: cannot call value of non-function type '[Any]'
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:51:54: error: cannot find 'EV_ADD' in scope
49 | let key = SelectorKey(fileDescriptor: fileDescriptor, events: events, data: data)
50 | fileDescriptorMap[fileDescriptor] = key
51 | try apply(events, to: fileDescriptor, flags: EV_ADD)
| `- error: cannot find 'EV_ADD' in scope
52 | return key
53 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:62:58: error: cannot find 'EV_DELETE' in scope
60 | }
61 | fileDescriptorMap.removeValue(forKey: fileDescriptor)
62 | try apply(key.events, to: fileDescriptor, flags: EV_DELETE)
| `- error: cannot find 'EV_DELETE' in scope
63 | return key
64 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:80: error: cannot find 'EV_ADD' in scope
77 | // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
| `- error: cannot find 'EV_ADD' in scope
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
81 | )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:86: error: cannot find 'EV_DELETE' in scope
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
| `- error: cannot find 'EV_DELETE' in scope
81 | )
82 | return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:13: error: missing arguments for parameters 'to', 'flags' in call
77 | // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
| `- error: missing arguments for parameters 'to', 'flags' in call
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
81 | )
:
84 |
85 | /// Submit one kevent change per event in `events` for the file descriptor
86 | private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
| `- note: 'apply(_:to:flags:)' declared here
87 | try apply(changes(events, to: fileDescriptor, flags: flags))
88 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:17: error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
| `- error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
81 | )
82 | return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:87:19: error: missing arguments for parameters 'to', 'flags' in call
84 |
85 | /// Submit one kevent change per event in `events` for the file descriptor
86 | private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
| `- note: 'apply(_:to:flags:)' declared here
87 | try apply(changes(events, to: fileDescriptor, flags: flags))
| `- error: missing arguments for parameters 'to', 'flags' in call
88 | }
89 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:13: error: cannot find 'kevent' in scope
109 | var changes = changes
110 | let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 | kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
| `- error: cannot find 'kevent' in scope
112 | }
113 | guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:71: error: 'nil' requires a contextual type
109 | var changes = changes
110 | let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 | kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
| `- error: 'nil' requires a contextual type
112 | }
113 | guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:79: error: 'nil' requires a contextual type
109 | var changes = changes
110 | let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 | kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
| `- error: 'nil' requires a contextual type
112 | }
113 | guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:119:13: error: cannot find 'Darwin' in scope
117 |
118 | public func close() {
119 | _ = Darwin.close(kqueue)
| `- error: cannot find 'Darwin' in scope
120 | }
121 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:127:65: error: cannot find 'NSEC_PER_SEC' in scope
125 | if timeout > 0 {
126 | var integer = 0.0
127 | let nsec = Int(modf(timeout, &integer) * Double(NSEC_PER_SEC))
| `- error: cannot find 'NSEC_PER_SEC' in scope
128 | timeSpec = timespec(tv_sec: Int(timeout), tv_nsec: nsec)
129 | } else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:136:24: error: cannot find 'kevent' in scope
134 | let eventCount: Int32 = readyEvents.withUnsafeMutableBufferPointer { pointer in
135 | return withUnsafeOptionalPointer(to: &timeSpec) { timeSpecPointer in
136 | return kevent(
| `- error: cannot find 'kevent' in scope
137 | kqueue,
138 | nil,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:138:21: error: 'nil' requires a contextual type
136 | return kevent(
137 | kqueue,
138 | nil,
| `- error: 'nil' requires a contextual type
139 | 0,
140 | pointer.baseAddress,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:160:18: error: cannot find 'EVFILT_READ' in scope
158 | let ioEvent: IOEvent
159 | switch Int32(event.filter) {
160 | case EVFILT_READ:
| `- error: cannot find 'EVFILT_READ' in scope
161 | ioEvent = .read
162 | case EVFILT_WRITE:
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:162:18: error: cannot find 'EVFILT_WRITE' in scope
160 | case EVFILT_READ:
161 | ioEvent = .read
162 | case EVFILT_WRITE:
| `- error: cannot find 'EVFILT_WRITE' in scope
163 | ioEvent = .write
164 | default:
[30/32] Compiling Embassy DefaultLogFormatter.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:24:31: error: cannot find type 'Darwin' in scope
22 | // reusable buffer for kevent() to write ready events into; allocated once
23 | // rather than on every select() call
24 | private var readyEvents: [Darwin.kevent]
| `- error: cannot find type 'Darwin' in scope
25 |
26 | public init(selectMaximumEvent: Int = 1024) throws {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:91:89: error: cannot find type 'Darwin' in scope
89 |
90 | /// One kevent change per event in `events`, all carrying `flags`
91 | private func changes(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) -> [Darwin.kevent] {
| `- error: cannot find type 'Darwin' in scope
92 | events.elements.map { event in
93 | Darwin.kevent(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:105:36: error: cannot find type 'Darwin' in scope
103 |
104 | /// Submit a batch of kevent changes in one syscall
105 | private func apply(_ changes: [Darwin.kevent]) throws {
| `- error: cannot find type 'Darwin' in scope
106 | guard !changes.isEmpty else {
107 | return
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:27:18: error: cannot find 'Darwin' in scope
25 |
26 | public init(selectMaximumEvent: Int = 1024) throws {
27 | kqueue = Darwin.kqueue()
| `- error: cannot find 'Darwin' in scope
28 | guard kqueue >= 0 else {
29 | throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:24: error: cannot find 'Darwin' in scope
30 | }
31 | self.selectMaximumEvent = selectMaximumEvent
32 | readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
| `- error: cannot find 'Darwin' in scope
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:50: error: cannot find 'Darwin' in scope
30 | }
31 | self.selectMaximumEvent = selectMaximumEvent
32 | readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
| `- error: cannot find 'Darwin' in scope
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:23: error: cannot call value of non-function type '[Any]'
30 | }
31 | self.selectMaximumEvent = selectMaximumEvent
32 | readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
| `- error: cannot call value of non-function type '[Any]'
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:51:54: error: cannot find 'EV_ADD' in scope
49 | let key = SelectorKey(fileDescriptor: fileDescriptor, events: events, data: data)
50 | fileDescriptorMap[fileDescriptor] = key
51 | try apply(events, to: fileDescriptor, flags: EV_ADD)
| `- error: cannot find 'EV_ADD' in scope
52 | return key
53 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:62:58: error: cannot find 'EV_DELETE' in scope
60 | }
61 | fileDescriptorMap.removeValue(forKey: fileDescriptor)
62 | try apply(key.events, to: fileDescriptor, flags: EV_DELETE)
| `- error: cannot find 'EV_DELETE' in scope
63 | return key
64 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:80: error: cannot find 'EV_ADD' in scope
77 | // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
| `- error: cannot find 'EV_ADD' in scope
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
81 | )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:86: error: cannot find 'EV_DELETE' in scope
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
| `- error: cannot find 'EV_DELETE' in scope
81 | )
82 | return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:13: error: missing arguments for parameters 'to', 'flags' in call
77 | // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
| `- error: missing arguments for parameters 'to', 'flags' in call
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
81 | )
:
84 |
85 | /// Submit one kevent change per event in `events` for the file descriptor
86 | private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
| `- note: 'apply(_:to:flags:)' declared here
87 | try apply(changes(events, to: fileDescriptor, flags: flags))
88 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:17: error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
| `- error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
81 | )
82 | return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:87:19: error: missing arguments for parameters 'to', 'flags' in call
84 |
85 | /// Submit one kevent change per event in `events` for the file descriptor
86 | private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
| `- note: 'apply(_:to:flags:)' declared here
87 | try apply(changes(events, to: fileDescriptor, flags: flags))
| `- error: missing arguments for parameters 'to', 'flags' in call
88 | }
89 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:13: error: cannot find 'kevent' in scope
109 | var changes = changes
110 | let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 | kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
| `- error: cannot find 'kevent' in scope
112 | }
113 | guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:71: error: 'nil' requires a contextual type
109 | var changes = changes
110 | let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 | kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
| `- error: 'nil' requires a contextual type
112 | }
113 | guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:79: error: 'nil' requires a contextual type
109 | var changes = changes
110 | let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 | kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
| `- error: 'nil' requires a contextual type
112 | }
113 | guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:119:13: error: cannot find 'Darwin' in scope
117 |
118 | public func close() {
119 | _ = Darwin.close(kqueue)
| `- error: cannot find 'Darwin' in scope
120 | }
121 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:127:65: error: cannot find 'NSEC_PER_SEC' in scope
125 | if timeout > 0 {
126 | var integer = 0.0
127 | let nsec = Int(modf(timeout, &integer) * Double(NSEC_PER_SEC))
| `- error: cannot find 'NSEC_PER_SEC' in scope
128 | timeSpec = timespec(tv_sec: Int(timeout), tv_nsec: nsec)
129 | } else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:136:24: error: cannot find 'kevent' in scope
134 | let eventCount: Int32 = readyEvents.withUnsafeMutableBufferPointer { pointer in
135 | return withUnsafeOptionalPointer(to: &timeSpec) { timeSpecPointer in
136 | return kevent(
| `- error: cannot find 'kevent' in scope
137 | kqueue,
138 | nil,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:138:21: error: 'nil' requires a contextual type
136 | return kevent(
137 | kqueue,
138 | nil,
| `- error: 'nil' requires a contextual type
139 | 0,
140 | pointer.baseAddress,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:160:18: error: cannot find 'EVFILT_READ' in scope
158 | let ioEvent: IOEvent
159 | switch Int32(event.filter) {
160 | case EVFILT_READ:
| `- error: cannot find 'EVFILT_READ' in scope
161 | ioEvent = .read
162 | case EVFILT_WRITE:
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:162:18: error: cannot find 'EVFILT_WRITE' in scope
160 | case EVFILT_READ:
161 | ioEvent = .read
162 | case EVFILT_WRITE:
| `- error: cannot find 'EVFILT_WRITE' in scope
163 | ioEvent = .write
164 | default:
[31/32] Compiling Embassy DefaultLogger.swift
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:24:31: error: cannot find type 'Darwin' in scope
22 | // reusable buffer for kevent() to write ready events into; allocated once
23 | // rather than on every select() call
24 | private var readyEvents: [Darwin.kevent]
| `- error: cannot find type 'Darwin' in scope
25 |
26 | public init(selectMaximumEvent: Int = 1024) throws {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:91:89: error: cannot find type 'Darwin' in scope
89 |
90 | /// One kevent change per event in `events`, all carrying `flags`
91 | private func changes(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) -> [Darwin.kevent] {
| `- error: cannot find type 'Darwin' in scope
92 | events.elements.map { event in
93 | Darwin.kevent(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:105:36: error: cannot find type 'Darwin' in scope
103 |
104 | /// Submit a batch of kevent changes in one syscall
105 | private func apply(_ changes: [Darwin.kevent]) throws {
| `- error: cannot find type 'Darwin' in scope
106 | guard !changes.isEmpty else {
107 | return
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:27:18: error: cannot find 'Darwin' in scope
25 |
26 | public init(selectMaximumEvent: Int = 1024) throws {
27 | kqueue = Darwin.kqueue()
| `- error: cannot find 'Darwin' in scope
28 | guard kqueue >= 0 else {
29 | throw OSError.lastIOError()
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:24: error: cannot find 'Darwin' in scope
30 | }
31 | self.selectMaximumEvent = selectMaximumEvent
32 | readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
| `- error: cannot find 'Darwin' in scope
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:50: error: cannot find 'Darwin' in scope
30 | }
31 | self.selectMaximumEvent = selectMaximumEvent
32 | readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
| `- error: cannot find 'Darwin' in scope
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:32:23: error: cannot call value of non-function type '[Any]'
30 | }
31 | self.selectMaximumEvent = selectMaximumEvent
32 | readyEvents = [Darwin.kevent](repeating: Darwin.kevent(), count: selectMaximumEvent)
| `- error: cannot call value of non-function type '[Any]'
33 | }
34 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:51:54: error: cannot find 'EV_ADD' in scope
49 | let key = SelectorKey(fileDescriptor: fileDescriptor, events: events, data: data)
50 | fileDescriptorMap[fileDescriptor] = key
51 | try apply(events, to: fileDescriptor, flags: EV_ADD)
| `- error: cannot find 'EV_ADD' in scope
52 | return key
53 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:62:58: error: cannot find 'EV_DELETE' in scope
60 | }
61 | fileDescriptorMap.removeValue(forKey: fileDescriptor)
62 | try apply(key.events, to: fileDescriptor, flags: EV_DELETE)
| `- error: cannot find 'EV_DELETE' in scope
63 | return key
64 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:80: error: cannot find 'EV_ADD' in scope
77 | // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
| `- error: cannot find 'EV_ADD' in scope
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
81 | )
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:86: error: cannot find 'EV_DELETE' in scope
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
| `- error: cannot find 'EV_DELETE' in scope
81 | )
82 | return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:79:13: error: missing arguments for parameters 'to', 'flags' in call
77 | // EV_DELETE, all in a single kevent call. Unchanged filters cost nothing.
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
| `- error: missing arguments for parameters 'to', 'flags' in call
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
81 | )
:
84 |
85 | /// Submit one kevent change per event in `events` for the file descriptor
86 | private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
| `- note: 'apply(_:to:flags:)' declared here
87 | try apply(changes(events, to: fileDescriptor, flags: flags))
88 | }
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:80:17: error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
78 | try apply(
79 | changes(events.subtracting(old.events), to: fileDescriptor, flags: EV_ADD)
80 | + changes(old.events.subtracting(events), to: fileDescriptor, flags: EV_DELETE)
| `- error: cannot convert value of type 'UInt8' to expected argument type 'IOEvent'
81 | )
82 | return key
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:87:19: error: missing arguments for parameters 'to', 'flags' in call
84 |
85 | /// Submit one kevent change per event in `events` for the file descriptor
86 | private func apply(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) throws {
| `- note: 'apply(_:to:flags:)' declared here
87 | try apply(changes(events, to: fileDescriptor, flags: flags))
| `- error: missing arguments for parameters 'to', 'flags' in call
88 | }
89 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:13: error: cannot find 'kevent' in scope
109 | var changes = changes
110 | let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 | kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
| `- error: cannot find 'kevent' in scope
112 | }
113 | guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:71: error: 'nil' requires a contextual type
109 | var changes = changes
110 | let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 | kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
| `- error: 'nil' requires a contextual type
112 | }
113 | guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:111:79: error: 'nil' requires a contextual type
109 | var changes = changes
110 | let applied = changes.withUnsafeMutableBufferPointer { pointer in
111 | kevent(kqueue, pointer.baseAddress, Int32(pointer.count), nil, 0, nil) >= 0
| `- error: 'nil' requires a contextual type
112 | }
113 | guard applied else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:119:13: error: cannot find 'Darwin' in scope
117 |
118 | public func close() {
119 | _ = Darwin.close(kqueue)
| `- error: cannot find 'Darwin' in scope
120 | }
121 |
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:127:65: error: cannot find 'NSEC_PER_SEC' in scope
125 | if timeout > 0 {
126 | var integer = 0.0
127 | let nsec = Int(modf(timeout, &integer) * Double(NSEC_PER_SEC))
| `- error: cannot find 'NSEC_PER_SEC' in scope
128 | timeSpec = timespec(tv_sec: Int(timeout), tv_nsec: nsec)
129 | } else {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:136:24: error: cannot find 'kevent' in scope
134 | let eventCount: Int32 = readyEvents.withUnsafeMutableBufferPointer { pointer in
135 | return withUnsafeOptionalPointer(to: &timeSpec) { timeSpecPointer in
136 | return kevent(
| `- error: cannot find 'kevent' in scope
137 | kqueue,
138 | nil,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:138:21: error: 'nil' requires a contextual type
136 | return kevent(
137 | kqueue,
138 | nil,
| `- error: 'nil' requires a contextual type
139 | 0,
140 | pointer.baseAddress,
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:160:18: error: cannot find 'EVFILT_READ' in scope
158 | let ioEvent: IOEvent
159 | switch Int32(event.filter) {
160 | case EVFILT_READ:
| `- error: cannot find 'EVFILT_READ' in scope
161 | ioEvent = .read
162 | case EVFILT_WRITE:
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:162:18: error: cannot find 'EVFILT_WRITE' in scope
160 | case EVFILT_READ:
161 | ioEvent = .read
162 | case EVFILT_WRITE:
| `- error: cannot find 'EVFILT_WRITE' in scope
163 | ioEvent = .write
164 | default:
[32/32] Emitting module Embassy
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:24:31: error: cannot find type 'Darwin' in scope
22 | // reusable buffer for kevent() to write ready events into; allocated once
23 | // rather than on every select() call
24 | private var readyEvents: [Darwin.kevent]
| `- error: cannot find type 'Darwin' in scope
25 |
26 | public init(selectMaximumEvent: Int = 1024) throws {
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:91:89: error: cannot find type 'Darwin' in scope
89 |
90 | /// One kevent change per event in `events`, all carrying `flags`
91 | private func changes(_ events: IOEvent, to fileDescriptor: Int32, flags: Int32) -> [Darwin.kevent] {
| `- error: cannot find type 'Darwin' in scope
92 | events.elements.map { event in
93 | Darwin.kevent(
/host/spi-builder-workspace/.build/checkouts/Embassy/Sources/KqueueSelector.swift:105:36: error: cannot find type 'Darwin' in scope
103 |
104 | /// Submit a batch of kevent changes in one syscall
105 | private func apply(_ changes: [Darwin.kevent]) throws {
| `- error: cannot find type 'Darwin' in scope
106 | guard !changes.isEmpty else {
107 | return
BUILD FAILURE 6.2 linux