The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FlyingFox, reference main (30a96b), with Swift 6.2 for Android on 21 Jun 2025 19:04:23 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/EmergeTools/FlyingFox.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/EmergeTools/FlyingFox
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 30a96b4 Add watchos
Cloned https://github.com/EmergeTools/FlyingFox.git
Revision (git rev-parse @):
30a96b49f55762750899a4b8ea68301e32b9c112
SUCCESS checkout https://github.com/EmergeTools/FlyingFox.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/EmergeTools/FlyingFox.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-8C5A4AE7A8CE2BA.txt
[4/21] Compiling FlyingSocks SocketPool+Poll.swift
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:42:37: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
 42 |         public var rawValue: Socket.FileDescriptorType
    |                                     `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:107:17: error: cannot find type 'pollfd' in scope
105 |
106 | extension Poll.Entry {
107 |     var pollfd: pollfd {
    |                 `- error: cannot find type 'pollfd' in scope
108 |         Socket.pollfd(fd: file.rawValue,
109 |                       events: Int16(events.pollEvents.rawValue),
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:116:33: error: cannot find type 'pollfd' in scope
114 | extension EventNotification {
115 |
116 |     static func make(from poll: pollfd) -> Self? {
    |                                 `- error: cannot find type 'pollfd' in scope
117 |         let events = POLLEvents(poll.events)
118 |         let revents = POLLEvents(poll.revents)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:157:44: error: cannot find 'POLLIN' in scope
155 |     var rawValue: Int32
156 |
157 |     static let read = POLLEvents(rawValue: POLLIN)
    |                                            `- error: cannot find 'POLLIN' in scope
158 |     static let write = POLLEvents(rawValue: POLLOUT)
159 |     static let err = POLLEvents(rawValue: POLLERR)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:158:45: error: cannot find 'POLLOUT' in scope
156 |
157 |     static let read = POLLEvents(rawValue: POLLIN)
158 |     static let write = POLLEvents(rawValue: POLLOUT)
    |                                             `- error: cannot find 'POLLOUT' in scope
159 |     static let err = POLLEvents(rawValue: POLLERR)
160 |     static let hup = POLLEvents(rawValue: POLLHUP)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:159:43: error: cannot find 'POLLERR' in scope
157 |     static let read = POLLEvents(rawValue: POLLIN)
158 |     static let write = POLLEvents(rawValue: POLLOUT)
159 |     static let err = POLLEvents(rawValue: POLLERR)
    |                                           `- error: cannot find 'POLLERR' in scope
160 |     static let hup = POLLEvents(rawValue: POLLHUP)
161 |     static let nval = POLLEvents(rawValue: POLLNVAL)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:160:43: error: cannot find 'POLLHUP' in scope
158 |     static let write = POLLEvents(rawValue: POLLOUT)
159 |     static let err = POLLEvents(rawValue: POLLERR)
160 |     static let hup = POLLEvents(rawValue: POLLHUP)
    |                                           `- error: cannot find 'POLLHUP' in scope
161 |     static let nval = POLLEvents(rawValue: POLLNVAL)
162 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:161:44: error: cannot find 'POLLNVAL' in scope
159 |     static let err = POLLEvents(rawValue: POLLERR)
160 |     static let hup = POLLEvents(rawValue: POLLHUP)
161 |     static let nval = POLLEvents(rawValue: POLLNVAL)
    |                                            `- error: cannot find 'POLLNVAL' in scope
162 |
163 |     static let errors: POLLEvents = [.err, .hup, .nval]
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:97:29: error: type 'Socket' has no member 'poll'
 95 |         var buffer = entries.map(\.pollfd)
 96 |
 97 |         let status = Socket.poll(&buffer, UInt32(buffer.count), interval.milliseconds)
    |                             `- error: type 'Socket' has no member 'poll'
 98 |         guard status > -1 else {
 99 |             throw SocketError.makeFailed("poll.getNotifications poll")
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:121:29: error: cannot infer contextual base in reference to member 'write'
119 |         let errors = Set<EventNotification.Error>.make(from: revents)
120 |
121 |         if events.contains(.write) && !errors.isEmpty {
    |                             `- error: cannot infer contextual base in reference to member 'write'
122 |             return EventNotification(
123 |                 file: .init(rawValue: poll.fd),
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:44:38: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
    :
 42 |         public var rawValue: Socket.FileDescriptorType
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
    |                                      `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 45 |             self.rawValue = rawValue
 46 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:116:17: error: type 'Socket.FileDescriptor' does not conform to protocol 'RawRepresentable'
114 | extension EventNotification {
115 |
116 |     static func make(from poll: pollfd) -> Self? {
    |                 `- error: type 'Socket.FileDescriptor' does not conform to protocol 'RawRepresentable'
117 |         let events = POLLEvents(poll.events)
118 |         let revents = POLLEvents(poll.revents)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:123:24: error: no exact matches in call to initializer
121 |         if events.contains(.write) && !errors.isEmpty {
122 |             return EventNotification(
123 |                 file: .init(rawValue: poll.fd),
    |                        |- error: no exact matches in call to initializer
    |                        `- note: found candidate with type '(any Decoder) throws -> Socket.FileDescriptor'
124 |                 events: .init(events),
125 |                 errors: errors
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:134:20: error: no exact matches in call to initializer
132 |
133 |         let notification = EventNotification(
134 |             file: .init(rawValue: poll.fd),
    |                    |- error: no exact matches in call to initializer
    |                    `- note: found candidate with type '(any Decoder) throws -> Socket.FileDescriptor'
135 |             events: .init(revents),
136 |             errors: []
[5/21] Compiling FlyingSocks SocketPool+ePoll.swift
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:42:37: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
 42 |         public var rawValue: Socket.FileDescriptorType
    |                                     `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:107:17: error: cannot find type 'pollfd' in scope
105 |
106 | extension Poll.Entry {
107 |     var pollfd: pollfd {
    |                 `- error: cannot find type 'pollfd' in scope
108 |         Socket.pollfd(fd: file.rawValue,
109 |                       events: Int16(events.pollEvents.rawValue),
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:116:33: error: cannot find type 'pollfd' in scope
114 | extension EventNotification {
115 |
116 |     static func make(from poll: pollfd) -> Self? {
    |                                 `- error: cannot find type 'pollfd' in scope
117 |         let events = POLLEvents(poll.events)
118 |         let revents = POLLEvents(poll.revents)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:157:44: error: cannot find 'POLLIN' in scope
155 |     var rawValue: Int32
156 |
157 |     static let read = POLLEvents(rawValue: POLLIN)
    |                                            `- error: cannot find 'POLLIN' in scope
158 |     static let write = POLLEvents(rawValue: POLLOUT)
159 |     static let err = POLLEvents(rawValue: POLLERR)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:158:45: error: cannot find 'POLLOUT' in scope
156 |
157 |     static let read = POLLEvents(rawValue: POLLIN)
158 |     static let write = POLLEvents(rawValue: POLLOUT)
    |                                             `- error: cannot find 'POLLOUT' in scope
159 |     static let err = POLLEvents(rawValue: POLLERR)
160 |     static let hup = POLLEvents(rawValue: POLLHUP)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:159:43: error: cannot find 'POLLERR' in scope
157 |     static let read = POLLEvents(rawValue: POLLIN)
158 |     static let write = POLLEvents(rawValue: POLLOUT)
159 |     static let err = POLLEvents(rawValue: POLLERR)
    |                                           `- error: cannot find 'POLLERR' in scope
160 |     static let hup = POLLEvents(rawValue: POLLHUP)
161 |     static let nval = POLLEvents(rawValue: POLLNVAL)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:160:43: error: cannot find 'POLLHUP' in scope
158 |     static let write = POLLEvents(rawValue: POLLOUT)
159 |     static let err = POLLEvents(rawValue: POLLERR)
160 |     static let hup = POLLEvents(rawValue: POLLHUP)
    |                                           `- error: cannot find 'POLLHUP' in scope
161 |     static let nval = POLLEvents(rawValue: POLLNVAL)
162 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:161:44: error: cannot find 'POLLNVAL' in scope
159 |     static let err = POLLEvents(rawValue: POLLERR)
160 |     static let hup = POLLEvents(rawValue: POLLHUP)
161 |     static let nval = POLLEvents(rawValue: POLLNVAL)
    |                                            `- error: cannot find 'POLLNVAL' in scope
162 |
163 |     static let errors: POLLEvents = [.err, .hup, .nval]
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:97:29: error: type 'Socket' has no member 'poll'
 95 |         var buffer = entries.map(\.pollfd)
 96 |
 97 |         let status = Socket.poll(&buffer, UInt32(buffer.count), interval.milliseconds)
    |                             `- error: type 'Socket' has no member 'poll'
 98 |         guard status > -1 else {
 99 |             throw SocketError.makeFailed("poll.getNotifications poll")
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:121:29: error: cannot infer contextual base in reference to member 'write'
119 |         let errors = Set<EventNotification.Error>.make(from: revents)
120 |
121 |         if events.contains(.write) && !errors.isEmpty {
    |                             `- error: cannot infer contextual base in reference to member 'write'
122 |             return EventNotification(
123 |                 file: .init(rawValue: poll.fd),
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:44:38: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
    :
 42 |         public var rawValue: Socket.FileDescriptorType
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
    |                                      `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 45 |             self.rawValue = rawValue
 46 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:116:17: error: type 'Socket.FileDescriptor' does not conform to protocol 'RawRepresentable'
114 | extension EventNotification {
115 |
116 |     static func make(from poll: pollfd) -> Self? {
    |                 `- error: type 'Socket.FileDescriptor' does not conform to protocol 'RawRepresentable'
117 |         let events = POLLEvents(poll.events)
118 |         let revents = POLLEvents(poll.revents)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:123:24: error: no exact matches in call to initializer
121 |         if events.contains(.write) && !errors.isEmpty {
122 |             return EventNotification(
123 |                 file: .init(rawValue: poll.fd),
    |                        |- error: no exact matches in call to initializer
    |                        `- note: found candidate with type '(any Decoder) throws -> Socket.FileDescriptor'
124 |                 events: .init(events),
125 |                 errors: errors
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:134:20: error: no exact matches in call to initializer
132 |
133 |         let notification = EventNotification(
134 |             file: .init(rawValue: poll.fd),
    |                    |- error: no exact matches in call to initializer
    |                    `- note: found candidate with type '(any Decoder) throws -> Socket.FileDescriptor'
135 |             events: .init(revents),
136 |             errors: []
[6/23] Compiling FlyingSocks Logging.swift
[7/23] Compiling FlyingSocks Socket+Darwin.swift
[8/23] Compiling FlyingSocks Socket+Glibc.swift
[9/23] Compiling FlyingSocks AllocatedLock.swift
/host/spi-builder-workspace/FlyingSocks/Sources/AllocatedLock.swift:38:18: error: cannot find type 'Storage' in scope
 36 |
 37 |     @usableFromInline
 38 |     let storage: Storage
    |                  `- error: cannot find type 'Storage' in scope
 39 |
 40 |     public init(initialState: State) {
/host/spi-builder-workspace/FlyingSocks/Sources/AllocatedLock.swift:41:24: error: cannot find 'Storage' in scope
 39 |
 40 |     public init(initialState: State) {
 41 |         self.storage = Storage(initialState: initialState)
    |                        `- error: cannot find 'Storage' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/FlyingSocks/Sources/AllocatedLock.swift:56:24: error: cannot find 'Storage' in scope
 54 |
 55 |     init() {
 56 |         self.storage = Storage(initialState: ())
    |                        `- error: cannot find 'Storage' in scope
 57 |     }
 58 |
[10/23] Compiling FlyingSocks AsyncChunkedSequence.swift
/host/spi-builder-workspace/FlyingSocks/Sources/AllocatedLock.swift:38:18: error: cannot find type 'Storage' in scope
 36 |
 37 |     @usableFromInline
 38 |     let storage: Storage
    |                  `- error: cannot find type 'Storage' in scope
 39 |
 40 |     public init(initialState: State) {
/host/spi-builder-workspace/FlyingSocks/Sources/AllocatedLock.swift:41:24: error: cannot find 'Storage' in scope
 39 |
 40 |     public init(initialState: State) {
 41 |         self.storage = Storage(initialState: initialState)
    |                        `- error: cannot find 'Storage' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/FlyingSocks/Sources/AllocatedLock.swift:56:24: error: cannot find 'Storage' in scope
 54 |
 55 |     init() {
 56 |         self.storage = Storage(initialState: ())
    |                        `- error: cannot find 'Storage' in scope
 57 |     }
 58 |
[11/23] Compiling FlyingSocks AsyncDataSequence.swift
/host/spi-builder-workspace/FlyingSocks/Sources/AllocatedLock.swift:38:18: error: cannot find type 'Storage' in scope
 36 |
 37 |     @usableFromInline
 38 |     let storage: Storage
    |                  `- error: cannot find type 'Storage' in scope
 39 |
 40 |     public init(initialState: State) {
/host/spi-builder-workspace/FlyingSocks/Sources/AllocatedLock.swift:41:24: error: cannot find 'Storage' in scope
 39 |
 40 |     public init(initialState: State) {
 41 |         self.storage = Storage(initialState: initialState)
    |                        `- error: cannot find 'Storage' in scope
 42 |     }
 43 |
/host/spi-builder-workspace/FlyingSocks/Sources/AllocatedLock.swift:56:24: error: cannot find 'Storage' in scope
 54 |
 55 |     init() {
 56 |         self.storage = Storage(initialState: ())
    |                        `- error: cannot find 'Storage' in scope
 57 |     }
 58 |
[12/23] Compiling FlyingSocks SocketAddress.swift
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:39:24: error: cannot find type 'sa_family_t' in scope
 37 |
 38 | public protocol SocketAddress: Sendable {
 39 |     static var family: sa_family_t { get }
    |                        `- error: cannot find type 'sa_family_t' in scope
 40 | }
 41 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:42:46: error: cannot find type 'sockaddr_in' in scope
 40 | }
 41 |
 42 | public extension SocketAddress where Self == sockaddr_in {
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 43 |
 44 |     static func inet(port: UInt16) -> Self {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:55:46: error: cannot find type 'sockaddr_in6' in scope
 53 | }
 54 |
 55 | public extension SocketAddress where Self == sockaddr_in6 {
    |                                              `- error: cannot find type 'sockaddr_in6' in scope
 56 |
 57 |     static func inet6(port: UInt16) -> Self {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:72:46: error: cannot find type 'sockaddr_un' in scope
 70 | }
 71 |
 72 | public extension SocketAddress where Self == sockaddr_un {
    |                                              `- error: cannot find type 'sockaddr_un' in scope
 73 |
 74 |     static func unix(path: String) -> Self {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:80:11: error: cannot find type 'sockaddr_in' in scope
 78 |
 79 | #if compiler(>=6.0)
 80 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_in' in scope
 81 |     public static let family = sa_family_t(AF_INET)
 82 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:84:11: error: cannot find type 'sockaddr_in6' in scope
 82 | }
 83 |
 84 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_in6' in scope
 85 |     public static let family = sa_family_t(AF_INET6)
 86 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:88:11: error: cannot find type 'sockaddr_un' in scope
 86 | }
 87 |
 88 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_un' in scope
 89 |     public static let family = sa_family_t(AF_UNIX)
 90 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:106:36: error: cannot find type 'sockaddr_storage' in scope
104 |
105 | public extension SocketAddress {
106 |     static func make(from storage: sockaddr_storage) throws -> Self {
    |                                    `- error: cannot find type 'sockaddr_storage' in scope
107 |         guard storage.ss_family == family else {
108 |             throw SocketError.unsupportedAddress
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:118:27: error: cannot find type 'sockaddr_storage' in scope
116 |     }
117 |
118 |     func makeStorage() -> sockaddr_storage {
    |                           `- error: cannot find type 'sockaddr_storage' in scope
119 |         var addr = self
120 |         return withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:136:47: error: cannot find type 'sockaddr_storage' in scope
134 |     }
135 |
136 |     public static func makeAddress(from addr: sockaddr_storage) throws -> Address {
    |                                               `- error: cannot find type 'sockaddr_storage' in scope
137 |         switch Int32(addr.ss_family) {
138 |         case AF_INET:
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:164:77: error: cannot find type 'sockaddr_in' in scope
162 |     }
163 |
164 |     static func makeAddressINET(fromIP4 ip: String, port: UInt16) throws -> sockaddr_in {
    |                                                                             `- error: cannot find type 'sockaddr_in' in scope
165 |         var address = Socket.makeAddressINET(port: port)
166 |         address.sin_addr = try Socket.makeInAddr(fromIP4: ip)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:170:63: error: cannot find type 'in_addr' in scope
168 |     }
169 |
170 |     static func makeInAddr(fromIP4 address: String) throws -> in_addr {
    |                                                               `- error: cannot find type 'in_addr' in scope
171 |         var addr = in_addr()
172 |         guard address.withCString({ Socket.inet_pton(AF_INET, $0, &addr) }) == 1 else {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:178:63: error: cannot find type 'in6_addr' in scope
176 |     }
177 |
178 |     static func makeInAddr(fromIP6 address: String) throws -> in6_addr {
    |                                                               `- error: cannot find type 'in6_addr' in scope
179 |         var addr = in6_addr()
180 |         guard address.withCString({ Socket.inet_pton(AF_INET6, $0, &addr) }) == 1 else {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:186:35: error: cannot find type 'sockaddr_un' in scope
184 |     }
185 |
186 |     static func unlink(_ address: sockaddr_un) throws {
    |                                   `- error: cannot find type 'sockaddr_un' in scope
187 |         var address = address
188 |         guard Socket.unlink(&address.sun_path.0) == 0 else {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:62:27: error: type 'Socket' has no member 'makeAddressINET6'
 60 |
 61 |     static func inet6(ip6: String, port: UInt16) throws -> Self {
 62 |         var addr = Socket.makeAddressINET6(port: port)
    |                           `- error: type 'Socket' has no member 'makeAddressINET6'
 63 |         addr.sin6_addr = try Socket.makeInAddr(fromIP6: ip6)
 64 |         return addr
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:138:14: error: cannot find 'AF_INET' in scope
136 |     public static func makeAddress(from addr: sockaddr_storage) throws -> Address {
137 |         switch Int32(addr.ss_family) {
138 |         case AF_INET:
    |              `- error: cannot find 'AF_INET' in scope
139 |             var addr_in = try sockaddr_in.make(from: addr)
140 |             let maxLength = socklen_t(INET_ADDRSTRLEN)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:146:14: error: cannot find 'AF_INET6' in scope
144 |             return .ip4(String(cString: buffer), port: UInt16(addr_in.sin_port).byteSwapped)
145 |
146 |         case AF_INET6:
    |              `- error: cannot find 'AF_INET6' in scope
147 |             var addr_in6 = try sockaddr_in6.make(from: addr)
148 |             let maxLength = socklen_t(INET6_ADDRSTRLEN)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:154:14: error: cannot find 'AF_UNIX' in scope
152 |             return .ip6(String(cString: buffer), port: UInt16(addr_in6.sin6_port).byteSwapped)
153 |
154 |         case AF_UNIX:
    |              `- error: cannot find 'AF_UNIX' in scope
155 |             var sockaddr_un = try sockaddr_un.make(from: addr)
156 |             return withUnsafePointer(to: &sockaddr_un.sun_path.0) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:139:31: error: cannot find 'sockaddr_in' in scope
137 |         switch Int32(addr.ss_family) {
138 |         case AF_INET:
139 |             var addr_in = try sockaddr_in.make(from: addr)
    |                               `- error: cannot find 'sockaddr_in' in scope
140 |             let maxLength = socklen_t(INET_ADDRSTRLEN)
141 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:140:39: error: cannot find 'INET_ADDRSTRLEN' in scope
138 |         case AF_INET:
139 |             var addr_in = try sockaddr_in.make(from: addr)
140 |             let maxLength = socklen_t(INET_ADDRSTRLEN)
    |                                       `- error: cannot find 'INET_ADDRSTRLEN' in scope
141 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
142 |             defer { buffer.deallocate() }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:143:34: error: cannot find 'AF_INET' in scope
141 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
142 |             defer { buffer.deallocate() }
143 |             try Socket.inet_ntop(AF_INET, &addr_in.sin_addr, buffer, maxLength)
    |                                  `- error: cannot find 'AF_INET' in scope
144 |             return .ip4(String(cString: buffer), port: UInt16(addr_in.sin_port).byteSwapped)
145 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:143:24: error: type 'Socket' has no member 'inet_ntop'
141 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
142 |             defer { buffer.deallocate() }
143 |             try Socket.inet_ntop(AF_INET, &addr_in.sin_addr, buffer, maxLength)
    |                        `- error: type 'Socket' has no member 'inet_ntop'
144 |             return .ip4(String(cString: buffer), port: UInt16(addr_in.sin_port).byteSwapped)
145 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:147:32: error: cannot find 'sockaddr_in6' in scope
145 |
146 |         case AF_INET6:
147 |             var addr_in6 = try sockaddr_in6.make(from: addr)
    |                                `- error: cannot find 'sockaddr_in6' in scope
148 |             let maxLength = socklen_t(INET6_ADDRSTRLEN)
149 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:148:39: error: cannot find 'INET6_ADDRSTRLEN' in scope
146 |         case AF_INET6:
147 |             var addr_in6 = try sockaddr_in6.make(from: addr)
148 |             let maxLength = socklen_t(INET6_ADDRSTRLEN)
    |                                       `- error: cannot find 'INET6_ADDRSTRLEN' in scope
149 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
150 |             defer { buffer.deallocate() }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:151:34: error: cannot find 'AF_INET6' in scope
149 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
150 |             defer { buffer.deallocate() }
151 |             try Socket.inet_ntop(AF_INET6, &addr_in6.sin6_addr, buffer, maxLength)
    |                                  `- error: cannot find 'AF_INET6' in scope
152 |             return .ip6(String(cString: buffer), port: UInt16(addr_in6.sin6_port).byteSwapped)
153 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:151:24: error: type 'Socket' has no member 'inet_ntop'
149 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
150 |             defer { buffer.deallocate() }
151 |             try Socket.inet_ntop(AF_INET6, &addr_in6.sin6_addr, buffer, maxLength)
    |                        `- error: type 'Socket' has no member 'inet_ntop'
152 |             return .ip6(String(cString: buffer), port: UInt16(addr_in6.sin6_port).byteSwapped)
153 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:155:35: error: use of local variable 'sockaddr_un' before its declaration
153 |
154 |         case AF_UNIX:
155 |             var sockaddr_un = try sockaddr_un.make(from: addr)
    |                 |                 `- error: use of local variable 'sockaddr_un' before its declaration
    |                 `- note: 'sockaddr_un' declared here
156 |             return withUnsafePointer(to: &sockaddr_un.sun_path.0) {
157 |                 return .unix(String(cString: $0))
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:171:20: error: cannot find 'in_addr' in scope
169 |
170 |     static func makeInAddr(fromIP4 address: String) throws -> in_addr {
171 |         var addr = in_addr()
    |                    `- error: cannot find 'in_addr' in scope
172 |         guard address.withCString({ Socket.inet_pton(AF_INET, $0, &addr) }) == 1 else {
173 |             throw SocketError.makeFailed("inet_pton AF_INET")
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:172:54: error: cannot find 'AF_INET' in scope
170 |     static func makeInAddr(fromIP4 address: String) throws -> in_addr {
171 |         var addr = in_addr()
172 |         guard address.withCString({ Socket.inet_pton(AF_INET, $0, &addr) }) == 1 else {
    |                                                      `- error: cannot find 'AF_INET' in scope
173 |             throw SocketError.makeFailed("inet_pton AF_INET")
174 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:172:44: error: type 'Socket' has no member 'inet_pton'
170 |     static func makeInAddr(fromIP4 address: String) throws -> in_addr {
171 |         var addr = in_addr()
172 |         guard address.withCString({ Socket.inet_pton(AF_INET, $0, &addr) }) == 1 else {
    |                                            `- error: type 'Socket' has no member 'inet_pton'
173 |             throw SocketError.makeFailed("inet_pton AF_INET")
174 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:179:20: error: cannot find 'in6_addr' in scope
177 |
178 |     static func makeInAddr(fromIP6 address: String) throws -> in6_addr {
179 |         var addr = in6_addr()
    |                    `- error: cannot find 'in6_addr' in scope
180 |         guard address.withCString({ Socket.inet_pton(AF_INET6, $0, &addr) }) == 1 else {
181 |             throw SocketError.makeFailed("inet_pton AF_INET6")
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:180:54: error: cannot find 'AF_INET6' in scope
178 |     static func makeInAddr(fromIP6 address: String) throws -> in6_addr {
179 |         var addr = in6_addr()
180 |         guard address.withCString({ Socket.inet_pton(AF_INET6, $0, &addr) }) == 1 else {
    |                                                      `- error: cannot find 'AF_INET6' in scope
181 |             throw SocketError.makeFailed("inet_pton AF_INET6")
182 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:180:44: error: type 'Socket' has no member 'inet_pton'
178 |     static func makeInAddr(fromIP6 address: String) throws -> in6_addr {
179 |         var addr = in6_addr()
180 |         guard address.withCString({ Socket.inet_pton(AF_INET6, $0, &addr) }) == 1 else {
    |                                            `- error: type 'Socket' has no member 'inet_pton'
181 |             throw SocketError.makeFailed("inet_pton AF_INET6")
182 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketError.swift:55:24: error: cannot find 'errno' in scope
53 |     static func makeFailed(_ type: StaticString) -> Self {
54 |         .failed(type: String(describing: type),
55 |                 errno: errno,
   |                        `- error: cannot find 'errno' in scope
56 |                 message: String(cString: strerror(errno)))
57 |     }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/SocketError.swift:56:51: error: cannot find 'errno' in scope
54 |         .failed(type: String(describing: type),
55 |                 errno: errno,
56 |                 message: String(cString: strerror(errno)))
   |                                                   `- error: cannot find 'errno' in scope
57 |     }
58 | }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:81:32: error: cannot find 'sa_family_t' in scope
 79 | #if compiler(>=6.0)
 80 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
 81 |     public static let family = sa_family_t(AF_INET)
    |                                `- error: cannot find 'sa_family_t' in scope
 82 | }
 83 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:81:44: error: cannot find 'AF_INET' in scope
 79 | #if compiler(>=6.0)
 80 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
 81 |     public static let family = sa_family_t(AF_INET)
    |                                            `- error: cannot find 'AF_INET' in scope
 82 | }
 83 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:85:32: error: cannot find 'sa_family_t' in scope
 83 |
 84 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
 85 |     public static let family = sa_family_t(AF_INET6)
    |                                `- error: cannot find 'sa_family_t' in scope
 86 | }
 87 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:85:44: error: cannot find 'AF_INET6' in scope
 83 |
 84 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
 85 |     public static let family = sa_family_t(AF_INET6)
    |                                            `- error: cannot find 'AF_INET6' in scope
 86 | }
 87 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:89:32: error: cannot find 'sa_family_t' in scope
 87 |
 88 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
 89 |     public static let family = sa_family_t(AF_UNIX)
    |                                `- error: cannot find 'sa_family_t' in scope
 90 | }
 91 | #else
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:89:44: error: cannot find 'AF_UNIX' in scope
 87 |
 88 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
 89 |     public static let family = sa_family_t(AF_UNIX)
    |                                            `- error: cannot find 'AF_UNIX' in scope
 90 | }
 91 | #else
[13/23] Compiling FlyingSocks SocketError.swift
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:39:24: error: cannot find type 'sa_family_t' in scope
 37 |
 38 | public protocol SocketAddress: Sendable {
 39 |     static var family: sa_family_t { get }
    |                        `- error: cannot find type 'sa_family_t' in scope
 40 | }
 41 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:42:46: error: cannot find type 'sockaddr_in' in scope
 40 | }
 41 |
 42 | public extension SocketAddress where Self == sockaddr_in {
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 43 |
 44 |     static func inet(port: UInt16) -> Self {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:55:46: error: cannot find type 'sockaddr_in6' in scope
 53 | }
 54 |
 55 | public extension SocketAddress where Self == sockaddr_in6 {
    |                                              `- error: cannot find type 'sockaddr_in6' in scope
 56 |
 57 |     static func inet6(port: UInt16) -> Self {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:72:46: error: cannot find type 'sockaddr_un' in scope
 70 | }
 71 |
 72 | public extension SocketAddress where Self == sockaddr_un {
    |                                              `- error: cannot find type 'sockaddr_un' in scope
 73 |
 74 |     static func unix(path: String) -> Self {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:80:11: error: cannot find type 'sockaddr_in' in scope
 78 |
 79 | #if compiler(>=6.0)
 80 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_in' in scope
 81 |     public static let family = sa_family_t(AF_INET)
 82 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:84:11: error: cannot find type 'sockaddr_in6' in scope
 82 | }
 83 |
 84 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_in6' in scope
 85 |     public static let family = sa_family_t(AF_INET6)
 86 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:88:11: error: cannot find type 'sockaddr_un' in scope
 86 | }
 87 |
 88 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_un' in scope
 89 |     public static let family = sa_family_t(AF_UNIX)
 90 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:106:36: error: cannot find type 'sockaddr_storage' in scope
104 |
105 | public extension SocketAddress {
106 |     static func make(from storage: sockaddr_storage) throws -> Self {
    |                                    `- error: cannot find type 'sockaddr_storage' in scope
107 |         guard storage.ss_family == family else {
108 |             throw SocketError.unsupportedAddress
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:118:27: error: cannot find type 'sockaddr_storage' in scope
116 |     }
117 |
118 |     func makeStorage() -> sockaddr_storage {
    |                           `- error: cannot find type 'sockaddr_storage' in scope
119 |         var addr = self
120 |         return withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:136:47: error: cannot find type 'sockaddr_storage' in scope
134 |     }
135 |
136 |     public static func makeAddress(from addr: sockaddr_storage) throws -> Address {
    |                                               `- error: cannot find type 'sockaddr_storage' in scope
137 |         switch Int32(addr.ss_family) {
138 |         case AF_INET:
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:164:77: error: cannot find type 'sockaddr_in' in scope
162 |     }
163 |
164 |     static func makeAddressINET(fromIP4 ip: String, port: UInt16) throws -> sockaddr_in {
    |                                                                             `- error: cannot find type 'sockaddr_in' in scope
165 |         var address = Socket.makeAddressINET(port: port)
166 |         address.sin_addr = try Socket.makeInAddr(fromIP4: ip)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:170:63: error: cannot find type 'in_addr' in scope
168 |     }
169 |
170 |     static func makeInAddr(fromIP4 address: String) throws -> in_addr {
    |                                                               `- error: cannot find type 'in_addr' in scope
171 |         var addr = in_addr()
172 |         guard address.withCString({ Socket.inet_pton(AF_INET, $0, &addr) }) == 1 else {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:178:63: error: cannot find type 'in6_addr' in scope
176 |     }
177 |
178 |     static func makeInAddr(fromIP6 address: String) throws -> in6_addr {
    |                                                               `- error: cannot find type 'in6_addr' in scope
179 |         var addr = in6_addr()
180 |         guard address.withCString({ Socket.inet_pton(AF_INET6, $0, &addr) }) == 1 else {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:186:35: error: cannot find type 'sockaddr_un' in scope
184 |     }
185 |
186 |     static func unlink(_ address: sockaddr_un) throws {
    |                                   `- error: cannot find type 'sockaddr_un' in scope
187 |         var address = address
188 |         guard Socket.unlink(&address.sun_path.0) == 0 else {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:62:27: error: type 'Socket' has no member 'makeAddressINET6'
 60 |
 61 |     static func inet6(ip6: String, port: UInt16) throws -> Self {
 62 |         var addr = Socket.makeAddressINET6(port: port)
    |                           `- error: type 'Socket' has no member 'makeAddressINET6'
 63 |         addr.sin6_addr = try Socket.makeInAddr(fromIP6: ip6)
 64 |         return addr
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:138:14: error: cannot find 'AF_INET' in scope
136 |     public static func makeAddress(from addr: sockaddr_storage) throws -> Address {
137 |         switch Int32(addr.ss_family) {
138 |         case AF_INET:
    |              `- error: cannot find 'AF_INET' in scope
139 |             var addr_in = try sockaddr_in.make(from: addr)
140 |             let maxLength = socklen_t(INET_ADDRSTRLEN)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:146:14: error: cannot find 'AF_INET6' in scope
144 |             return .ip4(String(cString: buffer), port: UInt16(addr_in.sin_port).byteSwapped)
145 |
146 |         case AF_INET6:
    |              `- error: cannot find 'AF_INET6' in scope
147 |             var addr_in6 = try sockaddr_in6.make(from: addr)
148 |             let maxLength = socklen_t(INET6_ADDRSTRLEN)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:154:14: error: cannot find 'AF_UNIX' in scope
152 |             return .ip6(String(cString: buffer), port: UInt16(addr_in6.sin6_port).byteSwapped)
153 |
154 |         case AF_UNIX:
    |              `- error: cannot find 'AF_UNIX' in scope
155 |             var sockaddr_un = try sockaddr_un.make(from: addr)
156 |             return withUnsafePointer(to: &sockaddr_un.sun_path.0) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:139:31: error: cannot find 'sockaddr_in' in scope
137 |         switch Int32(addr.ss_family) {
138 |         case AF_INET:
139 |             var addr_in = try sockaddr_in.make(from: addr)
    |                               `- error: cannot find 'sockaddr_in' in scope
140 |             let maxLength = socklen_t(INET_ADDRSTRLEN)
141 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:140:39: error: cannot find 'INET_ADDRSTRLEN' in scope
138 |         case AF_INET:
139 |             var addr_in = try sockaddr_in.make(from: addr)
140 |             let maxLength = socklen_t(INET_ADDRSTRLEN)
    |                                       `- error: cannot find 'INET_ADDRSTRLEN' in scope
141 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
142 |             defer { buffer.deallocate() }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:143:34: error: cannot find 'AF_INET' in scope
141 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
142 |             defer { buffer.deallocate() }
143 |             try Socket.inet_ntop(AF_INET, &addr_in.sin_addr, buffer, maxLength)
    |                                  `- error: cannot find 'AF_INET' in scope
144 |             return .ip4(String(cString: buffer), port: UInt16(addr_in.sin_port).byteSwapped)
145 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:143:24: error: type 'Socket' has no member 'inet_ntop'
141 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
142 |             defer { buffer.deallocate() }
143 |             try Socket.inet_ntop(AF_INET, &addr_in.sin_addr, buffer, maxLength)
    |                        `- error: type 'Socket' has no member 'inet_ntop'
144 |             return .ip4(String(cString: buffer), port: UInt16(addr_in.sin_port).byteSwapped)
145 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:147:32: error: cannot find 'sockaddr_in6' in scope
145 |
146 |         case AF_INET6:
147 |             var addr_in6 = try sockaddr_in6.make(from: addr)
    |                                `- error: cannot find 'sockaddr_in6' in scope
148 |             let maxLength = socklen_t(INET6_ADDRSTRLEN)
149 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:148:39: error: cannot find 'INET6_ADDRSTRLEN' in scope
146 |         case AF_INET6:
147 |             var addr_in6 = try sockaddr_in6.make(from: addr)
148 |             let maxLength = socklen_t(INET6_ADDRSTRLEN)
    |                                       `- error: cannot find 'INET6_ADDRSTRLEN' in scope
149 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
150 |             defer { buffer.deallocate() }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:151:34: error: cannot find 'AF_INET6' in scope
149 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
150 |             defer { buffer.deallocate() }
151 |             try Socket.inet_ntop(AF_INET6, &addr_in6.sin6_addr, buffer, maxLength)
    |                                  `- error: cannot find 'AF_INET6' in scope
152 |             return .ip6(String(cString: buffer), port: UInt16(addr_in6.sin6_port).byteSwapped)
153 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:151:24: error: type 'Socket' has no member 'inet_ntop'
149 |             let buffer = UnsafeMutablePointer<CChar>.allocate(capacity: Int(maxLength))
150 |             defer { buffer.deallocate() }
151 |             try Socket.inet_ntop(AF_INET6, &addr_in6.sin6_addr, buffer, maxLength)
    |                        `- error: type 'Socket' has no member 'inet_ntop'
152 |             return .ip6(String(cString: buffer), port: UInt16(addr_in6.sin6_port).byteSwapped)
153 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:155:35: error: use of local variable 'sockaddr_un' before its declaration
153 |
154 |         case AF_UNIX:
155 |             var sockaddr_un = try sockaddr_un.make(from: addr)
    |                 |                 `- error: use of local variable 'sockaddr_un' before its declaration
    |                 `- note: 'sockaddr_un' declared here
156 |             return withUnsafePointer(to: &sockaddr_un.sun_path.0) {
157 |                 return .unix(String(cString: $0))
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:171:20: error: cannot find 'in_addr' in scope
169 |
170 |     static func makeInAddr(fromIP4 address: String) throws -> in_addr {
171 |         var addr = in_addr()
    |                    `- error: cannot find 'in_addr' in scope
172 |         guard address.withCString({ Socket.inet_pton(AF_INET, $0, &addr) }) == 1 else {
173 |             throw SocketError.makeFailed("inet_pton AF_INET")
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:172:54: error: cannot find 'AF_INET' in scope
170 |     static func makeInAddr(fromIP4 address: String) throws -> in_addr {
171 |         var addr = in_addr()
172 |         guard address.withCString({ Socket.inet_pton(AF_INET, $0, &addr) }) == 1 else {
    |                                                      `- error: cannot find 'AF_INET' in scope
173 |             throw SocketError.makeFailed("inet_pton AF_INET")
174 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:172:44: error: type 'Socket' has no member 'inet_pton'
170 |     static func makeInAddr(fromIP4 address: String) throws -> in_addr {
171 |         var addr = in_addr()
172 |         guard address.withCString({ Socket.inet_pton(AF_INET, $0, &addr) }) == 1 else {
    |                                            `- error: type 'Socket' has no member 'inet_pton'
173 |             throw SocketError.makeFailed("inet_pton AF_INET")
174 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:179:20: error: cannot find 'in6_addr' in scope
177 |
178 |     static func makeInAddr(fromIP6 address: String) throws -> in6_addr {
179 |         var addr = in6_addr()
    |                    `- error: cannot find 'in6_addr' in scope
180 |         guard address.withCString({ Socket.inet_pton(AF_INET6, $0, &addr) }) == 1 else {
181 |             throw SocketError.makeFailed("inet_pton AF_INET6")
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:180:54: error: cannot find 'AF_INET6' in scope
178 |     static func makeInAddr(fromIP6 address: String) throws -> in6_addr {
179 |         var addr = in6_addr()
180 |         guard address.withCString({ Socket.inet_pton(AF_INET6, $0, &addr) }) == 1 else {
    |                                                      `- error: cannot find 'AF_INET6' in scope
181 |             throw SocketError.makeFailed("inet_pton AF_INET6")
182 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:180:44: error: type 'Socket' has no member 'inet_pton'
178 |     static func makeInAddr(fromIP6 address: String) throws -> in6_addr {
179 |         var addr = in6_addr()
180 |         guard address.withCString({ Socket.inet_pton(AF_INET6, $0, &addr) }) == 1 else {
    |                                            `- error: type 'Socket' has no member 'inet_pton'
181 |             throw SocketError.makeFailed("inet_pton AF_INET6")
182 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketError.swift:55:24: error: cannot find 'errno' in scope
53 |     static func makeFailed(_ type: StaticString) -> Self {
54 |         .failed(type: String(describing: type),
55 |                 errno: errno,
   |                        `- error: cannot find 'errno' in scope
56 |                 message: String(cString: strerror(errno)))
57 |     }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/SocketError.swift:56:51: error: cannot find 'errno' in scope
54 |         .failed(type: String(describing: type),
55 |                 errno: errno,
56 |                 message: String(cString: strerror(errno)))
   |                                                   `- error: cannot find 'errno' in scope
57 |     }
58 | }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:81:32: error: cannot find 'sa_family_t' in scope
 79 | #if compiler(>=6.0)
 80 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
 81 |     public static let family = sa_family_t(AF_INET)
    |                                `- error: cannot find 'sa_family_t' in scope
 82 | }
 83 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:81:44: error: cannot find 'AF_INET' in scope
 79 | #if compiler(>=6.0)
 80 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
 81 |     public static let family = sa_family_t(AF_INET)
    |                                            `- error: cannot find 'AF_INET' in scope
 82 | }
 83 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:85:32: error: cannot find 'sa_family_t' in scope
 83 |
 84 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
 85 |     public static let family = sa_family_t(AF_INET6)
    |                                `- error: cannot find 'sa_family_t' in scope
 86 | }
 87 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:85:44: error: cannot find 'AF_INET6' in scope
 83 |
 84 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
 85 |     public static let family = sa_family_t(AF_INET6)
    |                                            `- error: cannot find 'AF_INET6' in scope
 86 | }
 87 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:89:32: error: cannot find 'sa_family_t' in scope
 87 |
 88 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
 89 |     public static let family = sa_family_t(AF_UNIX)
    |                                `- error: cannot find 'sa_family_t' in scope
 90 | }
 91 | #else
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:89:44: error: cannot find 'AF_UNIX' in scope
 87 |
 88 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
 89 |     public static let family = sa_family_t(AF_UNIX)
    |                                            `- error: cannot find 'AF_UNIX' in scope
 90 | }
 91 | #else
[14/23] Compiling FlyingSocks Socket+WinSock2.swift
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:42:37: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
 42 |         public var rawValue: Socket.FileDescriptorType
    |                                     `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:44:38: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
    :
 42 |         public var rawValue: Socket.FileDescriptorType
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
    |                                      `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 45 |             self.rawValue = rawValue
 46 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:41:19: error: type 'Socket.FileDescriptor' does not conform to protocol 'Hashable'
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
    |                   `- error: type 'Socket.FileDescriptor' does not conform to protocol 'Hashable'
 42 |         public var rawValue: Socket.FileDescriptorType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Socket.FileDescriptor' to 'Hashable'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:41:19: error: type 'Socket.FileDescriptor' does not conform to protocol 'RawRepresentable'
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
    |                   `- error: type 'Socket.FileDescriptor' does not conform to protocol 'RawRepresentable'
 42 |         public var rawValue: Socket.FileDescriptorType
 43 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:41:19: error: type 'Socket.FileDescriptor' does not conform to protocol 'Equatable'
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
    |                   |- error: type 'Socket.FileDescriptor' does not conform to protocol 'Equatable'
    |                   `- note: add stubs for conformance
 42 |         public var rawValue: Socket.FileDescriptorType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Socket.FileDescriptor' to 'Equatable'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
Swift.==:1:24: note: candidate would match if 'Socket.FileDescriptor.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'Socket.FileDescriptor.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Socket.FileDescriptor' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
  |                               `- note: candidate would match if 'Socket.FileDescriptor' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Socket.FileDescriptor' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Socket.FileDescriptor' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
  |                               `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'AttributedStringProtocol'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
  |                `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Socket.FileDescriptor, Socket.FileDescriptor) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Socket.FileDescriptor, Socket.FileDescriptor) -> Bool'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:112:34: error: cannot find type 'sockaddr_storage' in scope
110 |     }
111 |
112 |     public func bind(to storage: sockaddr_storage) throws {
    |                                  `- error: cannot find type 'sockaddr_storage' in scope
113 |         switch Int32(storage.ss_family) {
114 |         case AF_INET:
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:125:54: error: cannot find 'SOMAXCONN' in scope
123 |     }
124 |
125 |     public func listen(maxPendingConnection: Int32 = SOMAXCONN) throws {
    |                                                      `- error: cannot find 'SOMAXCONN' in scope
126 |         if Socket.listen(file.rawValue, maxPendingConnection) == -1 {
127 |             let error = SocketError.makeFailed("Listen")
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:163:65: error: cannot find type 'sockaddr_storage' in scope
161 |     }
162 |
163 |     public func accept() throws -> (file: FileDescriptor, addr: sockaddr_storage) {
    |                                                                 `- error: cannot find type 'sockaddr_storage' in scope
164 |         var addr = sockaddr_storage()
165 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:266:57: error: cannot find 'O_NONBLOCK' in scope
264 |         }
265 |
266 |         public static let nonBlocking = Flags(rawValue: O_NONBLOCK)
    |                                                         `- error: cannot find 'O_NONBLOCK' in scope
267 |     }
268 | }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:54:52: error: type 'Socket' has no member 'stream'
 52 |
 53 |     public init(domain: Int32) throws {
 54 |         try self.init(domain: domain, type: Socket.stream)
    |                                                    `- error: type 'Socket' has no member 'stream'
 55 |     }
 56 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:58:26: error: no exact matches in call to initializer
 56 |
 57 |     public init(domain: Int32, type: Int32) throws {
 58 |         let descriptor = FileDescriptor(rawValue: Socket.socket(domain, type, 0))
    |                          |- error: no exact matches in call to initializer
    |                          `- note: found candidate with type '(any Decoder) throws -> Socket.FileDescriptor'
 59 |         guard descriptor != .invalid else {
 60 |             throw SocketError.makeFailed("CreateSocket")
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:58:58: error: type 'Socket' has no member 'socket'
 56 |
 57 |     public init(domain: Int32, type: Int32) throws {
 58 |         let descriptor = FileDescriptor(rawValue: Socket.socket(domain, type, 0))
    |                                                          `- error: type 'Socket' has no member 'socket'
 59 |         guard descriptor != .invalid else {
 60 |             throw SocketError.makeFailed("CreateSocket")
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:59:30: error: cannot infer contextual base in reference to member 'invalid'
 57 |     public init(domain: Int32, type: Int32) throws {
 58 |         let descriptor = FileDescriptor(rawValue: Socket.socket(domain, type, 0))
 59 |         guard descriptor != .invalid else {
    |                              `- error: cannot infer contextual base in reference to member 'invalid'
 60 |             throw SocketError.makeFailed("CreateSocket")
 61 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:67:53: error: cannot find 'F_GETFL' in scope
 65 |     public var flags: Flags {
 66 |         get throws {
 67 |             let flags = Socket.fcntl(file.rawValue, F_GETFL)
    |                                                     `- error: cannot find 'F_GETFL' in scope
 68 |             if flags == -1 {
 69 |                 throw SocketError.makeFailed("GetFlags")
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:67:32: error: type 'Socket' has no member 'fcntl'
 65 |     public var flags: Flags {
 66 |         get throws {
 67 |             let flags = Socket.fcntl(file.rawValue, F_GETFL)
    |                                `- error: type 'Socket' has no member 'fcntl'
 68 |             if flags == -1 {
 69 |                 throw SocketError.makeFailed("GetFlags")
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:76:40: error: cannot find 'F_SETFL' in scope
 74 |
 75 |     public func setFlags(_ flags: Flags) throws {
 76 |         if Socket.fcntl(file.rawValue, F_SETFL, flags.rawValue) == -1 {
    |                                        `- error: cannot find 'F_SETFL' in scope
 77 |             throw SocketError.makeFailed("SetFlags")
 78 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:76:19: error: type 'Socket' has no member 'fcntl'
 74 |
 75 |     public func setFlags(_ flags: Flags) throws {
 76 |         if Socket.fcntl(file.rawValue, F_SETFL, flags.rawValue) == -1 {
    |                   `- error: type 'Socket' has no member 'fcntl'
 77 |             throw SocketError.makeFailed("SetFlags")
 78 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:84:46: error: cannot find 'SOL_SOCKET' in scope
 82 |         var value = option.makeSocketValue(from: value)
 83 |         let result = withUnsafeBytes(of: &value) {
 84 |             Socket.setsockopt(file.rawValue, SOL_SOCKET, option.name, $0.baseAddress!, socklen_t($0.count))
    |                                              `- error: cannot find 'SOL_SOCKET' in scope
 85 |         }
 86 |         guard result >= 0 else {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:84:20: error: type 'Socket' has no member 'setsockopt'
 82 |         var value = option.makeSocketValue(from: value)
 83 |         let result = withUnsafeBytes(of: &value) {
 84 |             Socket.setsockopt(file.rawValue, SOL_SOCKET, option.name, $0.baseAddress!, socklen_t($0.count))
    |                    `- error: type 'Socket' has no member 'setsockopt'
 85 |         }
 86 |         guard result >= 0 else {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:94:48: error: cannot find 'SOL_SOCKET' in scope
 92 |         let valuePtr = UnsafeMutablePointer<O.SocketValue>.allocate(capacity: 1)
 93 |         var length = socklen_t(MemoryLayout<O.SocketValue>.size)
 94 |         guard Socket.getsockopt(file.rawValue, SOL_SOCKET, option.name, valuePtr, &length) >= 0 else {
    |                                                `- error: cannot find 'SOL_SOCKET' in scope
 95 |             throw SocketError.makeFailed("GetOption")
 96 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:94:22: error: type 'Socket' has no member 'getsockopt'
 92 |         let valuePtr = UnsafeMutablePointer<O.SocketValue>.allocate(capacity: 1)
 93 |         var length = socklen_t(MemoryLayout<O.SocketValue>.size)
 94 |         guard Socket.getsockopt(file.rawValue, SOL_SOCKET, option.name, valuePtr, &length) >= 0 else {
    |                      `- error: type 'Socket' has no member 'getsockopt'
 95 |             throw SocketError.makeFailed("GetOption")
 96 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:103:38: error: cannot find 'sockaddr' in scope
101 |         var addr = address
102 |         let result = withUnsafePointer(to: &addr) {
103 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                                      `- error: cannot find 'sockaddr' in scope
104 |                 Socket.bind(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
105 |             }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:103:16: error: generic parameter 'T' could not be inferred
101 |         var addr = address
102 |         let result = withUnsafePointer(to: &addr) {
103 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                `- error: generic parameter 'T' could not be inferred
104 |                 Socket.bind(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
105 |             }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:104:24: error: generic parameter 'A' could not be inferred
 98 |     }
 99 |
100 |     public func bind<A: SocketAddress>(to address: A) throws {
    |                 `- note: in call to function 'bind(to:)'
101 |         var addr = address
102 |         let result = withUnsafePointer(to: &addr) {
103 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
104 |                 Socket.bind(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
    |                        `- error: generic parameter 'A' could not be inferred
105 |             }
106 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:104:28: error: extra arguments at positions #2, #3 in call
 98 |     }
 99 |
100 |     public func bind<A: SocketAddress>(to address: A) throws {
    |                 `- note: 'bind(to:)' declared here
101 |         var addr = address
102 |         let result = withUnsafePointer(to: &addr) {
103 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
104 |                 Socket.bind(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
    |                            `- error: extra arguments at positions #2, #3 in call
105 |             }
106 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:114:14: error: cannot find 'AF_INET' in scope
112 |     public func bind(to storage: sockaddr_storage) throws {
113 |         switch Int32(storage.ss_family) {
114 |         case AF_INET:
    |              `- error: cannot find 'AF_INET' in scope
115 |             try bind(to: sockaddr_in.make(from: storage))
116 |         case AF_INET6:
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:116:14: error: cannot find 'AF_INET6' in scope
114 |         case AF_INET:
115 |             try bind(to: sockaddr_in.make(from: storage))
116 |         case AF_INET6:
    |              `- error: cannot find 'AF_INET6' in scope
117 |             try bind(to: sockaddr_in6.make(from: storage))
118 |         case AF_UNIX:
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:118:14: error: cannot find 'AF_UNIX' in scope
116 |         case AF_INET6:
117 |             try bind(to: sockaddr_in6.make(from: storage))
118 |         case AF_UNIX:
    |              `- error: cannot find 'AF_UNIX' in scope
119 |             try bind(to: sockaddr_un.make(from: storage))
120 |         default:
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:115:26: error: cannot find 'sockaddr_in' in scope
113 |         switch Int32(storage.ss_family) {
114 |         case AF_INET:
115 |             try bind(to: sockaddr_in.make(from: storage))
    |                          `- error: cannot find 'sockaddr_in' in scope
116 |         case AF_INET6:
117 |             try bind(to: sockaddr_in6.make(from: storage))
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:117:26: error: cannot find 'sockaddr_in6' in scope
115 |             try bind(to: sockaddr_in.make(from: storage))
116 |         case AF_INET6:
117 |             try bind(to: sockaddr_in6.make(from: storage))
    |                          `- error: cannot find 'sockaddr_in6' in scope
118 |         case AF_UNIX:
119 |             try bind(to: sockaddr_un.make(from: storage))
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:119:26: error: cannot find 'sockaddr_un' in scope
117 |             try bind(to: sockaddr_in6.make(from: storage))
118 |         case AF_UNIX:
119 |             try bind(to: sockaddr_un.make(from: storage))
    |                          `- error: cannot find 'sockaddr_un' in scope
120 |         default:
121 |             throw SocketError.unsupportedAddress
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:126:41: error: extra argument in call
124 |
125 |     public func listen(maxPendingConnection: Int32 = SOMAXCONN) throws {
126 |         if Socket.listen(file.rawValue, maxPendingConnection) == -1 {
    |                                         `- error: extra argument in call
127 |             let error = SocketError.makeFailed("Listen")
128 |             try close()
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:126:63: error: type '(Int32) throws -> ()' cannot conform to 'BinaryInteger' [#ProtocolTypeNonConformance]
124 |
125 |     public func listen(maxPendingConnection: Int32 = SOMAXCONN) throws {
126 |         if Socket.listen(file.rawValue, maxPendingConnection) == -1 {
    |                                                               |- error: type '(Int32) throws -> ()' cannot conform to 'BinaryInteger' [#ProtocolTypeNonConformance]
    |                                                               |- note: only concrete types such as structs, enums and classes can conform to protocols
    |                                                               `- note: required by referencing operator function '==' on 'BinaryInteger' where 'Self' = '(Int32) throws -> ()'
127 |             let error = SocketError.makeFailed("Listen")
128 |             try close()
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:134:20: error: cannot find 'sockaddr_storage' in scope
132 |
133 |     public func remotePeer() throws -> Address {
134 |         var addr = sockaddr_storage()
    |                    `- error: cannot find 'sockaddr_storage' in scope
135 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
136 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:135:42: error: cannot find type 'sockaddr_storage' in scope
133 |     public func remotePeer() throws -> Address {
134 |         var addr = sockaddr_storage()
135 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
    |                                          `- error: cannot find type 'sockaddr_storage' in scope
136 |
137 |         let result = withUnsafeMutablePointer(to: &addr) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:138:38: error: cannot find 'sockaddr' in scope
136 |
137 |         let result = withUnsafeMutablePointer(to: &addr) {
138 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                                      `- error: cannot find 'sockaddr' in scope
139 |                 Socket.getpeername(file.rawValue, $0, &len)
140 |             }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:138:16: error: generic parameter 'T' could not be inferred
136 |
137 |         let result = withUnsafeMutablePointer(to: &addr) {
138 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                `- error: generic parameter 'T' could not be inferred
139 |                 Socket.getpeername(file.rawValue, $0, &len)
140 |             }
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:139:24: error: type 'Socket' has no member 'getpeername'
137 |         let result = withUnsafeMutablePointer(to: &addr) {
138 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
139 |                 Socket.getpeername(file.rawValue, $0, &len)
    |                        `- error: type 'Socket' has no member 'getpeername'
140 |             }
141 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:136:47: error: cannot find type 'sockaddr_storage' in scope
134 |     }
135 |
136 |     public static func makeAddress(from addr: sockaddr_storage) throws -> Address {
    |                                               `- error: cannot find type 'sockaddr_storage' in scope
137 |         switch Int32(addr.ss_family) {
138 |         case AF_INET:
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:149:20: error: cannot find 'sockaddr_storage' in scope
147 |
148 |     public func sockname() throws -> Address {
149 |         var addr = sockaddr_storage()
    |                    `- error: cannot find 'sockaddr_storage' in scope
150 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
151 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:150:42: error: cannot find type 'sockaddr_storage' in scope
148 |     public func sockname() throws -> Address {
149 |         var addr = sockaddr_storage()
150 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
    |                                          `- error: cannot find type 'sockaddr_storage' in scope
151 |
152 |         let result = withUnsafeMutablePointer(to: &addr) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:153:38: error: cannot find 'sockaddr' in scope
151 |
152 |         let result = withUnsafeMutablePointer(to: &addr) {
153 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                                      `- error: cannot find 'sockaddr' in scope
154 |                 Socket.getsockname(file.rawValue, $0, &len)
155 |             }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:153:16: error: generic parameter 'T' could not be inferred
151 |
152 |         let result = withUnsafeMutablePointer(to: &addr) {
153 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                `- error: generic parameter 'T' could not be inferred
154 |                 Socket.getsockname(file.rawValue, $0, &len)
155 |             }
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:154:24: error: type 'Socket' has no member 'getsockname'
152 |         let result = withUnsafeMutablePointer(to: &addr) {
153 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
154 |                 Socket.getsockname(file.rawValue, $0, &len)
    |                        `- error: type 'Socket' has no member 'getsockname'
155 |             }
156 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:164:20: error: cannot find 'sockaddr_storage' in scope
162 |
163 |     public func accept() throws -> (file: FileDescriptor, addr: sockaddr_storage) {
164 |         var addr = sockaddr_storage()
    |                    `- error: cannot find 'sockaddr_storage' in scope
165 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
166 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:165:42: error: cannot find type 'sockaddr_storage' in scope
163 |     public func accept() throws -> (file: FileDescriptor, addr: sockaddr_storage) {
164 |         var addr = sockaddr_storage()
165 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
    |                                          `- error: cannot find type 'sockaddr_storage' in scope
166 |
167 |         let newFile = withUnsafeMutablePointer(to: &addr) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:168:38: error: cannot find 'sockaddr' in scope
166 |
167 |         let newFile = withUnsafeMutablePointer(to: &addr) {
168 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                                      `- error: cannot find 'sockaddr' in scope
169 |                 FileDescriptor(rawValue: Socket.accept(file.rawValue, $0, &len))
170 |             }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:169:17: error: no exact matches in call to initializer
167 |         let newFile = withUnsafeMutablePointer(to: &addr) {
168 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
169 |                 FileDescriptor(rawValue: Socket.accept(file.rawValue, $0, &len))
    |                 |- error: no exact matches in call to initializer
    |                 `- note: found candidate with type '(any Decoder) throws -> Socket.FileDescriptor'
170 |             }
171 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:168:16: error: generic parameter 'T' could not be inferred
166 |
167 |         let newFile = withUnsafeMutablePointer(to: &addr) {
168 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                `- error: generic parameter 'T' could not be inferred
169 |                 FileDescriptor(rawValue: Socket.accept(file.rawValue, $0, &len))
170 |             }
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:173:27: error: cannot infer contextual base in reference to member 'invalid'
171 |         }
172 |
173 |         guard newFile != .invalid else {
    |                           `- error: cannot infer contextual base in reference to member 'invalid'
174 |             if errno == EWOULDBLOCK {
175 |                 throw SocketError.blocked
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:174:16: error: cannot find 'errno' in scope
172 |
173 |         guard newFile != .invalid else {
174 |             if errno == EWOULDBLOCK {
    |                `- error: cannot find 'errno' in scope
175 |                 throw SocketError.blocked
176 |             } else {
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:187:38: error: cannot find 'sockaddr' in scope
185 |         var addr = address
186 |         let result = withUnsafePointer(to: &addr) {
187 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                                      `- error: cannot find 'sockaddr' in scope
188 |                 Socket.connect(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
189 |             }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:187:16: error: generic parameter 'T' could not be inferred
185 |         var addr = address
186 |         let result = withUnsafePointer(to: &addr) {
187 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                `- error: generic parameter 'T' could not be inferred
188 |                 Socket.connect(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
189 |             }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:188:31: error: extra arguments at positions #2, #3 in call
182 |     }
183 |
184 |     public func connect<A: SocketAddress>(to address: A) throws {
    |                 `- note: 'connect(to:)' declared here
185 |         var addr = address
186 |         let result = withUnsafePointer(to: &addr) {
187 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
188 |                 Socket.connect(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
    |                               `- error: extra arguments at positions #2, #3 in call
189 |             }
190 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:188:24: error: generic parameter 'A' could not be inferred
182 |     }
183 |
184 |     public func connect<A: SocketAddress>(to address: A) throws {
    |                 `- note: in call to function 'connect(to:)'
185 |         var addr = address
186 |         let result = withUnsafePointer(to: &addr) {
187 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
188 |                 Socket.connect(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
    |                        `- error: generic parameter 'A' could not be inferred
189 |             }
190 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:191:30: error: cannot find 'errno' in scope
189 |             }
190 |         }
191 |         guard result >= 0 || errno == EISCONN else {
    |                              `- error: cannot find 'errno' in scope
192 |             if errno == EINPROGRESS {
193 |                 throw SocketError.blocked
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:192:16: error: cannot find 'errno' in scope
190 |         }
191 |         guard result >= 0 || errno == EISCONN else {
192 |             if errno == EINPROGRESS {
    |                `- error: cannot find 'errno' in scope
193 |                 throw SocketError.blocked
194 |             } else {
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:215:21: error: instance member 'read' cannot be used on type 'Socket'; did you mean to use a value of this type instead?
213 |
214 |     private func read(into buffer: UnsafeMutablePointer<UInt8>, length: Int) throws -> Int {
215 |         let count = Socket.read(file.rawValue, buffer, length)
    |                     `- error: instance member 'read' cannot be used on type 'Socket'; did you mean to use a value of this type instead?
216 |         guard count > 0 else {
217 |             if errno == EWOULDBLOCK {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:215:56: error: extra argument in call
213 |
214 |     private func read(into buffer: UnsafeMutablePointer<UInt8>, length: Int) throws -> Int {
215 |         let count = Socket.read(file.rawValue, buffer, length)
    |                                                        `- error: extra argument in call
216 |         guard count > 0 else {
217 |             if errno == EWOULDBLOCK {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:215:48: error: cannot convert value of type 'UnsafeMutablePointer<UInt8>' to expected argument type 'Int'
213 |
214 |     private func read(into buffer: UnsafeMutablePointer<UInt8>, length: Int) throws -> Int {
215 |         let count = Socket.read(file.rawValue, buffer, length)
    |                                                `- error: cannot convert value of type 'UnsafeMutablePointer<UInt8>' to expected argument type 'Int'
216 |         guard count > 0 else {
217 |             if errno == EWOULDBLOCK {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:217:16: error: cannot find 'errno' in scope
215 |         let count = Socket.read(file.rawValue, buffer, length)
216 |         guard count > 0 else {
217 |             if errno == EWOULDBLOCK {
    |                `- error: cannot find 'errno' in scope
218 |                 throw SocketError.blocked
219 |             } else if errno == EBADF || count == 0 {
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:219:23: error: cannot find 'errno' in scope
217 |             if errno == EWOULDBLOCK {
218 |                 throw SocketError.blocked
219 |             } else if errno == EBADF || count == 0 {
    |                       `- error: cannot find 'errno' in scope
220 |                 throw SocketError.disconnected
221 |             } else {
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:238:27: error: no exact matches in call to instance method 'write'
226 |     }
227 |
228 |     public func write(_ data: Data, from index: Data.Index = 0) throws -> Data.Index {
    |                 `- note: found this candidate
229 |         precondition(index >= 0)
230 |         guard index < data.endIndex else { return data.endIndex }
    :
235 |     }
236 |
237 |     private func write(_ pointer: UnsafeRawPointer, length: Int) throws -> Int {
    |                  `- note: found this candidate
238 |         let sent = Socket.write(file.rawValue, pointer, length)
    |                           `- error: no exact matches in call to instance method 'write'
239 |         guard sent > 0 else {
240 |             if errno == EWOULDBLOCK {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:240:16: error: cannot find 'errno' in scope
238 |         let sent = Socket.write(file.rawValue, pointer, length)
239 |         guard sent > 0 else {
240 |             if errno == EWOULDBLOCK {
    |                `- error: cannot find 'errno' in scope
241 |                 throw SocketError.blocked
242 |             } else if errno == EBADF {
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:242:23: error: cannot find 'errno' in scope
240 |             if errno == EWOULDBLOCK {
241 |                 throw SocketError.blocked
242 |             } else if errno == EBADF {
    |                       `- error: cannot find 'errno' in scope
243 |                 throw SocketError.disconnected
244 |             } else {
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:252:40: error: type '() throws -> ()' cannot conform to 'BinaryInteger' [#ProtocolTypeNonConformance]
250 |
251 |     public func close() throws {
252 |         if Socket.close(file.rawValue) == -1 {
    |                                        |- error: type '() throws -> ()' cannot conform to 'BinaryInteger' [#ProtocolTypeNonConformance]
    |                                        |- note: only concrete types such as structs, enums and classes can conform to protocols
    |                                        `- note: required by referencing operator function '==' on 'BinaryInteger' where 'Self' = '() throws -> ()'
253 |             throw SocketError.makeFailed("Close")
254 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:340:32: error: cannot find 'SO_REUSEADDR' in scope
338 | public extension SocketOption where Self == BoolSocketOption {
339 |     static var localAddressReuse: Self {
340 |         BoolSocketOption(name: SO_REUSEADDR)
    |                                `- error: cannot find 'SO_REUSEADDR' in scope
341 |     }
342 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:353:33: error: cannot find 'SO_SNDBUF' in scope
351 | public extension SocketOption where Self == Int32SocketOption {
352 |     static var sendBufferSize: Self {
353 |         Int32SocketOption(name: SO_SNDBUF)
    |                                 `- error: cannot find 'SO_SNDBUF' in scope
354 |     }
355 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:357:33: error: cannot find 'SO_RCVBUF' in scope
355 |
356 |     static var receiveBufferSize: Self {
357 |         Int32SocketOption(name: SO_RCVBUF)
    |                                 `- error: cannot find 'SO_RCVBUF' in scope
358 |     }
359 | }
[#ProtocolTypeNonConformance]: <https://docs.swift.org/compiler/documentation/diagnostics/protocol-type-non-conformance>
[15/23] Compiling FlyingSocks Socket.swift
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:42:37: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
 42 |         public var rawValue: Socket.FileDescriptorType
    |                                     `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:44:38: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
    :
 42 |         public var rawValue: Socket.FileDescriptorType
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
    |                                      `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 45 |             self.rawValue = rawValue
 46 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:41:19: error: type 'Socket.FileDescriptor' does not conform to protocol 'Hashable'
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
    |                   `- error: type 'Socket.FileDescriptor' does not conform to protocol 'Hashable'
 42 |         public var rawValue: Socket.FileDescriptorType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Socket.FileDescriptor' to 'Hashable'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:41:19: error: type 'Socket.FileDescriptor' does not conform to protocol 'RawRepresentable'
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
    |                   `- error: type 'Socket.FileDescriptor' does not conform to protocol 'RawRepresentable'
 42 |         public var rawValue: Socket.FileDescriptorType
 43 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:41:19: error: type 'Socket.FileDescriptor' does not conform to protocol 'Equatable'
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
    |                   |- error: type 'Socket.FileDescriptor' does not conform to protocol 'Equatable'
    |                   `- note: add stubs for conformance
 42 |         public var rawValue: Socket.FileDescriptorType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Socket.FileDescriptor' to 'Equatable'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
Swift.==:1:24: note: candidate would match if 'Socket.FileDescriptor.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'Socket.FileDescriptor.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Socket.FileDescriptor' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
  |                               `- note: candidate would match if 'Socket.FileDescriptor' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Socket.FileDescriptor' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Socket.FileDescriptor' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
  |                               `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'AttributedStringProtocol'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
  |                `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Socket.FileDescriptor, Socket.FileDescriptor) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Socket.FileDescriptor, Socket.FileDescriptor) -> Bool'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:112:34: error: cannot find type 'sockaddr_storage' in scope
110 |     }
111 |
112 |     public func bind(to storage: sockaddr_storage) throws {
    |                                  `- error: cannot find type 'sockaddr_storage' in scope
113 |         switch Int32(storage.ss_family) {
114 |         case AF_INET:
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:125:54: error: cannot find 'SOMAXCONN' in scope
123 |     }
124 |
125 |     public func listen(maxPendingConnection: Int32 = SOMAXCONN) throws {
    |                                                      `- error: cannot find 'SOMAXCONN' in scope
126 |         if Socket.listen(file.rawValue, maxPendingConnection) == -1 {
127 |             let error = SocketError.makeFailed("Listen")
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:163:65: error: cannot find type 'sockaddr_storage' in scope
161 |     }
162 |
163 |     public func accept() throws -> (file: FileDescriptor, addr: sockaddr_storage) {
    |                                                                 `- error: cannot find type 'sockaddr_storage' in scope
164 |         var addr = sockaddr_storage()
165 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:266:57: error: cannot find 'O_NONBLOCK' in scope
264 |         }
265 |
266 |         public static let nonBlocking = Flags(rawValue: O_NONBLOCK)
    |                                                         `- error: cannot find 'O_NONBLOCK' in scope
267 |     }
268 | }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:54:52: error: type 'Socket' has no member 'stream'
 52 |
 53 |     public init(domain: Int32) throws {
 54 |         try self.init(domain: domain, type: Socket.stream)
    |                                                    `- error: type 'Socket' has no member 'stream'
 55 |     }
 56 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:58:26: error: no exact matches in call to initializer
 56 |
 57 |     public init(domain: Int32, type: Int32) throws {
 58 |         let descriptor = FileDescriptor(rawValue: Socket.socket(domain, type, 0))
    |                          |- error: no exact matches in call to initializer
    |                          `- note: found candidate with type '(any Decoder) throws -> Socket.FileDescriptor'
 59 |         guard descriptor != .invalid else {
 60 |             throw SocketError.makeFailed("CreateSocket")
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:58:58: error: type 'Socket' has no member 'socket'
 56 |
 57 |     public init(domain: Int32, type: Int32) throws {
 58 |         let descriptor = FileDescriptor(rawValue: Socket.socket(domain, type, 0))
    |                                                          `- error: type 'Socket' has no member 'socket'
 59 |         guard descriptor != .invalid else {
 60 |             throw SocketError.makeFailed("CreateSocket")
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:59:30: error: cannot infer contextual base in reference to member 'invalid'
 57 |     public init(domain: Int32, type: Int32) throws {
 58 |         let descriptor = FileDescriptor(rawValue: Socket.socket(domain, type, 0))
 59 |         guard descriptor != .invalid else {
    |                              `- error: cannot infer contextual base in reference to member 'invalid'
 60 |             throw SocketError.makeFailed("CreateSocket")
 61 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:67:53: error: cannot find 'F_GETFL' in scope
 65 |     public var flags: Flags {
 66 |         get throws {
 67 |             let flags = Socket.fcntl(file.rawValue, F_GETFL)
    |                                                     `- error: cannot find 'F_GETFL' in scope
 68 |             if flags == -1 {
 69 |                 throw SocketError.makeFailed("GetFlags")
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:67:32: error: type 'Socket' has no member 'fcntl'
 65 |     public var flags: Flags {
 66 |         get throws {
 67 |             let flags = Socket.fcntl(file.rawValue, F_GETFL)
    |                                `- error: type 'Socket' has no member 'fcntl'
 68 |             if flags == -1 {
 69 |                 throw SocketError.makeFailed("GetFlags")
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:76:40: error: cannot find 'F_SETFL' in scope
 74 |
 75 |     public func setFlags(_ flags: Flags) throws {
 76 |         if Socket.fcntl(file.rawValue, F_SETFL, flags.rawValue) == -1 {
    |                                        `- error: cannot find 'F_SETFL' in scope
 77 |             throw SocketError.makeFailed("SetFlags")
 78 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:76:19: error: type 'Socket' has no member 'fcntl'
 74 |
 75 |     public func setFlags(_ flags: Flags) throws {
 76 |         if Socket.fcntl(file.rawValue, F_SETFL, flags.rawValue) == -1 {
    |                   `- error: type 'Socket' has no member 'fcntl'
 77 |             throw SocketError.makeFailed("SetFlags")
 78 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:84:46: error: cannot find 'SOL_SOCKET' in scope
 82 |         var value = option.makeSocketValue(from: value)
 83 |         let result = withUnsafeBytes(of: &value) {
 84 |             Socket.setsockopt(file.rawValue, SOL_SOCKET, option.name, $0.baseAddress!, socklen_t($0.count))
    |                                              `- error: cannot find 'SOL_SOCKET' in scope
 85 |         }
 86 |         guard result >= 0 else {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:84:20: error: type 'Socket' has no member 'setsockopt'
 82 |         var value = option.makeSocketValue(from: value)
 83 |         let result = withUnsafeBytes(of: &value) {
 84 |             Socket.setsockopt(file.rawValue, SOL_SOCKET, option.name, $0.baseAddress!, socklen_t($0.count))
    |                    `- error: type 'Socket' has no member 'setsockopt'
 85 |         }
 86 |         guard result >= 0 else {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:94:48: error: cannot find 'SOL_SOCKET' in scope
 92 |         let valuePtr = UnsafeMutablePointer<O.SocketValue>.allocate(capacity: 1)
 93 |         var length = socklen_t(MemoryLayout<O.SocketValue>.size)
 94 |         guard Socket.getsockopt(file.rawValue, SOL_SOCKET, option.name, valuePtr, &length) >= 0 else {
    |                                                `- error: cannot find 'SOL_SOCKET' in scope
 95 |             throw SocketError.makeFailed("GetOption")
 96 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:94:22: error: type 'Socket' has no member 'getsockopt'
 92 |         let valuePtr = UnsafeMutablePointer<O.SocketValue>.allocate(capacity: 1)
 93 |         var length = socklen_t(MemoryLayout<O.SocketValue>.size)
 94 |         guard Socket.getsockopt(file.rawValue, SOL_SOCKET, option.name, valuePtr, &length) >= 0 else {
    |                      `- error: type 'Socket' has no member 'getsockopt'
 95 |             throw SocketError.makeFailed("GetOption")
 96 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:103:38: error: cannot find 'sockaddr' in scope
101 |         var addr = address
102 |         let result = withUnsafePointer(to: &addr) {
103 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                                      `- error: cannot find 'sockaddr' in scope
104 |                 Socket.bind(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
105 |             }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:103:16: error: generic parameter 'T' could not be inferred
101 |         var addr = address
102 |         let result = withUnsafePointer(to: &addr) {
103 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                `- error: generic parameter 'T' could not be inferred
104 |                 Socket.bind(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
105 |             }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:104:24: error: generic parameter 'A' could not be inferred
 98 |     }
 99 |
100 |     public func bind<A: SocketAddress>(to address: A) throws {
    |                 `- note: in call to function 'bind(to:)'
101 |         var addr = address
102 |         let result = withUnsafePointer(to: &addr) {
103 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
104 |                 Socket.bind(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
    |                        `- error: generic parameter 'A' could not be inferred
105 |             }
106 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:104:28: error: extra arguments at positions #2, #3 in call
 98 |     }
 99 |
100 |     public func bind<A: SocketAddress>(to address: A) throws {
    |                 `- note: 'bind(to:)' declared here
101 |         var addr = address
102 |         let result = withUnsafePointer(to: &addr) {
103 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
104 |                 Socket.bind(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
    |                            `- error: extra arguments at positions #2, #3 in call
105 |             }
106 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:114:14: error: cannot find 'AF_INET' in scope
112 |     public func bind(to storage: sockaddr_storage) throws {
113 |         switch Int32(storage.ss_family) {
114 |         case AF_INET:
    |              `- error: cannot find 'AF_INET' in scope
115 |             try bind(to: sockaddr_in.make(from: storage))
116 |         case AF_INET6:
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:116:14: error: cannot find 'AF_INET6' in scope
114 |         case AF_INET:
115 |             try bind(to: sockaddr_in.make(from: storage))
116 |         case AF_INET6:
    |              `- error: cannot find 'AF_INET6' in scope
117 |             try bind(to: sockaddr_in6.make(from: storage))
118 |         case AF_UNIX:
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:118:14: error: cannot find 'AF_UNIX' in scope
116 |         case AF_INET6:
117 |             try bind(to: sockaddr_in6.make(from: storage))
118 |         case AF_UNIX:
    |              `- error: cannot find 'AF_UNIX' in scope
119 |             try bind(to: sockaddr_un.make(from: storage))
120 |         default:
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:115:26: error: cannot find 'sockaddr_in' in scope
113 |         switch Int32(storage.ss_family) {
114 |         case AF_INET:
115 |             try bind(to: sockaddr_in.make(from: storage))
    |                          `- error: cannot find 'sockaddr_in' in scope
116 |         case AF_INET6:
117 |             try bind(to: sockaddr_in6.make(from: storage))
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:117:26: error: cannot find 'sockaddr_in6' in scope
115 |             try bind(to: sockaddr_in.make(from: storage))
116 |         case AF_INET6:
117 |             try bind(to: sockaddr_in6.make(from: storage))
    |                          `- error: cannot find 'sockaddr_in6' in scope
118 |         case AF_UNIX:
119 |             try bind(to: sockaddr_un.make(from: storage))
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:119:26: error: cannot find 'sockaddr_un' in scope
117 |             try bind(to: sockaddr_in6.make(from: storage))
118 |         case AF_UNIX:
119 |             try bind(to: sockaddr_un.make(from: storage))
    |                          `- error: cannot find 'sockaddr_un' in scope
120 |         default:
121 |             throw SocketError.unsupportedAddress
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:126:41: error: extra argument in call
124 |
125 |     public func listen(maxPendingConnection: Int32 = SOMAXCONN) throws {
126 |         if Socket.listen(file.rawValue, maxPendingConnection) == -1 {
    |                                         `- error: extra argument in call
127 |             let error = SocketError.makeFailed("Listen")
128 |             try close()
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:126:63: error: type '(Int32) throws -> ()' cannot conform to 'BinaryInteger' [#ProtocolTypeNonConformance]
124 |
125 |     public func listen(maxPendingConnection: Int32 = SOMAXCONN) throws {
126 |         if Socket.listen(file.rawValue, maxPendingConnection) == -1 {
    |                                                               |- error: type '(Int32) throws -> ()' cannot conform to 'BinaryInteger' [#ProtocolTypeNonConformance]
    |                                                               |- note: only concrete types such as structs, enums and classes can conform to protocols
    |                                                               `- note: required by referencing operator function '==' on 'BinaryInteger' where 'Self' = '(Int32) throws -> ()'
127 |             let error = SocketError.makeFailed("Listen")
128 |             try close()
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:134:20: error: cannot find 'sockaddr_storage' in scope
132 |
133 |     public func remotePeer() throws -> Address {
134 |         var addr = sockaddr_storage()
    |                    `- error: cannot find 'sockaddr_storage' in scope
135 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
136 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:135:42: error: cannot find type 'sockaddr_storage' in scope
133 |     public func remotePeer() throws -> Address {
134 |         var addr = sockaddr_storage()
135 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
    |                                          `- error: cannot find type 'sockaddr_storage' in scope
136 |
137 |         let result = withUnsafeMutablePointer(to: &addr) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:138:38: error: cannot find 'sockaddr' in scope
136 |
137 |         let result = withUnsafeMutablePointer(to: &addr) {
138 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                                      `- error: cannot find 'sockaddr' in scope
139 |                 Socket.getpeername(file.rawValue, $0, &len)
140 |             }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:138:16: error: generic parameter 'T' could not be inferred
136 |
137 |         let result = withUnsafeMutablePointer(to: &addr) {
138 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                `- error: generic parameter 'T' could not be inferred
139 |                 Socket.getpeername(file.rawValue, $0, &len)
140 |             }
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:139:24: error: type 'Socket' has no member 'getpeername'
137 |         let result = withUnsafeMutablePointer(to: &addr) {
138 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
139 |                 Socket.getpeername(file.rawValue, $0, &len)
    |                        `- error: type 'Socket' has no member 'getpeername'
140 |             }
141 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:136:47: error: cannot find type 'sockaddr_storage' in scope
134 |     }
135 |
136 |     public static func makeAddress(from addr: sockaddr_storage) throws -> Address {
    |                                               `- error: cannot find type 'sockaddr_storage' in scope
137 |         switch Int32(addr.ss_family) {
138 |         case AF_INET:
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:149:20: error: cannot find 'sockaddr_storage' in scope
147 |
148 |     public func sockname() throws -> Address {
149 |         var addr = sockaddr_storage()
    |                    `- error: cannot find 'sockaddr_storage' in scope
150 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
151 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:150:42: error: cannot find type 'sockaddr_storage' in scope
148 |     public func sockname() throws -> Address {
149 |         var addr = sockaddr_storage()
150 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
    |                                          `- error: cannot find type 'sockaddr_storage' in scope
151 |
152 |         let result = withUnsafeMutablePointer(to: &addr) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:153:38: error: cannot find 'sockaddr' in scope
151 |
152 |         let result = withUnsafeMutablePointer(to: &addr) {
153 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                                      `- error: cannot find 'sockaddr' in scope
154 |                 Socket.getsockname(file.rawValue, $0, &len)
155 |             }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:153:16: error: generic parameter 'T' could not be inferred
151 |
152 |         let result = withUnsafeMutablePointer(to: &addr) {
153 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                `- error: generic parameter 'T' could not be inferred
154 |                 Socket.getsockname(file.rawValue, $0, &len)
155 |             }
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:154:24: error: type 'Socket' has no member 'getsockname'
152 |         let result = withUnsafeMutablePointer(to: &addr) {
153 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
154 |                 Socket.getsockname(file.rawValue, $0, &len)
    |                        `- error: type 'Socket' has no member 'getsockname'
155 |             }
156 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:164:20: error: cannot find 'sockaddr_storage' in scope
162 |
163 |     public func accept() throws -> (file: FileDescriptor, addr: sockaddr_storage) {
164 |         var addr = sockaddr_storage()
    |                    `- error: cannot find 'sockaddr_storage' in scope
165 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
166 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:165:42: error: cannot find type 'sockaddr_storage' in scope
163 |     public func accept() throws -> (file: FileDescriptor, addr: sockaddr_storage) {
164 |         var addr = sockaddr_storage()
165 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
    |                                          `- error: cannot find type 'sockaddr_storage' in scope
166 |
167 |         let newFile = withUnsafeMutablePointer(to: &addr) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:168:38: error: cannot find 'sockaddr' in scope
166 |
167 |         let newFile = withUnsafeMutablePointer(to: &addr) {
168 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                                      `- error: cannot find 'sockaddr' in scope
169 |                 FileDescriptor(rawValue: Socket.accept(file.rawValue, $0, &len))
170 |             }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:169:17: error: no exact matches in call to initializer
167 |         let newFile = withUnsafeMutablePointer(to: &addr) {
168 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
169 |                 FileDescriptor(rawValue: Socket.accept(file.rawValue, $0, &len))
    |                 |- error: no exact matches in call to initializer
    |                 `- note: found candidate with type '(any Decoder) throws -> Socket.FileDescriptor'
170 |             }
171 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:168:16: error: generic parameter 'T' could not be inferred
166 |
167 |         let newFile = withUnsafeMutablePointer(to: &addr) {
168 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                `- error: generic parameter 'T' could not be inferred
169 |                 FileDescriptor(rawValue: Socket.accept(file.rawValue, $0, &len))
170 |             }
Swift.UnsafeMutablePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafeMutablePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafeMutablePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:173:27: error: cannot infer contextual base in reference to member 'invalid'
171 |         }
172 |
173 |         guard newFile != .invalid else {
    |                           `- error: cannot infer contextual base in reference to member 'invalid'
174 |             if errno == EWOULDBLOCK {
175 |                 throw SocketError.blocked
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:174:16: error: cannot find 'errno' in scope
172 |
173 |         guard newFile != .invalid else {
174 |             if errno == EWOULDBLOCK {
    |                `- error: cannot find 'errno' in scope
175 |                 throw SocketError.blocked
176 |             } else {
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:187:38: error: cannot find 'sockaddr' in scope
185 |         var addr = address
186 |         let result = withUnsafePointer(to: &addr) {
187 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                                      `- error: cannot find 'sockaddr' in scope
188 |                 Socket.connect(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
189 |             }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:187:16: error: generic parameter 'T' could not be inferred
185 |         var addr = address
186 |         let result = withUnsafePointer(to: &addr) {
187 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
    |                `- error: generic parameter 'T' could not be inferred
188 |                 Socket.connect(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
189 |             }
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
  |             `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:188:31: error: extra arguments at positions #2, #3 in call
182 |     }
183 |
184 |     public func connect<A: SocketAddress>(to address: A) throws {
    |                 `- note: 'connect(to:)' declared here
185 |         var addr = address
186 |         let result = withUnsafePointer(to: &addr) {
187 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
188 |                 Socket.connect(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
    |                               `- error: extra arguments at positions #2, #3 in call
189 |             }
190 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:188:24: error: generic parameter 'A' could not be inferred
182 |     }
183 |
184 |     public func connect<A: SocketAddress>(to address: A) throws {
    |                 `- note: in call to function 'connect(to:)'
185 |         var addr = address
186 |         let result = withUnsafePointer(to: &addr) {
187 |             $0.withMemoryRebound(to: sockaddr.self, capacity: 1) {
188 |                 Socket.connect(file.rawValue, $0, socklen_t(MemoryLayout<A>.size))
    |                        `- error: generic parameter 'A' could not be inferred
189 |             }
190 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:191:30: error: cannot find 'errno' in scope
189 |             }
190 |         }
191 |         guard result >= 0 || errno == EISCONN else {
    |                              `- error: cannot find 'errno' in scope
192 |             if errno == EINPROGRESS {
193 |                 throw SocketError.blocked
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:192:16: error: cannot find 'errno' in scope
190 |         }
191 |         guard result >= 0 || errno == EISCONN else {
192 |             if errno == EINPROGRESS {
    |                `- error: cannot find 'errno' in scope
193 |                 throw SocketError.blocked
194 |             } else {
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:215:21: error: instance member 'read' cannot be used on type 'Socket'; did you mean to use a value of this type instead?
213 |
214 |     private func read(into buffer: UnsafeMutablePointer<UInt8>, length: Int) throws -> Int {
215 |         let count = Socket.read(file.rawValue, buffer, length)
    |                     `- error: instance member 'read' cannot be used on type 'Socket'; did you mean to use a value of this type instead?
216 |         guard count > 0 else {
217 |             if errno == EWOULDBLOCK {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:215:56: error: extra argument in call
213 |
214 |     private func read(into buffer: UnsafeMutablePointer<UInt8>, length: Int) throws -> Int {
215 |         let count = Socket.read(file.rawValue, buffer, length)
    |                                                        `- error: extra argument in call
216 |         guard count > 0 else {
217 |             if errno == EWOULDBLOCK {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:215:48: error: cannot convert value of type 'UnsafeMutablePointer<UInt8>' to expected argument type 'Int'
213 |
214 |     private func read(into buffer: UnsafeMutablePointer<UInt8>, length: Int) throws -> Int {
215 |         let count = Socket.read(file.rawValue, buffer, length)
    |                                                `- error: cannot convert value of type 'UnsafeMutablePointer<UInt8>' to expected argument type 'Int'
216 |         guard count > 0 else {
217 |             if errno == EWOULDBLOCK {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:217:16: error: cannot find 'errno' in scope
215 |         let count = Socket.read(file.rawValue, buffer, length)
216 |         guard count > 0 else {
217 |             if errno == EWOULDBLOCK {
    |                `- error: cannot find 'errno' in scope
218 |                 throw SocketError.blocked
219 |             } else if errno == EBADF || count == 0 {
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:219:23: error: cannot find 'errno' in scope
217 |             if errno == EWOULDBLOCK {
218 |                 throw SocketError.blocked
219 |             } else if errno == EBADF || count == 0 {
    |                       `- error: cannot find 'errno' in scope
220 |                 throw SocketError.disconnected
221 |             } else {
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:238:27: error: no exact matches in call to instance method 'write'
226 |     }
227 |
228 |     public func write(_ data: Data, from index: Data.Index = 0) throws -> Data.Index {
    |                 `- note: found this candidate
229 |         precondition(index >= 0)
230 |         guard index < data.endIndex else { return data.endIndex }
    :
235 |     }
236 |
237 |     private func write(_ pointer: UnsafeRawPointer, length: Int) throws -> Int {
    |                  `- note: found this candidate
238 |         let sent = Socket.write(file.rawValue, pointer, length)
    |                           `- error: no exact matches in call to instance method 'write'
239 |         guard sent > 0 else {
240 |             if errno == EWOULDBLOCK {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:240:16: error: cannot find 'errno' in scope
238 |         let sent = Socket.write(file.rawValue, pointer, length)
239 |         guard sent > 0 else {
240 |             if errno == EWOULDBLOCK {
    |                `- error: cannot find 'errno' in scope
241 |                 throw SocketError.blocked
242 |             } else if errno == EBADF {
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:242:23: error: cannot find 'errno' in scope
240 |             if errno == EWOULDBLOCK {
241 |                 throw SocketError.blocked
242 |             } else if errno == EBADF {
    |                       `- error: cannot find 'errno' in scope
243 |                 throw SocketError.disconnected
244 |             } else {
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:252:40: error: type '() throws -> ()' cannot conform to 'BinaryInteger' [#ProtocolTypeNonConformance]
250 |
251 |     public func close() throws {
252 |         if Socket.close(file.rawValue) == -1 {
    |                                        |- error: type '() throws -> ()' cannot conform to 'BinaryInteger' [#ProtocolTypeNonConformance]
    |                                        |- note: only concrete types such as structs, enums and classes can conform to protocols
    |                                        `- note: required by referencing operator function '==' on 'BinaryInteger' where 'Self' = '() throws -> ()'
253 |             throw SocketError.makeFailed("Close")
254 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:340:32: error: cannot find 'SO_REUSEADDR' in scope
338 | public extension SocketOption where Self == BoolSocketOption {
339 |     static var localAddressReuse: Self {
340 |         BoolSocketOption(name: SO_REUSEADDR)
    |                                `- error: cannot find 'SO_REUSEADDR' in scope
341 |     }
342 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:353:33: error: cannot find 'SO_SNDBUF' in scope
351 | public extension SocketOption where Self == Int32SocketOption {
352 |     static var sendBufferSize: Self {
353 |         Int32SocketOption(name: SO_SNDBUF)
    |                                 `- error: cannot find 'SO_SNDBUF' in scope
354 |     }
355 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:357:33: error: cannot find 'SO_RCVBUF' in scope
355 |
356 |     static var receiveBufferSize: Self {
357 |         Int32SocketOption(name: SO_RCVBUF)
    |                                 `- error: cannot find 'SO_RCVBUF' in scope
358 |     }
359 | }
[#ProtocolTypeNonConformance]: <https://docs.swift.org/compiler/documentation/diagnostics/protocol-type-non-conformance>
[16/23] Compiling FlyingSocks SocketPool+kQueue.swift
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:42:37: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
 42 |         public var rawValue: Socket.FileDescriptorType
    |                                     `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:106:17: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
104 |     }
105 |
106 |     public func suspendSocket(_ socket: Socket, untilReadyFor events: Socket.Events) async throws {
    |                 `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
107 |         guard state == .running || state == .ready else { throw Error("Not Ready") }
108 |         return try await withIdentifiableThrowingContinuation(isolation: self) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:112:23: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
110 |         } onCancel: { id in
111 |             Task {
112 |                 await self.resumeContinuation(id: id, with: .failure(CancellationError()), for: socket.file)
    |                       `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
113 |             }
114 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:106:17: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
104 |     }
105 |
106 |     public func suspendSocket(_ socket: Socket, untilReadyFor events: Socket.Events) async throws {
    |                 `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
107 |         guard state == .running || state == .ready else { throw Error("Not Ready") }
108 |         return try await withIdentifiableThrowingContinuation(isolation: self) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:119:13: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
117 |     private func getNotifications() async throws -> [EventNotification] {
118 |         try Task.checkCancellation()
119 |         let queue = UncheckedSendable(wrappedValue: queue)
    |             `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
120 |         return try await withIdentifiableThrowingContinuation(isolation: self) { continuation in
121 |             dispatchQueue.async {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:117:18: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
115 |     }
116 |
117 |     private func getNotifications() async throws -> [EventNotification] {
    |                  `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
118 |         try Task.checkCancellation()
119 |         let queue = UncheckedSendable(wrappedValue: queue)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:128:26: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
126 |             }
127 |         } onCancel: { _ in
128 |             Task { await self.stopQueue() }
    |                          `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
129 |         }
130 |     }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:117:18: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
115 |     }
116 |
117 |     private func getNotifications() async throws -> [EventNotification] {
    |                  `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
118 |         try Task.checkCancellation()
119 |         let queue = UncheckedSendable(wrappedValue: queue)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:178:18: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
176 |     }
177 |
178 |     private func suspendUntilContinuationsExist() async throws {
    |                  `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
179 |         try await withIdentifiableThrowingContinuation(isolation: self) {
180 |             loop = $0
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:182:26: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
180 |             loop = $0
181 |         } onCancel: { id in
182 |             Task { await self.cancelLoopContinuation(with: id) }
    |                          `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
183 |         }
184 |     }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:178:18: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
176 |     }
177 |
178 |     private func suspendUntilContinuationsExist() async throws {
    |                  `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
179 |         try await withIdentifiableThrowingContinuation(isolation: self) {
180 |             loop = $0
[17/23] Compiling FlyingSocks SocketPool.swift
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:42:37: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
 42 |         public var rawValue: Socket.FileDescriptorType
    |                                     `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:106:17: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
104 |     }
105 |
106 |     public func suspendSocket(_ socket: Socket, untilReadyFor events: Socket.Events) async throws {
    |                 `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
107 |         guard state == .running || state == .ready else { throw Error("Not Ready") }
108 |         return try await withIdentifiableThrowingContinuation(isolation: self) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:112:23: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
110 |         } onCancel: { id in
111 |             Task {
112 |                 await self.resumeContinuation(id: id, with: .failure(CancellationError()), for: socket.file)
    |                       `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
113 |             }
114 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:106:17: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
104 |     }
105 |
106 |     public func suspendSocket(_ socket: Socket, untilReadyFor events: Socket.Events) async throws {
    |                 `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
107 |         guard state == .running || state == .ready else { throw Error("Not Ready") }
108 |         return try await withIdentifiableThrowingContinuation(isolation: self) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:119:13: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
117 |     private func getNotifications() async throws -> [EventNotification] {
118 |         try Task.checkCancellation()
119 |         let queue = UncheckedSendable(wrappedValue: queue)
    |             `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
120 |         return try await withIdentifiableThrowingContinuation(isolation: self) { continuation in
121 |             dispatchQueue.async {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:117:18: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
115 |     }
116 |
117 |     private func getNotifications() async throws -> [EventNotification] {
    |                  `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
118 |         try Task.checkCancellation()
119 |         let queue = UncheckedSendable(wrappedValue: queue)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:128:26: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
126 |             }
127 |         } onCancel: { _ in
128 |             Task { await self.stopQueue() }
    |                          `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
129 |         }
130 |     }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:117:18: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
115 |     }
116 |
117 |     private func getNotifications() async throws -> [EventNotification] {
    |                  `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
118 |         try Task.checkCancellation()
119 |         let queue = UncheckedSendable(wrappedValue: queue)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:178:18: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
176 |     }
177 |
178 |     private func suspendUntilContinuationsExist() async throws {
    |                  `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
179 |         try await withIdentifiableThrowingContinuation(isolation: self) {
180 |             loop = $0
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:182:26: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
180 |             loop = $0
181 |         } onCancel: { id in
182 |             Task { await self.cancelLoopContinuation(with: id) }
    |                          `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
183 |         }
184 |     }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool.swift:178:18: warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
176 |     }
177 |
178 |     private func suspendUntilContinuationsExist() async throws {
    |                  `- warning: capture of non-sendable type 'Queue.Type' in an isolated closure; this is an error in the Swift 6 language mode
179 |         try await withIdentifiableThrowingContinuation(isolation: self) {
180 |             loop = $0
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/23] Emitting module FlyingSocks
/host/spi-builder-workspace/FlyingSocks/Sources/AllocatedLock.swift:38:18: error: cannot find type 'Storage' in scope
 36 |
 37 |     @usableFromInline
 38 |     let storage: Storage
    |                  `- error: cannot find type 'Storage' in scope
 39 |
 40 |     public init(initialState: State) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:42:37: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
 42 |         public var rawValue: Socket.FileDescriptorType
    |                                     `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/IdentifiableContinuation.swift:49:13: warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 47 | @_unsafeInheritExecutor
 48 | @_spi(Private)
 49 | public func withIdentifiableContinuation<T>(
    |             `- warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 50 |   isolation: isolated some Actor,
 51 |   function: String = #function,
/host/spi-builder-workspace/FlyingSocks/Sources/IdentifiableContinuation.swift:98:13: warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 96 | @_unsafeInheritExecutor
 97 | @_spi(Private)
 98 | public func withIdentifiableThrowingContinuation<T>(
    |             `- warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 99 |   isolation: isolated some Actor,
100 |   function: String = #function,
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:44:38: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
    :
 42 |         public var rawValue: Socket.FileDescriptorType
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
    |                                      `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 45 |             self.rawValue = rawValue
 46 |         }
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:41:19: error: type 'Socket.FileDescriptor' does not conform to protocol 'Hashable'
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
    |                   `- error: type 'Socket.FileDescriptor' does not conform to protocol 'Hashable'
 42 |         public var rawValue: Socket.FileDescriptorType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Hashable', preventing synthesized conformance of 'Socket.FileDescriptor' to 'Hashable'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:41:19: error: type 'Socket.FileDescriptor' does not conform to protocol 'RawRepresentable'
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
    |                   `- error: type 'Socket.FileDescriptor' does not conform to protocol 'RawRepresentable'
 42 |         public var rawValue: Socket.FileDescriptorType
 43 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:41:19: error: type 'Socket.FileDescriptor' does not conform to protocol 'Equatable'
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
    |                   |- error: type 'Socket.FileDescriptor' does not conform to protocol 'Equatable'
    |                   `- note: add stubs for conformance
 42 |         public var rawValue: Socket.FileDescriptorType
    |                    `- note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'Socket.FileDescriptor' to 'Equatable'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
Swift.==:1:24: note: candidate would match if 'Socket.FileDescriptor.RawValue' conformed to 'Equatable'
1 | @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
  |                        `- note: candidate would match if 'Socket.FileDescriptor.RawValue' conformed to 'Equatable'
Swift.FloatingPoint.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to 'FloatingPoint'
1 | protocol FloatingPoint {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'FloatingPoint'
3 |
Swift.BinaryInteger.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to 'BinaryInteger'
1 | protocol BinaryInteger {
2 | public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'BinaryInteger'
3 |
Swift._Pointer.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to '_Pointer'
1 | protocol _Pointer {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to '_Pointer'
3 |
Swift._Pointer.==:2:31: note: candidate would match if 'Socket.FileDescriptor' conformed to '_Pointer'
1 | protocol _Pointer {
2 | @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
  |                               `- note: candidate would match if 'Socket.FileDescriptor' conformed to '_Pointer'
3 |
Swift.Strideable.==:2:31: note: candidate would match if 'Socket.FileDescriptor' conformed to 'Strideable'
1 | protocol Strideable {
2 | @inlinable public static func == (x: Self, y: Self) -> Bool}
  |                               `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'Strideable'
3 |
Swift.StringProtocol.==:2:31: note: candidate would match if 'Socket.FileDescriptor' conformed to 'StringProtocol'
1 | protocol StringProtocol {
2 | @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
  |                               `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'StringProtocol'
3 |
Swift.SIMD.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to 'SIMD'
1 | protocol SIMD {
2 | public static func == (a: Self, b: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'SIMD'
3 |
Foundation.__BridgedNSError.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to '__BridgedNSError'
1 | protocol __BridgedNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to '__BridgedNSError'
3 |
Foundation._BridgedStoredNSError.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to '_BridgedStoredNSError'
1 | protocol _BridgedStoredNSError {
2 | public static func == (lhs: Self, rhs: Self) -> Bool}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to '_BridgedStoredNSError'
3 |
FoundationEssentials.AttributedStringProtocol.==:2:20: note: candidate would match if 'Socket.FileDescriptor' conformed to 'AttributedStringProtocol'
1 | protocol AttributedStringProtocol {
2 | public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
  |                    `- note: candidate would match if 'Socket.FileDescriptor' conformed to 'AttributedStringProtocol'
3 |
Swift.RawRepresentable.RawValue:2:16: note: protocol requires nested type 'RawValue'
1 | protocol RawRepresentable {
2 | associatedtype RawValue}
  |                `- note: protocol requires nested type 'RawValue'
3 |
Swift.Equatable.==:2:13: note: protocol requires function '==' with type '(Socket.FileDescriptor, Socket.FileDescriptor) -> Bool'
1 | protocol Equatable {
2 | static func == (lhs: Self, rhs: Self) -> Bool}
  |             `- note: protocol requires function '==' with type '(Socket.FileDescriptor, Socket.FileDescriptor) -> Bool'
3 |
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:112:34: error: cannot find type 'sockaddr_storage' in scope
110 |     }
111 |
112 |     public func bind(to storage: sockaddr_storage) throws {
    |                                  `- error: cannot find type 'sockaddr_storage' in scope
113 |         switch Int32(storage.ss_family) {
114 |         case AF_INET:
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:125:54: error: cannot find 'SOMAXCONN' in scope
123 |     }
124 |
125 |     public func listen(maxPendingConnection: Int32 = SOMAXCONN) throws {
    |                                                      `- error: cannot find 'SOMAXCONN' in scope
126 |         if Socket.listen(file.rawValue, maxPendingConnection) == -1 {
127 |             let error = SocketError.makeFailed("Listen")
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:163:65: error: cannot find type 'sockaddr_storage' in scope
161 |     }
162 |
163 |     public func accept() throws -> (file: FileDescriptor, addr: sockaddr_storage) {
    |                                                                 `- error: cannot find type 'sockaddr_storage' in scope
164 |         var addr = sockaddr_storage()
165 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:266:57: error: cannot find 'O_NONBLOCK' in scope
264 |         }
265 |
266 |         public static let nonBlocking = Flags(rawValue: O_NONBLOCK)
    |                                                         `- error: cannot find 'O_NONBLOCK' in scope
267 |     }
268 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:39:24: error: cannot find type 'sa_family_t' in scope
 37 |
 38 | public protocol SocketAddress: Sendable {
 39 |     static var family: sa_family_t { get }
    |                        `- error: cannot find type 'sa_family_t' in scope
 40 | }
 41 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:42:46: error: cannot find type 'sockaddr_in' in scope
 40 | }
 41 |
 42 | public extension SocketAddress where Self == sockaddr_in {
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 43 |
 44 |     static func inet(port: UInt16) -> Self {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:55:46: error: cannot find type 'sockaddr_in6' in scope
 53 | }
 54 |
 55 | public extension SocketAddress where Self == sockaddr_in6 {
    |                                              `- error: cannot find type 'sockaddr_in6' in scope
 56 |
 57 |     static func inet6(port: UInt16) -> Self {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:72:46: error: cannot find type 'sockaddr_un' in scope
 70 | }
 71 |
 72 | public extension SocketAddress where Self == sockaddr_un {
    |                                              `- error: cannot find type 'sockaddr_un' in scope
 73 |
 74 |     static func unix(path: String) -> Self {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:80:11: error: cannot find type 'sockaddr_in' in scope
 78 |
 79 | #if compiler(>=6.0)
 80 | extension sockaddr_in: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_in' in scope
 81 |     public static let family = sa_family_t(AF_INET)
 82 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:84:11: error: cannot find type 'sockaddr_in6' in scope
 82 | }
 83 |
 84 | extension sockaddr_in6: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_in6' in scope
 85 |     public static let family = sa_family_t(AF_INET6)
 86 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:88:11: error: cannot find type 'sockaddr_un' in scope
 86 | }
 87 |
 88 | extension sockaddr_un: SocketAddress, @retroactive @unchecked Sendable {
    |           `- error: cannot find type 'sockaddr_un' in scope
 89 |     public static let family = sa_family_t(AF_UNIX)
 90 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:106:36: error: cannot find type 'sockaddr_storage' in scope
104 |
105 | public extension SocketAddress {
106 |     static func make(from storage: sockaddr_storage) throws -> Self {
    |                                    `- error: cannot find type 'sockaddr_storage' in scope
107 |         guard storage.ss_family == family else {
108 |             throw SocketError.unsupportedAddress
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:118:27: error: cannot find type 'sockaddr_storage' in scope
116 |     }
117 |
118 |     func makeStorage() -> sockaddr_storage {
    |                           `- error: cannot find type 'sockaddr_storage' in scope
119 |         var addr = self
120 |         return withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:136:47: error: cannot find type 'sockaddr_storage' in scope
134 |     }
135 |
136 |     public static func makeAddress(from addr: sockaddr_storage) throws -> Address {
    |                                               `- error: cannot find type 'sockaddr_storage' in scope
137 |         switch Int32(addr.ss_family) {
138 |         case AF_INET:
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:164:77: error: cannot find type 'sockaddr_in' in scope
162 |     }
163 |
164 |     static func makeAddressINET(fromIP4 ip: String, port: UInt16) throws -> sockaddr_in {
    |                                                                             `- error: cannot find type 'sockaddr_in' in scope
165 |         var address = Socket.makeAddressINET(port: port)
166 |         address.sin_addr = try Socket.makeInAddr(fromIP4: ip)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:170:63: error: cannot find type 'in_addr' in scope
168 |     }
169 |
170 |     static func makeInAddr(fromIP4 address: String) throws -> in_addr {
    |                                                               `- error: cannot find type 'in_addr' in scope
171 |         var addr = in_addr()
172 |         guard address.withCString({ Socket.inet_pton(AF_INET, $0, &addr) }) == 1 else {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:178:63: error: cannot find type 'in6_addr' in scope
176 |     }
177 |
178 |     static func makeInAddr(fromIP6 address: String) throws -> in6_addr {
    |                                                               `- error: cannot find type 'in6_addr' in scope
179 |         var addr = in6_addr()
180 |         guard address.withCString({ Socket.inet_pton(AF_INET6, $0, &addr) }) == 1 else {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:186:35: error: cannot find type 'sockaddr_un' in scope
184 |     }
185 |
186 |     static func unlink(_ address: sockaddr_un) throws {
    |                                   `- error: cannot find type 'sockaddr_un' in scope
187 |         var address = address
188 |         guard Socket.unlink(&address.sun_path.0) == 0 else {
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:107:17: error: cannot find type 'pollfd' in scope
105 |
106 | extension Poll.Entry {
107 |     var pollfd: pollfd {
    |                 `- error: cannot find type 'pollfd' in scope
108 |         Socket.pollfd(fd: file.rawValue,
109 |                       events: Int16(events.pollEvents.rawValue),
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:116:33: error: cannot find type 'pollfd' in scope
114 | extension EventNotification {
115 |
116 |     static func make(from poll: pollfd) -> Self? {
    |                                 `- error: cannot find type 'pollfd' in scope
117 |         let events = POLLEvents(poll.events)
118 |         let revents = POLLEvents(poll.revents)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:157:44: error: cannot find 'POLLIN' in scope
155 |     var rawValue: Int32
156 |
157 |     static let read = POLLEvents(rawValue: POLLIN)
    |                                            `- error: cannot find 'POLLIN' in scope
158 |     static let write = POLLEvents(rawValue: POLLOUT)
159 |     static let err = POLLEvents(rawValue: POLLERR)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:158:45: error: cannot find 'POLLOUT' in scope
156 |
157 |     static let read = POLLEvents(rawValue: POLLIN)
158 |     static let write = POLLEvents(rawValue: POLLOUT)
    |                                             `- error: cannot find 'POLLOUT' in scope
159 |     static let err = POLLEvents(rawValue: POLLERR)
160 |     static let hup = POLLEvents(rawValue: POLLHUP)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:159:43: error: cannot find 'POLLERR' in scope
157 |     static let read = POLLEvents(rawValue: POLLIN)
158 |     static let write = POLLEvents(rawValue: POLLOUT)
159 |     static let err = POLLEvents(rawValue: POLLERR)
    |                                           `- error: cannot find 'POLLERR' in scope
160 |     static let hup = POLLEvents(rawValue: POLLHUP)
161 |     static let nval = POLLEvents(rawValue: POLLNVAL)
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:160:43: error: cannot find 'POLLHUP' in scope
158 |     static let write = POLLEvents(rawValue: POLLOUT)
159 |     static let err = POLLEvents(rawValue: POLLERR)
160 |     static let hup = POLLEvents(rawValue: POLLHUP)
    |                                           `- error: cannot find 'POLLHUP' in scope
161 |     static let nval = POLLEvents(rawValue: POLLNVAL)
162 |
/host/spi-builder-workspace/FlyingSocks/Sources/SocketPool+Poll.swift:161:44: error: cannot find 'POLLNVAL' in scope
159 |     static let err = POLLEvents(rawValue: POLLERR)
160 |     static let hup = POLLEvents(rawValue: POLLHUP)
161 |     static let nval = POLLEvents(rawValue: POLLNVAL)
    |                                            `- error: cannot find 'POLLNVAL' in scope
162 |
163 |     static let errors: POLLEvents = [.err, .hup, .nval]
[19/23] Compiling FlyingSocks AsyncSocket.swift
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:42:37: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
 42 |         public var rawValue: Socket.FileDescriptorType
    |                                     `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:266:57: error: cannot find 'O_NONBLOCK' in scope
264 |         }
265 |
266 |         public static let nonBlocking = Flags(rawValue: O_NONBLOCK)
    |                                                         `- error: cannot find 'O_NONBLOCK' in scope
267 |     }
268 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:118:27: error: cannot find type 'sockaddr_storage' in scope
116 |     }
117 |
118 |     func makeStorage() -> sockaddr_storage {
    |                           `- error: cannot find type 'sockaddr_storage' in scope
119 |         var addr = self
120 |         return withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/FlyingSocks/Sources/AsyncSocket.swift:86:98: error: type 'Socket' has no member 'stream'
 84 |                                  timeout: TimeInterval = 5) async throws -> Self {
 85 |         try await withThrowingTimeout(seconds: timeout) {
 86 |             let socket = try Socket(domain: Int32(address.makeStorage().ss_family), type: Socket.stream)
    |                                                                                                  `- error: type 'Socket' has no member 'stream'
 87 |             let asyncSocket = try AsyncSocket(socket: socket, pool: pool)
 88 |             try await asyncSocket.connect(to: address)
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:163:65: error: cannot find type 'sockaddr_storage' in scope
161 |     }
162 |
163 |     public func accept() throws -> (file: FileDescriptor, addr: sockaddr_storage) {
    |                                                                 `- error: cannot find type 'sockaddr_storage' in scope
164 |         var addr = sockaddr_storage()
165 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
/host/spi-builder-workspace/FlyingSocks/Sources/IdentifiableContinuation.swift:49:13: warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 47 | @_unsafeInheritExecutor
 48 | @_spi(Private)
 49 | public func withIdentifiableContinuation<T>(
    |             `- warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 50 |   isolation: isolated some Actor,
 51 |   function: String = #function,
/host/spi-builder-workspace/FlyingSocks/Sources/IdentifiableContinuation.swift:98:13: warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 96 | @_unsafeInheritExecutor
 97 | @_spi(Private)
 98 | public func withIdentifiableThrowingContinuation<T>(
    |             `- warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 99 |   isolation: isolated some Actor,
100 |   function: String = #function,
[20/23] Compiling FlyingSocks IdentifiableContinuation.swift
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:42:37: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
 42 |         public var rawValue: Socket.FileDescriptorType
    |                                     `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:266:57: error: cannot find 'O_NONBLOCK' in scope
264 |         }
265 |
266 |         public static let nonBlocking = Flags(rawValue: O_NONBLOCK)
    |                                                         `- error: cannot find 'O_NONBLOCK' in scope
267 |     }
268 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:118:27: error: cannot find type 'sockaddr_storage' in scope
116 |     }
117 |
118 |     func makeStorage() -> sockaddr_storage {
    |                           `- error: cannot find type 'sockaddr_storage' in scope
119 |         var addr = self
120 |         return withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/FlyingSocks/Sources/AsyncSocket.swift:86:98: error: type 'Socket' has no member 'stream'
 84 |                                  timeout: TimeInterval = 5) async throws -> Self {
 85 |         try await withThrowingTimeout(seconds: timeout) {
 86 |             let socket = try Socket(domain: Int32(address.makeStorage().ss_family), type: Socket.stream)
    |                                                                                                  `- error: type 'Socket' has no member 'stream'
 87 |             let asyncSocket = try AsyncSocket(socket: socket, pool: pool)
 88 |             try await asyncSocket.connect(to: address)
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:163:65: error: cannot find type 'sockaddr_storage' in scope
161 |     }
162 |
163 |     public func accept() throws -> (file: FileDescriptor, addr: sockaddr_storage) {
    |                                                                 `- error: cannot find type 'sockaddr_storage' in scope
164 |         var addr = sockaddr_storage()
165 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
/host/spi-builder-workspace/FlyingSocks/Sources/IdentifiableContinuation.swift:49:13: warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 47 | @_unsafeInheritExecutor
 48 | @_spi(Private)
 49 | public func withIdentifiableContinuation<T>(
    |             `- warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 50 |   isolation: isolated some Actor,
 51 |   function: String = #function,
/host/spi-builder-workspace/FlyingSocks/Sources/IdentifiableContinuation.swift:98:13: warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 96 | @_unsafeInheritExecutor
 97 | @_spi(Private)
 98 | public func withIdentifiableThrowingContinuation<T>(
    |             `- warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 99 |   isolation: isolated some Actor,
100 |   function: String = #function,
[21/23] Compiling FlyingSocks Logging+OSLog.swift
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:42:37: error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 35 | import Foundation
 36 |
 37 | public struct Socket: Sendable, Hashable {
    |               `- note: 'Socket' declared here
 38 |
 39 |     public let file: FileDescriptor
 40 |
 41 |     public struct FileDescriptor: RawRepresentable, Sendable, Hashable {
 42 |         public var rawValue: Socket.FileDescriptorType
    |                                     `- error: 'FileDescriptorType' is not a member type of struct 'FlyingSocks.Socket'
 43 |
 44 |         public init(rawValue: Socket.FileDescriptorType) {
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:266:57: error: cannot find 'O_NONBLOCK' in scope
264 |         }
265 |
266 |         public static let nonBlocking = Flags(rawValue: O_NONBLOCK)
    |                                                         `- error: cannot find 'O_NONBLOCK' in scope
267 |     }
268 | }
/host/spi-builder-workspace/FlyingSocks/Sources/SocketAddress.swift:118:27: error: cannot find type 'sockaddr_storage' in scope
116 |     }
117 |
118 |     func makeStorage() -> sockaddr_storage {
    |                           `- error: cannot find type 'sockaddr_storage' in scope
119 |         var addr = self
120 |         return withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/FlyingSocks/Sources/AsyncSocket.swift:86:98: error: type 'Socket' has no member 'stream'
 84 |                                  timeout: TimeInterval = 5) async throws -> Self {
 85 |         try await withThrowingTimeout(seconds: timeout) {
 86 |             let socket = try Socket(domain: Int32(address.makeStorage().ss_family), type: Socket.stream)
    |                                                                                                  `- error: type 'Socket' has no member 'stream'
 87 |             let asyncSocket = try AsyncSocket(socket: socket, pool: pool)
 88 |             try await asyncSocket.connect(to: address)
/host/spi-builder-workspace/FlyingSocks/Sources/Socket.swift:163:65: error: cannot find type 'sockaddr_storage' in scope
161 |     }
162 |
163 |     public func accept() throws -> (file: FileDescriptor, addr: sockaddr_storage) {
    |                                                                 `- error: cannot find type 'sockaddr_storage' in scope
164 |         var addr = sockaddr_storage()
165 |         var len = socklen_t(MemoryLayout<sockaddr_storage>.size)
/host/spi-builder-workspace/FlyingSocks/Sources/IdentifiableContinuation.swift:49:13: warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 47 | @_unsafeInheritExecutor
 48 | @_spi(Private)
 49 | public func withIdentifiableContinuation<T>(
    |             `- warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 50 |   isolation: isolated some Actor,
 51 |   function: String = #function,
/host/spi-builder-workspace/FlyingSocks/Sources/IdentifiableContinuation.swift:98:13: warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 96 | @_unsafeInheritExecutor
 97 | @_spi(Private)
 98 | public func withIdentifiableThrowingContinuation<T>(
    |             `- warning: '@_unsafeInheritExecutor' is deprecated; consider an 'isolated' parameter defaulted to '#isolation' instead; this is an error in the Swift 6 language mode
 99 |   isolation: isolated some Actor,
100 |   function: String = #function,
[22/23] Compiling FlyingSocks SwiftSupport.swift
[23/23] Compiling FlyingSocks Task+Timeout.swift
BUILD FAILURE 6.2 android