Build Information
Failed to build slash, reference master (01e55c), with Swift 6.3 for Android on 10 Apr 2026 21:57:43 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[18/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.")
[19/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.")
[20/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.")
[21/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.")
[22/36] Compiling slash R.swift
/host/spi-builder-workspace/Sources/Server.swift:141:18: error: cannot find type 'in_port_t' in scope
139 | protocol TcpServer {
140 |
141 | init(_ port: in_port_t) throws
| `- error: cannot find type 'in_port_t' in scope
142 |
143 | func wait(_ callback: ((TcpServerEvent) -> Void)) throws
/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:318:18: error: cannot find type 'in_port_t' in scope
316 | private let server: TcpServer
317 |
318 | init(_ port: in_port_t = 8080) throws {
| `- error: cannot find type 'in_port_t' in scope
319 | #if os(Linux)
320 | self.server = try LinuxAsyncServer(port)
/host/spi-builder-workspace/Sources/Server.swift:428:27: error: cannot find type 'in_port_t' in scope
426 | private let server: UInt
427 |
428 | required init(_ port: in_port_t = 8080) throws {
| `- error: cannot find type 'in_port_t' in scope
429 |
430 | self.kernelQueue = try KernelQueue()
/host/spi-builder-workspace/Sources/Server.swift:531:57: error: cannot find type 'in_port_t' in scope
529 | }
530 |
531 | static func nonBlockingSocketForListenening(_ port: in_port_t = 8080) throws -> Int32 {
| `- error: cannot find type 'in_port_t' in scope
532 |
533 | let server = Darwin.socket(AF_INET, SOCK_STREAM, 0)
/host/spi-builder-workspace/Sources/Server.swift:575:54: error: cannot find type 'sockaddr_in' in scope
573 | }
574 |
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
| `- error: cannot find type 'sockaddr_in' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/Sources/Server.swift:575:40: error: cannot find type 'in_port_t' in scope
573 | }
574 |
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
| `- error: cannot find type 'in_port_t' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
/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:402:20: error: cannot find 'getpid' in scope
400 |
401 | static var pid: Int {
402 | return Int(getpid())
| `- error: cannot find 'getpid' in scope
403 | }
404 |
/host/spi-builder-workspace/Sources/Server.swift:410:13: error: cannot find 'pthread_threadid_np' in scope
408 | #else
409 | var tid: __uint64_t = 0
410 | pthread_threadid_np(nil, &tid);
| `- error: cannot find 'pthread_threadid_np' in scope
411 | return UInt64(tid)
412 | #endif
/host/spi-builder-workspace/Sources/Server.swift:410:33: error: 'nil' requires a contextual type
408 | #else
409 | var tid: __uint64_t = 0
410 | pthread_threadid_np(nil, &tid);
| `- error: 'nil' requires a contextual type
411 | return UInt64(tid)
412 | #endif
/host/spi-builder-workspace/Sources/Server.swift:416:55: error: cannot find 'errno' in scope
414 |
415 | static var error: String {
416 | return String(cString: UnsafePointer(strerror(errno)))
| `- error: cannot find 'errno' in scope
417 | }
418 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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:533:36: error: cannot find 'AF_INET' 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 'AF_INET' in scope
534 |
535 | guard server != -1 else {
/host/spi-builder-workspace/Sources/Server.swift:533:45: error: cannot find 'SOCK_STREAM' 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 'SOCK_STREAM' 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:540:38: error: cannot find 'SOL_SOCKET' 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 'SOL_SOCKET' in scope
541 | defer { let _ = Socket.close(server) }
542 | throw AsyncError.setReuseAddrFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:540:50: error: cannot find 'SO_REUSEADDR' 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 'SO_REUSEADDR' 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:550:130: error: cannot find type 'sockaddr_in' 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 type 'sockaddr_in' in scope
551 | defer { let _ = Socket.close(server) }
552 | throw AsyncError.bindFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:550:77: error: cannot find type 'sockaddr' 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 type 'sockaddr' 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:555:34: error: cannot find 'SOMAXCONN' in scope
553 | }
554 |
555 | if Darwin.listen(server, SOMAXCONN) == -1 {
| `- error: cannot find 'SOMAXCONN' 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:576:20: error: cannot find 'sockaddr_in' in scope
574 |
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
576 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
578 | addr.sin_family = sa_family_t(AF_INET)
/host/spi-builder-workspace/Sources/Server.swift:577:47: error: cannot find type 'sockaddr_in' in scope
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: cannot find type 'sockaddr_in' in scope
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
/host/spi-builder-workspace/Sources/Server.swift:578:27: error: cannot find 'sa_family_t' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
578 | addr.sin_family = sa_family_t(AF_INET)
| `- error: cannot find 'sa_family_t' in scope
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
/host/spi-builder-workspace/Sources/Server.swift:578:39: error: cannot find 'AF_INET' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
578 | addr.sin_family = sa_family_t(AF_INET)
| `- error: cannot find 'AF_INET' in scope
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
/host/spi-builder-workspace/Sources/Server.swift:580:25: error: cannot find 'in_addr' in scope
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
| `- error: cannot find 'in_addr' in scope
581 | addr.sin_zero = (0, 0, 0, 0, 0, 0, 0, 0)
582 | return addr
/host/spi-builder-workspace/Sources/Server.swift:580:41: error: cannot find 'in_addr_t' in scope
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
| `- error: cannot find 'in_addr_t' in scope
581 | addr.sin_zero = (0, 0, 0, 0, 0, 0, 0, 0)
582 | return addr
/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:33: error: cannot find 'F_SETFL' 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 'F_SETFL' 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:586:63: error: cannot find 'F_GETFL' 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 'F_GETFL' in scope
587 | throw AsyncError.setNonBlockFailed(Process.error)
588 | }
/host/spi-builder-workspace/Sources/Server.swift:586:77: error: cannot find 'O_NONBLOCK' 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 'O_NONBLOCK' 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:38: error: cannot find 'SOL_SOCKET' 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 'SOL_SOCKET' 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:645:16: error: cannot find 'kevent' in scope
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
| `- error: cannot find 'kevent' in scope
646 | }
647 |
/host/spi-builder-workspace/Sources/Server.swift:645:94: error: 'nil' requires a contextual type
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
| `- error: 'nil' requires a contextual type
646 | }
647 |
/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>
[23/36] Compiling slash Server.swift
/host/spi-builder-workspace/Sources/Server.swift:141:18: error: cannot find type 'in_port_t' in scope
139 | protocol TcpServer {
140 |
141 | init(_ port: in_port_t) throws
| `- error: cannot find type 'in_port_t' in scope
142 |
143 | func wait(_ callback: ((TcpServerEvent) -> Void)) throws
/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:318:18: error: cannot find type 'in_port_t' in scope
316 | private let server: TcpServer
317 |
318 | init(_ port: in_port_t = 8080) throws {
| `- error: cannot find type 'in_port_t' in scope
319 | #if os(Linux)
320 | self.server = try LinuxAsyncServer(port)
/host/spi-builder-workspace/Sources/Server.swift:428:27: error: cannot find type 'in_port_t' in scope
426 | private let server: UInt
427 |
428 | required init(_ port: in_port_t = 8080) throws {
| `- error: cannot find type 'in_port_t' in scope
429 |
430 | self.kernelQueue = try KernelQueue()
/host/spi-builder-workspace/Sources/Server.swift:531:57: error: cannot find type 'in_port_t' in scope
529 | }
530 |
531 | static func nonBlockingSocketForListenening(_ port: in_port_t = 8080) throws -> Int32 {
| `- error: cannot find type 'in_port_t' in scope
532 |
533 | let server = Darwin.socket(AF_INET, SOCK_STREAM, 0)
/host/spi-builder-workspace/Sources/Server.swift:575:54: error: cannot find type 'sockaddr_in' in scope
573 | }
574 |
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
| `- error: cannot find type 'sockaddr_in' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/Sources/Server.swift:575:40: error: cannot find type 'in_port_t' in scope
573 | }
574 |
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
| `- error: cannot find type 'in_port_t' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
/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:402:20: error: cannot find 'getpid' in scope
400 |
401 | static var pid: Int {
402 | return Int(getpid())
| `- error: cannot find 'getpid' in scope
403 | }
404 |
/host/spi-builder-workspace/Sources/Server.swift:410:13: error: cannot find 'pthread_threadid_np' in scope
408 | #else
409 | var tid: __uint64_t = 0
410 | pthread_threadid_np(nil, &tid);
| `- error: cannot find 'pthread_threadid_np' in scope
411 | return UInt64(tid)
412 | #endif
/host/spi-builder-workspace/Sources/Server.swift:410:33: error: 'nil' requires a contextual type
408 | #else
409 | var tid: __uint64_t = 0
410 | pthread_threadid_np(nil, &tid);
| `- error: 'nil' requires a contextual type
411 | return UInt64(tid)
412 | #endif
/host/spi-builder-workspace/Sources/Server.swift:416:55: error: cannot find 'errno' in scope
414 |
415 | static var error: String {
416 | return String(cString: UnsafePointer(strerror(errno)))
| `- error: cannot find 'errno' in scope
417 | }
418 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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:533:36: error: cannot find 'AF_INET' 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 'AF_INET' in scope
534 |
535 | guard server != -1 else {
/host/spi-builder-workspace/Sources/Server.swift:533:45: error: cannot find 'SOCK_STREAM' 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 'SOCK_STREAM' 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:540:38: error: cannot find 'SOL_SOCKET' 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 'SOL_SOCKET' in scope
541 | defer { let _ = Socket.close(server) }
542 | throw AsyncError.setReuseAddrFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:540:50: error: cannot find 'SO_REUSEADDR' 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 'SO_REUSEADDR' 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:550:130: error: cannot find type 'sockaddr_in' 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 type 'sockaddr_in' in scope
551 | defer { let _ = Socket.close(server) }
552 | throw AsyncError.bindFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:550:77: error: cannot find type 'sockaddr' 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 type 'sockaddr' 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:555:34: error: cannot find 'SOMAXCONN' in scope
553 | }
554 |
555 | if Darwin.listen(server, SOMAXCONN) == -1 {
| `- error: cannot find 'SOMAXCONN' 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:576:20: error: cannot find 'sockaddr_in' in scope
574 |
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
576 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
578 | addr.sin_family = sa_family_t(AF_INET)
/host/spi-builder-workspace/Sources/Server.swift:577:47: error: cannot find type 'sockaddr_in' in scope
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: cannot find type 'sockaddr_in' in scope
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
/host/spi-builder-workspace/Sources/Server.swift:578:27: error: cannot find 'sa_family_t' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
578 | addr.sin_family = sa_family_t(AF_INET)
| `- error: cannot find 'sa_family_t' in scope
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
/host/spi-builder-workspace/Sources/Server.swift:578:39: error: cannot find 'AF_INET' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
578 | addr.sin_family = sa_family_t(AF_INET)
| `- error: cannot find 'AF_INET' in scope
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
/host/spi-builder-workspace/Sources/Server.swift:580:25: error: cannot find 'in_addr' in scope
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
| `- error: cannot find 'in_addr' in scope
581 | addr.sin_zero = (0, 0, 0, 0, 0, 0, 0, 0)
582 | return addr
/host/spi-builder-workspace/Sources/Server.swift:580:41: error: cannot find 'in_addr_t' in scope
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
| `- error: cannot find 'in_addr_t' in scope
581 | addr.sin_zero = (0, 0, 0, 0, 0, 0, 0, 0)
582 | return addr
/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:33: error: cannot find 'F_SETFL' 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 'F_SETFL' 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:586:63: error: cannot find 'F_GETFL' 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 'F_GETFL' in scope
587 | throw AsyncError.setNonBlockFailed(Process.error)
588 | }
/host/spi-builder-workspace/Sources/Server.swift:586:77: error: cannot find 'O_NONBLOCK' 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 'O_NONBLOCK' 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:38: error: cannot find 'SOL_SOCKET' 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 'SOL_SOCKET' 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:645:16: error: cannot find 'kevent' in scope
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
| `- error: cannot find 'kevent' in scope
646 | }
647 |
/host/spi-builder-workspace/Sources/Server.swift:645:94: error: 'nil' requires a contextual type
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
| `- error: 'nil' requires a contextual type
646 | }
647 |
/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>
[24/36] Compiling slash SlackAdapter.swift
/host/spi-builder-workspace/Sources/Server.swift:141:18: error: cannot find type 'in_port_t' in scope
139 | protocol TcpServer {
140 |
141 | init(_ port: in_port_t) throws
| `- error: cannot find type 'in_port_t' in scope
142 |
143 | func wait(_ callback: ((TcpServerEvent) -> Void)) throws
/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:318:18: error: cannot find type 'in_port_t' in scope
316 | private let server: TcpServer
317 |
318 | init(_ port: in_port_t = 8080) throws {
| `- error: cannot find type 'in_port_t' in scope
319 | #if os(Linux)
320 | self.server = try LinuxAsyncServer(port)
/host/spi-builder-workspace/Sources/Server.swift:428:27: error: cannot find type 'in_port_t' in scope
426 | private let server: UInt
427 |
428 | required init(_ port: in_port_t = 8080) throws {
| `- error: cannot find type 'in_port_t' in scope
429 |
430 | self.kernelQueue = try KernelQueue()
/host/spi-builder-workspace/Sources/Server.swift:531:57: error: cannot find type 'in_port_t' in scope
529 | }
530 |
531 | static func nonBlockingSocketForListenening(_ port: in_port_t = 8080) throws -> Int32 {
| `- error: cannot find type 'in_port_t' in scope
532 |
533 | let server = Darwin.socket(AF_INET, SOCK_STREAM, 0)
/host/spi-builder-workspace/Sources/Server.swift:575:54: error: cannot find type 'sockaddr_in' in scope
573 | }
574 |
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
| `- error: cannot find type 'sockaddr_in' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/Sources/Server.swift:575:40: error: cannot find type 'in_port_t' in scope
573 | }
574 |
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
| `- error: cannot find type 'in_port_t' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
/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:402:20: error: cannot find 'getpid' in scope
400 |
401 | static var pid: Int {
402 | return Int(getpid())
| `- error: cannot find 'getpid' in scope
403 | }
404 |
/host/spi-builder-workspace/Sources/Server.swift:410:13: error: cannot find 'pthread_threadid_np' in scope
408 | #else
409 | var tid: __uint64_t = 0
410 | pthread_threadid_np(nil, &tid);
| `- error: cannot find 'pthread_threadid_np' in scope
411 | return UInt64(tid)
412 | #endif
/host/spi-builder-workspace/Sources/Server.swift:410:33: error: 'nil' requires a contextual type
408 | #else
409 | var tid: __uint64_t = 0
410 | pthread_threadid_np(nil, &tid);
| `- error: 'nil' requires a contextual type
411 | return UInt64(tid)
412 | #endif
/host/spi-builder-workspace/Sources/Server.swift:416:55: error: cannot find 'errno' in scope
414 |
415 | static var error: String {
416 | return String(cString: UnsafePointer(strerror(errno)))
| `- error: cannot find 'errno' in scope
417 | }
418 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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:533:36: error: cannot find 'AF_INET' 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 'AF_INET' in scope
534 |
535 | guard server != -1 else {
/host/spi-builder-workspace/Sources/Server.swift:533:45: error: cannot find 'SOCK_STREAM' 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 'SOCK_STREAM' 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:540:38: error: cannot find 'SOL_SOCKET' 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 'SOL_SOCKET' in scope
541 | defer { let _ = Socket.close(server) }
542 | throw AsyncError.setReuseAddrFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:540:50: error: cannot find 'SO_REUSEADDR' 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 'SO_REUSEADDR' 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:550:130: error: cannot find type 'sockaddr_in' 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 type 'sockaddr_in' in scope
551 | defer { let _ = Socket.close(server) }
552 | throw AsyncError.bindFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:550:77: error: cannot find type 'sockaddr' 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 type 'sockaddr' 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:555:34: error: cannot find 'SOMAXCONN' in scope
553 | }
554 |
555 | if Darwin.listen(server, SOMAXCONN) == -1 {
| `- error: cannot find 'SOMAXCONN' 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:576:20: error: cannot find 'sockaddr_in' in scope
574 |
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
576 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
578 | addr.sin_family = sa_family_t(AF_INET)
/host/spi-builder-workspace/Sources/Server.swift:577:47: error: cannot find type 'sockaddr_in' in scope
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: cannot find type 'sockaddr_in' in scope
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
/host/spi-builder-workspace/Sources/Server.swift:578:27: error: cannot find 'sa_family_t' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
578 | addr.sin_family = sa_family_t(AF_INET)
| `- error: cannot find 'sa_family_t' in scope
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
/host/spi-builder-workspace/Sources/Server.swift:578:39: error: cannot find 'AF_INET' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
578 | addr.sin_family = sa_family_t(AF_INET)
| `- error: cannot find 'AF_INET' in scope
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
/host/spi-builder-workspace/Sources/Server.swift:580:25: error: cannot find 'in_addr' in scope
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
| `- error: cannot find 'in_addr' in scope
581 | addr.sin_zero = (0, 0, 0, 0, 0, 0, 0, 0)
582 | return addr
/host/spi-builder-workspace/Sources/Server.swift:580:41: error: cannot find 'in_addr_t' in scope
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
| `- error: cannot find 'in_addr_t' in scope
581 | addr.sin_zero = (0, 0, 0, 0, 0, 0, 0, 0)
582 | return addr
/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:33: error: cannot find 'F_SETFL' 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 'F_SETFL' 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:586:63: error: cannot find 'F_GETFL' 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 'F_GETFL' in scope
587 | throw AsyncError.setNonBlockFailed(Process.error)
588 | }
/host/spi-builder-workspace/Sources/Server.swift:586:77: error: cannot find 'O_NONBLOCK' 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 'O_NONBLOCK' 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:38: error: cannot find 'SOL_SOCKET' 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 'SOL_SOCKET' 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:645:16: error: cannot find 'kevent' in scope
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
| `- error: cannot find 'kevent' in scope
646 | }
647 |
/host/spi-builder-workspace/Sources/Server.swift:645:94: error: 'nil' requires a contextual type
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
| `- error: 'nil' requires a contextual type
646 | }
647 |
/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>
[25/36] Compiling slash SlackChannel.swift
/host/spi-builder-workspace/Sources/Server.swift:141:18: error: cannot find type 'in_port_t' in scope
139 | protocol TcpServer {
140 |
141 | init(_ port: in_port_t) throws
| `- error: cannot find type 'in_port_t' in scope
142 |
143 | func wait(_ callback: ((TcpServerEvent) -> Void)) throws
/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:318:18: error: cannot find type 'in_port_t' in scope
316 | private let server: TcpServer
317 |
318 | init(_ port: in_port_t = 8080) throws {
| `- error: cannot find type 'in_port_t' in scope
319 | #if os(Linux)
320 | self.server = try LinuxAsyncServer(port)
/host/spi-builder-workspace/Sources/Server.swift:428:27: error: cannot find type 'in_port_t' in scope
426 | private let server: UInt
427 |
428 | required init(_ port: in_port_t = 8080) throws {
| `- error: cannot find type 'in_port_t' in scope
429 |
430 | self.kernelQueue = try KernelQueue()
/host/spi-builder-workspace/Sources/Server.swift:531:57: error: cannot find type 'in_port_t' in scope
529 | }
530 |
531 | static func nonBlockingSocketForListenening(_ port: in_port_t = 8080) throws -> Int32 {
| `- error: cannot find type 'in_port_t' in scope
532 |
533 | let server = Darwin.socket(AF_INET, SOCK_STREAM, 0)
/host/spi-builder-workspace/Sources/Server.swift:575:54: error: cannot find type 'sockaddr_in' in scope
573 | }
574 |
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
| `- error: cannot find type 'sockaddr_in' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/Sources/Server.swift:575:40: error: cannot find type 'in_port_t' in scope
573 | }
574 |
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
| `- error: cannot find type 'in_port_t' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
/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:402:20: error: cannot find 'getpid' in scope
400 |
401 | static var pid: Int {
402 | return Int(getpid())
| `- error: cannot find 'getpid' in scope
403 | }
404 |
/host/spi-builder-workspace/Sources/Server.swift:410:13: error: cannot find 'pthread_threadid_np' in scope
408 | #else
409 | var tid: __uint64_t = 0
410 | pthread_threadid_np(nil, &tid);
| `- error: cannot find 'pthread_threadid_np' in scope
411 | return UInt64(tid)
412 | #endif
/host/spi-builder-workspace/Sources/Server.swift:410:33: error: 'nil' requires a contextual type
408 | #else
409 | var tid: __uint64_t = 0
410 | pthread_threadid_np(nil, &tid);
| `- error: 'nil' requires a contextual type
411 | return UInt64(tid)
412 | #endif
/host/spi-builder-workspace/Sources/Server.swift:416:55: error: cannot find 'errno' in scope
414 |
415 | static var error: String {
416 | return String(cString: UnsafePointer(strerror(errno)))
| `- error: cannot find 'errno' in scope
417 | }
418 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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:533:36: error: cannot find 'AF_INET' 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 'AF_INET' in scope
534 |
535 | guard server != -1 else {
/host/spi-builder-workspace/Sources/Server.swift:533:45: error: cannot find 'SOCK_STREAM' 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 'SOCK_STREAM' 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:540:38: error: cannot find 'SOL_SOCKET' 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 'SOL_SOCKET' in scope
541 | defer { let _ = Socket.close(server) }
542 | throw AsyncError.setReuseAddrFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:540:50: error: cannot find 'SO_REUSEADDR' 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 'SO_REUSEADDR' 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:550:130: error: cannot find type 'sockaddr_in' 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 type 'sockaddr_in' in scope
551 | defer { let _ = Socket.close(server) }
552 | throw AsyncError.bindFailed(Process.error)
/host/spi-builder-workspace/Sources/Server.swift:550:77: error: cannot find type 'sockaddr' 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 type 'sockaddr' 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:555:34: error: cannot find 'SOMAXCONN' in scope
553 | }
554 |
555 | if Darwin.listen(server, SOMAXCONN) == -1 {
| `- error: cannot find 'SOMAXCONN' 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:576:20: error: cannot find 'sockaddr_in' in scope
574 |
575 | static func anyAddrForPort(_ port: in_port_t) -> sockaddr_in {
576 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
578 | addr.sin_family = sa_family_t(AF_INET)
/host/spi-builder-workspace/Sources/Server.swift:577:47: error: cannot find type 'sockaddr_in' in scope
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: cannot find type 'sockaddr_in' in scope
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
/host/spi-builder-workspace/Sources/Server.swift:578:27: error: cannot find 'sa_family_t' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
578 | addr.sin_family = sa_family_t(AF_INET)
| `- error: cannot find 'sa_family_t' in scope
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
/host/spi-builder-workspace/Sources/Server.swift:578:39: error: cannot find 'AF_INET' in scope
576 | var addr = sockaddr_in()
577 | addr.sin_len = __uint8_t(MemoryLayout<sockaddr_in>.size)
578 | addr.sin_family = sa_family_t(AF_INET)
| `- error: cannot find 'AF_INET' in scope
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
/host/spi-builder-workspace/Sources/Server.swift:580:25: error: cannot find 'in_addr' in scope
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
| `- error: cannot find 'in_addr' in scope
581 | addr.sin_zero = (0, 0, 0, 0, 0, 0, 0, 0)
582 | return addr
/host/spi-builder-workspace/Sources/Server.swift:580:41: error: cannot find 'in_addr_t' in scope
578 | addr.sin_family = sa_family_t(AF_INET)
579 | addr.sin_port = port.bigEndian
580 | addr.sin_addr = in_addr(s_addr: in_addr_t(0))
| `- error: cannot find 'in_addr_t' in scope
581 | addr.sin_zero = (0, 0, 0, 0, 0, 0, 0, 0)
582 | return addr
/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:33: error: cannot find 'F_SETFL' 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 'F_SETFL' 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:586:63: error: cannot find 'F_GETFL' 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 'F_GETFL' in scope
587 | throw AsyncError.setNonBlockFailed(Process.error)
588 | }
/host/spi-builder-workspace/Sources/Server.swift:586:77: error: cannot find 'O_NONBLOCK' 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 'O_NONBLOCK' 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:38: error: cannot find 'SOL_SOCKET' 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 'SOL_SOCKET' 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:645:16: error: cannot find 'kevent' in scope
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
| `- error: cannot find 'kevent' in scope
646 | }
647 |
/host/spi-builder-workspace/Sources/Server.swift:645:94: error: 'nil' requires a contextual type
643 |
644 | private func event(_ ident: UInt, _ filter: Int16, _ flags: UInt16) -> kevent {
645 | return kevent(ident: ident, filter: filter, flags: flags, fflags: 0, data: 0, udata: nil)
| `- error: 'nil' requires a contextual type
646 | }
647 |
/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>
[26/36] Compiling slash Socket.swift
/host/spi-builder-workspace/Sources/TerminalDevice.swift:39:35: error: cannot find 'termios' in scope
37 | }
38 |
39 | private var originalTermios = termios()
| `- error: cannot find 'termios' in scope
40 |
41 | init() throws {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:42:15: error: cannot find 'tcgetattr' in scope
40 |
41 | init() throws {
42 | guard tcgetattr(fileno(stdin), &self.originalTermios) == 0 else {
| `- error: cannot find 'tcgetattr' in scope
43 | throw TerminalError.error("Could not load current terminal config: \(errno)")
44 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:43:82: error: cannot find 'errno' in scope
41 | init() throws {
42 | guard tcgetattr(fileno(stdin), &self.originalTermios) == 0 else {
43 | throw TerminalError.error("Could not load current terminal config: \(errno)")
| `- error: cannot find 'errno' in scope
44 | }
45 | try self.terminalEnableRawMode()
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TerminalDevice.swift:51:17: error: cannot find 'winsize' in scope
49 |
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
| `- error: cannot find 'winsize' in scope
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
53 | exit(1)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:15: error: cannot find 'ioctl' in scope
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
| `- error: cannot find 'ioctl' in scope
53 | exit(1)
54 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:37: error: cannot find 'TIOCGWINSZ' in scope
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
| `- error: cannot find 'TIOCGWINSZ' in scope
53 | exit(1)
54 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:102:9: error: cannot find 'write' in scope
100 |
101 | func flush(_ buffer: [UInt8]) {
102 | write(fileno(stdout), buffer, buffer.count)
| `- error: cannot find 'write' in scope
103 | }
104 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:106:15: error: cannot find 'tcsetattr' in scope
104 |
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
| `- error: cannot find 'tcsetattr' in scope
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
108 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:106:40: error: cannot find 'TCSAFLUSH' in scope
104 |
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
| `- error: cannot find 'TCSAFLUSH' in scope
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
108 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:107:78: error: cannot find 'errno' in scope
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
| `- error: cannot find 'errno' in scope
108 | }
109 | self.flush(TerminalCanvas().clean().cursor(1, 1).showCursor().buffer)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TerminalDevice.swift:114:30: error: cannot find 'termios' in scope
112 | private func terminalEnableRawMode() throws {
113 |
114 | var rawModeTermios = termios()
| `- error: cannot find 'termios' in scope
115 |
116 | memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:116:69: error: cannot find type 'termios' in scope
114 | var rawModeTermios = termios()
115 |
116 | memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
| `- error: cannot find type 'termios' in scope
117 |
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:18: error: cannot find 'ECHO' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ECHO' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:25: error: cannot find 'ECHONL' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ECHONL' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:34: error: cannot find 'ICANON' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ICANON' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:43: error: cannot find 'IEXTEN' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'IEXTEN' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:52: error: cannot find 'ISIG' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ISIG' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:18: error: cannot find 'IGNBRK' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'IGNBRK' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:27: error: cannot find 'BRKINT' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'BRKINT' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:36: error: cannot find 'INLCR' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'INLCR' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:44: error: cannot find 'ICRNL' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'ICRNL' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:52: error: cannot find 'INPCK' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'INPCK' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:60: error: cannot find 'PARMRK' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'PARMRK' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:69: error: cannot find 'ISTRIP' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'ISTRIP' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:78: error: cannot find 'IXON' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'IXON' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:85: error: cannot find 'IUTF8' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'IUTF8' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:126:71: error: cannot find 'CS8' in scope
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
| `- error: cannot find 'CS8' in scope
127 | rawModeTermios.c_oflag = 0
128 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:132:15: error: cannot find 'tcsetattr' in scope
130 | rawModeTermios.c_cc.16 /*[VMIN] */ = 1
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
| `- error: cannot find 'tcsetattr' in scope
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
134 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:132:40: error: cannot find 'TCSAFLUSH' in scope
130 | rawModeTermios.c_cc.16 /*[VMIN] */ = 1
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
| `- error: cannot find 'TCSAFLUSH' in scope
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
134 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:133:69: error: cannot find 'errno' in scope
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
| `- error: cannot find 'errno' in scope
134 | }
135 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[27/36] Compiling slash TLSSocket.swift
/host/spi-builder-workspace/Sources/TerminalDevice.swift:39:35: error: cannot find 'termios' in scope
37 | }
38 |
39 | private var originalTermios = termios()
| `- error: cannot find 'termios' in scope
40 |
41 | init() throws {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:42:15: error: cannot find 'tcgetattr' in scope
40 |
41 | init() throws {
42 | guard tcgetattr(fileno(stdin), &self.originalTermios) == 0 else {
| `- error: cannot find 'tcgetattr' in scope
43 | throw TerminalError.error("Could not load current terminal config: \(errno)")
44 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:43:82: error: cannot find 'errno' in scope
41 | init() throws {
42 | guard tcgetattr(fileno(stdin), &self.originalTermios) == 0 else {
43 | throw TerminalError.error("Could not load current terminal config: \(errno)")
| `- error: cannot find 'errno' in scope
44 | }
45 | try self.terminalEnableRawMode()
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TerminalDevice.swift:51:17: error: cannot find 'winsize' in scope
49 |
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
| `- error: cannot find 'winsize' in scope
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
53 | exit(1)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:15: error: cannot find 'ioctl' in scope
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
| `- error: cannot find 'ioctl' in scope
53 | exit(1)
54 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:37: error: cannot find 'TIOCGWINSZ' in scope
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
| `- error: cannot find 'TIOCGWINSZ' in scope
53 | exit(1)
54 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:102:9: error: cannot find 'write' in scope
100 |
101 | func flush(_ buffer: [UInt8]) {
102 | write(fileno(stdout), buffer, buffer.count)
| `- error: cannot find 'write' in scope
103 | }
104 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:106:15: error: cannot find 'tcsetattr' in scope
104 |
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
| `- error: cannot find 'tcsetattr' in scope
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
108 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:106:40: error: cannot find 'TCSAFLUSH' in scope
104 |
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
| `- error: cannot find 'TCSAFLUSH' in scope
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
108 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:107:78: error: cannot find 'errno' in scope
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
| `- error: cannot find 'errno' in scope
108 | }
109 | self.flush(TerminalCanvas().clean().cursor(1, 1).showCursor().buffer)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TerminalDevice.swift:114:30: error: cannot find 'termios' in scope
112 | private func terminalEnableRawMode() throws {
113 |
114 | var rawModeTermios = termios()
| `- error: cannot find 'termios' in scope
115 |
116 | memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:116:69: error: cannot find type 'termios' in scope
114 | var rawModeTermios = termios()
115 |
116 | memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
| `- error: cannot find type 'termios' in scope
117 |
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:18: error: cannot find 'ECHO' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ECHO' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:25: error: cannot find 'ECHONL' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ECHONL' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:34: error: cannot find 'ICANON' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ICANON' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:43: error: cannot find 'IEXTEN' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'IEXTEN' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:52: error: cannot find 'ISIG' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ISIG' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:18: error: cannot find 'IGNBRK' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'IGNBRK' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:27: error: cannot find 'BRKINT' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'BRKINT' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:36: error: cannot find 'INLCR' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'INLCR' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:44: error: cannot find 'ICRNL' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'ICRNL' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:52: error: cannot find 'INPCK' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'INPCK' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:60: error: cannot find 'PARMRK' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'PARMRK' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:69: error: cannot find 'ISTRIP' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'ISTRIP' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:78: error: cannot find 'IXON' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'IXON' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:85: error: cannot find 'IUTF8' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'IUTF8' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:126:71: error: cannot find 'CS8' in scope
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
| `- error: cannot find 'CS8' in scope
127 | rawModeTermios.c_oflag = 0
128 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:132:15: error: cannot find 'tcsetattr' in scope
130 | rawModeTermios.c_cc.16 /*[VMIN] */ = 1
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
| `- error: cannot find 'tcsetattr' in scope
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
134 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:132:40: error: cannot find 'TCSAFLUSH' in scope
130 | rawModeTermios.c_cc.16 /*[VMIN] */ = 1
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
| `- error: cannot find 'TCSAFLUSH' in scope
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
134 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:133:69: error: cannot find 'errno' in scope
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
| `- error: cannot find 'errno' in scope
134 | }
135 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[28/36] Compiling slash TerminalCanvas.swift
/host/spi-builder-workspace/Sources/TerminalDevice.swift:39:35: error: cannot find 'termios' in scope
37 | }
38 |
39 | private var originalTermios = termios()
| `- error: cannot find 'termios' in scope
40 |
41 | init() throws {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:42:15: error: cannot find 'tcgetattr' in scope
40 |
41 | init() throws {
42 | guard tcgetattr(fileno(stdin), &self.originalTermios) == 0 else {
| `- error: cannot find 'tcgetattr' in scope
43 | throw TerminalError.error("Could not load current terminal config: \(errno)")
44 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:43:82: error: cannot find 'errno' in scope
41 | init() throws {
42 | guard tcgetattr(fileno(stdin), &self.originalTermios) == 0 else {
43 | throw TerminalError.error("Could not load current terminal config: \(errno)")
| `- error: cannot find 'errno' in scope
44 | }
45 | try self.terminalEnableRawMode()
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TerminalDevice.swift:51:17: error: cannot find 'winsize' in scope
49 |
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
| `- error: cannot find 'winsize' in scope
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
53 | exit(1)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:15: error: cannot find 'ioctl' in scope
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
| `- error: cannot find 'ioctl' in scope
53 | exit(1)
54 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:37: error: cannot find 'TIOCGWINSZ' in scope
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
| `- error: cannot find 'TIOCGWINSZ' in scope
53 | exit(1)
54 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:102:9: error: cannot find 'write' in scope
100 |
101 | func flush(_ buffer: [UInt8]) {
102 | write(fileno(stdout), buffer, buffer.count)
| `- error: cannot find 'write' in scope
103 | }
104 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:106:15: error: cannot find 'tcsetattr' in scope
104 |
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
| `- error: cannot find 'tcsetattr' in scope
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
108 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:106:40: error: cannot find 'TCSAFLUSH' in scope
104 |
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
| `- error: cannot find 'TCSAFLUSH' in scope
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
108 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:107:78: error: cannot find 'errno' in scope
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
| `- error: cannot find 'errno' in scope
108 | }
109 | self.flush(TerminalCanvas().clean().cursor(1, 1).showCursor().buffer)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TerminalDevice.swift:114:30: error: cannot find 'termios' in scope
112 | private func terminalEnableRawMode() throws {
113 |
114 | var rawModeTermios = termios()
| `- error: cannot find 'termios' in scope
115 |
116 | memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:116:69: error: cannot find type 'termios' in scope
114 | var rawModeTermios = termios()
115 |
116 | memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
| `- error: cannot find type 'termios' in scope
117 |
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:18: error: cannot find 'ECHO' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ECHO' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:25: error: cannot find 'ECHONL' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ECHONL' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:34: error: cannot find 'ICANON' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ICANON' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:43: error: cannot find 'IEXTEN' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'IEXTEN' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:52: error: cannot find 'ISIG' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ISIG' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:18: error: cannot find 'IGNBRK' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'IGNBRK' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:27: error: cannot find 'BRKINT' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'BRKINT' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:36: error: cannot find 'INLCR' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'INLCR' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:44: error: cannot find 'ICRNL' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'ICRNL' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:52: error: cannot find 'INPCK' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'INPCK' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:60: error: cannot find 'PARMRK' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'PARMRK' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:69: error: cannot find 'ISTRIP' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'ISTRIP' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:78: error: cannot find 'IXON' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'IXON' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:85: error: cannot find 'IUTF8' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'IUTF8' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:126:71: error: cannot find 'CS8' in scope
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
| `- error: cannot find 'CS8' in scope
127 | rawModeTermios.c_oflag = 0
128 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:132:15: error: cannot find 'tcsetattr' in scope
130 | rawModeTermios.c_cc.16 /*[VMIN] */ = 1
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
| `- error: cannot find 'tcsetattr' in scope
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
134 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:132:40: error: cannot find 'TCSAFLUSH' in scope
130 | rawModeTermios.c_cc.16 /*[VMIN] */ = 1
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
| `- error: cannot find 'TCSAFLUSH' in scope
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
134 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:133:69: error: cannot find 'errno' in scope
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
| `- error: cannot find 'errno' in scope
134 | }
135 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[29/36] Compiling slash TerminalDevice.swift
/host/spi-builder-workspace/Sources/TerminalDevice.swift:39:35: error: cannot find 'termios' in scope
37 | }
38 |
39 | private var originalTermios = termios()
| `- error: cannot find 'termios' in scope
40 |
41 | init() throws {
/host/spi-builder-workspace/Sources/TerminalDevice.swift:42:15: error: cannot find 'tcgetattr' in scope
40 |
41 | init() throws {
42 | guard tcgetattr(fileno(stdin), &self.originalTermios) == 0 else {
| `- error: cannot find 'tcgetattr' in scope
43 | throw TerminalError.error("Could not load current terminal config: \(errno)")
44 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:43:82: error: cannot find 'errno' in scope
41 | init() throws {
42 | guard tcgetattr(fileno(stdin), &self.originalTermios) == 0 else {
43 | throw TerminalError.error("Could not load current terminal config: \(errno)")
| `- error: cannot find 'errno' in scope
44 | }
45 | try self.terminalEnableRawMode()
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TerminalDevice.swift:51:17: error: cannot find 'winsize' in scope
49 |
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
| `- error: cannot find 'winsize' in scope
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
53 | exit(1)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:15: error: cannot find 'ioctl' in scope
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
| `- error: cannot find 'ioctl' in scope
53 | exit(1)
54 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:52:37: error: cannot find 'TIOCGWINSZ' in scope
50 | var size: (width: Int, height: Int) {
51 | var w = winsize()
52 | guard ioctl(fileno(stdout), TIOCGWINSZ, &w) == 0 else {
| `- error: cannot find 'TIOCGWINSZ' in scope
53 | exit(1)
54 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:102:9: error: cannot find 'write' in scope
100 |
101 | func flush(_ buffer: [UInt8]) {
102 | write(fileno(stdout), buffer, buffer.count)
| `- error: cannot find 'write' in scope
103 | }
104 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:106:15: error: cannot find 'tcsetattr' in scope
104 |
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
| `- error: cannot find 'tcsetattr' in scope
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
108 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:106:40: error: cannot find 'TCSAFLUSH' in scope
104 |
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
| `- error: cannot find 'TCSAFLUSH' in scope
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
108 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:107:78: error: cannot find 'errno' in scope
105 | func reset() throws {
106 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &self.originalTermios) == 0 else {
107 | throw TerminalError.error("Could not revert the original mode: \(errno)")
| `- error: cannot find 'errno' in scope
108 | }
109 | self.flush(TerminalCanvas().clean().cursor(1, 1).showCursor().buffer)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/TerminalDevice.swift:114:30: error: cannot find 'termios' in scope
112 | private func terminalEnableRawMode() throws {
113 |
114 | var rawModeTermios = termios()
| `- error: cannot find 'termios' in scope
115 |
116 | memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:116:69: error: cannot find type 'termios' in scope
114 | var rawModeTermios = termios()
115 |
116 | memcpy(&rawModeTermios, &self.originalTermios, MemoryLayout<termios>.size)
| `- error: cannot find type 'termios' in scope
117 |
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:18: error: cannot find 'ECHO' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ECHO' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:25: error: cannot find 'ECHONL' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ECHONL' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:34: error: cannot find 'ICANON' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ICANON' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:43: error: cannot find 'IEXTEN' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'IEXTEN' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:120:52: error: cannot find 'ISIG' in scope
118 | rawModeTermios.c_lflag = UInt(Int32(rawModeTermios.c_lflag)
119 |
120 | & (~(ECHO | ECHONL | ICANON | IEXTEN | ISIG)))
| `- error: cannot find 'ISIG' in scope
121 |
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:18: error: cannot find 'IGNBRK' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'IGNBRK' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:27: error: cannot find 'BRKINT' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'BRKINT' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:36: error: cannot find 'INLCR' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'INLCR' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:44: error: cannot find 'ICRNL' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'ICRNL' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:52: error: cannot find 'INPCK' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'INPCK' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:60: error: cannot find 'PARMRK' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'PARMRK' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:69: error: cannot find 'ISTRIP' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'ISTRIP' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:78: error: cannot find 'IXON' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'IXON' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:124:85: error: cannot find 'IUTF8' in scope
122 | rawModeTermios.c_iflag = UInt(Int32(rawModeTermios.c_iflag)
123 |
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
| `- error: cannot find 'IUTF8' in scope
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
/host/spi-builder-workspace/Sources/TerminalDevice.swift:126:71: error: cannot find 'CS8' in scope
124 | & (~(IGNBRK | BRKINT | INLCR | ICRNL | INPCK | PARMRK | ISTRIP | IXON | IUTF8)))
125 |
126 | rawModeTermios.c_cflag = UInt(Int32(rawModeTermios.c_cflag) & CS8)
| `- error: cannot find 'CS8' in scope
127 | rawModeTermios.c_oflag = 0
128 |
/host/spi-builder-workspace/Sources/TerminalDevice.swift:132:15: error: cannot find 'tcsetattr' in scope
130 | rawModeTermios.c_cc.16 /*[VMIN] */ = 1
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
| `- error: cannot find 'tcsetattr' in scope
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
134 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:132:40: error: cannot find 'TCSAFLUSH' in scope
130 | rawModeTermios.c_cc.16 /*[VMIN] */ = 1
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
| `- error: cannot find 'TCSAFLUSH' in scope
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
134 | }
/host/spi-builder-workspace/Sources/TerminalDevice.swift:133:69: error: cannot find 'errno' in scope
131 |
132 | guard tcsetattr(fileno(stdin), TCSAFLUSH, &rawModeTermios) == 0 else {
133 | throw TerminalError.error("Could not enable raw mode: \(errno)")
| `- error: cannot find 'errno' in scope
134 | }
135 | }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[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.3 android