The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Swifter, reference 1.5.0 (9483a5), with Swift 6.1 for Android on 28 May 2025 03:20:44 UTC.

Build Command

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

Build Log

    |            |- note: convert 'marginheight' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: add '@MainActor' to make var 'marginheight' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | public var acceptCharset: String?
148 |
/host/spi-builder-workspace/XCode/Sources/Scopes.swift:147:12: warning: var 'acceptCharset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | public var placeholder: String?
146 | public var marginheight: String?
147 | public var acceptCharset: String?
    |            |- warning: var 'acceptCharset' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'acceptCharset' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: add '@MainActor' to make var 'acceptCharset' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | public var inner: String?
/host/spi-builder-workspace/XCode/Sources/Scopes.swift:149:12: warning: var 'inner' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
147 | public var acceptCharset: String?
148 |
149 | public var inner: String?
    |            |- warning: var 'inner' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: convert 'inner' to a 'let' constant to make 'Sendable' shared state immutable
    |            |- note: add '@MainActor' to make var 'inner' part of global actor 'MainActor'
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 |
151 | public func a(_ closure: Closure) { element("a", closure) }
/host/spi-builder-workspace/XCode/Sources/Scopes.swift:336:5: warning: var 'scopesBuffer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
334 | public func element(_ node: String, _ attrs: [String: String?] = [:], _ closure: Closure) { evaluate(node, attrs, closure) }
335 |
336 | var scopesBuffer = [UInt64: String]()
    |     |- warning: var 'scopesBuffer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'scopesBuffer' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'scopesBuffer' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
337 |
338 | // swiftlint:disable cyclomatic_complexity function_body_length
[13/28] Compiling Swifter Socket+File.swift
/host/spi-builder-workspace/XCode/Sources/Socket+File.swift:45:17: error: cannot find type 'sf_hdtr' in scope
43 |     public func writeFile(_ file: String.File) throws {
44 |         var offset: off_t = 0
45 |         var sf: sf_hdtr = sf_hdtr()
   |                 `- error: cannot find type 'sf_hdtr' in scope
46 |
47 |         #if os(iOS) || os(tvOS) || os (Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+File.swift:50:22: error: cannot find 'sendfile' in scope
48 |         let result = sendfileImpl(file.pointer, self.socketFileDescriptor, 0, &offset, &sf, 0)
49 |         #else
50 |         let result = sendfile(fileno(file.pointer), self.socketFileDescriptor, 0, &offset, &sf, 0)
   |                      `- error: cannot find 'sendfile' in scope
51 |         #endif
52 |
/host/spi-builder-workspace/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:120: error: cannot find 'SOMAXCONN' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                                                                                        `- error: cannot find 'SOMAXCONN' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:40: error: cannot find 'socket' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                        `- error: cannot find 'socket' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:59: error: cannot find 'AF_INET' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                           `- error: cannot find 'AF_INET' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:69: error: cannot find 'AF_INET6' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                                     `- error: cannot find 'AF_INET6' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:79: error: cannot find 'SOCK_STREAM' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                                               `- error: cannot find 'SOCK_STREAM' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:30:12: error: cannot find 'setsockopt' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'setsockopt' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:30:45: error: cannot find 'SOL_SOCKET' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                             `- error: cannot find 'SOL_SOCKET' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:30:57: error: cannot find 'SO_REUSEADDR' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                                         `- error: cannot find 'SO_REUSEADDR' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:46:24: error: cannot find 'sockaddr_in' in scope
 44 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 45 |             #else
 46 |             var addr = sockaddr_in(
    |                        `- error: cannot find 'sockaddr_in' in scope
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
 48 |                 sin_family: UInt8(AF_INET),
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:47:45: error: cannot find type 'sockaddr_in' in scope
 45 |             #else
 46 |             var addr = sockaddr_in(
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
    |                                             `- error: cannot find type 'sockaddr_in' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:48:35: error: cannot find 'AF_INET' in scope
 46 |             var addr = sockaddr_in(
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
 48 |                 sin_family: UInt8(AF_INET),
    |                                   `- error: cannot find 'AF_INET' in scope
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:50:27: error: cannot find 'in_addr' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
    |                           `- error: cannot find 'in_addr' in scope
 51 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 52 |             #endif
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:50:43: error: cannot find 'in_addr_t' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
    |                                           `- error: cannot find 'in_addr_t' in scope
 51 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 52 |             #endif
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:54:51: error: cannot find 'inet_pton' in scope
 52 |             #endif
 53 |             if let address = listenAddress {
 54 |               if address.withCString({ cstring in inet_pton(AF_INET, cstring, &addr.sin_addr) }) == 1 {
    |                                                   `- error: cannot find 'inet_pton' in scope
 55 |                 // print("\(address) is converted to \(addr.sin_addr).")
 56 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:54:61: error: cannot find 'AF_INET' in scope
 52 |             #endif
 53 |             if let address = listenAddress {
 54 |               if address.withCString({ cstring in inet_pton(AF_INET, cstring, &addr.sin_addr) }) == 1 {
    |                                                             `- error: cannot find 'AF_INET' in scope
 55 |                 // print("\(address) is converted to \(addr.sin_addr).")
 56 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:61:17: error: cannot find 'bind' in scope
 59 |             }
 60 |             bindResult = withUnsafePointer(to: &addr) {
 61 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
    |                 `- error: cannot find 'bind' in scope
 62 |             }
 63 |         } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:61:111: error: cannot find type 'sockaddr_in' in scope
 59 |             }
 60 |             bindResult = withUnsafePointer(to: &addr) {
 61 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
    |                                                                                                               `- error: cannot find type 'sockaddr_in' in scope
 62 |             }
 63 |         } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:61:58: error: cannot find type 'sockaddr' in scope
 59 |             }
 60 |             bindResult = withUnsafePointer(to: &addr) {
 61 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
    |                                                          `- error: cannot find type 'sockaddr' in scope
 62 |             }
 63 |         } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:72:24: error: cannot find 'sockaddr_in6' in scope
 70 |                 sin6_scope_id: 0)
 71 |             #else
 72 |             var addr = sockaddr_in6(
    |                        `- error: cannot find 'sockaddr_in6' in scope
 73 |                 sin6_len: UInt8(MemoryLayout<sockaddr_in6>.stride),
 74 |                 sin6_family: UInt8(AF_INET6),
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:73:46: error: cannot find type 'sockaddr_in6' in scope
 71 |             #else
 72 |             var addr = sockaddr_in6(
 73 |                 sin6_len: UInt8(MemoryLayout<sockaddr_in6>.stride),
    |                                              `- error: cannot find type 'sockaddr_in6' in scope
 74 |                 sin6_family: UInt8(AF_INET6),
 75 |                 sin6_port: port.bigEndian,
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:74:36: error: cannot find 'AF_INET6' in scope
 72 |             var addr = sockaddr_in6(
 73 |                 sin6_len: UInt8(MemoryLayout<sockaddr_in6>.stride),
 74 |                 sin6_family: UInt8(AF_INET6),
    |                                    `- error: cannot find 'AF_INET6' in scope
 75 |                 sin6_port: port.bigEndian,
 76 |                 sin6_flowinfo: 0,
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:77:28: error: cannot find 'in6addr_any' in scope
 75 |                 sin6_port: port.bigEndian,
 76 |                 sin6_flowinfo: 0,
 77 |                 sin6_addr: in6addr_any,
    |                            `- error: cannot find 'in6addr_any' in scope
 78 |                 sin6_scope_id: 0)
 79 |             #endif
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:81:51: error: cannot find 'inet_pton' in scope
 79 |             #endif
 80 |             if let address = listenAddress {
 81 |               if address.withCString({ cstring in inet_pton(AF_INET6, cstring, &addr.sin6_addr) }) == 1 {
    |                                                   `- error: cannot find 'inet_pton' in scope
 82 |                 //print("\(address) is converted to \(addr.sin6_addr).")
 83 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:81:61: error: cannot find 'AF_INET6' in scope
 79 |             #endif
 80 |             if let address = listenAddress {
 81 |               if address.withCString({ cstring in inet_pton(AF_INET6, cstring, &addr.sin6_addr) }) == 1 {
    |                                                             `- error: cannot find 'AF_INET6' in scope
 82 |                 //print("\(address) is converted to \(addr.sin6_addr).")
 83 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:88:17: error: cannot find 'bind' in scope
 86 |             }
 87 |             bindResult = withUnsafePointer(to: &addr) {
 88 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in6>.size))
    |                 `- error: cannot find 'bind' in scope
 89 |             }
 90 |         }
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:88:111: error: cannot find type 'sockaddr_in6' in scope
 86 |             }
 87 |             bindResult = withUnsafePointer(to: &addr) {
 88 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in6>.size))
    |                                                                                                               `- error: cannot find type 'sockaddr_in6' in scope
 89 |             }
 90 |         }
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:88:58: error: cannot find type 'sockaddr' in scope
 86 |             }
 87 |             bindResult = withUnsafePointer(to: &addr) {
 88 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in6>.size))
    |                                                          `- error: cannot find type 'sockaddr' in scope
 89 |             }
 90 |         }
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:98:12: error: cannot find 'listen' in scope
 96 |         }
 97 |
 98 |         if listen(socketFileDescriptor, maxPendingConnection) == -1 {
    |            `- error: cannot find 'listen' in scope
 99 |             let details = Errno.description()
100 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:107:20: error: cannot find 'sockaddr' in scope
105 |
106 |     public func acceptClientSocket() throws -> Socket {
107 |         var addr = sockaddr()
    |                    `- error: cannot find 'sockaddr' in scope
108 |         var len: socklen_t = 0
109 |         let clientSocket = accept(self.socketFileDescriptor, &addr, &len)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:109:28: error: cannot find 'accept' in scope
107 |         var addr = sockaddr()
108 |         var len: socklen_t = 0
109 |         let clientSocket = accept(self.socketFileDescriptor, &addr, &len)
    |                            `- error: cannot find 'accept' in scope
110 |         if clientSocket == -1 {
111 |             throw SocketError.acceptFailed(Errno.description())
[14/28] Compiling Swifter Socket+Server.swift
/host/spi-builder-workspace/XCode/Sources/Socket+File.swift:45:17: error: cannot find type 'sf_hdtr' in scope
43 |     public func writeFile(_ file: String.File) throws {
44 |         var offset: off_t = 0
45 |         var sf: sf_hdtr = sf_hdtr()
   |                 `- error: cannot find type 'sf_hdtr' in scope
46 |
47 |         #if os(iOS) || os(tvOS) || os (Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+File.swift:50:22: error: cannot find 'sendfile' in scope
48 |         let result = sendfileImpl(file.pointer, self.socketFileDescriptor, 0, &offset, &sf, 0)
49 |         #else
50 |         let result = sendfile(fileno(file.pointer), self.socketFileDescriptor, 0, &offset, &sf, 0)
   |                      `- error: cannot find 'sendfile' in scope
51 |         #endif
52 |
/host/spi-builder-workspace/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:120: error: cannot find 'SOMAXCONN' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                                                                                        `- error: cannot find 'SOMAXCONN' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:40: error: cannot find 'socket' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                        `- error: cannot find 'socket' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:59: error: cannot find 'AF_INET' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                           `- error: cannot find 'AF_INET' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:69: error: cannot find 'AF_INET6' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                                     `- error: cannot find 'AF_INET6' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:79: error: cannot find 'SOCK_STREAM' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                                               `- error: cannot find 'SOCK_STREAM' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:30:12: error: cannot find 'setsockopt' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'setsockopt' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:30:45: error: cannot find 'SOL_SOCKET' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                             `- error: cannot find 'SOL_SOCKET' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:30:57: error: cannot find 'SO_REUSEADDR' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                                         `- error: cannot find 'SO_REUSEADDR' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:46:24: error: cannot find 'sockaddr_in' in scope
 44 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 45 |             #else
 46 |             var addr = sockaddr_in(
    |                        `- error: cannot find 'sockaddr_in' in scope
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
 48 |                 sin_family: UInt8(AF_INET),
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:47:45: error: cannot find type 'sockaddr_in' in scope
 45 |             #else
 46 |             var addr = sockaddr_in(
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
    |                                             `- error: cannot find type 'sockaddr_in' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:48:35: error: cannot find 'AF_INET' in scope
 46 |             var addr = sockaddr_in(
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
 48 |                 sin_family: UInt8(AF_INET),
    |                                   `- error: cannot find 'AF_INET' in scope
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:50:27: error: cannot find 'in_addr' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
    |                           `- error: cannot find 'in_addr' in scope
 51 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 52 |             #endif
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:50:43: error: cannot find 'in_addr_t' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
    |                                           `- error: cannot find 'in_addr_t' in scope
 51 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 52 |             #endif
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:54:51: error: cannot find 'inet_pton' in scope
 52 |             #endif
 53 |             if let address = listenAddress {
 54 |               if address.withCString({ cstring in inet_pton(AF_INET, cstring, &addr.sin_addr) }) == 1 {
    |                                                   `- error: cannot find 'inet_pton' in scope
 55 |                 // print("\(address) is converted to \(addr.sin_addr).")
 56 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:54:61: error: cannot find 'AF_INET' in scope
 52 |             #endif
 53 |             if let address = listenAddress {
 54 |               if address.withCString({ cstring in inet_pton(AF_INET, cstring, &addr.sin_addr) }) == 1 {
    |                                                             `- error: cannot find 'AF_INET' in scope
 55 |                 // print("\(address) is converted to \(addr.sin_addr).")
 56 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:61:17: error: cannot find 'bind' in scope
 59 |             }
 60 |             bindResult = withUnsafePointer(to: &addr) {
 61 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
    |                 `- error: cannot find 'bind' in scope
 62 |             }
 63 |         } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:61:111: error: cannot find type 'sockaddr_in' in scope
 59 |             }
 60 |             bindResult = withUnsafePointer(to: &addr) {
 61 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
    |                                                                                                               `- error: cannot find type 'sockaddr_in' in scope
 62 |             }
 63 |         } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:61:58: error: cannot find type 'sockaddr' in scope
 59 |             }
 60 |             bindResult = withUnsafePointer(to: &addr) {
 61 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
    |                                                          `- error: cannot find type 'sockaddr' in scope
 62 |             }
 63 |         } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:72:24: error: cannot find 'sockaddr_in6' in scope
 70 |                 sin6_scope_id: 0)
 71 |             #else
 72 |             var addr = sockaddr_in6(
    |                        `- error: cannot find 'sockaddr_in6' in scope
 73 |                 sin6_len: UInt8(MemoryLayout<sockaddr_in6>.stride),
 74 |                 sin6_family: UInt8(AF_INET6),
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:73:46: error: cannot find type 'sockaddr_in6' in scope
 71 |             #else
 72 |             var addr = sockaddr_in6(
 73 |                 sin6_len: UInt8(MemoryLayout<sockaddr_in6>.stride),
    |                                              `- error: cannot find type 'sockaddr_in6' in scope
 74 |                 sin6_family: UInt8(AF_INET6),
 75 |                 sin6_port: port.bigEndian,
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:74:36: error: cannot find 'AF_INET6' in scope
 72 |             var addr = sockaddr_in6(
 73 |                 sin6_len: UInt8(MemoryLayout<sockaddr_in6>.stride),
 74 |                 sin6_family: UInt8(AF_INET6),
    |                                    `- error: cannot find 'AF_INET6' in scope
 75 |                 sin6_port: port.bigEndian,
 76 |                 sin6_flowinfo: 0,
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:77:28: error: cannot find 'in6addr_any' in scope
 75 |                 sin6_port: port.bigEndian,
 76 |                 sin6_flowinfo: 0,
 77 |                 sin6_addr: in6addr_any,
    |                            `- error: cannot find 'in6addr_any' in scope
 78 |                 sin6_scope_id: 0)
 79 |             #endif
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:81:51: error: cannot find 'inet_pton' in scope
 79 |             #endif
 80 |             if let address = listenAddress {
 81 |               if address.withCString({ cstring in inet_pton(AF_INET6, cstring, &addr.sin6_addr) }) == 1 {
    |                                                   `- error: cannot find 'inet_pton' in scope
 82 |                 //print("\(address) is converted to \(addr.sin6_addr).")
 83 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:81:61: error: cannot find 'AF_INET6' in scope
 79 |             #endif
 80 |             if let address = listenAddress {
 81 |               if address.withCString({ cstring in inet_pton(AF_INET6, cstring, &addr.sin6_addr) }) == 1 {
    |                                                             `- error: cannot find 'AF_INET6' in scope
 82 |                 //print("\(address) is converted to \(addr.sin6_addr).")
 83 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:88:17: error: cannot find 'bind' in scope
 86 |             }
 87 |             bindResult = withUnsafePointer(to: &addr) {
 88 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in6>.size))
    |                 `- error: cannot find 'bind' in scope
 89 |             }
 90 |         }
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:88:111: error: cannot find type 'sockaddr_in6' in scope
 86 |             }
 87 |             bindResult = withUnsafePointer(to: &addr) {
 88 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in6>.size))
    |                                                                                                               `- error: cannot find type 'sockaddr_in6' in scope
 89 |             }
 90 |         }
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:88:58: error: cannot find type 'sockaddr' in scope
 86 |             }
 87 |             bindResult = withUnsafePointer(to: &addr) {
 88 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in6>.size))
    |                                                          `- error: cannot find type 'sockaddr' in scope
 89 |             }
 90 |         }
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:98:12: error: cannot find 'listen' in scope
 96 |         }
 97 |
 98 |         if listen(socketFileDescriptor, maxPendingConnection) == -1 {
    |            `- error: cannot find 'listen' in scope
 99 |             let details = Errno.description()
100 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:107:20: error: cannot find 'sockaddr' in scope
105 |
106 |     public func acceptClientSocket() throws -> Socket {
107 |         var addr = sockaddr()
    |                    `- error: cannot find 'sockaddr' in scope
108 |         var len: socklen_t = 0
109 |         let clientSocket = accept(self.socketFileDescriptor, &addr, &len)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:109:28: error: cannot find 'accept' in scope
107 |         var addr = sockaddr()
108 |         var len: socklen_t = 0
109 |         let clientSocket = accept(self.socketFileDescriptor, &addr, &len)
    |                            `- error: cannot find 'accept' in scope
110 |         if clientSocket == -1 {
111 |             throw SocketError.acceptFailed(Errno.description())
[15/28] Compiling Swifter HttpParser.swift
[16/28] Compiling Swifter HttpRequest.swift
[17/28] Compiling Swifter HttpResponse.swift
[18/28] Compiling Swifter String+File.swift
/host/spi-builder-workspace/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
 18 |         let pointer: UnsafeMutablePointer<FILE>
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 21 |             self.pointer = pointer
 22 |         }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:68:23: warning: static property 'pathSeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public static var pathSeparator = "/"
    |                       |- warning: static property 'pathSeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'pathSeparator' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'pathSeparator' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 |     public func openNewForWriting() throws -> File {
/host/spi-builder-workspace/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 |     }
134 |
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
/host/spi-builder-workspace/XCode/Sources/String+File.swift:44:39: error: cannot find 'errno' in scope
 42 |             }
 43 |             if ferror(self.pointer) != 0 {
 44 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 45 |             }
 46 |             throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:55:43: error: cannot find 'errno' in scope
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
 55 |                     throw FileError.error(errno)
    |                                           `- error: cannot find 'errno' in scope
 56 |                 }
 57 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:54:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
 52 |             }
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
    |                              |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
    |                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 55 |                     throw FileError.error(errno)
 56 |                 }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:61:30: error: cannot find 'getcwd' in scope
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                              `- error: cannot find 'getcwd' in scope
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:61:37: error: 'nil' requires a contextual type
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                                     `- error: 'nil' requires a contextual type
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:62:39: error: cannot find 'errno' in scope
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
 62 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 63 |             }
 64 |             return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:84:35: error: cannot find 'errno' in scope
 82 |     public func openFileForMode(_ path: String, _ mode: String) throws -> File {
 83 |         guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
 84 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
 85 |         }
 86 |         return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:101:39: error: cannot find 'S_IFMT' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                       `- error: cannot find 'S_IFMT' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/XCode/Sources/String+File.swift:101:49: error: cannot find 'S_IFDIR' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                                 `- error: cannot find 'S_IFDIR' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/XCode/Sources/String+File.swift:108:44: error: cannot find 'opendir' in scope
106 |
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
    |                                            `- error: cannot find 'opendir' in scope
109 |             throw FileError.error(errno)
110 |         }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:109:35: error: cannot find 'errno' in scope
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
109 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
110 |         }
111 |         defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:111:17: error: cannot find 'closedir' in scope
109 |             throw FileError.error(errno)
110 |         }
111 |         defer { closedir(dir) }
    |                 `- error: cannot find 'closedir' in scope
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
/host/spi-builder-workspace/XCode/Sources/String+File.swift:113:25: error: cannot find 'readdir' in scope
111 |         defer { closedir(dir) }
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
    |                         `- error: cannot find 'readdir' in scope
114 |             var name = ent.pointee.d_name
115 |             let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/XCode/Sources/String+File.swift:137:30: error: cannot find 'stat' in scope
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
136 |         return try self.withCString({
137 |             var statBuffer = stat()
    |                              `- error: cannot find 'stat' in scope
138 |             if stat($0, &statBuffer) == 0 {
139 |                 return try closure(statBuffer)
/host/spi-builder-workspace/XCode/Sources/String+File.swift:138:16: error: cannot find 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
138 |             if stat($0, &statBuffer) == 0 {
    |                `- error: cannot find 'stat' in scope
139 |                 return try closure(statBuffer)
140 |             }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:141:16: error: cannot find 'errno' in scope
139 |                 return try closure(statBuffer)
140 |             }
141 |             if errno == ENOENT {
    |                `- error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:144:35: error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
144 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
145 |         })
146 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[19/28] Compiling Swifter String+Misc.swift
/host/spi-builder-workspace/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
 18 |         let pointer: UnsafeMutablePointer<FILE>
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 21 |             self.pointer = pointer
 22 |         }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:68:23: warning: static property 'pathSeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 66 |     }
 67 |
 68 |     public static var pathSeparator = "/"
    |                       |- warning: static property 'pathSeparator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'pathSeparator' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'pathSeparator' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 |     public func openNewForWriting() throws -> File {
/host/spi-builder-workspace/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 |     }
134 |
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
/host/spi-builder-workspace/XCode/Sources/String+File.swift:44:39: error: cannot find 'errno' in scope
 42 |             }
 43 |             if ferror(self.pointer) != 0 {
 44 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 45 |             }
 46 |             throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:55:43: error: cannot find 'errno' in scope
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
 55 |                     throw FileError.error(errno)
    |                                           `- error: cannot find 'errno' in scope
 56 |                 }
 57 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:54:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
 52 |             }
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
    |                              |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
    |                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 55 |                     throw FileError.error(errno)
 56 |                 }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:61:30: error: cannot find 'getcwd' in scope
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                              `- error: cannot find 'getcwd' in scope
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:61:37: error: 'nil' requires a contextual type
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                                     `- error: 'nil' requires a contextual type
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:62:39: error: cannot find 'errno' in scope
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
 62 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 63 |             }
 64 |             return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:84:35: error: cannot find 'errno' in scope
 82 |     public func openFileForMode(_ path: String, _ mode: String) throws -> File {
 83 |         guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
 84 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
 85 |         }
 86 |         return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:101:39: error: cannot find 'S_IFMT' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                       `- error: cannot find 'S_IFMT' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/XCode/Sources/String+File.swift:101:49: error: cannot find 'S_IFDIR' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                                 `- error: cannot find 'S_IFDIR' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/XCode/Sources/String+File.swift:108:44: error: cannot find 'opendir' in scope
106 |
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
    |                                            `- error: cannot find 'opendir' in scope
109 |             throw FileError.error(errno)
110 |         }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:109:35: error: cannot find 'errno' in scope
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
109 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
110 |         }
111 |         defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:111:17: error: cannot find 'closedir' in scope
109 |             throw FileError.error(errno)
110 |         }
111 |         defer { closedir(dir) }
    |                 `- error: cannot find 'closedir' in scope
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
/host/spi-builder-workspace/XCode/Sources/String+File.swift:113:25: error: cannot find 'readdir' in scope
111 |         defer { closedir(dir) }
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
    |                         `- error: cannot find 'readdir' in scope
114 |             var name = ent.pointee.d_name
115 |             let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/XCode/Sources/String+File.swift:137:30: error: cannot find 'stat' in scope
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
136 |         return try self.withCString({
137 |             var statBuffer = stat()
    |                              `- error: cannot find 'stat' in scope
138 |             if stat($0, &statBuffer) == 0 {
139 |                 return try closure(statBuffer)
/host/spi-builder-workspace/XCode/Sources/String+File.swift:138:16: error: cannot find 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
138 |             if stat($0, &statBuffer) == 0 {
    |                `- error: cannot find 'stat' in scope
139 |                 return try closure(statBuffer)
140 |             }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:141:16: error: cannot find 'errno' in scope
139 |                 return try closure(statBuffer)
140 |             }
141 |             if errno == ENOENT {
    |                `- error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:144:35: error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
144 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
145 |         })
146 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[20/28] Compiling Swifter Socket.swift
/host/spi-builder-workspace/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/XCode/Sources/Socket.swift:51:20: error: cannot find 'sockaddr_in' in scope
 49 |
 50 |     public func port() throws -> in_port_t {
 51 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 52 |         return try withUnsafePointer(to: &addr) { pointer in
 53 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/XCode/Sources/Socket.swift:67:20: error: cannot find 'sockaddr_in' in scope
 65 |
 66 |     public func isIPv4() throws -> Bool {
 67 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/XCode/Sources/Socket.swift:69:46: error: cannot find type 'sockaddr_in' in scope
 67 |         var addr = sockaddr_in()
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:70:16: error: cannot find 'getsockname' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    |                `- error: cannot find 'getsockname' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:73:57: error: cannot find 'AF_INET' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
 73 |             return Int32(pointer.pointee.sin_family) == AF_INET
    |                                                         `- error: cannot find 'AF_INET' in scope
 74 |         }
 75 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:116:30: error: cannot find 'write' in scope
114 |                 let result = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
115 |             #else
116 |                 let result = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
    |                              `- error: cannot find 'write' in scope
117 |             #endif
118 |             if result <= 0 {
/host/spi-builder-workspace/XCode/Sources/Socket.swift:137:18: error: cannot find 'Darwin' in scope
135 | 	    let count = Glibc.read(self.socketFileDescriptor as Int32, &byte, 1)
136 | 	    #else
137 | 	    let count = Darwin.read(self.socketFileDescriptor as Int32, &byte, 1)
    |                  `- error: cannot find 'Darwin' in scope
138 | 	    #endif
139 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:180:26: error: cannot find 'Darwin' in scope
178 |             let bytesRead = Glibc.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
179 | 	        #else
180 | 	        let bytesRead = Darwin.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
    |                          `- error: cannot find 'Darwin' in scope
181 | 	        #endif
182 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:207:20: error: cannot find 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                    `- error: cannot find 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:207:72: error: cannot find type 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                                                                        `- error: cannot find type 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:208:12: error: cannot find 'getpeername' in scope
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
    |            `- error: cannot find 'getpeername' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:211:59: error: cannot find 'NI_MAXHOST' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                           `- error: cannot find 'NI_MAXHOST' in scope
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
213 |             throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:212:12: error: cannot find 'getnameinfo' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |            `- error: cannot find 'getnameinfo' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:212:86: error: cannot find 'NI_NUMERICHOST' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                                      `- error: cannot find 'NI_NUMERICHOST' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:212:78: error: 'nil' requires a contextual type
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                              `- error: 'nil' requires a contextual type
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:225:13: error: cannot find 'setsockopt' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |             `- error: cannot find 'setsockopt' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:225:32: error: cannot find 'SOL_SOCKET' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                `- error: cannot find 'SOL_SOCKET' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:225:44: error: cannot find 'SO_NOSIGPIPE' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                            `- error: cannot find 'SO_NOSIGPIPE' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:233:17: error: cannot find 'Darwin' in scope
231 |             _ = Glibc.close(socket)
232 |         #else
233 |             _ = Darwin.close(socket)
    |                 `- error: cannot find 'Darwin' in scope
234 |         #endif
235 |     }
[21/28] Compiling Swifter String+BASE64.swift
/host/spi-builder-workspace/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/XCode/Sources/Socket.swift:51:20: error: cannot find 'sockaddr_in' in scope
 49 |
 50 |     public func port() throws -> in_port_t {
 51 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 52 |         return try withUnsafePointer(to: &addr) { pointer in
 53 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/XCode/Sources/Socket.swift:67:20: error: cannot find 'sockaddr_in' in scope
 65 |
 66 |     public func isIPv4() throws -> Bool {
 67 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/XCode/Sources/Socket.swift:69:46: error: cannot find type 'sockaddr_in' in scope
 67 |         var addr = sockaddr_in()
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:70:16: error: cannot find 'getsockname' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    |                `- error: cannot find 'getsockname' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:73:57: error: cannot find 'AF_INET' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
 73 |             return Int32(pointer.pointee.sin_family) == AF_INET
    |                                                         `- error: cannot find 'AF_INET' in scope
 74 |         }
 75 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:116:30: error: cannot find 'write' in scope
114 |                 let result = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
115 |             #else
116 |                 let result = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
    |                              `- error: cannot find 'write' in scope
117 |             #endif
118 |             if result <= 0 {
/host/spi-builder-workspace/XCode/Sources/Socket.swift:137:18: error: cannot find 'Darwin' in scope
135 | 	    let count = Glibc.read(self.socketFileDescriptor as Int32, &byte, 1)
136 | 	    #else
137 | 	    let count = Darwin.read(self.socketFileDescriptor as Int32, &byte, 1)
    |                  `- error: cannot find 'Darwin' in scope
138 | 	    #endif
139 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:180:26: error: cannot find 'Darwin' in scope
178 |             let bytesRead = Glibc.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
179 | 	        #else
180 | 	        let bytesRead = Darwin.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
    |                          `- error: cannot find 'Darwin' in scope
181 | 	        #endif
182 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:207:20: error: cannot find 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                    `- error: cannot find 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:207:72: error: cannot find type 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                                                                        `- error: cannot find type 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:208:12: error: cannot find 'getpeername' in scope
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
    |            `- error: cannot find 'getpeername' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:211:59: error: cannot find 'NI_MAXHOST' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                           `- error: cannot find 'NI_MAXHOST' in scope
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
213 |             throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:212:12: error: cannot find 'getnameinfo' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |            `- error: cannot find 'getnameinfo' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:212:86: error: cannot find 'NI_NUMERICHOST' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                                      `- error: cannot find 'NI_NUMERICHOST' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:212:78: error: 'nil' requires a contextual type
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                              `- error: 'nil' requires a contextual type
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:225:13: error: cannot find 'setsockopt' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |             `- error: cannot find 'setsockopt' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:225:32: error: cannot find 'SOL_SOCKET' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                `- error: cannot find 'SOL_SOCKET' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:225:44: error: cannot find 'SO_NOSIGPIPE' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                            `- error: cannot find 'SO_NOSIGPIPE' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:233:17: error: cannot find 'Darwin' in scope
231 |             _ = Glibc.close(socket)
232 |         #else
233 |             _ = Darwin.close(socket)
    |                 `- error: cannot find 'Darwin' in scope
234 |         #endif
235 |     }
[22/28] Compiling Swifter HttpRouter.swift
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:11:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
  9 | import Dispatch
 10 |
 11 | public protocol HttpServerIODelegate: class {
    |                                       `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 12 |     func socketConnectionReceived(_ socket: Socket)
 13 | }
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
 69 |
 70 |     @available(macOS 10.10, *)
 71 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 72 |         guard !self.operating else { return }
 73 |         stop()
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 35 |         set(state) {
 36 |             #if !os(Linux)
 37 |             OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
    |             `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 38 |             #else
 39 |             self.stateValue = state.rawValue
/host/spi-builder-workspace/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:76:70: error: cannot find 'SOMAXCONN' in scope
 74 |         self.state = .starting
 75 |         let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
 76 |         self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
    |                                                                      `- error: cannot find 'SOMAXCONN' in scope
 77 |         self.state = .running
 78 |         DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:79:36: warning: capture of 'self' with non-sendable type 'HttpServerIO?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | }
 14 |
 15 | open class HttpServerIO {
    |            `- note: class 'HttpServerIO' does not conform to the 'Sendable' protocol
 16 |
 17 |     public weak var delegate: HttpServerIODelegate?
    :
 77 |         self.state = .running
 78 |         DispatchQueue.global(qos: priority).async { [weak self] in
 79 |             guard let strongSelf = self else { return }
    |                                    `- warning: capture of 'self' with non-sendable type 'HttpServerIO?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 80 |             guard strongSelf.operating else { return }
 81 |             while let socket = try? strongSelf.socket.acceptClientSocket() {
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:82:43: warning: capture of 'priority' with non-sendable type 'DispatchQoS.QoSClass' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 80 |             guard strongSelf.operating else { return }
 81 |             while let socket = try? strongSelf.socket.acceptClientSocket() {
 82 |                 DispatchQueue.global(qos: priority).async { [weak self] in
    |                                           `- warning: capture of 'priority' with non-sendable type 'DispatchQoS.QoSClass' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 83 |                     guard let strongSelf = self else { return }
 84 |                     guard strongSelf.operating else { return }
Dispatch.DispatchQoS.QoSClass:2:25: note: enum 'QoSClass' does not conform to the 'Sendable' protocol
 1 | struct DispatchQoS {
 2 | public enum DispatchQoS.QoSClass {
   |                         `- note: enum 'QoSClass' does not conform to the 'Sendable' protocol
 3 |     @available(macOS 10.10, iOS 8.0, *)
 4 |     case background
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  7 |
  8 | import Foundation
  9 | import Dispatch
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
 10 |
 11 | public protocol HttpServerIODelegate: class {
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:83:44: warning: capture of 'self' with non-sendable type 'HttpServerIO?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | }
 14 |
 15 | open class HttpServerIO {
    |            `- note: class 'HttpServerIO' does not conform to the 'Sendable' protocol
 16 |
 17 |     public weak var delegate: HttpServerIODelegate?
    :
 81 |             while let socket = try? strongSelf.socket.acceptClientSocket() {
 82 |                 DispatchQueue.global(qos: priority).async { [weak self] in
 83 |                     guard let strongSelf = self else { return }
    |                                            `- warning: capture of 'self' with non-sendable type 'HttpServerIO?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 84 |                     guard strongSelf.operating else { return }
 85 |                     strongSelf.queue.async {
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:86:51: warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 84 |                     guard strongSelf.operating else { return }
 85 |                     strongSelf.queue.async {
 86 |                         strongSelf.sockets.insert(socket)
    |                                                   `- warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 87 |                     }
 88 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:25:12: note: class 'Socket' does not conform to the 'Sendable' protocol
 23 |
 24 | // swiftlint: disable identifier_name
 25 | open class Socket: Hashable, Equatable {
    |            `- note: class 'Socket' does not conform to the 'Sendable' protocol
 26 |
 27 |     let socketFileDescriptor: Int32
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:86:25: warning: capture of 'strongSelf' with non-sendable type 'HttpServerIO' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | }
 14 |
 15 | open class HttpServerIO {
    |            `- note: class 'HttpServerIO' does not conform to the 'Sendable' protocol
 16 |
 17 |     public weak var delegate: HttpServerIODelegate?
    :
 84 |                     guard strongSelf.operating else { return }
 85 |                     strongSelf.queue.async {
 86 |                         strongSelf.sockets.insert(socket)
    |                         `- warning: capture of 'strongSelf' with non-sendable type 'HttpServerIO' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 87 |                     }
 88 |
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:86:51: warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 84 |                     guard strongSelf.operating else { return }
 85 |                     strongSelf.queue.async {
 86 |                         strongSelf.sockets.insert(socket)
    |                                                   `- warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 87 |                     }
 88 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:25:12: note: class 'Socket' does not conform to the 'Sendable' protocol
 23 |
 24 | // swiftlint: disable identifier_name
 25 | open class Socket: Hashable, Equatable {
    |            `- note: class 'Socket' does not conform to the 'Sendable' protocol
 26 |
 27 |     let socketFileDescriptor: Int32
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:92:25: warning: capture of 'strongSelf' with non-sendable type 'HttpServerIO' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | }
 14 |
 15 | open class HttpServerIO {
    |            `- note: class 'HttpServerIO' does not conform to the 'Sendable' protocol
 16 |
 17 |     public weak var delegate: HttpServerIODelegate?
    :
 90 |
 91 |                     strongSelf.queue.async {
 92 |                         strongSelf.sockets.remove(socket)
    |                         `- warning: capture of 'strongSelf' with non-sendable type 'HttpServerIO' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 93 |                     }
 94 |                 }
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:92:51: warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 90 |
 91 |                     strongSelf.queue.async {
 92 |                         strongSelf.sockets.remove(socket)
    |                                                   `- warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 93 |                     }
 94 |                 }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:25:12: note: class 'Socket' does not conform to the 'Sendable' protocol
 23 |
 24 | // swiftlint: disable identifier_name
 25 | open class Socket: Hashable, Equatable {
    |            `- note: class 'Socket' does not conform to the 'Sendable' protocol
 26 |
 27 |     let socketFileDescriptor: Int32
[23/28] Compiling Swifter HttpServer.swift
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:11:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
  9 | import Dispatch
 10 |
 11 | public protocol HttpServerIODelegate: class {
    |                                       `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 12 |     func socketConnectionReceived(_ socket: Socket)
 13 | }
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
 69 |
 70 |     @available(macOS 10.10, *)
 71 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 72 |         guard !self.operating else { return }
 73 |         stop()
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 35 |         set(state) {
 36 |             #if !os(Linux)
 37 |             OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
    |             `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 38 |             #else
 39 |             self.stateValue = state.rawValue
/host/spi-builder-workspace/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:76:70: error: cannot find 'SOMAXCONN' in scope
 74 |         self.state = .starting
 75 |         let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
 76 |         self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
    |                                                                      `- error: cannot find 'SOMAXCONN' in scope
 77 |         self.state = .running
 78 |         DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:79:36: warning: capture of 'self' with non-sendable type 'HttpServerIO?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | }
 14 |
 15 | open class HttpServerIO {
    |            `- note: class 'HttpServerIO' does not conform to the 'Sendable' protocol
 16 |
 17 |     public weak var delegate: HttpServerIODelegate?
    :
 77 |         self.state = .running
 78 |         DispatchQueue.global(qos: priority).async { [weak self] in
 79 |             guard let strongSelf = self else { return }
    |                                    `- warning: capture of 'self' with non-sendable type 'HttpServerIO?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 80 |             guard strongSelf.operating else { return }
 81 |             while let socket = try? strongSelf.socket.acceptClientSocket() {
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:82:43: warning: capture of 'priority' with non-sendable type 'DispatchQoS.QoSClass' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 80 |             guard strongSelf.operating else { return }
 81 |             while let socket = try? strongSelf.socket.acceptClientSocket() {
 82 |                 DispatchQueue.global(qos: priority).async { [weak self] in
    |                                           `- warning: capture of 'priority' with non-sendable type 'DispatchQoS.QoSClass' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 83 |                     guard let strongSelf = self else { return }
 84 |                     guard strongSelf.operating else { return }
Dispatch.DispatchQoS.QoSClass:2:25: note: enum 'QoSClass' does not conform to the 'Sendable' protocol
 1 | struct DispatchQoS {
 2 | public enum DispatchQoS.QoSClass {
   |                         `- note: enum 'QoSClass' does not conform to the 'Sendable' protocol
 3 |     @available(macOS 10.10, iOS 8.0, *)
 4 |     case background
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  7 |
  8 | import Foundation
  9 | import Dispatch
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
 10 |
 11 | public protocol HttpServerIODelegate: class {
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:83:44: warning: capture of 'self' with non-sendable type 'HttpServerIO?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | }
 14 |
 15 | open class HttpServerIO {
    |            `- note: class 'HttpServerIO' does not conform to the 'Sendable' protocol
 16 |
 17 |     public weak var delegate: HttpServerIODelegate?
    :
 81 |             while let socket = try? strongSelf.socket.acceptClientSocket() {
 82 |                 DispatchQueue.global(qos: priority).async { [weak self] in
 83 |                     guard let strongSelf = self else { return }
    |                                            `- warning: capture of 'self' with non-sendable type 'HttpServerIO?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 84 |                     guard strongSelf.operating else { return }
 85 |                     strongSelf.queue.async {
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:86:51: warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 84 |                     guard strongSelf.operating else { return }
 85 |                     strongSelf.queue.async {
 86 |                         strongSelf.sockets.insert(socket)
    |                                                   `- warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 87 |                     }
 88 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:25:12: note: class 'Socket' does not conform to the 'Sendable' protocol
 23 |
 24 | // swiftlint: disable identifier_name
 25 | open class Socket: Hashable, Equatable {
    |            `- note: class 'Socket' does not conform to the 'Sendable' protocol
 26 |
 27 |     let socketFileDescriptor: Int32
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:86:25: warning: capture of 'strongSelf' with non-sendable type 'HttpServerIO' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | }
 14 |
 15 | open class HttpServerIO {
    |            `- note: class 'HttpServerIO' does not conform to the 'Sendable' protocol
 16 |
 17 |     public weak var delegate: HttpServerIODelegate?
    :
 84 |                     guard strongSelf.operating else { return }
 85 |                     strongSelf.queue.async {
 86 |                         strongSelf.sockets.insert(socket)
    |                         `- warning: capture of 'strongSelf' with non-sendable type 'HttpServerIO' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 87 |                     }
 88 |
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:86:51: warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 84 |                     guard strongSelf.operating else { return }
 85 |                     strongSelf.queue.async {
 86 |                         strongSelf.sockets.insert(socket)
    |                                                   `- warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 87 |                     }
 88 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:25:12: note: class 'Socket' does not conform to the 'Sendable' protocol
 23 |
 24 | // swiftlint: disable identifier_name
 25 | open class Socket: Hashable, Equatable {
    |            `- note: class 'Socket' does not conform to the 'Sendable' protocol
 26 |
 27 |     let socketFileDescriptor: Int32
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:92:25: warning: capture of 'strongSelf' with non-sendable type 'HttpServerIO' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | }
 14 |
 15 | open class HttpServerIO {
    |            `- note: class 'HttpServerIO' does not conform to the 'Sendable' protocol
 16 |
 17 |     public weak var delegate: HttpServerIODelegate?
    :
 90 |
 91 |                     strongSelf.queue.async {
 92 |                         strongSelf.sockets.remove(socket)
    |                         `- warning: capture of 'strongSelf' with non-sendable type 'HttpServerIO' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 93 |                     }
 94 |                 }
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:92:51: warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 90 |
 91 |                     strongSelf.queue.async {
 92 |                         strongSelf.sockets.remove(socket)
    |                                                   `- warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 93 |                     }
 94 |                 }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:25:12: note: class 'Socket' does not conform to the 'Sendable' protocol
 23 |
 24 | // swiftlint: disable identifier_name
 25 | open class Socket: Hashable, Equatable {
    |            `- note: class 'Socket' does not conform to the 'Sendable' protocol
 26 |
 27 |     let socketFileDescriptor: Int32
[24/28] Compiling Swifter HttpServerIO.swift
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:11:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
  9 | import Dispatch
 10 |
 11 | public protocol HttpServerIODelegate: class {
    |                                       `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 12 |     func socketConnectionReceived(_ socket: Socket)
 13 | }
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
 69 |
 70 |     @available(macOS 10.10, *)
 71 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 72 |         guard !self.operating else { return }
 73 |         stop()
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 35 |         set(state) {
 36 |             #if !os(Linux)
 37 |             OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
    |             `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 38 |             #else
 39 |             self.stateValue = state.rawValue
/host/spi-builder-workspace/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:76:70: error: cannot find 'SOMAXCONN' in scope
 74 |         self.state = .starting
 75 |         let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
 76 |         self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
    |                                                                      `- error: cannot find 'SOMAXCONN' in scope
 77 |         self.state = .running
 78 |         DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:79:36: warning: capture of 'self' with non-sendable type 'HttpServerIO?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | }
 14 |
 15 | open class HttpServerIO {
    |            `- note: class 'HttpServerIO' does not conform to the 'Sendable' protocol
 16 |
 17 |     public weak var delegate: HttpServerIODelegate?
    :
 77 |         self.state = .running
 78 |         DispatchQueue.global(qos: priority).async { [weak self] in
 79 |             guard let strongSelf = self else { return }
    |                                    `- warning: capture of 'self' with non-sendable type 'HttpServerIO?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 80 |             guard strongSelf.operating else { return }
 81 |             while let socket = try? strongSelf.socket.acceptClientSocket() {
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:82:43: warning: capture of 'priority' with non-sendable type 'DispatchQoS.QoSClass' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 80 |             guard strongSelf.operating else { return }
 81 |             while let socket = try? strongSelf.socket.acceptClientSocket() {
 82 |                 DispatchQueue.global(qos: priority).async { [weak self] in
    |                                           `- warning: capture of 'priority' with non-sendable type 'DispatchQoS.QoSClass' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 83 |                     guard let strongSelf = self else { return }
 84 |                     guard strongSelf.operating else { return }
Dispatch.DispatchQoS.QoSClass:2:25: note: enum 'QoSClass' does not conform to the 'Sendable' protocol
 1 | struct DispatchQoS {
 2 | public enum DispatchQoS.QoSClass {
   |                         `- note: enum 'QoSClass' does not conform to the 'Sendable' protocol
 3 |     @available(macOS 10.10, iOS 8.0, *)
 4 |     case background
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
  7 |
  8 | import Foundation
  9 | import Dispatch
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
 10 |
 11 | public protocol HttpServerIODelegate: class {
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:83:44: warning: capture of 'self' with non-sendable type 'HttpServerIO?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | }
 14 |
 15 | open class HttpServerIO {
    |            `- note: class 'HttpServerIO' does not conform to the 'Sendable' protocol
 16 |
 17 |     public weak var delegate: HttpServerIODelegate?
    :
 81 |             while let socket = try? strongSelf.socket.acceptClientSocket() {
 82 |                 DispatchQueue.global(qos: priority).async { [weak self] in
 83 |                     guard let strongSelf = self else { return }
    |                                            `- warning: capture of 'self' with non-sendable type 'HttpServerIO?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 84 |                     guard strongSelf.operating else { return }
 85 |                     strongSelf.queue.async {
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:86:51: warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 84 |                     guard strongSelf.operating else { return }
 85 |                     strongSelf.queue.async {
 86 |                         strongSelf.sockets.insert(socket)
    |                                                   `- warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 87 |                     }
 88 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:25:12: note: class 'Socket' does not conform to the 'Sendable' protocol
 23 |
 24 | // swiftlint: disable identifier_name
 25 | open class Socket: Hashable, Equatable {
    |            `- note: class 'Socket' does not conform to the 'Sendable' protocol
 26 |
 27 |     let socketFileDescriptor: Int32
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:86:25: warning: capture of 'strongSelf' with non-sendable type 'HttpServerIO' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | }
 14 |
 15 | open class HttpServerIO {
    |            `- note: class 'HttpServerIO' does not conform to the 'Sendable' protocol
 16 |
 17 |     public weak var delegate: HttpServerIODelegate?
    :
 84 |                     guard strongSelf.operating else { return }
 85 |                     strongSelf.queue.async {
 86 |                         strongSelf.sockets.insert(socket)
    |                         `- warning: capture of 'strongSelf' with non-sendable type 'HttpServerIO' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 87 |                     }
 88 |
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:86:51: warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 84 |                     guard strongSelf.operating else { return }
 85 |                     strongSelf.queue.async {
 86 |                         strongSelf.sockets.insert(socket)
    |                                                   `- warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 87 |                     }
 88 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:25:12: note: class 'Socket' does not conform to the 'Sendable' protocol
 23 |
 24 | // swiftlint: disable identifier_name
 25 | open class Socket: Hashable, Equatable {
    |            `- note: class 'Socket' does not conform to the 'Sendable' protocol
 26 |
 27 |     let socketFileDescriptor: Int32
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:92:25: warning: capture of 'strongSelf' with non-sendable type 'HttpServerIO' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 13 | }
 14 |
 15 | open class HttpServerIO {
    |            `- note: class 'HttpServerIO' does not conform to the 'Sendable' protocol
 16 |
 17 |     public weak var delegate: HttpServerIODelegate?
    :
 90 |
 91 |                     strongSelf.queue.async {
 92 |                         strongSelf.sockets.remove(socket)
    |                         `- warning: capture of 'strongSelf' with non-sendable type 'HttpServerIO' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 93 |                     }
 94 |                 }
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:92:51: warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 90 |
 91 |                     strongSelf.queue.async {
 92 |                         strongSelf.sockets.remove(socket)
    |                                                   `- warning: capture of 'socket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 93 |                     }
 94 |                 }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:25:12: note: class 'Socket' does not conform to the 'Sendable' protocol
 23 |
 24 | // swiftlint: disable identifier_name
 25 | open class Socket: Hashable, Equatable {
    |            `- note: class 'Socket' does not conform to the 'Sendable' protocol
 26 |
 27 |     let socketFileDescriptor: Int32
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/24] Emitting module Swifter
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:11:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
  9 | import Dispatch
 10 |
 11 | public protocol HttpServerIODelegate: class {
    |                                       `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 12 |     func socketConnectionReceived(_ socket: Socket)
 13 | }
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
 69 |
 70 |     @available(macOS 10.10, *)
 71 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 72 |         guard !self.operating else { return }
 73 |         stop()
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:120: error: cannot find 'SOMAXCONN' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                                                                                        `- error: cannot find 'SOMAXCONN' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
 18 |         let pointer: UnsafeMutablePointer<FILE>
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 21 |             self.pointer = pointer
 22 |         }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 |     }
134 |
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
[3/26] Compiling Swifter HttpRouter.swift
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:11:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
  9 | import Dispatch
 10 |
 11 | public protocol HttpServerIODelegate: class {
    |                                       `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 12 |     func socketConnectionReceived(_ socket: Socket)
 13 | }
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
 69 |
 70 |     @available(macOS 10.10, *)
 71 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 72 |         guard !self.operating else { return }
 73 |         stop()
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 35 |         set(state) {
 36 |             #if !os(Linux)
 37 |             OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
    |             `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 38 |             #else
 39 |             self.stateValue = state.rawValue
/host/spi-builder-workspace/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:76:70: error: cannot find 'SOMAXCONN' in scope
 74 |         self.state = .starting
 75 |         let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
 76 |         self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
    |                                                                      `- error: cannot find 'SOMAXCONN' in scope
 77 |         self.state = .running
 78 |         DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
[4/26] Compiling Swifter HttpServer.swift
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:11:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
  9 | import Dispatch
 10 |
 11 | public protocol HttpServerIODelegate: class {
    |                                       `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 12 |     func socketConnectionReceived(_ socket: Socket)
 13 | }
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
 69 |
 70 |     @available(macOS 10.10, *)
 71 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 72 |         guard !self.operating else { return }
 73 |         stop()
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 35 |         set(state) {
 36 |             #if !os(Linux)
 37 |             OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
    |             `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 38 |             #else
 39 |             self.stateValue = state.rawValue
/host/spi-builder-workspace/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:76:70: error: cannot find 'SOMAXCONN' in scope
 74 |         self.state = .starting
 75 |         let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
 76 |         self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
    |                                                                      `- error: cannot find 'SOMAXCONN' in scope
 77 |         self.state = .running
 78 |         DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
[5/26] Compiling Swifter HttpServerIO.swift
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:11:39: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
  9 | import Dispatch
 10 |
 11 | public protocol HttpServerIODelegate: class {
    |                                       `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 12 |     func socketConnectionReceived(_ socket: Socket)
 13 | }
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
 69 |
 70 |     @available(macOS 10.10, *)
 71 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 72 |         guard !self.operating else { return }
 73 |         stop()
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 35 |         set(state) {
 36 |             #if !os(Linux)
 37 |             OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
    |             `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 38 |             #else
 39 |             self.stateValue = state.rawValue
/host/spi-builder-workspace/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/XCode/Sources/HttpServerIO.swift:76:70: error: cannot find 'SOMAXCONN' in scope
 74 |         self.state = .starting
 75 |         let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
 76 |         self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
    |                                                                      `- error: cannot find 'SOMAXCONN' in scope
 77 |         self.state = .running
 78 |         DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
[6/26] Compiling Swifter String+SHA1.swift
[7/26] Compiling Swifter WebSockets.swift
[8/26] Compiling Swifter HttpParser.swift
[9/26] Compiling Swifter HttpRequest.swift
[10/26] Compiling Swifter HttpResponse.swift
[11/26] Compiling Swifter Socket.swift
/host/spi-builder-workspace/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/XCode/Sources/Socket.swift:51:20: error: cannot find 'sockaddr_in' in scope
 49 |
 50 |     public func port() throws -> in_port_t {
 51 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 52 |         return try withUnsafePointer(to: &addr) { pointer in
 53 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/XCode/Sources/Socket.swift:67:20: error: cannot find 'sockaddr_in' in scope
 65 |
 66 |     public func isIPv4() throws -> Bool {
 67 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/XCode/Sources/Socket.swift:69:46: error: cannot find type 'sockaddr_in' in scope
 67 |         var addr = sockaddr_in()
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:70:16: error: cannot find 'getsockname' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    |                `- error: cannot find 'getsockname' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:73:57: error: cannot find 'AF_INET' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
 73 |             return Int32(pointer.pointee.sin_family) == AF_INET
    |                                                         `- error: cannot find 'AF_INET' in scope
 74 |         }
 75 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:116:30: error: cannot find 'write' in scope
114 |                 let result = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
115 |             #else
116 |                 let result = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
    |                              `- error: cannot find 'write' in scope
117 |             #endif
118 |             if result <= 0 {
/host/spi-builder-workspace/XCode/Sources/Socket.swift:137:18: error: cannot find 'Darwin' in scope
135 | 	    let count = Glibc.read(self.socketFileDescriptor as Int32, &byte, 1)
136 | 	    #else
137 | 	    let count = Darwin.read(self.socketFileDescriptor as Int32, &byte, 1)
    |                  `- error: cannot find 'Darwin' in scope
138 | 	    #endif
139 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:180:26: error: cannot find 'Darwin' in scope
178 |             let bytesRead = Glibc.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
179 | 	        #else
180 | 	        let bytesRead = Darwin.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
    |                          `- error: cannot find 'Darwin' in scope
181 | 	        #endif
182 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:207:20: error: cannot find 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                    `- error: cannot find 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:207:72: error: cannot find type 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                                                                        `- error: cannot find type 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:208:12: error: cannot find 'getpeername' in scope
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
    |            `- error: cannot find 'getpeername' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:211:59: error: cannot find 'NI_MAXHOST' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                           `- error: cannot find 'NI_MAXHOST' in scope
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
213 |             throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:212:12: error: cannot find 'getnameinfo' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |            `- error: cannot find 'getnameinfo' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:212:86: error: cannot find 'NI_NUMERICHOST' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                                      `- error: cannot find 'NI_NUMERICHOST' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:212:78: error: 'nil' requires a contextual type
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                              `- error: 'nil' requires a contextual type
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:225:13: error: cannot find 'setsockopt' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |             `- error: cannot find 'setsockopt' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:225:32: error: cannot find 'SOL_SOCKET' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                `- error: cannot find 'SOL_SOCKET' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:225:44: error: cannot find 'SO_NOSIGPIPE' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                            `- error: cannot find 'SO_NOSIGPIPE' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:233:17: error: cannot find 'Darwin' in scope
231 |             _ = Glibc.close(socket)
232 |         #else
233 |             _ = Darwin.close(socket)
    |                 `- error: cannot find 'Darwin' in scope
234 |         #endif
235 |     }
[12/26] Compiling Swifter String+BASE64.swift
/host/spi-builder-workspace/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
 48 |     }
 49 |
 50 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 51 |         var addr = sockaddr_in()
 52 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/XCode/Sources/Socket.swift:51:20: error: cannot find 'sockaddr_in' in scope
 49 |
 50 |     public func port() throws -> in_port_t {
 51 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 52 |         return try withUnsafePointer(to: &addr) { pointer in
 53 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/XCode/Sources/Socket.swift:67:20: error: cannot find 'sockaddr_in' in scope
 65 |
 66 |     public func isIPv4() throws -> Bool {
 67 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/XCode/Sources/Socket.swift:69:46: error: cannot find type 'sockaddr_in' in scope
 67 |         var addr = sockaddr_in()
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:70:16: error: cannot find 'getsockname' in scope
 68 |         return try withUnsafePointer(to: &addr) { pointer in
 69 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
 70 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    |                `- error: cannot find 'getsockname' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:73:57: error: cannot find 'AF_INET' in scope
 71 |                 throw SocketError.getSockNameFailed(Errno.description())
 72 |             }
 73 |             return Int32(pointer.pointee.sin_family) == AF_INET
    |                                                         `- error: cannot find 'AF_INET' in scope
 74 |         }
 75 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:116:30: error: cannot find 'write' in scope
114 |                 let result = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
115 |             #else
116 |                 let result = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
    |                              `- error: cannot find 'write' in scope
117 |             #endif
118 |             if result <= 0 {
/host/spi-builder-workspace/XCode/Sources/Socket.swift:137:18: error: cannot find 'Darwin' in scope
135 | 	    let count = Glibc.read(self.socketFileDescriptor as Int32, &byte, 1)
136 | 	    #else
137 | 	    let count = Darwin.read(self.socketFileDescriptor as Int32, &byte, 1)
    |                  `- error: cannot find 'Darwin' in scope
138 | 	    #endif
139 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:180:26: error: cannot find 'Darwin' in scope
178 |             let bytesRead = Glibc.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
179 | 	        #else
180 | 	        let bytesRead = Darwin.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
    |                          `- error: cannot find 'Darwin' in scope
181 | 	        #endif
182 |
/host/spi-builder-workspace/XCode/Sources/Socket.swift:207:20: error: cannot find 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                    `- error: cannot find 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:207:72: error: cannot find type 'sockaddr' in scope
205 |
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                                                                        `- error: cannot find type 'sockaddr' in scope
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:208:12: error: cannot find 'getpeername' in scope
206 |     public func peername() throws -> String {
207 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
208 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
    |            `- error: cannot find 'getpeername' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:211:59: error: cannot find 'NI_MAXHOST' in scope
209 |             throw SocketError.getPeerNameFailed(Errno.description())
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                           `- error: cannot find 'NI_MAXHOST' in scope
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
213 |             throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/XCode/Sources/Socket.swift:212:12: error: cannot find 'getnameinfo' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |            `- error: cannot find 'getnameinfo' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:212:86: error: cannot find 'NI_NUMERICHOST' in scope
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                                      `- error: cannot find 'NI_NUMERICHOST' in scope
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:212:78: error: 'nil' requires a contextual type
210 |         }
211 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                              `- error: 'nil' requires a contextual type
213 |             throw SocketError.getNameInfoFailed(Errno.description())
214 |         }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:225:13: error: cannot find 'setsockopt' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |             `- error: cannot find 'setsockopt' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:225:32: error: cannot find 'SOL_SOCKET' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                `- error: cannot find 'SOL_SOCKET' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:225:44: error: cannot find 'SO_NOSIGPIPE' in scope
223 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 |             var no_sig_pipe: Int32 = 1
225 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                            `- error: cannot find 'SO_NOSIGPIPE' in scope
226 |         #endif
227 |     }
/host/spi-builder-workspace/XCode/Sources/Socket.swift:233:17: error: cannot find 'Darwin' in scope
231 |             _ = Glibc.close(socket)
232 |         #else
233 |             _ = Darwin.close(socket)
    |                 `- error: cannot find 'Darwin' in scope
234 |         #endif
235 |     }
[13/26] Compiling Swifter Socket+File.swift
/host/spi-builder-workspace/XCode/Sources/Socket+File.swift:45:17: error: cannot find type 'sf_hdtr' in scope
43 |     public func writeFile(_ file: String.File) throws {
44 |         var offset: off_t = 0
45 |         var sf: sf_hdtr = sf_hdtr()
   |                 `- error: cannot find type 'sf_hdtr' in scope
46 |
47 |         #if os(iOS) || os(tvOS) || os (Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+File.swift:50:22: error: cannot find 'sendfile' in scope
48 |         let result = sendfileImpl(file.pointer, self.socketFileDescriptor, 0, &offset, &sf, 0)
49 |         #else
50 |         let result = sendfile(fileno(file.pointer), self.socketFileDescriptor, 0, &offset, &sf, 0)
   |                      `- error: cannot find 'sendfile' in scope
51 |         #endif
52 |
/host/spi-builder-workspace/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:120: error: cannot find 'SOMAXCONN' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                                                                                        `- error: cannot find 'SOMAXCONN' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:40: error: cannot find 'socket' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                        `- error: cannot find 'socket' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:59: error: cannot find 'AF_INET' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                           `- error: cannot find 'AF_INET' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:69: error: cannot find 'AF_INET6' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                                     `- error: cannot find 'AF_INET6' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:79: error: cannot find 'SOCK_STREAM' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                                               `- error: cannot find 'SOCK_STREAM' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:30:12: error: cannot find 'setsockopt' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'setsockopt' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:30:45: error: cannot find 'SOL_SOCKET' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                             `- error: cannot find 'SOL_SOCKET' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:30:57: error: cannot find 'SO_REUSEADDR' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                                         `- error: cannot find 'SO_REUSEADDR' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:46:24: error: cannot find 'sockaddr_in' in scope
 44 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 45 |             #else
 46 |             var addr = sockaddr_in(
    |                        `- error: cannot find 'sockaddr_in' in scope
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
 48 |                 sin_family: UInt8(AF_INET),
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:47:45: error: cannot find type 'sockaddr_in' in scope
 45 |             #else
 46 |             var addr = sockaddr_in(
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
    |                                             `- error: cannot find type 'sockaddr_in' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:48:35: error: cannot find 'AF_INET' in scope
 46 |             var addr = sockaddr_in(
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
 48 |                 sin_family: UInt8(AF_INET),
    |                                   `- error: cannot find 'AF_INET' in scope
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:50:27: error: cannot find 'in_addr' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
    |                           `- error: cannot find 'in_addr' in scope
 51 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 52 |             #endif
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:50:43: error: cannot find 'in_addr_t' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
    |                                           `- error: cannot find 'in_addr_t' in scope
 51 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 52 |             #endif
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:54:51: error: cannot find 'inet_pton' in scope
 52 |             #endif
 53 |             if let address = listenAddress {
 54 |               if address.withCString({ cstring in inet_pton(AF_INET, cstring, &addr.sin_addr) }) == 1 {
    |                                                   `- error: cannot find 'inet_pton' in scope
 55 |                 // print("\(address) is converted to \(addr.sin_addr).")
 56 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:54:61: error: cannot find 'AF_INET' in scope
 52 |             #endif
 53 |             if let address = listenAddress {
 54 |               if address.withCString({ cstring in inet_pton(AF_INET, cstring, &addr.sin_addr) }) == 1 {
    |                                                             `- error: cannot find 'AF_INET' in scope
 55 |                 // print("\(address) is converted to \(addr.sin_addr).")
 56 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:61:17: error: cannot find 'bind' in scope
 59 |             }
 60 |             bindResult = withUnsafePointer(to: &addr) {
 61 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
    |                 `- error: cannot find 'bind' in scope
 62 |             }
 63 |         } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:61:111: error: cannot find type 'sockaddr_in' in scope
 59 |             }
 60 |             bindResult = withUnsafePointer(to: &addr) {
 61 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
    |                                                                                                               `- error: cannot find type 'sockaddr_in' in scope
 62 |             }
 63 |         } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:61:58: error: cannot find type 'sockaddr' in scope
 59 |             }
 60 |             bindResult = withUnsafePointer(to: &addr) {
 61 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
    |                                                          `- error: cannot find type 'sockaddr' in scope
 62 |             }
 63 |         } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:72:24: error: cannot find 'sockaddr_in6' in scope
 70 |                 sin6_scope_id: 0)
 71 |             #else
 72 |             var addr = sockaddr_in6(
    |                        `- error: cannot find 'sockaddr_in6' in scope
 73 |                 sin6_len: UInt8(MemoryLayout<sockaddr_in6>.stride),
 74 |                 sin6_family: UInt8(AF_INET6),
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:73:46: error: cannot find type 'sockaddr_in6' in scope
 71 |             #else
 72 |             var addr = sockaddr_in6(
 73 |                 sin6_len: UInt8(MemoryLayout<sockaddr_in6>.stride),
    |                                              `- error: cannot find type 'sockaddr_in6' in scope
 74 |                 sin6_family: UInt8(AF_INET6),
 75 |                 sin6_port: port.bigEndian,
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:74:36: error: cannot find 'AF_INET6' in scope
 72 |             var addr = sockaddr_in6(
 73 |                 sin6_len: UInt8(MemoryLayout<sockaddr_in6>.stride),
 74 |                 sin6_family: UInt8(AF_INET6),
    |                                    `- error: cannot find 'AF_INET6' in scope
 75 |                 sin6_port: port.bigEndian,
 76 |                 sin6_flowinfo: 0,
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:77:28: error: cannot find 'in6addr_any' in scope
 75 |                 sin6_port: port.bigEndian,
 76 |                 sin6_flowinfo: 0,
 77 |                 sin6_addr: in6addr_any,
    |                            `- error: cannot find 'in6addr_any' in scope
 78 |                 sin6_scope_id: 0)
 79 |             #endif
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:81:51: error: cannot find 'inet_pton' in scope
 79 |             #endif
 80 |             if let address = listenAddress {
 81 |               if address.withCString({ cstring in inet_pton(AF_INET6, cstring, &addr.sin6_addr) }) == 1 {
    |                                                   `- error: cannot find 'inet_pton' in scope
 82 |                 //print("\(address) is converted to \(addr.sin6_addr).")
 83 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:81:61: error: cannot find 'AF_INET6' in scope
 79 |             #endif
 80 |             if let address = listenAddress {
 81 |               if address.withCString({ cstring in inet_pton(AF_INET6, cstring, &addr.sin6_addr) }) == 1 {
    |                                                             `- error: cannot find 'AF_INET6' in scope
 82 |                 //print("\(address) is converted to \(addr.sin6_addr).")
 83 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:88:17: error: cannot find 'bind' in scope
 86 |             }
 87 |             bindResult = withUnsafePointer(to: &addr) {
 88 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in6>.size))
    |                 `- error: cannot find 'bind' in scope
 89 |             }
 90 |         }
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:88:111: error: cannot find type 'sockaddr_in6' in scope
 86 |             }
 87 |             bindResult = withUnsafePointer(to: &addr) {
 88 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in6>.size))
    |                                                                                                               `- error: cannot find type 'sockaddr_in6' in scope
 89 |             }
 90 |         }
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:88:58: error: cannot find type 'sockaddr' in scope
 86 |             }
 87 |             bindResult = withUnsafePointer(to: &addr) {
 88 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in6>.size))
    |                                                          `- error: cannot find type 'sockaddr' in scope
 89 |             }
 90 |         }
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:98:12: error: cannot find 'listen' in scope
 96 |         }
 97 |
 98 |         if listen(socketFileDescriptor, maxPendingConnection) == -1 {
    |            `- error: cannot find 'listen' in scope
 99 |             let details = Errno.description()
100 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:107:20: error: cannot find 'sockaddr' in scope
105 |
106 |     public func acceptClientSocket() throws -> Socket {
107 |         var addr = sockaddr()
    |                    `- error: cannot find 'sockaddr' in scope
108 |         var len: socklen_t = 0
109 |         let clientSocket = accept(self.socketFileDescriptor, &addr, &len)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:109:28: error: cannot find 'accept' in scope
107 |         var addr = sockaddr()
108 |         var len: socklen_t = 0
109 |         let clientSocket = accept(self.socketFileDescriptor, &addr, &len)
    |                            `- error: cannot find 'accept' in scope
110 |         if clientSocket == -1 {
111 |             throw SocketError.acceptFailed(Errno.description())
[14/26] Compiling Swifter Socket+Server.swift
/host/spi-builder-workspace/XCode/Sources/Socket+File.swift:45:17: error: cannot find type 'sf_hdtr' in scope
43 |     public func writeFile(_ file: String.File) throws {
44 |         var offset: off_t = 0
45 |         var sf: sf_hdtr = sf_hdtr()
   |                 `- error: cannot find type 'sf_hdtr' in scope
46 |
47 |         #if os(iOS) || os(tvOS) || os (Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+File.swift:50:22: error: cannot find 'sendfile' in scope
48 |         let result = sendfileImpl(file.pointer, self.socketFileDescriptor, 0, &offset, &sf, 0)
49 |         #else
50 |         let result = sendfile(fileno(file.pointer), self.socketFileDescriptor, 0, &offset, &sf, 0)
   |                      `- error: cannot find 'sendfile' in scope
51 |         #endif
52 |
/host/spi-builder-workspace/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:17:120: error: cannot find 'SOMAXCONN' in scope
 15 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 16 |     ///       otherwise - in IPv6.
 17 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                                                                                        `- error: cannot find 'SOMAXCONN' in scope
 18 |
 19 |         #if os(Linux)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:40: error: cannot find 'socket' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                        `- error: cannot find 'socket' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:59: error: cannot find 'AF_INET' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                           `- error: cannot find 'AF_INET' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:69: error: cannot find 'AF_INET6' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                                     `- error: cannot find 'AF_INET6' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:22:79: error: cannot find 'SOCK_STREAM' in scope
 20 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 21 |         #else
 22 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                                               `- error: cannot find 'SOCK_STREAM' in scope
 23 |         #endif
 24 |
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:30:12: error: cannot find 'setsockopt' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'setsockopt' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:30:45: error: cannot find 'SOL_SOCKET' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                             `- error: cannot find 'SOL_SOCKET' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:30:57: error: cannot find 'SO_REUSEADDR' in scope
 28 |
 29 |         var value: Int32 = 1
 30 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                                         `- error: cannot find 'SO_REUSEADDR' in scope
 31 |             let details = Errno.description()
 32 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:46:24: error: cannot find 'sockaddr_in' in scope
 44 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 45 |             #else
 46 |             var addr = sockaddr_in(
    |                        `- error: cannot find 'sockaddr_in' in scope
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
 48 |                 sin_family: UInt8(AF_INET),
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:47:45: error: cannot find type 'sockaddr_in' in scope
 45 |             #else
 46 |             var addr = sockaddr_in(
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
    |                                             `- error: cannot find type 'sockaddr_in' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:48:35: error: cannot find 'AF_INET' in scope
 46 |             var addr = sockaddr_in(
 47 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
 48 |                 sin_family: UInt8(AF_INET),
    |                                   `- error: cannot find 'AF_INET' in scope
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:50:27: error: cannot find 'in_addr' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
    |                           `- error: cannot find 'in_addr' in scope
 51 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 52 |             #endif
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:50:43: error: cannot find 'in_addr_t' in scope
 48 |                 sin_family: UInt8(AF_INET),
 49 |                 sin_port: port.bigEndian,
 50 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
    |                                           `- error: cannot find 'in_addr_t' in scope
 51 |                 sin_zero: (0, 0, 0, 0, 0, 0, 0, 0))
 52 |             #endif
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:54:51: error: cannot find 'inet_pton' in scope
 52 |             #endif
 53 |             if let address = listenAddress {
 54 |               if address.withCString({ cstring in inet_pton(AF_INET, cstring, &addr.sin_addr) }) == 1 {
    |                                                   `- error: cannot find 'inet_pton' in scope
 55 |                 // print("\(address) is converted to \(addr.sin_addr).")
 56 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:54:61: error: cannot find 'AF_INET' in scope
 52 |             #endif
 53 |             if let address = listenAddress {
 54 |               if address.withCString({ cstring in inet_pton(AF_INET, cstring, &addr.sin_addr) }) == 1 {
    |                                                             `- error: cannot find 'AF_INET' in scope
 55 |                 // print("\(address) is converted to \(addr.sin_addr).")
 56 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:61:17: error: cannot find 'bind' in scope
 59 |             }
 60 |             bindResult = withUnsafePointer(to: &addr) {
 61 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
    |                 `- error: cannot find 'bind' in scope
 62 |             }
 63 |         } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:61:111: error: cannot find type 'sockaddr_in' in scope
 59 |             }
 60 |             bindResult = withUnsafePointer(to: &addr) {
 61 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
    |                                                                                                               `- error: cannot find type 'sockaddr_in' in scope
 62 |             }
 63 |         } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:61:58: error: cannot find type 'sockaddr' in scope
 59 |             }
 60 |             bindResult = withUnsafePointer(to: &addr) {
 61 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
    |                                                          `- error: cannot find type 'sockaddr' in scope
 62 |             }
 63 |         } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:72:24: error: cannot find 'sockaddr_in6' in scope
 70 |                 sin6_scope_id: 0)
 71 |             #else
 72 |             var addr = sockaddr_in6(
    |                        `- error: cannot find 'sockaddr_in6' in scope
 73 |                 sin6_len: UInt8(MemoryLayout<sockaddr_in6>.stride),
 74 |                 sin6_family: UInt8(AF_INET6),
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:73:46: error: cannot find type 'sockaddr_in6' in scope
 71 |             #else
 72 |             var addr = sockaddr_in6(
 73 |                 sin6_len: UInt8(MemoryLayout<sockaddr_in6>.stride),
    |                                              `- error: cannot find type 'sockaddr_in6' in scope
 74 |                 sin6_family: UInt8(AF_INET6),
 75 |                 sin6_port: port.bigEndian,
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:74:36: error: cannot find 'AF_INET6' in scope
 72 |             var addr = sockaddr_in6(
 73 |                 sin6_len: UInt8(MemoryLayout<sockaddr_in6>.stride),
 74 |                 sin6_family: UInt8(AF_INET6),
    |                                    `- error: cannot find 'AF_INET6' in scope
 75 |                 sin6_port: port.bigEndian,
 76 |                 sin6_flowinfo: 0,
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:77:28: error: cannot find 'in6addr_any' in scope
 75 |                 sin6_port: port.bigEndian,
 76 |                 sin6_flowinfo: 0,
 77 |                 sin6_addr: in6addr_any,
    |                            `- error: cannot find 'in6addr_any' in scope
 78 |                 sin6_scope_id: 0)
 79 |             #endif
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:81:51: error: cannot find 'inet_pton' in scope
 79 |             #endif
 80 |             if let address = listenAddress {
 81 |               if address.withCString({ cstring in inet_pton(AF_INET6, cstring, &addr.sin6_addr) }) == 1 {
    |                                                   `- error: cannot find 'inet_pton' in scope
 82 |                 //print("\(address) is converted to \(addr.sin6_addr).")
 83 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:81:61: error: cannot find 'AF_INET6' in scope
 79 |             #endif
 80 |             if let address = listenAddress {
 81 |               if address.withCString({ cstring in inet_pton(AF_INET6, cstring, &addr.sin6_addr) }) == 1 {
    |                                                             `- error: cannot find 'AF_INET6' in scope
 82 |                 //print("\(address) is converted to \(addr.sin6_addr).")
 83 |               } else {
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:88:17: error: cannot find 'bind' in scope
 86 |             }
 87 |             bindResult = withUnsafePointer(to: &addr) {
 88 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in6>.size))
    |                 `- error: cannot find 'bind' in scope
 89 |             }
 90 |         }
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:88:111: error: cannot find type 'sockaddr_in6' in scope
 86 |             }
 87 |             bindResult = withUnsafePointer(to: &addr) {
 88 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in6>.size))
    |                                                                                                               `- error: cannot find type 'sockaddr_in6' in scope
 89 |             }
 90 |         }
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:88:58: error: cannot find type 'sockaddr' in scope
 86 |             }
 87 |             bindResult = withUnsafePointer(to: &addr) {
 88 |                 bind(socketFileDescriptor, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in6>.size))
    |                                                          `- error: cannot find type 'sockaddr' in scope
 89 |             }
 90 |         }
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:98:12: error: cannot find 'listen' in scope
 96 |         }
 97 |
 98 |         if listen(socketFileDescriptor, maxPendingConnection) == -1 {
    |            `- error: cannot find 'listen' in scope
 99 |             let details = Errno.description()
100 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:107:20: error: cannot find 'sockaddr' in scope
105 |
106 |     public func acceptClientSocket() throws -> Socket {
107 |         var addr = sockaddr()
    |                    `- error: cannot find 'sockaddr' in scope
108 |         var len: socklen_t = 0
109 |         let clientSocket = accept(self.socketFileDescriptor, &addr, &len)
/host/spi-builder-workspace/XCode/Sources/Socket+Server.swift:109:28: error: cannot find 'accept' in scope
107 |         var addr = sockaddr()
108 |         var len: socklen_t = 0
109 |         let clientSocket = accept(self.socketFileDescriptor, &addr, &len)
    |                            `- error: cannot find 'accept' in scope
110 |         if clientSocket == -1 {
111 |             throw SocketError.acceptFailed(Errno.description())
[15/26] Compiling Swifter String+File.swift
/host/spi-builder-workspace/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
 18 |         let pointer: UnsafeMutablePointer<FILE>
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 21 |             self.pointer = pointer
 22 |         }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 |     }
134 |
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
/host/spi-builder-workspace/XCode/Sources/String+File.swift:44:39: error: cannot find 'errno' in scope
 42 |             }
 43 |             if ferror(self.pointer) != 0 {
 44 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 45 |             }
 46 |             throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:55:43: error: cannot find 'errno' in scope
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
 55 |                     throw FileError.error(errno)
    |                                           `- error: cannot find 'errno' in scope
 56 |                 }
 57 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:54:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
 52 |             }
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
    |                              |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
    |                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 55 |                     throw FileError.error(errno)
 56 |                 }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:61:30: error: cannot find 'getcwd' in scope
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                              `- error: cannot find 'getcwd' in scope
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:61:37: error: 'nil' requires a contextual type
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                                     `- error: 'nil' requires a contextual type
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:62:39: error: cannot find 'errno' in scope
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
 62 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 63 |             }
 64 |             return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:84:35: error: cannot find 'errno' in scope
 82 |     public func openFileForMode(_ path: String, _ mode: String) throws -> File {
 83 |         guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
 84 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
 85 |         }
 86 |         return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:101:39: error: cannot find 'S_IFMT' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                       `- error: cannot find 'S_IFMT' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/XCode/Sources/String+File.swift:101:49: error: cannot find 'S_IFDIR' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                                 `- error: cannot find 'S_IFDIR' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/XCode/Sources/String+File.swift:108:44: error: cannot find 'opendir' in scope
106 |
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
    |                                            `- error: cannot find 'opendir' in scope
109 |             throw FileError.error(errno)
110 |         }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:109:35: error: cannot find 'errno' in scope
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
109 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
110 |         }
111 |         defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:111:17: error: cannot find 'closedir' in scope
109 |             throw FileError.error(errno)
110 |         }
111 |         defer { closedir(dir) }
    |                 `- error: cannot find 'closedir' in scope
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
/host/spi-builder-workspace/XCode/Sources/String+File.swift:113:25: error: cannot find 'readdir' in scope
111 |         defer { closedir(dir) }
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
    |                         `- error: cannot find 'readdir' in scope
114 |             var name = ent.pointee.d_name
115 |             let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/XCode/Sources/String+File.swift:137:30: error: cannot find 'stat' in scope
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
136 |         return try self.withCString({
137 |             var statBuffer = stat()
    |                              `- error: cannot find 'stat' in scope
138 |             if stat($0, &statBuffer) == 0 {
139 |                 return try closure(statBuffer)
/host/spi-builder-workspace/XCode/Sources/String+File.swift:138:16: error: cannot find 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
138 |             if stat($0, &statBuffer) == 0 {
    |                `- error: cannot find 'stat' in scope
139 |                 return try closure(statBuffer)
140 |             }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:141:16: error: cannot find 'errno' in scope
139 |                 return try closure(statBuffer)
140 |             }
141 |             if errno == ENOENT {
    |                `- error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:144:35: error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
144 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
145 |         })
146 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[16/26] Compiling Swifter String+Misc.swift
/host/spi-builder-workspace/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
 16 |     public class File {
 17 |
 18 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
 18 |         let pointer: UnsafeMutablePointer<FILE>
 19 |
 20 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 21 |             self.pointer = pointer
 22 |         }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 |     }
134 |
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
/host/spi-builder-workspace/XCode/Sources/String+File.swift:44:39: error: cannot find 'errno' in scope
 42 |             }
 43 |             if ferror(self.pointer) != 0 {
 44 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 45 |             }
 46 |             throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:55:43: error: cannot find 'errno' in scope
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
 55 |                     throw FileError.error(errno)
    |                                           `- error: cannot find 'errno' in scope
 56 |                 }
 57 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:54:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
 52 |             }
 53 |             try data.withUnsafeBufferPointer {
 54 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
    |                              |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
    |                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 55 |                     throw FileError.error(errno)
 56 |                 }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:61:30: error: cannot find 'getcwd' in scope
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                              `- error: cannot find 'getcwd' in scope
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:61:37: error: 'nil' requires a contextual type
 59 |
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
    |                                     `- error: 'nil' requires a contextual type
 62 |                 throw FileError.error(errno)
 63 |             }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:62:39: error: cannot find 'errno' in scope
 60 |         public static func currentWorkingDirectory() throws -> String {
 61 |             guard let path = getcwd(nil, 0) else {
 62 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 63 |             }
 64 |             return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:84:35: error: cannot find 'errno' in scope
 82 |     public func openFileForMode(_ path: String, _ mode: String) throws -> File {
 83 |         guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
 84 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
 85 |         }
 86 |         return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:101:39: error: cannot find 'S_IFMT' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                       `- error: cannot find 'S_IFMT' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/XCode/Sources/String+File.swift:101:49: error: cannot find 'S_IFDIR' in scope
 99 |         return try self.withStat {
100 |             if let stat = $0 {
101 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                                 `- error: cannot find 'S_IFDIR' in scope
102 |             }
103 |             return false
/host/spi-builder-workspace/XCode/Sources/String+File.swift:108:44: error: cannot find 'opendir' in scope
106 |
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
    |                                            `- error: cannot find 'opendir' in scope
109 |             throw FileError.error(errno)
110 |         }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:109:35: error: cannot find 'errno' in scope
107 |     public func files() throws -> [String] {
108 |         guard let dir = self.withCString({ opendir($0) }) else {
109 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
110 |         }
111 |         defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:111:17: error: cannot find 'closedir' in scope
109 |             throw FileError.error(errno)
110 |         }
111 |         defer { closedir(dir) }
    |                 `- error: cannot find 'closedir' in scope
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
/host/spi-builder-workspace/XCode/Sources/String+File.swift:113:25: error: cannot find 'readdir' in scope
111 |         defer { closedir(dir) }
112 |         var results = [String]()
113 |         while let ent = readdir(dir) {
    |                         `- error: cannot find 'readdir' in scope
114 |             var name = ent.pointee.d_name
115 |             let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/XCode/Sources/String+File.swift:137:30: error: cannot find 'stat' in scope
135 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
136 |         return try self.withCString({
137 |             var statBuffer = stat()
    |                              `- error: cannot find 'stat' in scope
138 |             if stat($0, &statBuffer) == 0 {
139 |                 return try closure(statBuffer)
/host/spi-builder-workspace/XCode/Sources/String+File.swift:138:16: error: cannot find 'stat' in scope
136 |         return try self.withCString({
137 |             var statBuffer = stat()
138 |             if stat($0, &statBuffer) == 0 {
    |                `- error: cannot find 'stat' in scope
139 |                 return try closure(statBuffer)
140 |             }
/host/spi-builder-workspace/XCode/Sources/String+File.swift:141:16: error: cannot find 'errno' in scope
139 |                 return try closure(statBuffer)
140 |             }
141 |             if errno == ENOENT {
    |                `- error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/XCode/Sources/String+File.swift:144:35: error: cannot find 'errno' in scope
142 |                 return try closure(nil)
143 |             }
144 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
145 |         })
146 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[17/26] Compiling Swifter MimeTypes.swift
/host/spi-builder-workspace/XCode/Sources/Process.swift:13:20: error: cannot find 'getpid' in scope
11 |
12 |     public static var pid: Int {
13 |         return Int(getpid())
   |                    `- error: cannot find 'getpid' in scope
14 |     }
15 |
/host/spi-builder-workspace/XCode/Sources/Process.swift:21:13: error: cannot find 'pthread_threadid_np' in scope
19 |         #else
20 |             var tid: __uint64_t = 0
21 |             pthread_threadid_np(nil, &tid)
   |             `- error: cannot find 'pthread_threadid_np' in scope
22 |             return UInt64(tid)
23 |         #endif
/host/spi-builder-workspace/XCode/Sources/Process.swift:21:33: error: 'nil' requires a contextual type
19 |         #else
20 |             var tid: __uint64_t = 0
21 |             pthread_threadid_np(nil, &tid)
   |                                 `- error: 'nil' requires a contextual type
22 |             return UInt64(tid)
23 |         #endif
[18/26] Compiling Swifter Process.swift
/host/spi-builder-workspace/XCode/Sources/Process.swift:13:20: error: cannot find 'getpid' in scope
11 |
12 |     public static var pid: Int {
13 |         return Int(getpid())
   |                    `- error: cannot find 'getpid' in scope
14 |     }
15 |
/host/spi-builder-workspace/XCode/Sources/Process.swift:21:13: error: cannot find 'pthread_threadid_np' in scope
19 |         #else
20 |             var tid: __uint64_t = 0
21 |             pthread_threadid_np(nil, &tid)
   |             `- error: cannot find 'pthread_threadid_np' in scope
22 |             return UInt64(tid)
23 |         #endif
/host/spi-builder-workspace/XCode/Sources/Process.swift:21:33: error: 'nil' requires a contextual type
19 |         #else
20 |             var tid: __uint64_t = 0
21 |             pthread_threadid_np(nil, &tid)
   |                                 `- error: 'nil' requires a contextual type
22 |             return UInt64(tid)
23 |         #endif
[19/26] Compiling Swifter Scopes.swift
/host/spi-builder-workspace/XCode/Sources/Process.swift:13:20: error: cannot find 'getpid' in scope
11 |
12 |     public static var pid: Int {
13 |         return Int(getpid())
   |                    `- error: cannot find 'getpid' in scope
14 |     }
15 |
/host/spi-builder-workspace/XCode/Sources/Process.swift:21:13: error: cannot find 'pthread_threadid_np' in scope
19 |         #else
20 |             var tid: __uint64_t = 0
21 |             pthread_threadid_np(nil, &tid)
   |             `- error: cannot find 'pthread_threadid_np' in scope
22 |             return UInt64(tid)
23 |         #endif
/host/spi-builder-workspace/XCode/Sources/Process.swift:21:33: error: 'nil' requires a contextual type
19 |         #else
20 |             var tid: __uint64_t = 0
21 |             pthread_threadid_np(nil, &tid)
   |                                 `- error: 'nil' requires a contextual type
22 |             return UInt64(tid)
23 |         #endif
[20/26] Compiling Swifter DemoServer.swift
/host/spi-builder-workspace/XCode/Sources/Errno.swift:14:41: error: cannot find 'errno' in scope
12 |     public class func description() -> String {
13 |         // https://forums.developer.apple.com/thread/113919
14 |         return String(cString: strerror(errno))
   |                                         `- error: cannot find 'errno' in scope
15 |     }
16 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[21/26] Compiling Swifter Errno.swift
/host/spi-builder-workspace/XCode/Sources/Errno.swift:14:41: error: cannot find 'errno' in scope
12 |     public class func description() -> String {
13 |         // https://forums.developer.apple.com/thread/113919
14 |         return String(cString: strerror(errno))
   |                                         `- error: cannot find 'errno' in scope
15 |     }
16 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[22/26] Compiling Swifter Files.swift
/host/spi-builder-workspace/XCode/Sources/Errno.swift:14:41: error: cannot find 'errno' in scope
12 |     public class func description() -> String {
13 |         // https://forums.developer.apple.com/thread/113919
14 |         return String(cString: strerror(errno))
   |                                         `- error: cannot find 'errno' in scope
15 |     }
16 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
BUILD FAILURE 6.1 android