Build Information
Failed to build Kitura-CouchDB, reference master (5e8c5e
), with Swift 6.1 for Android on 27 May 2025 23:07:52 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
"CouchDBTest.swift",
"DBTests.swift",
"DocumentBulkUpdateTests.swift",
"DocumentCrudTests.swift",
"DocumentViewTests.swift",
"UUIDTests.swift",
"Utils.swift"
],
"target_dependencies" : [
"CouchDB"
],
"type" : "test"
},
{
"c99name" : "CouchDBSample",
"module_type" : "SwiftTarget",
"name" : "CouchDBSample",
"path" : "Sources/CouchDBSample",
"product_memberships" : [
"CouchDBSample"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"CouchDB"
],
"type" : "executable"
},
{
"c99name" : "CouchDB",
"module_type" : "SwiftTarget",
"name" : "CouchDB",
"path" : "Sources/CouchDB",
"product_dependencies" : [
"LoggerAPI",
"KituraNet"
],
"product_memberships" : [
"CouchDB",
"CouchDBSample"
],
"sources" : [
"ConnectionProperties.swift",
"CouchDBClient.swift",
"CouchDBUtils.swift",
"CouchErrorResponse.swift",
"CouchStructures/AllDatabaseDocuments.swift",
"CouchStructures/BulkDocuments.swift",
"CouchStructures/BulkResponse.swift",
"CouchStructures/DesignDocument.swift",
"CouchStructures/Document.swift",
"CouchStructures/DocumentResponse.swift",
"Database.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/Kitura/Kitura-net.git
Fetching https://github.com/Kitura/LoggerAPI.git
[1/771] Fetching loggerapi
[772/10315] Fetching loggerapi, kitura-net
Fetched https://github.com/Kitura/LoggerAPI.git from cache (0.76s)
Fetched https://github.com/Kitura/Kitura-net.git from cache (0.77s)
Computing version for https://github.com/Kitura/Kitura-net.git
Computed https://github.com/Kitura/Kitura-net.git at 2.4.200 (1.38s)
Fetching https://github.com/Kitura/BlueSignals.git
Fetching https://github.com/Kitura/BlueSSLService.git
Fetching https://github.com/Kitura/BlueSocket.git
[1/2077] Fetching bluesslservice
[2078/5019] Fetching bluesslservice, bluesocket
[2637/5700] Fetching bluesslservice, bluesocket, bluesignals
Fetched https://github.com/Kitura/BlueSignals.git from cache (0.38s)
Fetched https://github.com/Kitura/BlueSSLService.git from cache (0.38s)
Fetched https://github.com/Kitura/BlueSocket.git from cache (0.38s)
Computing version for https://github.com/Kitura/LoggerAPI.git
Computed https://github.com/Kitura/LoggerAPI.git at 1.9.200 (1.00s)
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.43s)
Computing version for https://github.com/Kitura/BlueSignals.git
Computed https://github.com/Kitura/BlueSignals.git at 1.0.200 (1.03s)
Computing version for https://github.com/Kitura/BlueSSLService.git
Computed https://github.com/Kitura/BlueSSLService.git at 1.0.200 (0.70s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.26s)
Computing version for https://github.com/Kitura/BlueSocket.git
Computed https://github.com/Kitura/BlueSocket.git at 1.0.200 (0.98s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (2.58s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.61s)
Creating working copy for https://github.com/Kitura/Kitura-net.git
Working copy of https://github.com/Kitura/Kitura-net.git resolved at 2.4.200
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/Kitura/LoggerAPI.git
Working copy of https://github.com/Kitura/LoggerAPI.git resolved at 1.9.200
Creating working copy for https://github.com/Kitura/BlueSignals.git
Working copy of https://github.com/Kitura/BlueSignals.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/BlueSSLService.git
Working copy of https://github.com/Kitura/BlueSSLService.git resolved at 1.0.200
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
Creating working copy for https://github.com/Kitura/BlueSocket.git
Working copy of https://github.com/Kitura/BlueSocket.git resolved at 1.0.200
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
Building for debugging...
[0/21] Write sources
[8/21] Compiling CHTTPParser utils.c
[9/21] Compiling CHTTPParser http_parser.c
[10/21] Write swift-version-24593BA9C3E375BF.txt
[12/32] Compiling Logging LogHandler.swift
[13/32] Compiling Logging MetadataProvider.swift
[14/32] Emitting module Logging
[15/32] Compiling Logging Locks.swift
[16/32] Compiling Logging Logging.swift
[17/33] Wrapping AST for Logging for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/35] Emitting module Socket
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:52:39: error: cannot find 'in_addr_t' in scope
50 | public static let SOCKET_INVALID_DESCRIPTOR = Int32(-1)
51 |
52 | public static let INADDR_ANY = in_addr_t(0)
| `- error: cannot find 'in_addr_t' in scope
53 |
54 | public static let NO_HOSTNAME = "No hostname"
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:320:13: error: cannot find type 'sockaddr_in' in scope
318 |
319 | /// sockaddr_in
320 | case ipv4(sockaddr_in)
| `- error: cannot find type 'sockaddr_in' in scope
321 |
322 | /// sockaddr_in6
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:323:13: error: cannot find type 'sockaddr_in6' in scope
321 |
322 | /// sockaddr_in6
323 | case ipv6(sockaddr_in6)
| `- error: cannot find type 'sockaddr_in6' in scope
324 |
325 | /// sockaddr_un
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:326:13: error: cannot find type 'sockaddr_un' in scope
324 |
325 | /// sockaddr_un
326 | case unix(sockaddr_un)
| `- error: cannot find type 'sockaddr_un' in scope
327 |
328 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:43:56: error: cannot find type 'sockaddr' in scope
41 | /// - Returns: The result of executing the closure.
42 | ///
43 | func withSockAddrPointer<Result>(body: (UnsafePointer<sockaddr>, socklen_t) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'sockaddr' in scope
44 |
45 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:86:47: error: cannot find type 'sockaddr' in scope
84 | /// - Returns: Newly initialized Socket.Address.
85 | ///
86 | init?(addressProvider: (UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) throws -> Void) rethrows {
| `- error: cannot find type 'sockaddr' in scope
87 |
88 | var addressStorage = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:146:27: error: cannot find '__DARWIN_FD_SETSIZE' in scope
144 | // __DARWIN_FD_SETSIZE is number of *bits*, so divide by number bits in each element to get element count
145 | // at present this is 1024 / 32 == 32
146 | let __fd_set_count = Int(__DARWIN_FD_SETSIZE) / 32
| `- error: cannot find '__DARWIN_FD_SETSIZE' in scope
147 |
148 | extension fd_set {
[20/35] Compiling Socket SocketProtocols.swift
[21/35] Compiling Socket Socket.swift
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:52:39: error: cannot find 'in_addr_t' in scope
50 | public static let SOCKET_INVALID_DESCRIPTOR = Int32(-1)
51 |
52 | public static let INADDR_ANY = in_addr_t(0)
| `- error: cannot find 'in_addr_t' in scope
53 |
54 | public static let NO_HOSTNAME = "No hostname"
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:320:13: error: cannot find type 'sockaddr_in' in scope
318 |
319 | /// sockaddr_in
320 | case ipv4(sockaddr_in)
| `- error: cannot find type 'sockaddr_in' in scope
321 |
322 | /// sockaddr_in6
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:323:13: error: cannot find type 'sockaddr_in6' in scope
321 |
322 | /// sockaddr_in6
323 | case ipv6(sockaddr_in6)
| `- error: cannot find type 'sockaddr_in6' in scope
324 |
325 | /// sockaddr_un
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:326:13: error: cannot find type 'sockaddr_un' in scope
324 |
325 | /// sockaddr_un
326 | case unix(sockaddr_un)
| `- error: cannot find type 'sockaddr_un' in scope
327 |
328 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:147:18: error: cannot find 'AF_INET' in scope
145 |
146 | case .inet:
147 | return Int32(AF_INET)
| `- error: cannot find 'AF_INET' in scope
148 |
149 | case .inet6:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:150:18: error: cannot find 'AF_INET6' in scope
148 |
149 | case .inet6:
150 | return Int32(AF_INET6)
| `- error: cannot find 'AF_INET6' in scope
151 |
152 | case .unix:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:153:18: error: cannot find 'AF_UNIX' in scope
151 |
152 | case .unix:
153 | return Int32(AF_UNIX)
| `- error: cannot find 'AF_UNIX' in scope
154 | }
155 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:167:15: error: cannot find 'AF_INET' in scope
165 | switch forValue {
166 |
167 | case Int32(AF_INET):
| `- error: cannot find 'AF_INET' in scope
168 | return .inet
169 | case Int32(AF_INET6):
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:169:15: error: cannot find 'AF_INET6' in scope
167 | case Int32(AF_INET):
168 | return .inet
169 | case Int32(AF_INET6):
| `- error: cannot find 'AF_INET6' in scope
170 | return .inet6
171 | case Int32(AF_UNIX):
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:171:15: error: cannot find 'AF_UNIX' in scope
169 | case Int32(AF_INET6):
170 | return .inet6
171 | case Int32(AF_UNIX):
| `- error: cannot find 'AF_UNIX' in scope
172 | return .unix
173 | default:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:208:13: error: cannot find 'SOCK_STREAM' in scope
206 | return Int32(SOCK_STREAM.rawValue)
207 | #else
208 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
209 | #endif
210 | case .datagram:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:214:13: error: cannot find 'SOCK_DGRAM' in scope
212 | return Int32(SOCK_DGRAM.rawValue)
213 | #else
214 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
215 | #endif
216 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:241:10: error: cannot find 'SOCK_STREAM' in scope
239 | switch forValue {
240 |
241 | case SOCK_STREAM:
| `- error: cannot find 'SOCK_STREAM' in scope
242 | return .stream
243 | case SOCK_DGRAM:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:243:10: error: cannot find 'SOCK_DGRAM' in scope
241 | case SOCK_STREAM:
242 | return .stream
243 | case SOCK_DGRAM:
| `- error: cannot find 'SOCK_DGRAM' in scope
244 | return .datagram
245 | default:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:281:18: error: cannot find 'IPPROTO_TCP' in scope
279 |
280 | case .tcp:
281 | return Int32(IPPROTO_TCP)
| `- error: cannot find 'IPPROTO_TCP' in scope
282 | case .udp:
283 | return Int32(IPPROTO_UDP)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:283:18: error: cannot find 'IPPROTO_UDP' in scope
281 | return Int32(IPPROTO_TCP)
282 | case .udp:
283 | return Int32(IPPROTO_UDP)
| `- error: cannot find 'IPPROTO_UDP' in scope
284 | case .unix:
285 | return Int32(0)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:300:15: error: cannot find 'IPPROTO_TCP' in scope
298 | switch forValue {
299 |
300 | case Int32(IPPROTO_TCP):
| `- error: cannot find 'IPPROTO_TCP' in scope
301 | return .tcp
302 | case Int32(IPPROTO_UDP):
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:302:15: error: cannot find 'IPPROTO_UDP' in scope
300 | case Int32(IPPROTO_TCP):
301 | return .tcp
302 | case Int32(IPPROTO_UDP):
| `- error: cannot find 'IPPROTO_UDP' in scope
303 | return .udp
304 | case Int32(0):
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:336:26: error: cannot find type 'sockaddr_in' in scope
334 |
335 | case .ipv4( _):
336 | return MemoryLayout<(sockaddr_in)>.size
| `- error: cannot find type 'sockaddr_in' in scope
337 | case .ipv6( _):
338 | return MemoryLayout<(sockaddr_in6)>.size
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:338:26: error: cannot find type 'sockaddr_in6' in scope
336 | return MemoryLayout<(sockaddr_in)>.size
337 | case .ipv6( _):
338 | return MemoryLayout<(sockaddr_in6)>.size
| `- error: cannot find type 'sockaddr_in6' in scope
339 | case .unix( _):
340 | return MemoryLayout<(sockaddr_un)>.size
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:340:26: error: cannot find type 'sockaddr_un' in scope
338 | return MemoryLayout<(sockaddr_in6)>.size
339 | case .unix( _):
340 | return MemoryLayout<(sockaddr_un)>.size
| `- error: cannot find type 'sockaddr_un' in scope
341 | }
342 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:591:21: error: cannot find 'sockaddr_un' in scope
589 |
590 | // Create the address...
591 | var remoteAddr = sockaddr_un()
| `- error: cannot find 'sockaddr_un' in scope
592 | remoteAddr.sun_family = sa_family_t(AF_UNIX)
593 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:592:28: error: cannot find 'sa_family_t' in scope
590 | // Create the address...
591 | var remoteAddr = sockaddr_un()
592 | remoteAddr.sun_family = sa_family_t(AF_UNIX)
| `- error: cannot find 'sa_family_t' in scope
593 |
594 | let lengthOfPath = path.utf8.count
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:592:40: error: cannot find 'AF_UNIX' in scope
590 | // Create the address...
591 | var remoteAddr = sockaddr_un()
592 | remoteAddr.sun_family = sa_family_t(AF_UNIX)
| `- error: cannot find 'AF_UNIX' in scope
593 |
594 | let lengthOfPath = path.utf8.count
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:611:75: error: cannot find type 'sa_family_t' in scope
609 |
610 | #if !os(Linux)
611 | remoteAddr.sun_len = UInt8(MemoryLayout<UInt8>.size + MemoryLayout<sa_family_t>.size + path.utf8.count + 1)
| `- error: cannot find type 'sa_family_t' in scope
612 | #endif
613 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:614:20: error: type 'Socket.Address?' has no member 'unix'
612 | #endif
613 |
614 | self.address = .unix(remoteAddr)
| `- error: type 'Socket.Address?' has no member 'unix'
615 | }
616 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:686:59: error: cannot find type 'sa_family_t' in scope
684 | let addrLen = MemoryLayout<sockaddr_un>.size
685 | #else
686 | let addrLen = MemoryLayout<UInt8>.size + MemoryLayout<sa_family_t>.size + utf8.count + 1
| `- error: cannot find type 'sa_family_t' in scope
687 | #endif
688 | let addrPtr = UnsafeMutablePointer<UInt8>.allocate(capacity: addrLen)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:710:29: error: cannot find 'AF_UNIX' in scope
708 | addrPtr[memLoc] = UInt8(addrLen)
709 | memLoc += 1
710 | addrPtr[memLoc] = UInt8(AF_UNIX)
| `- error: cannot find 'AF_UNIX' in scope
711 | memLoc += 1
712 | #endif
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1082:17: error: cannot find 'INET_ADDRSTRLEN' in scope
1080 | case .ipv4(let address_in):
1081 | var addr_in = address_in
1082 | bufLen = Int(INET_ADDRSTRLEN)
| `- error: cannot find 'INET_ADDRSTRLEN' in scope
1083 | buf = [CChar](repeating: 0, count: bufLen)
1084 | inet_ntop(Int32(addr_in.sin_family), &addr_in.sin_addr, &buf, socklen_t(bufLen))
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1084:4: error: cannot find 'inet_ntop' in scope
1082 | bufLen = Int(INET_ADDRSTRLEN)
1083 | buf = [CChar](repeating: 0, count: bufLen)
1084 | inet_ntop(Int32(addr_in.sin_family), &addr_in.sin_addr, &buf, socklen_t(bufLen))
| `- error: cannot find 'inet_ntop' in scope
1085 | if isLittleEndian {
1086 | port = Int32(UInt16(addr_in.sin_port).byteSwapped)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1093:17: error: cannot find 'INET6_ADDRSTRLEN' in scope
1091 | case .ipv6(let address_in):
1092 | var addr_in = address_in
1093 | bufLen = Int(INET6_ADDRSTRLEN)
| `- error: cannot find 'INET6_ADDRSTRLEN' in scope
1094 | buf = [CChar](repeating: 0, count: bufLen)
1095 | inet_ntop(Int32(addr_in.sin6_family), &addr_in.sin6_addr, &buf, socklen_t(bufLen))
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1095:4: error: cannot find 'inet_ntop' in scope
1093 | bufLen = Int(INET6_ADDRSTRLEN)
1094 | buf = [CChar](repeating: 0, count: bufLen)
1095 | inet_ntop(Int32(addr_in.sin6_family), &addr_in.sin6_addr, &buf, socklen_t(bufLen))
| `- error: cannot find 'inet_ntop' in scope
1096 | if isLittleEndian {
1097 | port = Int32(UInt16(addr_in.sin6_port).byteSwapped)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1187:21: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
1185 | timer.tv_usec = Int(uSecs)
1186 | #else
1187 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
1188 | #endif
1189 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1215:95: error: cannot find 'errno' in scope
1213 | if count < 0 {
1214 |
1215 | throw Error(code: Socket.SOCKET_ERR_SELECT_FAILED, reason: String(validatingUTF8: strerror(errno)) ?? "Error: \(errno)")
| `- error: cannot find 'errno' in scope
1216 | }
1217 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1215:116: error: cannot find 'errno' in scope
1213 | if count < 0 {
1214 |
1215 | throw Error(code: Socket.SOCKET_ERR_SELECT_FAILED, reason: String(validatingUTF8: strerror(errno)) ?? "Error: \(errno)")
| `- error: cannot find 'errno' in scope
1216 | }
1217 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1238:34: error: cannot find type 'addrinfo' in scope
1236 | public class func createAddress(for host: String, on port: Int32) -> Address? {
1237 |
1238 | var info: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
1239 |
1240 | // Retrieve the info on our target...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1241:23: error: cannot find 'getaddrinfo' in scope
1239 |
1240 | // Retrieve the info on our target...
1241 | let status: Int32 = getaddrinfo(host, String(port), nil, &info)
| `- error: cannot find 'getaddrinfo' in scope
1242 | if status != 0 {
1243 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1241:55: error: 'nil' requires a contextual type
1239 |
1240 | // Retrieve the info on our target...
1241 | let status: Int32 = getaddrinfo(host, String(port), nil, &info)
| `- error: 'nil' requires a contextual type
1242 | if status != 0 {
1243 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1251:5: error: cannot find 'freeaddrinfo' in scope
1249 |
1250 | if info != nil {
1251 | freeaddrinfo(info)
| `- error: cannot find 'freeaddrinfo' in scope
1252 | }
1253 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1256:39: error: cannot find 'AF_INET' in scope
1254 |
1255 | var address: Address
1256 | if info!.pointee.ai_family == Int32(AF_INET) {
| `- error: cannot find 'AF_INET' in scope
1257 |
1258 | var addr = sockaddr_in()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1258:15: error: cannot find 'sockaddr_in' in scope
1256 | if info!.pointee.ai_family == Int32(AF_INET) {
1257 |
1258 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
1259 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
1260 | address = .ipv4(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1259:58: error: cannot find type 'sockaddr_in' in scope
1257 |
1258 | var addr = sockaddr_in()
1259 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr_in' in scope
1260 | address = .ipv4(addr)
1261 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1262:46: error: cannot find 'AF_INET6' in scope
1260 | address = .ipv4(addr)
1261 |
1262 | } else if info!.pointee.ai_family == Int32(AF_INET6) {
| `- error: cannot find 'AF_INET6' in scope
1263 |
1264 | var addr = sockaddr_in6()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1264:15: error: cannot find 'sockaddr_in6' in scope
1262 | } else if info!.pointee.ai_family == Int32(AF_INET6) {
1263 |
1264 | var addr = sockaddr_in6()
| `- error: cannot find 'sockaddr_in6' in scope
1265 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
1266 | address = .ipv6(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1265:58: error: cannot find type 'sockaddr_in6' in scope
1263 |
1264 | var addr = sockaddr_in6()
1265 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
| `- error: cannot find type 'sockaddr_in6' in scope
1266 | address = .ipv6(addr)
1267 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1309:20: error: cannot find 'Darwin' in scope
1307 | self.socketfd = Glibc.socket(family.value, type.value, sockProto.value)
1308 | #else
1309 | self.socketfd = Darwin.socket(family.value, type.value, sockProto.value)
| `- error: cannot find 'Darwin' in scope
1310 | #endif
1311 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1354:15: error: cannot find 'SOCK_STREAM' in scope
1352 | let type = Int32(SOCK_STREAM.rawValue)
1353 | #else
1354 | let type = SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
1355 | #endif
1356 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1368:19: error: cannot find 'IPPROTO_TCP' in scope
1366 | protocolFamily: remoteAddress.family.value,
1367 | socketType: type,
1368 | proto: Int32(IPPROTO_TCP),
| `- error: cannot find 'IPPROTO_TCP' in scope
1369 | address: remoteAddress,
1370 | hostname: hostname,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1376:19: error: cannot find 'IPPROTO_TCP' in scope
1374 | protocolFamily: remoteAddress.family.value,
1375 | socketType: type,
1376 | proto: Int32(IPPROTO_TCP),
| `- error: cannot find 'IPPROTO_TCP' in scope
1377 | address: remoteAddress)
1378 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1444:16: error: cannot find 'Darwin' in scope
1442 | let fd = Glibc.accept(self.socketfd, addressPointer, addressLengthPointer)
1443 | #else
1444 | let fd = Darwin.accept(self.socketfd, addressPointer, addressLengthPointer)
| `- error: cannot find 'Darwin' in scope
1445 | #endif
1446 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1450:10: error: cannot find 'errno' in scope
1448 |
1449 | // The operation was interrupted, continue the loop...
1450 | if errno == EINTR {
| `- error: cannot find 'errno' in scope
1451 | throw OperationInterrupted.accept
1452 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:86:47: error: cannot find type 'sockaddr' in scope
84 | /// - Returns: Newly initialized Socket.Address.
85 | ///
86 | init?(addressProvider: (UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) throws -> Void) rethrows {
| `- error: cannot find type 'sockaddr' in scope
87 |
88 | var addressStorage = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1557:16: error: cannot find 'Darwin' in scope
1555 | let fd = Glibc.accept(self.socketfd, addressPointer, addressLengthPointer)
1556 | #else
1557 | let fd = Darwin.accept(self.socketfd, addressPointer, addressLengthPointer)
| `- error: cannot find 'Darwin' in scope
1558 | #endif
1559 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1563:10: error: cannot find 'errno' in scope
1561 |
1562 | // The operation was interrupted, continue the loop...
1563 | if errno == EINTR {
| `- error: cannot find 'errno' in scope
1564 | throw OperationInterrupted.accept
1565 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1706:16: error: cannot find 'addrinfo' in scope
1704 | ai_next: nil)
1705 | #else
1706 | var hints = addrinfo(
| `- error: cannot find 'addrinfo' in scope
1707 | ai_flags: AI_PASSIVE,
1708 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1707:15: error: cannot find 'AI_PASSIVE' in scope
1705 | #else
1706 | var hints = addrinfo(
1707 | ai_flags: AI_PASSIVE,
| `- error: cannot find 'AI_PASSIVE' in scope
1708 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
1709 | ai_socktype: socketType.value,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1708:64: error: cannot find 'AF_UNSPEC' in scope
1706 | var hints = addrinfo(
1707 | ai_flags: AI_PASSIVE,
1708 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
| `- error: cannot find 'AF_UNSPEC' in scope
1709 | ai_socktype: socketType.value,
1710 | ai_protocol: 0,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1708:76: error: cannot find 'AF_UNSPEC' in scope
1706 | var hints = addrinfo(
1707 | ai_flags: AI_PASSIVE,
1708 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
| `- error: cannot find 'AF_UNSPEC' in scope
1709 | ai_socktype: socketType.value,
1710 | ai_protocol: 0,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1712:19: error: 'nil' requires a contextual type
1710 | ai_protocol: 0,
1711 | ai_addrlen: 0,
1712 | ai_canonname: nil,
| `- error: 'nil' requires a contextual type
1713 | ai_addr: nil,
1714 | ai_next: nil)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1713:14: error: 'nil' requires a contextual type
1711 | ai_addrlen: 0,
1712 | ai_canonname: nil,
1713 | ai_addr: nil,
| `- error: 'nil' requires a contextual type
1714 | ai_next: nil)
1715 | #endif
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1714:14: error: 'nil' requires a contextual type
1712 | ai_canonname: nil,
1713 | ai_addr: nil,
1714 | ai_next: nil)
| `- error: 'nil' requires a contextual type
1715 | #endif
1716 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1717:40: error: cannot find type 'addrinfo' in scope
1715 | #endif
1716 |
1717 | var targetInfo: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
1718 |
1719 | // Retrieve the info on our target...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1720:23: error: cannot find 'getaddrinfo' in scope
1718 |
1719 | // Retrieve the info on our target...
1720 | var status: Int32 = getaddrinfo(host, String(port), &hints, &targetInfo)
| `- error: cannot find 'getaddrinfo' in scope
1721 | if status != 0 {
1722 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1724:17: error: cannot find 'EAI_SYSTEM' in scope
1722 |
1723 | var errorString: String
1724 | if status == EAI_SYSTEM {
| `- error: cannot find 'EAI_SYSTEM' in scope
1725 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
1726 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1725:51: error: cannot find 'errno' in scope
1723 | var errorString: String
1724 | if status == EAI_SYSTEM {
1725 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'errno' in scope
1726 | } else {
1727 | errorString = String(validatingUTF8: gai_strerror(status)) ?? "Unknown error code."
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1727:42: error: cannot find 'gai_strerror' in scope
1725 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
1726 | } else {
1727 | errorString = String(validatingUTF8: gai_strerror(status)) ?? "Unknown error code."
| `- error: cannot find 'gai_strerror' in scope
1728 | }
1729 | throw Error(code: Socket.SOCKET_ERR_GETADDRINFO_FAILED, reason: errorString)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1736:5: error: cannot find 'freeaddrinfo' in scope
1734 |
1735 | if targetInfo != nil {
1736 | freeaddrinfo(targetInfo)
| `- error: cannot find 'freeaddrinfo' in scope
1737 | }
1738 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1748:10: error: cannot find 'Darwin' in scope
1746 | _ = Glibc.close(socketDescriptor!)
1747 | #else
1748 | _ = Darwin.close(socketDescriptor!)
| `- error: cannot find 'Darwin' in scope
1749 | #endif
1750 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1759:24: error: cannot find 'Darwin' in scope
1757 | socketDescriptor = Glibc.socket(info!.pointee.ai_family, info!.pointee.ai_socktype, info!.pointee.ai_protocol)
1758 | #else
1759 | socketDescriptor = Darwin.socket(info!.pointee.ai_family, info!.pointee.ai_socktype, info!.pointee.ai_protocol)
| `- error: cannot find 'Darwin' in scope
1760 | #endif
1761 | if socketDescriptor == -1 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1769:17: error: cannot find 'fcntl' in scope
1767 | if !self.isBlocking || timeout > 0 {
1768 |
1769 | let flags = fcntl(socketDescriptor!, F_GETFL)
| `- error: cannot find 'fcntl' in scope
1770 | if flags < 0 {
1771 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1769:42: error: cannot find 'F_GETFL' in scope
1767 | if !self.isBlocking || timeout > 0 {
1768 |
1769 | let flags = fcntl(socketDescriptor!, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
1770 | if flags < 0 {
1771 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1775:18: error: cannot find 'fcntl' in scope
1773 | }
1774 |
1775 | let result = fcntl(socketDescriptor!, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
1776 | if result < 0 {
1777 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1775:43: error: cannot find 'F_SETFL' in scope
1773 | }
1774 |
1775 | let result = fcntl(socketDescriptor!, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
1776 | if result < 0 {
1777 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1775:60: error: cannot find 'O_NONBLOCK' in scope
1773 | }
1774 |
1775 | let result = fcntl(socketDescriptor!, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
1776 | if result < 0 {
1777 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1786:14: error: cannot find 'Darwin' in scope
1784 | status = Glibc.connect(socketDescriptor!, info!.pointee.ai_addr, info!.pointee.ai_addrlen)
1785 | #else
1786 | status = Darwin.connect(socketDescriptor!, info!.pointee.ai_addr, info!.pointee.ai_addrlen)
| `- error: cannot find 'Darwin' in scope
1787 | #endif
1788 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1795:7: error: cannot find 'errno' in scope
1793 |
1794 | // If this is a non-blocking socket, check errno for EINPROGRESS and if set we've got a timeout, wait the appropriate time...
1795 | if errno == EINPROGRESS {
| `- error: cannot find 'errno' in scope
1796 |
1797 | if timeout > 0 {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1820:23: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
1818 | timer.tv_usec = Int(uSecs)
1819 | #else
1820 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
1821 | #endif
1822 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1836:10: error: cannot find 'getsockopt' in scope
1834 | var result: Int = 0
1835 | var resultLength = socklen_t(MemoryLayout<Int>.size)
1836 | if getsockopt(socketDescriptor!, SOL_SOCKET, SO_ERROR, &result, &resultLength) < 0 {
| `- error: cannot find 'getsockopt' in scope
1837 |
1838 | throw Error(code: Socket.SOCKET_ERR_GETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1836:40: error: cannot find 'SOL_SOCKET' in scope
1834 | var result: Int = 0
1835 | var resultLength = socklen_t(MemoryLayout<Int>.size)
1836 | if getsockopt(socketDescriptor!, SOL_SOCKET, SO_ERROR, &result, &resultLength) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
1837 |
1838 | throw Error(code: Socket.SOCKET_ERR_GETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1836:52: error: cannot find 'SO_ERROR' in scope
1834 | var result: Int = 0
1835 | var resultLength = socklen_t(MemoryLayout<Int>.size)
1836 | if getsockopt(socketDescriptor!, SOL_SOCKET, SO_ERROR, &result, &resultLength) < 0 {
| `- error: cannot find 'SO_ERROR' in scope
1837 |
1838 | throw Error(code: Socket.SOCKET_ERR_GETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1860:9: error: cannot find 'Darwin' in scope
1858 | _ = Glibc.close(socketDescriptor!)
1859 | #else
1860 | _ = Darwin.close(socketDescriptor!)
| `- error: cannot find 'Darwin' in scope
1861 | #endif
1862 | socketDescriptor = nil
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1873:10: error: cannot find 'Darwin' in scope
1871 | _ = Glibc.close(socketDescriptor!)
1872 | #else
1873 | _ = Darwin.close(socketDescriptor!)
| `- error: cannot find 'Darwin' in scope
1874 | #endif
1875 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1890:39: error: cannot find 'AF_INET6' in scope
1888 | self.isConnected = true
1889 | var address: Address
1890 | if info!.pointee.ai_family == Int32(AF_INET6) {
| `- error: cannot find 'AF_INET6' in scope
1891 |
1892 | var addr = sockaddr_in6()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1892:15: error: cannot find 'sockaddr_in6' in scope
1890 | if info!.pointee.ai_family == Int32(AF_INET6) {
1891 |
1892 | var addr = sockaddr_in6()
| `- error: cannot find 'sockaddr_in6' in scope
1893 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
1894 | address = .ipv6(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1893:58: error: cannot find type 'sockaddr_in6' in scope
1891 |
1892 | var addr = sockaddr_in6()
1893 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
| `- error: cannot find type 'sockaddr_in6' in scope
1894 | address = .ipv6(addr)
1895 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1896:46: error: cannot find 'AF_INET' in scope
1894 | address = .ipv6(addr)
1895 |
1896 | } else if info!.pointee.ai_family == Int32(AF_INET) {
| `- error: cannot find 'AF_INET' in scope
1897 |
1898 | var addr = sockaddr_in()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1898:15: error: cannot find 'sockaddr_in' in scope
1896 | } else if info!.pointee.ai_family == Int32(AF_INET) {
1897 |
1898 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
1899 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
1900 | address = .ipv4(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1899:58: error: cannot find type 'sockaddr_in' in scope
1897 |
1898 | var addr = sockaddr_in()
1899 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr_in' in scope
1900 | address = .ipv4(addr)
1901 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1922:16: error: cannot find 'fcntl' in scope
1920 | // Socket supposed to be blocking but we've changed it to non-blocking because
1921 | // a timeout was requested... Got to change it back before proceeding...
1922 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'fcntl' in scope
1923 | if flags < 0 {
1924 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1922:37: error: cannot find 'F_GETFL' in scope
1920 | // Socket supposed to be blocking but we've changed it to non-blocking because
1921 | // a timeout was requested... Got to change it back before proceeding...
1922 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
1923 | if flags < 0 {
1924 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1928:17: error: cannot find 'fcntl' in scope
1926 | }
1927 |
1928 | let result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
1929 | if result < 0 {
1930 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1928:38: error: cannot find 'F_SETFL' in scope
1926 | }
1927 |
1928 | let result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
1929 | if result < 0 {
1930 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1928:56: error: cannot find 'O_NONBLOCK' in scope
1926 | }
1927 |
1928 | let result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
1929 | if result < 0 {
1930 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1995:42: error: cannot find 'sockaddr' in scope
1993 | }
1994 |
1995 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
| `- error: cannot find 'sockaddr' in scope
1996 |
1997 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2002:12: error: cannot find 'Darwin' in scope
2000 | return Glibc.connect(self.socketfd, p, socklen_t(addrLen))
2001 | #else
2002 | return Darwin.connect(self.socketfd, p, socklen_t(addrLen))
| `- error: cannot find 'Darwin' in scope
2003 | #endif
2004 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1997:29: error: cannot find type 'sockaddr' in scope
1995 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
1996 |
1997 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
| `- error: cannot find type 'sockaddr' in scope
1998 |
1999 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1995:20: error: generic parameter 'T' could not be inferred
1993 | }
1994 |
1995 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
1996 |
1997 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
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/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2056:13: error: cannot find 'Darwin' in scope
2054 | return Glibc.connect(self.socketfd, sockaddr, length)
2055 | #else
2056 | return Darwin.connect(self.socketfd, sockaddr, length)
| `- error: cannot find 'Darwin' in scope
2057 | #endif
2058 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:43:56: error: cannot find type 'sockaddr' in scope
41 | /// - Returns: The result of executing the closure.
42 | ///
43 | func withSockAddrPointer<Result>(body: (UnsafePointer<sockaddr>, socklen_t) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'sockaddr' in scope
44 |
45 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2138:6: error: cannot find 'setsockopt' in scope
2136 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2137 | var on: Int32 = 1
2138 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2139 |
2140 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2138:32: error: cannot find 'SOL_SOCKET' in scope
2136 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2137 | var on: Int32 = 1
2138 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
2139 |
2140 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2138:44: error: cannot find 'SO_REUSEADDR' in scope
2136 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2137 | var on: Int32 = 1
2138 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEADDR' in scope
2139 |
2140 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2150:7: error: cannot find 'setsockopt' in scope
2148 | // instances of a program to each receive UDP/IP multicast or broadcast datagrams
2149 | // destined for the bound port.
2150 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2151 |
2152 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2150:33: error: cannot find 'SOL_SOCKET' in scope
2148 | // instances of a program to each receive UDP/IP multicast or broadcast datagrams
2149 | // destined for the bound port.
2150 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
2151 |
2152 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2150:45: error: cannot find 'SO_REUSEPORT' in scope
2148 | // instances of a program to each receive UDP/IP multicast or broadcast datagrams
2149 | // destined for the bound port.
2150 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEPORT' in scope
2151 |
2152 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2154:8: error: cannot find 'errno' in scope
2152 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
2153 | // the appropriate errno value and if set, ignore the error...
2154 | if errno != ENOPROTOOPT {
| `- error: cannot find 'errno' in scope
2155 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
2156 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2168:16: error: cannot find 'setsockopt' in scope
2166 | // Configure ipv6 socket so that it can share ports with ipv4 on the same port.
2167 | if sig.protocolFamily == .inet6 && sig.proto == .tcp {
2168 | if setsockopt(self.socketfd, Int32(IPPROTO_IPV6), IPV6_V6ONLY, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2169 |
2170 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2168:48: error: cannot find 'IPPROTO_IPV6' in scope
2166 | // Configure ipv6 socket so that it can share ports with ipv4 on the same port.
2167 | if sig.protocolFamily == .inet6 && sig.proto == .tcp {
2168 | if setsockopt(self.socketfd, Int32(IPPROTO_IPV6), IPV6_V6ONLY, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'IPPROTO_IPV6' in scope
2169 |
2170 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2168:63: error: cannot find 'IPV6_V6ONLY' in scope
2166 | // Configure ipv6 socket so that it can share ports with ipv4 on the same port.
2167 | if sig.protocolFamily == .inet6 && sig.proto == .tcp {
2168 | if setsockopt(self.socketfd, Int32(IPPROTO_IPV6), IPV6_V6ONLY, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'IPV6_V6ONLY' in scope
2169 |
2170 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2205:16: error: cannot find 'addrinfo' in scope
2203 | ai_next: nil)
2204 | #else
2205 | var hints = addrinfo(
| `- error: cannot find 'addrinfo' in scope
2206 | ai_flags: AI_PASSIVE,
2207 | ai_family: sig.protocolFamily.value,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2206:15: error: cannot find 'AI_PASSIVE' in scope
2204 | #else
2205 | var hints = addrinfo(
2206 | ai_flags: AI_PASSIVE,
| `- error: cannot find 'AI_PASSIVE' in scope
2207 | ai_family: sig.protocolFamily.value,
2208 | ai_socktype: sig.socketType.value,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2211:19: error: 'nil' requires a contextual type
2209 | ai_protocol: 0,
2210 | ai_addrlen: 0,
2211 | ai_canonname: nil,
| `- error: 'nil' requires a contextual type
2212 | ai_addr: nil,
2213 | ai_next: nil)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2212:14: error: 'nil' requires a contextual type
2210 | ai_addrlen: 0,
2211 | ai_canonname: nil,
2212 | ai_addr: nil,
| `- error: 'nil' requires a contextual type
2213 | ai_next: nil)
2214 | #endif
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2213:14: error: 'nil' requires a contextual type
2211 | ai_canonname: nil,
2212 | ai_addr: nil,
2213 | ai_next: nil)
| `- error: 'nil' requires a contextual type
2214 | #endif
2215 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2216:40: error: cannot find type 'addrinfo' in scope
2214 | #endif
2215 |
2216 | var targetInfo: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
2217 |
2218 | // Retrieve the info on our target...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2219:23: error: cannot find 'getaddrinfo' in scope
2217 |
2218 | // Retrieve the info on our target...
2219 | let status: Int32 = getaddrinfo(node ?? nil, String(port), &hints, &targetInfo)
| `- error: cannot find 'getaddrinfo' in scope
2220 | if status != 0 {
2221 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2223:17: error: cannot find 'EAI_SYSTEM' in scope
2221 |
2222 | var errorString: String
2223 | if status == EAI_SYSTEM {
| `- error: cannot find 'EAI_SYSTEM' in scope
2224 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
2225 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2224:51: error: cannot find 'errno' in scope
2222 | var errorString: String
2223 | if status == EAI_SYSTEM {
2224 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'errno' in scope
2225 | } else {
2226 | errorString = String(validatingUTF8: gai_strerror(errno)) ?? "Unknown error code."
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2226:42: error: cannot find 'gai_strerror' in scope
2224 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
2225 | } else {
2226 | errorString = String(validatingUTF8: gai_strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'gai_strerror' in scope
2227 | }
2228 | throw Error(code: Socket.SOCKET_ERR_GETADDRINFO_FAILED, reason: errorString)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2226:55: error: cannot find 'errno' in scope
2224 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
2225 | } else {
2226 | errorString = String(validatingUTF8: gai_strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'errno' in scope
2227 | }
2228 | throw Error(code: Socket.SOCKET_ERR_GETADDRINFO_FAILED, reason: errorString)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2235:5: error: cannot find 'freeaddrinfo' in scope
2233 |
2234 | if targetInfo != nil {
2235 | freeaddrinfo(targetInfo)
| `- error: cannot find 'freeaddrinfo' in scope
2236 | }
2237 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2253:8: error: cannot find 'Darwin' in scope
2251 | }
2252 | #else
2253 | if Darwin.bind(self.socketfd, info!.pointee.ai_addr, info!.pointee.ai_addrlen) == 0 {
| `- error: cannot find 'Darwin' in scope
2254 |
2255 | // Success... We've found our address...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2277:8: error: cannot find 'getsockname' in scope
2275 | if port == 0 {
2276 | guard let addressFromSockName = try Address(addressProvider: { (sockaddr, length) in
2277 | if getsockname(self.socketfd, sockaddr, length) != 0 {
| `- error: cannot find 'getsockname' in scope
2278 | throw Error(code: Socket.SOCKET_ERR_BIND_FAILED, reason: "Unable to determine listening socket address after bind.")
2279 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2286:40: error: cannot find 'AF_INET6' in scope
2284 | } else {
2285 |
2286 | if info!.pointee.ai_family == Int32(AF_INET6) {
| `- error: cannot find 'AF_INET6' in scope
2287 |
2288 | var addr = sockaddr_in6()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2288:16: error: cannot find 'sockaddr_in6' in scope
2286 | if info!.pointee.ai_family == Int32(AF_INET6) {
2287 |
2288 | var addr = sockaddr_in6()
| `- error: cannot find 'sockaddr_in6' in scope
2289 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
2290 | address = .ipv6(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2289:59: error: cannot find type 'sockaddr_in6' in scope
2287 |
2288 | var addr = sockaddr_in6()
2289 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
| `- error: cannot find type 'sockaddr_in6' in scope
2290 | address = .ipv6(addr)
2291 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2292:47: error: cannot find 'AF_INET' in scope
2290 | address = .ipv6(addr)
2291 |
2292 | } else if info!.pointee.ai_family == Int32(AF_INET) {
| `- error: cannot find 'AF_INET' in scope
2293 |
2294 | var addr = sockaddr_in()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2294:16: error: cannot find 'sockaddr_in' in scope
2292 | } else if info!.pointee.ai_family == Int32(AF_INET) {
2293 |
2294 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
2295 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
2296 | address = .ipv4(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2295:59: error: cannot find type 'sockaddr_in' in scope
2293 |
2294 | var addr = sockaddr_in()
2295 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr_in' in scope
2296 | address = .ipv4(addr)
2297 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2326:7: error: cannot find 'Darwin' in scope
2324 | }
2325 | #else
2326 | if Darwin.listen(self.socketfd, Int32(maxBacklogSize)) < 0 {
| `- error: cannot find 'Darwin' in scope
2327 |
2328 | throw Error(code: Socket.SOCKET_ERR_LISTEN_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2362:6: error: cannot find 'setsockopt' in scope
2360 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2361 | var on: Int32 = 1
2362 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2363 |
2364 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2362:32: error: cannot find 'SOL_SOCKET' in scope
2360 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2361 | var on: Int32 = 1
2362 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
2363 |
2364 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2362:44: error: cannot find 'SO_REUSEADDR' in scope
2360 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2361 | var on: Int32 = 1
2362 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEADDR' in scope
2363 |
2364 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2378:8: error: cannot find 'Darwin' in scope
2376 | _ = Glibc.unlink(path)
2377 | #else
2378 | _ = Darwin.unlink(path)
| `- error: cannot find 'Darwin' in scope
2379 | #endif
2380 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2392:42: error: cannot find 'sockaddr' in scope
2390 | }
2391 |
2392 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
| `- error: cannot find 'sockaddr' in scope
2393 |
2394 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2399:12: error: cannot find 'Darwin' in scope
2397 | return Glibc.bind(self.socketfd, p, socklen_t(addrLen))
2398 | #else
2399 | return Darwin.bind(self.socketfd, p, socklen_t(addrLen))
| `- error: cannot find 'Darwin' in scope
2400 | #endif
2401 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2394:29: error: cannot find type 'sockaddr' in scope
2392 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
2393 |
2394 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
| `- error: cannot find type 'sockaddr' in scope
2395 |
2396 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2392:20: error: generic parameter 'T' could not be inferred
2390 | }
2391 |
2392 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
2393 |
2394 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
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/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2415:7: error: cannot find 'Darwin' in scope
2413 | }
2414 | #else
2415 | if Darwin.listen(self.socketfd, Int32(maxBacklogSize)) < 0 {
| `- error: cannot find 'Darwin' in scope
2416 |
2417 | throw Error(code: Socket.SOCKET_ERR_LISTEN_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3020:10: error: cannot find 'Darwin' in scope
3018 | s = Glibc.send(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags)
3019 | #else
3020 | s = Darwin.send(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags)
| `- error: cannot find 'Darwin' in scope
3021 | #endif
3022 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3025:8: error: cannot find 'errno' in scope
3023 | if s <= 0 {
3024 |
3025 | if errno == EAGAIN && !isBlocking {
| `- error: cannot find 'errno' in scope
3026 |
3027 | // We have written out as much as we can...
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3032:8: error: cannot find 'errno' in scope
3030 |
3031 | // - Handle a connection reset by peer (ECONNRESET) and throw a different exception...
3032 | if errno == ECONNRESET {
| `- error: cannot find 'errno' in scope
3033 | self.remoteConnectionClosed = true
3034 | throw Error(code: Socket.SOCKET_ERR_CONNECTION_RESET, reason: self.lastError())
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3157:10: error: cannot find 'Darwin' in scope
3155 | s = Glibc.sendto(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags, addressPointer, addressLength)
3156 | #else
3157 | s = Darwin.sendto(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags, addressPointer, addressLength)
| `- error: cannot find 'Darwin' in scope
3158 | #endif
3159 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3162:9: error: cannot find 'errno' in scope
3160 | if s <= 0 {
3161 |
3162 | if errno == EAGAIN && !isBlocking {
| `- error: cannot find 'errno' in scope
3163 |
3164 | // We have written out as much as we can...
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3169:9: error: cannot find 'errno' in scope
3167 |
3168 | // - Handle a connection reset by peer (ECONNRESET) and throw a different exception...
3169 | if errno == ECONNRESET {
| `- error: cannot find 'errno' in scope
3170 | self.remoteConnectionClosed = true
3171 | throw Error(code: Socket.SOCKET_ERR_CONNECTION_RESET, reason: self.lastError())
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3302:22: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3300 | timer.tv_usec = Int(uSecs)
3301 | #else
3302 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3303 | #endif
3304 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3327:15: error: cannot find 'fcntl' in scope
3325 | public func setBlocking(mode shouldBlock: Bool) throws {
3326 |
3327 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'fcntl' in scope
3328 | if flags < 0 {
3329 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3327:36: error: cannot find 'F_GETFL' in scope
3325 | public func setBlocking(mode shouldBlock: Bool) throws {
3326 |
3327 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
3328 | if flags < 0 {
3329 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3336:13: error: cannot find 'fcntl' in scope
3334 | if shouldBlock {
3335 |
3336 | result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
3337 |
3338 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3336:34: error: cannot find 'F_SETFL' in scope
3334 | if shouldBlock {
3335 |
3336 | result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
3337 |
3338 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3336:52: error: cannot find 'O_NONBLOCK' in scope
3334 | if shouldBlock {
3335 |
3336 | result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
3337 |
3338 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3340:13: error: cannot find 'fcntl' in scope
3338 | } else {
3339 |
3340 | result = fcntl(self.socketfd, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
3341 | }
3342 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3340:34: error: cannot find 'F_SETFL' in scope
3338 | } else {
3339 |
3340 | result = fcntl(self.socketfd, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
3341 | }
3342 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3340:51: error: cannot find 'O_NONBLOCK' in scope
3338 | } else {
3339 |
3340 | result = fcntl(self.socketfd, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
3341 | }
3342 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3379:21: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3377 | timer.tv_usec = Int(uSecs)
3378 | #else
3379 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3380 | #endif
3381 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3383:16: error: cannot find 'setsockopt' in scope
3381 | }
3382 |
3383 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_RCVTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'setsockopt' in scope
3384 |
3385 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3383:42: error: cannot find 'SOL_SOCKET' in scope
3381 | }
3382 |
3383 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_RCVTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SOL_SOCKET' in scope
3384 |
3385 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3383:54: error: cannot find 'SO_RCVTIMEO' in scope
3381 | }
3382 |
3383 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_RCVTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SO_RCVTIMEO' in scope
3384 |
3385 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3419:21: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3417 | timer.tv_usec = Int(uSecs)
3418 | #else
3419 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3420 | #endif
3421 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3423:16: error: cannot find 'setsockopt' in scope
3421 | }
3422 |
3423 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_SNDTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'setsockopt' in scope
3424 |
3425 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3423:42: error: cannot find 'SOL_SOCKET' in scope
3421 | }
3422 |
3423 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_SNDTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SOL_SOCKET' in scope
3424 |
3425 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3423:54: error: cannot find 'SO_SNDTIMEO' in scope
3421 | }
3422 |
3423 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_SNDTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SO_SNDTIMEO' in scope
3424 |
3425 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3454:6: error: cannot find 'setsockopt' in scope
3452 | // Turn on or off UDP broadcasting...
3453 | var on: Int32 = enable ? 1 : 0
3454 | if setsockopt(self.socketfd, SOL_SOCKET, SO_BROADCAST, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
3455 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3456 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3454:32: error: cannot find 'SOL_SOCKET' in scope
3452 | // Turn on or off UDP broadcasting...
3453 | var on: Int32 = enable ? 1 : 0
3454 | if setsockopt(self.socketfd, SOL_SOCKET, SO_BROADCAST, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
3455 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3456 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3454:44: error: cannot find 'SO_BROADCAST' in scope
3452 | // Turn on or off UDP broadcasting...
3453 | var on: Int32 = enable ? 1 : 0
3454 | if setsockopt(self.socketfd, SOL_SOCKET, SO_BROADCAST, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_BROADCAST' in scope
3455 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3456 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3487:10: error: cannot find 'Darwin' in scope
3485 | #else
3486 | if self.isListening {
3487 | _ = Darwin.shutdown(self.socketfd, Int32(SHUT_RDWR))
| `- error: cannot find 'Darwin' in scope
3488 | self.isListening = false
3489 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3487:47: error: cannot find 'SHUT_RDWR' in scope
3485 | #else
3486 | if self.isListening {
3487 | _ = Darwin.shutdown(self.socketfd, Int32(SHUT_RDWR))
| `- error: cannot find 'SHUT_RDWR' in scope
3488 | self.isListening = false
3489 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3491:9: error: cannot find 'Darwin' in scope
3489 | }
3490 | self.isConnected = false
3491 | _ = Darwin.close(self.socketfd)
| `- error: cannot find 'Darwin' in scope
3492 | #endif
3493 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3508:10: error: cannot find 'Darwin' in scope
3506 | _ = Glibc.unlink(self.signature!.path!)
3507 | #else
3508 | _ = Darwin.unlink(self.signature!.path!)
| `- error: cannot find 'Darwin' in scope
3509 | #endif
3510 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3532:23: error: cannot find 'MSG_DONTWAIT' in scope
3530 | var recvFlags: Int32 = 0
3531 | if self.readStorage.length > 0 {
3532 | recvFlags |= Int32(MSG_DONTWAIT)
| `- error: cannot find 'MSG_DONTWAIT' in scope
3533 | }
3534 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3544:14: error: cannot find 'Darwin' in scope
3542 | count = Glibc.recv(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags)
3543 | #else
3544 | count = Darwin.recv(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags)
| `- error: cannot find 'Darwin' in scope
3545 | #endif
3546 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3592:12: error: cannot find 'errno' in scope
3590 | if count < 0 {
3591 |
3592 | switch errno {
| `- error: cannot find 'errno' in scope
3593 |
3594 | // - Could be an error, but if errno is EAGAIN or EWOULDBLOCK (if a non-blocking socket),
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3646:23: error: cannot find 'MSG_DONTWAIT' in scope
3644 | var recvFlags: Int32 = 0
3645 | if self.readStorage.length > 0 {
3646 | recvFlags |= Int32(MSG_DONTWAIT)
| `- error: cannot find 'MSG_DONTWAIT' in scope
3647 | }
3648 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3656:18: error: cannot find 'Darwin' in scope
3654 | let count = Glibc.recvfrom(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags, addresssPointer, addressLengthPointer)
3655 | #else
3656 | let count = Darwin.recvfrom(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags, addresssPointer, addressLengthPointer)
| `- error: cannot find 'Darwin' in scope
3657 | #endif
3658 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3664:9: error: cannot find 'errno' in scope
3662 | // - Could be an error, but if errno is EAGAIN or EWOULDBLOCK (if a non-blocking socket),
3663 | // it means there was NO data to read...
3664 | if errno == EAGAIN || errno == EWOULDBLOCK {
| `- error: cannot find 'errno' in scope
3665 |
3666 | throw OperationInterrupted.readDatagram(length: self.readStorage.length)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3664:28: error: cannot find 'errno' in scope
3662 | // - Could be an error, but if errno is EAGAIN or EWOULDBLOCK (if a non-blocking socket),
3663 | // it means there was NO data to read...
3664 | if errno == EAGAIN || errno == EWOULDBLOCK {
| `- error: cannot find 'errno' in scope
3665 |
3666 | throw OperationInterrupted.readDatagram(length: self.readStorage.length)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3670:9: error: cannot find 'errno' in scope
3668 |
3669 | // - Handle a connection reset by peer (ECONNRESET) and throw a different exception...
3670 | if errno == ECONNRESET {
| `- error: cannot find 'errno' in scope
3671 | self.remoteConnectionClosed = true
3672 | throw Error(code: Socket.SOCKET_ERR_CONNECTION_RESET, reason: self.lastError())
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3737:42: error: cannot find 'errno' in scope
3735 | private func lastError() -> String {
3736 |
3737 | return String(validatingUTF8: strerror(errno)) ?? "Error: \(errno)"
| `- error: cannot find 'errno' in scope
3738 | }
3739 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3737:63: error: cannot find 'errno' in scope
3735 | private func lastError() -> String {
3736 |
3737 | return String(validatingUTF8: strerror(errno)) ?? "Error: \(errno)"
| `- error: cannot find 'errno' in scope
3738 | }
3739 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3753:7: error: cannot find 'setsockopt' in scope
3751 | // MSG_NOSIGNAL flags passed to send. See the write() functions below.
3752 | var on: Int32 = 1
3753 | if setsockopt(self.socketfd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
3754 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3755 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3753:33: error: cannot find 'SOL_SOCKET' in scope
3751 | // MSG_NOSIGNAL flags passed to send. See the write() functions below.
3752 | var on: Int32 = 1
3753 | if setsockopt(self.socketfd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
3754 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3755 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3753:45: error: cannot find 'SO_NOSIGPIPE' in scope
3751 | // MSG_NOSIGNAL flags passed to send. See the write() functions below.
3752 | var on: Int32 = 1
3753 | if setsockopt(self.socketfd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_NOSIGPIPE' in scope
3754 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3755 | }
[22/35] Compiling Socket SocketUtils.swift
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:43:56: error: cannot find type 'sockaddr' in scope
41 | /// - Returns: The result of executing the closure.
42 | ///
43 | func withSockAddrPointer<Result>(body: (UnsafePointer<sockaddr>, socklen_t) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'sockaddr' in scope
44 |
45 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:86:47: error: cannot find type 'sockaddr' in scope
84 | /// - Returns: Newly initialized Socket.Address.
85 | ///
86 | init?(addressProvider: (UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) throws -> Void) rethrows {
| `- error: cannot find type 'sockaddr' in scope
87 |
88 | var addressStorage = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:146:27: error: cannot find '__DARWIN_FD_SETSIZE' in scope
144 | // __DARWIN_FD_SETSIZE is number of *bits*, so divide by number bits in each element to get element count
145 | // at present this is 1024 / 32 == 32
146 | let __fd_set_count = Int(__DARWIN_FD_SETSIZE) / 32
| `- error: cannot find '__DARWIN_FD_SETSIZE' in scope
147 |
148 | extension fd_set {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:52:60: error: cannot find type 'sockaddr' in scope
50 | /// - Returns: Result of executing the closure.
51 | ///
52 | func castAndCall<T>(_ address: T, _ body: (UnsafePointer<sockaddr>, socklen_t) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'sockaddr' in scope
53 | var localAddress = address // We need a `var` here for the `&`.
54 | return try withUnsafePointer(to: &localAddress) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:55:41: error: cannot find 'sockaddr' in scope
53 | var localAddress = address // We need a `var` here for the `&`.
54 | return try withUnsafePointer(to: &localAddress) {
55 | return try $0.withMemoryRebound(to: sockaddr.self, capacity: 1, {
| `- error: cannot find 'sockaddr' in scope
56 | return try body($0, socklen_t(MemoryLayout<T>.size))
57 | })
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:55:19: error: generic parameter 'T' could not be inferred
53 | var localAddress = address // We need a `var` here for the `&`.
54 | return try withUnsafePointer(to: &localAddress) {
55 | return try $0.withMemoryRebound(to: sockaddr.self, capacity: 1, {
| `- error: generic parameter 'T' could not be inferred
56 | return try body($0, socklen_t(MemoryLayout<T>.size))
57 | })
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/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:320:13: error: cannot find type 'sockaddr_in' in scope
318 |
319 | /// sockaddr_in
320 | case ipv4(sockaddr_in)
| `- error: cannot find type 'sockaddr_in' in scope
321 |
322 | /// sockaddr_in6
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:323:13: error: cannot find type 'sockaddr_in6' in scope
321 |
322 | /// sockaddr_in6
323 | case ipv6(sockaddr_in6)
| `- error: cannot find type 'sockaddr_in6' in scope
324 |
325 | /// sockaddr_un
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:326:13: error: cannot find type 'sockaddr_un' in scope
324 |
325 | /// sockaddr_un
326 | case unix(sockaddr_un)
| `- error: cannot find type 'sockaddr_un' in scope
327 |
328 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:88:24: error: cannot find 'sockaddr_storage' in scope
86 | init?(addressProvider: (UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) throws -> Void) rethrows {
87 |
88 | var addressStorage = sockaddr_storage()
| `- error: cannot find 'sockaddr_storage' in scope
89 | var addressStorageLength = socklen_t(MemoryLayout.size(ofValue: addressStorage))
90 | try withUnsafeMutablePointer(to: &addressStorage) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:91:33: error: cannot find 'sockaddr' in scope
89 | var addressStorageLength = socklen_t(MemoryLayout.size(ofValue: addressStorage))
90 | try withUnsafeMutablePointer(to: &addressStorage) {
91 | try $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { addressPointer in
| `- error: cannot find 'sockaddr' in scope
92 | try withUnsafeMutablePointer(to: &addressStorageLength) { addressLengthPointer in
93 | try addressProvider(addressPointer, addressLengthPointer)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:91:11: error: generic parameter 'T' could not be inferred
89 | var addressStorageLength = socklen_t(MemoryLayout.size(ofValue: addressStorage))
90 | try withUnsafeMutablePointer(to: &addressStorage) {
91 | try $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { addressPointer in
| `- error: generic parameter 'T' could not be inferred
92 | try withUnsafeMutablePointer(to: &addressStorageLength) { addressLengthPointer in
93 | try addressProvider(addressPointer, addressLengthPointer)
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/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:99:8: error: cannot find 'AF_INET' in scope
97 |
98 | switch Int32(addressStorage.ss_family) {
99 | case AF_INET:
| `- error: cannot find 'AF_INET' in scope
100 | self = withUnsafePointer(to: &addressStorage) {
101 | return $0.withMemoryRebound(to: sockaddr_in.self, capacity: 1) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:105:8: error: cannot find 'AF_INET6' in scope
103 | }
104 | }
105 | case AF_INET6:
| `- error: cannot find 'AF_INET6' in scope
106 | self = withUnsafePointer(to: &addressStorage) {
107 | return $0.withMemoryRebound(to: sockaddr_in6.self, capacity: 1) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:111:8: error: cannot find 'AF_UNIX' in scope
109 | }
110 | }
111 | case AF_UNIX:
| `- error: cannot find 'AF_UNIX' in scope
112 | self = withUnsafePointer(to: &addressStorage) {
113 | return $0.withMemoryRebound(to: sockaddr_un.self, capacity: 1) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:101:37: error: cannot find 'sockaddr_in' in scope
99 | case AF_INET:
100 | self = withUnsafePointer(to: &addressStorage) {
101 | return $0.withMemoryRebound(to: sockaddr_in.self, capacity: 1) {
| `- error: cannot find 'sockaddr_in' in scope
102 | return Socket.Address.ipv4($0.pointee)
103 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:101:15: error: generic parameter 'T' could not be inferred
99 | case AF_INET:
100 | self = withUnsafePointer(to: &addressStorage) {
101 | return $0.withMemoryRebound(to: sockaddr_in.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
102 | return Socket.Address.ipv4($0.pointee)
103 | }
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/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:107:37: error: cannot find 'sockaddr_in6' in scope
105 | case AF_INET6:
106 | self = withUnsafePointer(to: &addressStorage) {
107 | return $0.withMemoryRebound(to: sockaddr_in6.self, capacity: 1) {
| `- error: cannot find 'sockaddr_in6' in scope
108 | return Socket.Address.ipv6($0.pointee)
109 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:107:15: error: generic parameter 'T' could not be inferred
105 | case AF_INET6:
106 | self = withUnsafePointer(to: &addressStorage) {
107 | return $0.withMemoryRebound(to: sockaddr_in6.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
108 | return Socket.Address.ipv6($0.pointee)
109 | }
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/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:113:37: error: cannot find 'sockaddr_un' in scope
111 | case AF_UNIX:
112 | self = withUnsafePointer(to: &addressStorage) {
113 | return $0.withMemoryRebound(to: sockaddr_un.self, capacity: 1) {
| `- error: cannot find 'sockaddr_un' in scope
114 | return Socket.Address.unix($0.pointee)
115 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:113:15: error: generic parameter 'T' could not be inferred
111 | case AF_UNIX:
112 | self = withUnsafePointer(to: &addressStorage) {
113 | return $0.withMemoryRebound(to: sockaddr_un.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
114 | return Socket.Address.unix($0.pointee)
115 | }
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 |
[23/35] Emitting module Signals
[24/35] Compiling Signals Signals.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
warning: you may be able to install openssl using your system-packager:
apt-get install openssl libssl-dev
[0/1] Planning build
Building for debugging...
[0/11] Write swift-version-24593BA9C3E375BF.txt
[2/22] Compiling Logging MetadataProvider.swift
[3/22] Emitting module Signals
[4/22] Compiling Signals Signals.swift
[5/22] Compiling Logging LogHandler.swift
[7/23] Compiling Socket SocketUtils.swift
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:43:56: error: cannot find type 'sockaddr' in scope
41 | /// - Returns: The result of executing the closure.
42 | ///
43 | func withSockAddrPointer<Result>(body: (UnsafePointer<sockaddr>, socklen_t) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'sockaddr' in scope
44 |
45 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:86:47: error: cannot find type 'sockaddr' in scope
84 | /// - Returns: Newly initialized Socket.Address.
85 | ///
86 | init?(addressProvider: (UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) throws -> Void) rethrows {
| `- error: cannot find type 'sockaddr' in scope
87 |
88 | var addressStorage = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:146:27: error: cannot find '__DARWIN_FD_SETSIZE' in scope
144 | // __DARWIN_FD_SETSIZE is number of *bits*, so divide by number bits in each element to get element count
145 | // at present this is 1024 / 32 == 32
146 | let __fd_set_count = Int(__DARWIN_FD_SETSIZE) / 32
| `- error: cannot find '__DARWIN_FD_SETSIZE' in scope
147 |
148 | extension fd_set {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:52:60: error: cannot find type 'sockaddr' in scope
50 | /// - Returns: Result of executing the closure.
51 | ///
52 | func castAndCall<T>(_ address: T, _ body: (UnsafePointer<sockaddr>, socklen_t) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'sockaddr' in scope
53 | var localAddress = address // We need a `var` here for the `&`.
54 | return try withUnsafePointer(to: &localAddress) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:55:41: error: cannot find 'sockaddr' in scope
53 | var localAddress = address // We need a `var` here for the `&`.
54 | return try withUnsafePointer(to: &localAddress) {
55 | return try $0.withMemoryRebound(to: sockaddr.self, capacity: 1, {
| `- error: cannot find 'sockaddr' in scope
56 | return try body($0, socklen_t(MemoryLayout<T>.size))
57 | })
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:55:19: error: generic parameter 'T' could not be inferred
53 | var localAddress = address // We need a `var` here for the `&`.
54 | return try withUnsafePointer(to: &localAddress) {
55 | return try $0.withMemoryRebound(to: sockaddr.self, capacity: 1, {
| `- error: generic parameter 'T' could not be inferred
56 | return try body($0, socklen_t(MemoryLayout<T>.size))
57 | })
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/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:320:13: error: cannot find type 'sockaddr_in' in scope
318 |
319 | /// sockaddr_in
320 | case ipv4(sockaddr_in)
| `- error: cannot find type 'sockaddr_in' in scope
321 |
322 | /// sockaddr_in6
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:323:13: error: cannot find type 'sockaddr_in6' in scope
321 |
322 | /// sockaddr_in6
323 | case ipv6(sockaddr_in6)
| `- error: cannot find type 'sockaddr_in6' in scope
324 |
325 | /// sockaddr_un
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:326:13: error: cannot find type 'sockaddr_un' in scope
324 |
325 | /// sockaddr_un
326 | case unix(sockaddr_un)
| `- error: cannot find type 'sockaddr_un' in scope
327 |
328 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:88:24: error: cannot find 'sockaddr_storage' in scope
86 | init?(addressProvider: (UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) throws -> Void) rethrows {
87 |
88 | var addressStorage = sockaddr_storage()
| `- error: cannot find 'sockaddr_storage' in scope
89 | var addressStorageLength = socklen_t(MemoryLayout.size(ofValue: addressStorage))
90 | try withUnsafeMutablePointer(to: &addressStorage) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:91:33: error: cannot find 'sockaddr' in scope
89 | var addressStorageLength = socklen_t(MemoryLayout.size(ofValue: addressStorage))
90 | try withUnsafeMutablePointer(to: &addressStorage) {
91 | try $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { addressPointer in
| `- error: cannot find 'sockaddr' in scope
92 | try withUnsafeMutablePointer(to: &addressStorageLength) { addressLengthPointer in
93 | try addressProvider(addressPointer, addressLengthPointer)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:91:11: error: generic parameter 'T' could not be inferred
89 | var addressStorageLength = socklen_t(MemoryLayout.size(ofValue: addressStorage))
90 | try withUnsafeMutablePointer(to: &addressStorage) {
91 | try $0.withMemoryRebound(to: sockaddr.self, capacity: 1) { addressPointer in
| `- error: generic parameter 'T' could not be inferred
92 | try withUnsafeMutablePointer(to: &addressStorageLength) { addressLengthPointer in
93 | try addressProvider(addressPointer, addressLengthPointer)
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/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:99:8: error: cannot find 'AF_INET' in scope
97 |
98 | switch Int32(addressStorage.ss_family) {
99 | case AF_INET:
| `- error: cannot find 'AF_INET' in scope
100 | self = withUnsafePointer(to: &addressStorage) {
101 | return $0.withMemoryRebound(to: sockaddr_in.self, capacity: 1) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:105:8: error: cannot find 'AF_INET6' in scope
103 | }
104 | }
105 | case AF_INET6:
| `- error: cannot find 'AF_INET6' in scope
106 | self = withUnsafePointer(to: &addressStorage) {
107 | return $0.withMemoryRebound(to: sockaddr_in6.self, capacity: 1) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:111:8: error: cannot find 'AF_UNIX' in scope
109 | }
110 | }
111 | case AF_UNIX:
| `- error: cannot find 'AF_UNIX' in scope
112 | self = withUnsafePointer(to: &addressStorage) {
113 | return $0.withMemoryRebound(to: sockaddr_un.self, capacity: 1) {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:101:37: error: cannot find 'sockaddr_in' in scope
99 | case AF_INET:
100 | self = withUnsafePointer(to: &addressStorage) {
101 | return $0.withMemoryRebound(to: sockaddr_in.self, capacity: 1) {
| `- error: cannot find 'sockaddr_in' in scope
102 | return Socket.Address.ipv4($0.pointee)
103 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:101:15: error: generic parameter 'T' could not be inferred
99 | case AF_INET:
100 | self = withUnsafePointer(to: &addressStorage) {
101 | return $0.withMemoryRebound(to: sockaddr_in.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
102 | return Socket.Address.ipv4($0.pointee)
103 | }
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/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:107:37: error: cannot find 'sockaddr_in6' in scope
105 | case AF_INET6:
106 | self = withUnsafePointer(to: &addressStorage) {
107 | return $0.withMemoryRebound(to: sockaddr_in6.self, capacity: 1) {
| `- error: cannot find 'sockaddr_in6' in scope
108 | return Socket.Address.ipv6($0.pointee)
109 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:107:15: error: generic parameter 'T' could not be inferred
105 | case AF_INET6:
106 | self = withUnsafePointer(to: &addressStorage) {
107 | return $0.withMemoryRebound(to: sockaddr_in6.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
108 | return Socket.Address.ipv6($0.pointee)
109 | }
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/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:113:37: error: cannot find 'sockaddr_un' in scope
111 | case AF_UNIX:
112 | self = withUnsafePointer(to: &addressStorage) {
113 | return $0.withMemoryRebound(to: sockaddr_un.self, capacity: 1) {
| `- error: cannot find 'sockaddr_un' in scope
114 | return Socket.Address.unix($0.pointee)
115 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:113:15: error: generic parameter 'T' could not be inferred
111 | case AF_UNIX:
112 | self = withUnsafePointer(to: &addressStorage) {
113 | return $0.withMemoryRebound(to: sockaddr_un.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
114 | return Socket.Address.unix($0.pointee)
115 | }
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 |
[8/23] Compiling Socket SocketProtocols.swift
[8/23] Wrapping AST for Signals for debugging
[10/23] Compiling Logging Locks.swift
[11/23] Emitting module Logging
[12/23] Compiling Logging Logging.swift
[13/24] Wrapping AST for Logging for debugging
[15/26] Emitting module LoggerAPI
[16/26] Compiling LoggerAPI Logger.swift
[17/27] Wrapping AST for LoggerAPI for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/27] Emitting module Socket
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:52:39: error: cannot find 'in_addr_t' in scope
50 | public static let SOCKET_INVALID_DESCRIPTOR = Int32(-1)
51 |
52 | public static let INADDR_ANY = in_addr_t(0)
| `- error: cannot find 'in_addr_t' in scope
53 |
54 | public static let NO_HOSTNAME = "No hostname"
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:320:13: error: cannot find type 'sockaddr_in' in scope
318 |
319 | /// sockaddr_in
320 | case ipv4(sockaddr_in)
| `- error: cannot find type 'sockaddr_in' in scope
321 |
322 | /// sockaddr_in6
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:323:13: error: cannot find type 'sockaddr_in6' in scope
321 |
322 | /// sockaddr_in6
323 | case ipv6(sockaddr_in6)
| `- error: cannot find type 'sockaddr_in6' in scope
324 |
325 | /// sockaddr_un
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:326:13: error: cannot find type 'sockaddr_un' in scope
324 |
325 | /// sockaddr_un
326 | case unix(sockaddr_un)
| `- error: cannot find type 'sockaddr_un' in scope
327 |
328 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:43:56: error: cannot find type 'sockaddr' in scope
41 | /// - Returns: The result of executing the closure.
42 | ///
43 | func withSockAddrPointer<Result>(body: (UnsafePointer<sockaddr>, socklen_t) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'sockaddr' in scope
44 |
45 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:86:47: error: cannot find type 'sockaddr' in scope
84 | /// - Returns: Newly initialized Socket.Address.
85 | ///
86 | init?(addressProvider: (UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) throws -> Void) rethrows {
| `- error: cannot find type 'sockaddr' in scope
87 |
88 | var addressStorage = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:146:27: error: cannot find '__DARWIN_FD_SETSIZE' in scope
144 | // __DARWIN_FD_SETSIZE is number of *bits*, so divide by number bits in each element to get element count
145 | // at present this is 1024 / 32 == 32
146 | let __fd_set_count = Int(__DARWIN_FD_SETSIZE) / 32
| `- error: cannot find '__DARWIN_FD_SETSIZE' in scope
147 |
148 | extension fd_set {
[20/27] Compiling Socket Socket.swift
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:52:39: error: cannot find 'in_addr_t' in scope
50 | public static let SOCKET_INVALID_DESCRIPTOR = Int32(-1)
51 |
52 | public static let INADDR_ANY = in_addr_t(0)
| `- error: cannot find 'in_addr_t' in scope
53 |
54 | public static let NO_HOSTNAME = "No hostname"
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:320:13: error: cannot find type 'sockaddr_in' in scope
318 |
319 | /// sockaddr_in
320 | case ipv4(sockaddr_in)
| `- error: cannot find type 'sockaddr_in' in scope
321 |
322 | /// sockaddr_in6
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:323:13: error: cannot find type 'sockaddr_in6' in scope
321 |
322 | /// sockaddr_in6
323 | case ipv6(sockaddr_in6)
| `- error: cannot find type 'sockaddr_in6' in scope
324 |
325 | /// sockaddr_un
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:326:13: error: cannot find type 'sockaddr_un' in scope
324 |
325 | /// sockaddr_un
326 | case unix(sockaddr_un)
| `- error: cannot find type 'sockaddr_un' in scope
327 |
328 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:147:18: error: cannot find 'AF_INET' in scope
145 |
146 | case .inet:
147 | return Int32(AF_INET)
| `- error: cannot find 'AF_INET' in scope
148 |
149 | case .inet6:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:150:18: error: cannot find 'AF_INET6' in scope
148 |
149 | case .inet6:
150 | return Int32(AF_INET6)
| `- error: cannot find 'AF_INET6' in scope
151 |
152 | case .unix:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:153:18: error: cannot find 'AF_UNIX' in scope
151 |
152 | case .unix:
153 | return Int32(AF_UNIX)
| `- error: cannot find 'AF_UNIX' in scope
154 | }
155 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:167:15: error: cannot find 'AF_INET' in scope
165 | switch forValue {
166 |
167 | case Int32(AF_INET):
| `- error: cannot find 'AF_INET' in scope
168 | return .inet
169 | case Int32(AF_INET6):
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:169:15: error: cannot find 'AF_INET6' in scope
167 | case Int32(AF_INET):
168 | return .inet
169 | case Int32(AF_INET6):
| `- error: cannot find 'AF_INET6' in scope
170 | return .inet6
171 | case Int32(AF_UNIX):
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:171:15: error: cannot find 'AF_UNIX' in scope
169 | case Int32(AF_INET6):
170 | return .inet6
171 | case Int32(AF_UNIX):
| `- error: cannot find 'AF_UNIX' in scope
172 | return .unix
173 | default:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:208:13: error: cannot find 'SOCK_STREAM' in scope
206 | return Int32(SOCK_STREAM.rawValue)
207 | #else
208 | return SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
209 | #endif
210 | case .datagram:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:214:13: error: cannot find 'SOCK_DGRAM' in scope
212 | return Int32(SOCK_DGRAM.rawValue)
213 | #else
214 | return SOCK_DGRAM
| `- error: cannot find 'SOCK_DGRAM' in scope
215 | #endif
216 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:241:10: error: cannot find 'SOCK_STREAM' in scope
239 | switch forValue {
240 |
241 | case SOCK_STREAM:
| `- error: cannot find 'SOCK_STREAM' in scope
242 | return .stream
243 | case SOCK_DGRAM:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:243:10: error: cannot find 'SOCK_DGRAM' in scope
241 | case SOCK_STREAM:
242 | return .stream
243 | case SOCK_DGRAM:
| `- error: cannot find 'SOCK_DGRAM' in scope
244 | return .datagram
245 | default:
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:281:18: error: cannot find 'IPPROTO_TCP' in scope
279 |
280 | case .tcp:
281 | return Int32(IPPROTO_TCP)
| `- error: cannot find 'IPPROTO_TCP' in scope
282 | case .udp:
283 | return Int32(IPPROTO_UDP)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:283:18: error: cannot find 'IPPROTO_UDP' in scope
281 | return Int32(IPPROTO_TCP)
282 | case .udp:
283 | return Int32(IPPROTO_UDP)
| `- error: cannot find 'IPPROTO_UDP' in scope
284 | case .unix:
285 | return Int32(0)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:300:15: error: cannot find 'IPPROTO_TCP' in scope
298 | switch forValue {
299 |
300 | case Int32(IPPROTO_TCP):
| `- error: cannot find 'IPPROTO_TCP' in scope
301 | return .tcp
302 | case Int32(IPPROTO_UDP):
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:302:15: error: cannot find 'IPPROTO_UDP' in scope
300 | case Int32(IPPROTO_TCP):
301 | return .tcp
302 | case Int32(IPPROTO_UDP):
| `- error: cannot find 'IPPROTO_UDP' in scope
303 | return .udp
304 | case Int32(0):
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:336:26: error: cannot find type 'sockaddr_in' in scope
334 |
335 | case .ipv4( _):
336 | return MemoryLayout<(sockaddr_in)>.size
| `- error: cannot find type 'sockaddr_in' in scope
337 | case .ipv6( _):
338 | return MemoryLayout<(sockaddr_in6)>.size
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:338:26: error: cannot find type 'sockaddr_in6' in scope
336 | return MemoryLayout<(sockaddr_in)>.size
337 | case .ipv6( _):
338 | return MemoryLayout<(sockaddr_in6)>.size
| `- error: cannot find type 'sockaddr_in6' in scope
339 | case .unix( _):
340 | return MemoryLayout<(sockaddr_un)>.size
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:340:26: error: cannot find type 'sockaddr_un' in scope
338 | return MemoryLayout<(sockaddr_in6)>.size
339 | case .unix( _):
340 | return MemoryLayout<(sockaddr_un)>.size
| `- error: cannot find type 'sockaddr_un' in scope
341 | }
342 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:591:21: error: cannot find 'sockaddr_un' in scope
589 |
590 | // Create the address...
591 | var remoteAddr = sockaddr_un()
| `- error: cannot find 'sockaddr_un' in scope
592 | remoteAddr.sun_family = sa_family_t(AF_UNIX)
593 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:592:28: error: cannot find 'sa_family_t' in scope
590 | // Create the address...
591 | var remoteAddr = sockaddr_un()
592 | remoteAddr.sun_family = sa_family_t(AF_UNIX)
| `- error: cannot find 'sa_family_t' in scope
593 |
594 | let lengthOfPath = path.utf8.count
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:592:40: error: cannot find 'AF_UNIX' in scope
590 | // Create the address...
591 | var remoteAddr = sockaddr_un()
592 | remoteAddr.sun_family = sa_family_t(AF_UNIX)
| `- error: cannot find 'AF_UNIX' in scope
593 |
594 | let lengthOfPath = path.utf8.count
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:611:75: error: cannot find type 'sa_family_t' in scope
609 |
610 | #if !os(Linux)
611 | remoteAddr.sun_len = UInt8(MemoryLayout<UInt8>.size + MemoryLayout<sa_family_t>.size + path.utf8.count + 1)
| `- error: cannot find type 'sa_family_t' in scope
612 | #endif
613 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:614:20: error: type 'Socket.Address?' has no member 'unix'
612 | #endif
613 |
614 | self.address = .unix(remoteAddr)
| `- error: type 'Socket.Address?' has no member 'unix'
615 | }
616 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:686:59: error: cannot find type 'sa_family_t' in scope
684 | let addrLen = MemoryLayout<sockaddr_un>.size
685 | #else
686 | let addrLen = MemoryLayout<UInt8>.size + MemoryLayout<sa_family_t>.size + utf8.count + 1
| `- error: cannot find type 'sa_family_t' in scope
687 | #endif
688 | let addrPtr = UnsafeMutablePointer<UInt8>.allocate(capacity: addrLen)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:710:29: error: cannot find 'AF_UNIX' in scope
708 | addrPtr[memLoc] = UInt8(addrLen)
709 | memLoc += 1
710 | addrPtr[memLoc] = UInt8(AF_UNIX)
| `- error: cannot find 'AF_UNIX' in scope
711 | memLoc += 1
712 | #endif
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1082:17: error: cannot find 'INET_ADDRSTRLEN' in scope
1080 | case .ipv4(let address_in):
1081 | var addr_in = address_in
1082 | bufLen = Int(INET_ADDRSTRLEN)
| `- error: cannot find 'INET_ADDRSTRLEN' in scope
1083 | buf = [CChar](repeating: 0, count: bufLen)
1084 | inet_ntop(Int32(addr_in.sin_family), &addr_in.sin_addr, &buf, socklen_t(bufLen))
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1084:4: error: cannot find 'inet_ntop' in scope
1082 | bufLen = Int(INET_ADDRSTRLEN)
1083 | buf = [CChar](repeating: 0, count: bufLen)
1084 | inet_ntop(Int32(addr_in.sin_family), &addr_in.sin_addr, &buf, socklen_t(bufLen))
| `- error: cannot find 'inet_ntop' in scope
1085 | if isLittleEndian {
1086 | port = Int32(UInt16(addr_in.sin_port).byteSwapped)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1093:17: error: cannot find 'INET6_ADDRSTRLEN' in scope
1091 | case .ipv6(let address_in):
1092 | var addr_in = address_in
1093 | bufLen = Int(INET6_ADDRSTRLEN)
| `- error: cannot find 'INET6_ADDRSTRLEN' in scope
1094 | buf = [CChar](repeating: 0, count: bufLen)
1095 | inet_ntop(Int32(addr_in.sin6_family), &addr_in.sin6_addr, &buf, socklen_t(bufLen))
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1095:4: error: cannot find 'inet_ntop' in scope
1093 | bufLen = Int(INET6_ADDRSTRLEN)
1094 | buf = [CChar](repeating: 0, count: bufLen)
1095 | inet_ntop(Int32(addr_in.sin6_family), &addr_in.sin6_addr, &buf, socklen_t(bufLen))
| `- error: cannot find 'inet_ntop' in scope
1096 | if isLittleEndian {
1097 | port = Int32(UInt16(addr_in.sin6_port).byteSwapped)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1187:21: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
1185 | timer.tv_usec = Int(uSecs)
1186 | #else
1187 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
1188 | #endif
1189 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1215:95: error: cannot find 'errno' in scope
1213 | if count < 0 {
1214 |
1215 | throw Error(code: Socket.SOCKET_ERR_SELECT_FAILED, reason: String(validatingUTF8: strerror(errno)) ?? "Error: \(errno)")
| `- error: cannot find 'errno' in scope
1216 | }
1217 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1215:116: error: cannot find 'errno' in scope
1213 | if count < 0 {
1214 |
1215 | throw Error(code: Socket.SOCKET_ERR_SELECT_FAILED, reason: String(validatingUTF8: strerror(errno)) ?? "Error: \(errno)")
| `- error: cannot find 'errno' in scope
1216 | }
1217 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1238:34: error: cannot find type 'addrinfo' in scope
1236 | public class func createAddress(for host: String, on port: Int32) -> Address? {
1237 |
1238 | var info: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
1239 |
1240 | // Retrieve the info on our target...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1241:23: error: cannot find 'getaddrinfo' in scope
1239 |
1240 | // Retrieve the info on our target...
1241 | let status: Int32 = getaddrinfo(host, String(port), nil, &info)
| `- error: cannot find 'getaddrinfo' in scope
1242 | if status != 0 {
1243 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1241:55: error: 'nil' requires a contextual type
1239 |
1240 | // Retrieve the info on our target...
1241 | let status: Int32 = getaddrinfo(host, String(port), nil, &info)
| `- error: 'nil' requires a contextual type
1242 | if status != 0 {
1243 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1251:5: error: cannot find 'freeaddrinfo' in scope
1249 |
1250 | if info != nil {
1251 | freeaddrinfo(info)
| `- error: cannot find 'freeaddrinfo' in scope
1252 | }
1253 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1256:39: error: cannot find 'AF_INET' in scope
1254 |
1255 | var address: Address
1256 | if info!.pointee.ai_family == Int32(AF_INET) {
| `- error: cannot find 'AF_INET' in scope
1257 |
1258 | var addr = sockaddr_in()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1258:15: error: cannot find 'sockaddr_in' in scope
1256 | if info!.pointee.ai_family == Int32(AF_INET) {
1257 |
1258 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
1259 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
1260 | address = .ipv4(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1259:58: error: cannot find type 'sockaddr_in' in scope
1257 |
1258 | var addr = sockaddr_in()
1259 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr_in' in scope
1260 | address = .ipv4(addr)
1261 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1262:46: error: cannot find 'AF_INET6' in scope
1260 | address = .ipv4(addr)
1261 |
1262 | } else if info!.pointee.ai_family == Int32(AF_INET6) {
| `- error: cannot find 'AF_INET6' in scope
1263 |
1264 | var addr = sockaddr_in6()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1264:15: error: cannot find 'sockaddr_in6' in scope
1262 | } else if info!.pointee.ai_family == Int32(AF_INET6) {
1263 |
1264 | var addr = sockaddr_in6()
| `- error: cannot find 'sockaddr_in6' in scope
1265 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
1266 | address = .ipv6(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1265:58: error: cannot find type 'sockaddr_in6' in scope
1263 |
1264 | var addr = sockaddr_in6()
1265 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
| `- error: cannot find type 'sockaddr_in6' in scope
1266 | address = .ipv6(addr)
1267 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1309:20: error: cannot find 'Darwin' in scope
1307 | self.socketfd = Glibc.socket(family.value, type.value, sockProto.value)
1308 | #else
1309 | self.socketfd = Darwin.socket(family.value, type.value, sockProto.value)
| `- error: cannot find 'Darwin' in scope
1310 | #endif
1311 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1354:15: error: cannot find 'SOCK_STREAM' in scope
1352 | let type = Int32(SOCK_STREAM.rawValue)
1353 | #else
1354 | let type = SOCK_STREAM
| `- error: cannot find 'SOCK_STREAM' in scope
1355 | #endif
1356 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1368:19: error: cannot find 'IPPROTO_TCP' in scope
1366 | protocolFamily: remoteAddress.family.value,
1367 | socketType: type,
1368 | proto: Int32(IPPROTO_TCP),
| `- error: cannot find 'IPPROTO_TCP' in scope
1369 | address: remoteAddress,
1370 | hostname: hostname,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1376:19: error: cannot find 'IPPROTO_TCP' in scope
1374 | protocolFamily: remoteAddress.family.value,
1375 | socketType: type,
1376 | proto: Int32(IPPROTO_TCP),
| `- error: cannot find 'IPPROTO_TCP' in scope
1377 | address: remoteAddress)
1378 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1444:16: error: cannot find 'Darwin' in scope
1442 | let fd = Glibc.accept(self.socketfd, addressPointer, addressLengthPointer)
1443 | #else
1444 | let fd = Darwin.accept(self.socketfd, addressPointer, addressLengthPointer)
| `- error: cannot find 'Darwin' in scope
1445 | #endif
1446 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1450:10: error: cannot find 'errno' in scope
1448 |
1449 | // The operation was interrupted, continue the loop...
1450 | if errno == EINTR {
| `- error: cannot find 'errno' in scope
1451 | throw OperationInterrupted.accept
1452 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:86:47: error: cannot find type 'sockaddr' in scope
84 | /// - Returns: Newly initialized Socket.Address.
85 | ///
86 | init?(addressProvider: (UnsafeMutablePointer<sockaddr>, UnsafeMutablePointer<socklen_t>) throws -> Void) rethrows {
| `- error: cannot find type 'sockaddr' in scope
87 |
88 | var addressStorage = sockaddr_storage()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1557:16: error: cannot find 'Darwin' in scope
1555 | let fd = Glibc.accept(self.socketfd, addressPointer, addressLengthPointer)
1556 | #else
1557 | let fd = Darwin.accept(self.socketfd, addressPointer, addressLengthPointer)
| `- error: cannot find 'Darwin' in scope
1558 | #endif
1559 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1563:10: error: cannot find 'errno' in scope
1561 |
1562 | // The operation was interrupted, continue the loop...
1563 | if errno == EINTR {
| `- error: cannot find 'errno' in scope
1564 | throw OperationInterrupted.accept
1565 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1706:16: error: cannot find 'addrinfo' in scope
1704 | ai_next: nil)
1705 | #else
1706 | var hints = addrinfo(
| `- error: cannot find 'addrinfo' in scope
1707 | ai_flags: AI_PASSIVE,
1708 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1707:15: error: cannot find 'AI_PASSIVE' in scope
1705 | #else
1706 | var hints = addrinfo(
1707 | ai_flags: AI_PASSIVE,
| `- error: cannot find 'AI_PASSIVE' in scope
1708 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
1709 | ai_socktype: socketType.value,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1708:64: error: cannot find 'AF_UNSPEC' in scope
1706 | var hints = addrinfo(
1707 | ai_flags: AI_PASSIVE,
1708 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
| `- error: cannot find 'AF_UNSPEC' in scope
1709 | ai_socktype: socketType.value,
1710 | ai_protocol: 0,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1708:76: error: cannot find 'AF_UNSPEC' in scope
1706 | var hints = addrinfo(
1707 | ai_flags: AI_PASSIVE,
1708 | ai_family: familyOnly ? signature?.protocolFamily.value ?? AF_UNSPEC : AF_UNSPEC,
| `- error: cannot find 'AF_UNSPEC' in scope
1709 | ai_socktype: socketType.value,
1710 | ai_protocol: 0,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1712:19: error: 'nil' requires a contextual type
1710 | ai_protocol: 0,
1711 | ai_addrlen: 0,
1712 | ai_canonname: nil,
| `- error: 'nil' requires a contextual type
1713 | ai_addr: nil,
1714 | ai_next: nil)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1713:14: error: 'nil' requires a contextual type
1711 | ai_addrlen: 0,
1712 | ai_canonname: nil,
1713 | ai_addr: nil,
| `- error: 'nil' requires a contextual type
1714 | ai_next: nil)
1715 | #endif
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1714:14: error: 'nil' requires a contextual type
1712 | ai_canonname: nil,
1713 | ai_addr: nil,
1714 | ai_next: nil)
| `- error: 'nil' requires a contextual type
1715 | #endif
1716 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1717:40: error: cannot find type 'addrinfo' in scope
1715 | #endif
1716 |
1717 | var targetInfo: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
1718 |
1719 | // Retrieve the info on our target...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1720:23: error: cannot find 'getaddrinfo' in scope
1718 |
1719 | // Retrieve the info on our target...
1720 | var status: Int32 = getaddrinfo(host, String(port), &hints, &targetInfo)
| `- error: cannot find 'getaddrinfo' in scope
1721 | if status != 0 {
1722 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1724:17: error: cannot find 'EAI_SYSTEM' in scope
1722 |
1723 | var errorString: String
1724 | if status == EAI_SYSTEM {
| `- error: cannot find 'EAI_SYSTEM' in scope
1725 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
1726 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1725:51: error: cannot find 'errno' in scope
1723 | var errorString: String
1724 | if status == EAI_SYSTEM {
1725 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'errno' in scope
1726 | } else {
1727 | errorString = String(validatingUTF8: gai_strerror(status)) ?? "Unknown error code."
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1727:42: error: cannot find 'gai_strerror' in scope
1725 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
1726 | } else {
1727 | errorString = String(validatingUTF8: gai_strerror(status)) ?? "Unknown error code."
| `- error: cannot find 'gai_strerror' in scope
1728 | }
1729 | throw Error(code: Socket.SOCKET_ERR_GETADDRINFO_FAILED, reason: errorString)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1736:5: error: cannot find 'freeaddrinfo' in scope
1734 |
1735 | if targetInfo != nil {
1736 | freeaddrinfo(targetInfo)
| `- error: cannot find 'freeaddrinfo' in scope
1737 | }
1738 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1748:10: error: cannot find 'Darwin' in scope
1746 | _ = Glibc.close(socketDescriptor!)
1747 | #else
1748 | _ = Darwin.close(socketDescriptor!)
| `- error: cannot find 'Darwin' in scope
1749 | #endif
1750 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1759:24: error: cannot find 'Darwin' in scope
1757 | socketDescriptor = Glibc.socket(info!.pointee.ai_family, info!.pointee.ai_socktype, info!.pointee.ai_protocol)
1758 | #else
1759 | socketDescriptor = Darwin.socket(info!.pointee.ai_family, info!.pointee.ai_socktype, info!.pointee.ai_protocol)
| `- error: cannot find 'Darwin' in scope
1760 | #endif
1761 | if socketDescriptor == -1 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1769:17: error: cannot find 'fcntl' in scope
1767 | if !self.isBlocking || timeout > 0 {
1768 |
1769 | let flags = fcntl(socketDescriptor!, F_GETFL)
| `- error: cannot find 'fcntl' in scope
1770 | if flags < 0 {
1771 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1769:42: error: cannot find 'F_GETFL' in scope
1767 | if !self.isBlocking || timeout > 0 {
1768 |
1769 | let flags = fcntl(socketDescriptor!, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
1770 | if flags < 0 {
1771 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1775:18: error: cannot find 'fcntl' in scope
1773 | }
1774 |
1775 | let result = fcntl(socketDescriptor!, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
1776 | if result < 0 {
1777 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1775:43: error: cannot find 'F_SETFL' in scope
1773 | }
1774 |
1775 | let result = fcntl(socketDescriptor!, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
1776 | if result < 0 {
1777 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1775:60: error: cannot find 'O_NONBLOCK' in scope
1773 | }
1774 |
1775 | let result = fcntl(socketDescriptor!, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
1776 | if result < 0 {
1777 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1786:14: error: cannot find 'Darwin' in scope
1784 | status = Glibc.connect(socketDescriptor!, info!.pointee.ai_addr, info!.pointee.ai_addrlen)
1785 | #else
1786 | status = Darwin.connect(socketDescriptor!, info!.pointee.ai_addr, info!.pointee.ai_addrlen)
| `- error: cannot find 'Darwin' in scope
1787 | #endif
1788 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1795:7: error: cannot find 'errno' in scope
1793 |
1794 | // If this is a non-blocking socket, check errno for EINPROGRESS and if set we've got a timeout, wait the appropriate time...
1795 | if errno == EINPROGRESS {
| `- error: cannot find 'errno' in scope
1796 |
1797 | if timeout > 0 {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1820:23: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
1818 | timer.tv_usec = Int(uSecs)
1819 | #else
1820 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
1821 | #endif
1822 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1836:10: error: cannot find 'getsockopt' in scope
1834 | var result: Int = 0
1835 | var resultLength = socklen_t(MemoryLayout<Int>.size)
1836 | if getsockopt(socketDescriptor!, SOL_SOCKET, SO_ERROR, &result, &resultLength) < 0 {
| `- error: cannot find 'getsockopt' in scope
1837 |
1838 | throw Error(code: Socket.SOCKET_ERR_GETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1836:40: error: cannot find 'SOL_SOCKET' in scope
1834 | var result: Int = 0
1835 | var resultLength = socklen_t(MemoryLayout<Int>.size)
1836 | if getsockopt(socketDescriptor!, SOL_SOCKET, SO_ERROR, &result, &resultLength) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
1837 |
1838 | throw Error(code: Socket.SOCKET_ERR_GETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1836:52: error: cannot find 'SO_ERROR' in scope
1834 | var result: Int = 0
1835 | var resultLength = socklen_t(MemoryLayout<Int>.size)
1836 | if getsockopt(socketDescriptor!, SOL_SOCKET, SO_ERROR, &result, &resultLength) < 0 {
| `- error: cannot find 'SO_ERROR' in scope
1837 |
1838 | throw Error(code: Socket.SOCKET_ERR_GETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1860:9: error: cannot find 'Darwin' in scope
1858 | _ = Glibc.close(socketDescriptor!)
1859 | #else
1860 | _ = Darwin.close(socketDescriptor!)
| `- error: cannot find 'Darwin' in scope
1861 | #endif
1862 | socketDescriptor = nil
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1873:10: error: cannot find 'Darwin' in scope
1871 | _ = Glibc.close(socketDescriptor!)
1872 | #else
1873 | _ = Darwin.close(socketDescriptor!)
| `- error: cannot find 'Darwin' in scope
1874 | #endif
1875 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1890:39: error: cannot find 'AF_INET6' in scope
1888 | self.isConnected = true
1889 | var address: Address
1890 | if info!.pointee.ai_family == Int32(AF_INET6) {
| `- error: cannot find 'AF_INET6' in scope
1891 |
1892 | var addr = sockaddr_in6()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1892:15: error: cannot find 'sockaddr_in6' in scope
1890 | if info!.pointee.ai_family == Int32(AF_INET6) {
1891 |
1892 | var addr = sockaddr_in6()
| `- error: cannot find 'sockaddr_in6' in scope
1893 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
1894 | address = .ipv6(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1893:58: error: cannot find type 'sockaddr_in6' in scope
1891 |
1892 | var addr = sockaddr_in6()
1893 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
| `- error: cannot find type 'sockaddr_in6' in scope
1894 | address = .ipv6(addr)
1895 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1896:46: error: cannot find 'AF_INET' in scope
1894 | address = .ipv6(addr)
1895 |
1896 | } else if info!.pointee.ai_family == Int32(AF_INET) {
| `- error: cannot find 'AF_INET' in scope
1897 |
1898 | var addr = sockaddr_in()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1898:15: error: cannot find 'sockaddr_in' in scope
1896 | } else if info!.pointee.ai_family == Int32(AF_INET) {
1897 |
1898 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
1899 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
1900 | address = .ipv4(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1899:58: error: cannot find type 'sockaddr_in' in scope
1897 |
1898 | var addr = sockaddr_in()
1899 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr_in' in scope
1900 | address = .ipv4(addr)
1901 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1922:16: error: cannot find 'fcntl' in scope
1920 | // Socket supposed to be blocking but we've changed it to non-blocking because
1921 | // a timeout was requested... Got to change it back before proceeding...
1922 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'fcntl' in scope
1923 | if flags < 0 {
1924 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1922:37: error: cannot find 'F_GETFL' in scope
1920 | // Socket supposed to be blocking but we've changed it to non-blocking because
1921 | // a timeout was requested... Got to change it back before proceeding...
1922 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
1923 | if flags < 0 {
1924 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1928:17: error: cannot find 'fcntl' in scope
1926 | }
1927 |
1928 | let result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
1929 | if result < 0 {
1930 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1928:38: error: cannot find 'F_SETFL' in scope
1926 | }
1927 |
1928 | let result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
1929 | if result < 0 {
1930 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1928:56: error: cannot find 'O_NONBLOCK' in scope
1926 | }
1927 |
1928 | let result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
1929 | if result < 0 {
1930 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1995:42: error: cannot find 'sockaddr' in scope
1993 | }
1994 |
1995 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
| `- error: cannot find 'sockaddr' in scope
1996 |
1997 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2002:12: error: cannot find 'Darwin' in scope
2000 | return Glibc.connect(self.socketfd, p, socklen_t(addrLen))
2001 | #else
2002 | return Darwin.connect(self.socketfd, p, socklen_t(addrLen))
| `- error: cannot find 'Darwin' in scope
2003 | #endif
2004 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1997:29: error: cannot find type 'sockaddr' in scope
1995 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
1996 |
1997 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
| `- error: cannot find type 'sockaddr' in scope
1998 |
1999 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:1995:20: error: generic parameter 'T' could not be inferred
1993 | }
1994 |
1995 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
1996 |
1997 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
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/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2056:13: error: cannot find 'Darwin' in scope
2054 | return Glibc.connect(self.socketfd, sockaddr, length)
2055 | #else
2056 | return Darwin.connect(self.socketfd, sockaddr, length)
| `- error: cannot find 'Darwin' in scope
2057 | #endif
2058 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/SocketUtils.swift:43:56: error: cannot find type 'sockaddr' in scope
41 | /// - Returns: The result of executing the closure.
42 | ///
43 | func withSockAddrPointer<Result>(body: (UnsafePointer<sockaddr>, socklen_t) throws -> Result) rethrows -> Result {
| `- error: cannot find type 'sockaddr' in scope
44 |
45 | ///
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2138:6: error: cannot find 'setsockopt' in scope
2136 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2137 | var on: Int32 = 1
2138 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2139 |
2140 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2138:32: error: cannot find 'SOL_SOCKET' in scope
2136 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2137 | var on: Int32 = 1
2138 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
2139 |
2140 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2138:44: error: cannot find 'SO_REUSEADDR' in scope
2136 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2137 | var on: Int32 = 1
2138 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEADDR' in scope
2139 |
2140 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2150:7: error: cannot find 'setsockopt' in scope
2148 | // instances of a program to each receive UDP/IP multicast or broadcast datagrams
2149 | // destined for the bound port.
2150 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2151 |
2152 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2150:33: error: cannot find 'SOL_SOCKET' in scope
2148 | // instances of a program to each receive UDP/IP multicast or broadcast datagrams
2149 | // destined for the bound port.
2150 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
2151 |
2152 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2150:45: error: cannot find 'SO_REUSEPORT' in scope
2148 | // instances of a program to each receive UDP/IP multicast or broadcast datagrams
2149 | // destined for the bound port.
2150 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEPORT' in scope
2151 |
2152 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2154:8: error: cannot find 'errno' in scope
2152 | // Setting of this option on WSL (Windows Subsytem for Linux) is not supported. Check for
2153 | // the appropriate errno value and if set, ignore the error...
2154 | if errno != ENOPROTOOPT {
| `- error: cannot find 'errno' in scope
2155 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
2156 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2168:16: error: cannot find 'setsockopt' in scope
2166 | // Configure ipv6 socket so that it can share ports with ipv4 on the same port.
2167 | if sig.protocolFamily == .inet6 && sig.proto == .tcp {
2168 | if setsockopt(self.socketfd, Int32(IPPROTO_IPV6), IPV6_V6ONLY, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2169 |
2170 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2168:48: error: cannot find 'IPPROTO_IPV6' in scope
2166 | // Configure ipv6 socket so that it can share ports with ipv4 on the same port.
2167 | if sig.protocolFamily == .inet6 && sig.proto == .tcp {
2168 | if setsockopt(self.socketfd, Int32(IPPROTO_IPV6), IPV6_V6ONLY, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'IPPROTO_IPV6' in scope
2169 |
2170 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2168:63: error: cannot find 'IPV6_V6ONLY' in scope
2166 | // Configure ipv6 socket so that it can share ports with ipv4 on the same port.
2167 | if sig.protocolFamily == .inet6 && sig.proto == .tcp {
2168 | if setsockopt(self.socketfd, Int32(IPPROTO_IPV6), IPV6_V6ONLY, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'IPV6_V6ONLY' in scope
2169 |
2170 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2205:16: error: cannot find 'addrinfo' in scope
2203 | ai_next: nil)
2204 | #else
2205 | var hints = addrinfo(
| `- error: cannot find 'addrinfo' in scope
2206 | ai_flags: AI_PASSIVE,
2207 | ai_family: sig.protocolFamily.value,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2206:15: error: cannot find 'AI_PASSIVE' in scope
2204 | #else
2205 | var hints = addrinfo(
2206 | ai_flags: AI_PASSIVE,
| `- error: cannot find 'AI_PASSIVE' in scope
2207 | ai_family: sig.protocolFamily.value,
2208 | ai_socktype: sig.socketType.value,
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2211:19: error: 'nil' requires a contextual type
2209 | ai_protocol: 0,
2210 | ai_addrlen: 0,
2211 | ai_canonname: nil,
| `- error: 'nil' requires a contextual type
2212 | ai_addr: nil,
2213 | ai_next: nil)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2212:14: error: 'nil' requires a contextual type
2210 | ai_addrlen: 0,
2211 | ai_canonname: nil,
2212 | ai_addr: nil,
| `- error: 'nil' requires a contextual type
2213 | ai_next: nil)
2214 | #endif
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2213:14: error: 'nil' requires a contextual type
2211 | ai_canonname: nil,
2212 | ai_addr: nil,
2213 | ai_next: nil)
| `- error: 'nil' requires a contextual type
2214 | #endif
2215 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2216:40: error: cannot find type 'addrinfo' in scope
2214 | #endif
2215 |
2216 | var targetInfo: UnsafeMutablePointer<addrinfo>?
| `- error: cannot find type 'addrinfo' in scope
2217 |
2218 | // Retrieve the info on our target...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2219:23: error: cannot find 'getaddrinfo' in scope
2217 |
2218 | // Retrieve the info on our target...
2219 | let status: Int32 = getaddrinfo(node ?? nil, String(port), &hints, &targetInfo)
| `- error: cannot find 'getaddrinfo' in scope
2220 | if status != 0 {
2221 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2223:17: error: cannot find 'EAI_SYSTEM' in scope
2221 |
2222 | var errorString: String
2223 | if status == EAI_SYSTEM {
| `- error: cannot find 'EAI_SYSTEM' in scope
2224 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
2225 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2224:51: error: cannot find 'errno' in scope
2222 | var errorString: String
2223 | if status == EAI_SYSTEM {
2224 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'errno' in scope
2225 | } else {
2226 | errorString = String(validatingUTF8: gai_strerror(errno)) ?? "Unknown error code."
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2226:42: error: cannot find 'gai_strerror' in scope
2224 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
2225 | } else {
2226 | errorString = String(validatingUTF8: gai_strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'gai_strerror' in scope
2227 | }
2228 | throw Error(code: Socket.SOCKET_ERR_GETADDRINFO_FAILED, reason: errorString)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2226:55: error: cannot find 'errno' in scope
2224 | errorString = String(validatingUTF8: strerror(errno)) ?? "Unknown error code."
2225 | } else {
2226 | errorString = String(validatingUTF8: gai_strerror(errno)) ?? "Unknown error code."
| `- error: cannot find 'errno' in scope
2227 | }
2228 | throw Error(code: Socket.SOCKET_ERR_GETADDRINFO_FAILED, reason: errorString)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2235:5: error: cannot find 'freeaddrinfo' in scope
2233 |
2234 | if targetInfo != nil {
2235 | freeaddrinfo(targetInfo)
| `- error: cannot find 'freeaddrinfo' in scope
2236 | }
2237 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2253:8: error: cannot find 'Darwin' in scope
2251 | }
2252 | #else
2253 | if Darwin.bind(self.socketfd, info!.pointee.ai_addr, info!.pointee.ai_addrlen) == 0 {
| `- error: cannot find 'Darwin' in scope
2254 |
2255 | // Success... We've found our address...
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2277:8: error: cannot find 'getsockname' in scope
2275 | if port == 0 {
2276 | guard let addressFromSockName = try Address(addressProvider: { (sockaddr, length) in
2277 | if getsockname(self.socketfd, sockaddr, length) != 0 {
| `- error: cannot find 'getsockname' in scope
2278 | throw Error(code: Socket.SOCKET_ERR_BIND_FAILED, reason: "Unable to determine listening socket address after bind.")
2279 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2286:40: error: cannot find 'AF_INET6' in scope
2284 | } else {
2285 |
2286 | if info!.pointee.ai_family == Int32(AF_INET6) {
| `- error: cannot find 'AF_INET6' in scope
2287 |
2288 | var addr = sockaddr_in6()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2288:16: error: cannot find 'sockaddr_in6' in scope
2286 | if info!.pointee.ai_family == Int32(AF_INET6) {
2287 |
2288 | var addr = sockaddr_in6()
| `- error: cannot find 'sockaddr_in6' in scope
2289 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
2290 | address = .ipv6(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2289:59: error: cannot find type 'sockaddr_in6' in scope
2287 |
2288 | var addr = sockaddr_in6()
2289 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in6>.size))
| `- error: cannot find type 'sockaddr_in6' in scope
2290 | address = .ipv6(addr)
2291 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2292:47: error: cannot find 'AF_INET' in scope
2290 | address = .ipv6(addr)
2291 |
2292 | } else if info!.pointee.ai_family == Int32(AF_INET) {
| `- error: cannot find 'AF_INET' in scope
2293 |
2294 | var addr = sockaddr_in()
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2294:16: error: cannot find 'sockaddr_in' in scope
2292 | } else if info!.pointee.ai_family == Int32(AF_INET) {
2293 |
2294 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
2295 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
2296 | address = .ipv4(addr)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2295:59: error: cannot find type 'sockaddr_in' in scope
2293 |
2294 | var addr = sockaddr_in()
2295 | memcpy(&addr, info!.pointee.ai_addr, Int(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr_in' in scope
2296 | address = .ipv4(addr)
2297 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2326:7: error: cannot find 'Darwin' in scope
2324 | }
2325 | #else
2326 | if Darwin.listen(self.socketfd, Int32(maxBacklogSize)) < 0 {
| `- error: cannot find 'Darwin' in scope
2327 |
2328 | throw Error(code: Socket.SOCKET_ERR_LISTEN_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2362:6: error: cannot find 'setsockopt' in scope
2360 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2361 | var on: Int32 = 1
2362 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
2363 |
2364 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2362:32: error: cannot find 'SOL_SOCKET' in scope
2360 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2361 | var on: Int32 = 1
2362 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
2363 |
2364 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2362:44: error: cannot find 'SO_REUSEADDR' in scope
2360 | // closes. (TCP normally imposes a delay before an address can be re-used.)
2361 | var on: Int32 = 1
2362 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEADDR' in scope
2363 |
2364 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2378:8: error: cannot find 'Darwin' in scope
2376 | _ = Glibc.unlink(path)
2377 | #else
2378 | _ = Darwin.unlink(path)
| `- error: cannot find 'Darwin' in scope
2379 | #endif
2380 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2392:42: error: cannot find 'sockaddr' in scope
2390 | }
2391 |
2392 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
| `- error: cannot find 'sockaddr' in scope
2393 |
2394 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2399:12: error: cannot find 'Darwin' in scope
2397 | return Glibc.bind(self.socketfd, p, socklen_t(addrLen))
2398 | #else
2399 | return Darwin.bind(self.socketfd, p, socklen_t(addrLen))
| `- error: cannot find 'Darwin' in scope
2400 | #endif
2401 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2394:29: error: cannot find type 'sockaddr' in scope
2392 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
2393 |
2394 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
| `- error: cannot find type 'sockaddr' in scope
2395 |
2396 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2392:20: error: generic parameter 'T' could not be inferred
2390 | }
2391 |
2392 | let rc = addrPtr.withMemoryRebound(to: sockaddr.self, capacity: 1) {
| `- error: generic parameter 'T' could not be inferred
2393 |
2394 | (p: UnsafeMutablePointer<sockaddr>) -> Int32 in
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/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:2415:7: error: cannot find 'Darwin' in scope
2413 | }
2414 | #else
2415 | if Darwin.listen(self.socketfd, Int32(maxBacklogSize)) < 0 {
| `- error: cannot find 'Darwin' in scope
2416 |
2417 | throw Error(code: Socket.SOCKET_ERR_LISTEN_FAILED, reason: self.lastError())
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3020:10: error: cannot find 'Darwin' in scope
3018 | s = Glibc.send(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags)
3019 | #else
3020 | s = Darwin.send(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags)
| `- error: cannot find 'Darwin' in scope
3021 | #endif
3022 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3025:8: error: cannot find 'errno' in scope
3023 | if s <= 0 {
3024 |
3025 | if errno == EAGAIN && !isBlocking {
| `- error: cannot find 'errno' in scope
3026 |
3027 | // We have written out as much as we can...
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3032:8: error: cannot find 'errno' in scope
3030 |
3031 | // - Handle a connection reset by peer (ECONNRESET) and throw a different exception...
3032 | if errno == ECONNRESET {
| `- error: cannot find 'errno' in scope
3033 | self.remoteConnectionClosed = true
3034 | throw Error(code: Socket.SOCKET_ERR_CONNECTION_RESET, reason: self.lastError())
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3157:10: error: cannot find 'Darwin' in scope
3155 | s = Glibc.sendto(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags, addressPointer, addressLength)
3156 | #else
3157 | s = Darwin.sendto(self.socketfd, buffer.advanced(by: sent), Int(bufSize - sent), sendFlags, addressPointer, addressLength)
| `- error: cannot find 'Darwin' in scope
3158 | #endif
3159 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3162:9: error: cannot find 'errno' in scope
3160 | if s <= 0 {
3161 |
3162 | if errno == EAGAIN && !isBlocking {
| `- error: cannot find 'errno' in scope
3163 |
3164 | // We have written out as much as we can...
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3169:9: error: cannot find 'errno' in scope
3167 |
3168 | // - Handle a connection reset by peer (ECONNRESET) and throw a different exception...
3169 | if errno == ECONNRESET {
| `- error: cannot find 'errno' in scope
3170 | self.remoteConnectionClosed = true
3171 | throw Error(code: Socket.SOCKET_ERR_CONNECTION_RESET, reason: self.lastError())
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3302:22: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3300 | timer.tv_usec = Int(uSecs)
3301 | #else
3302 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3303 | #endif
3304 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3327:15: error: cannot find 'fcntl' in scope
3325 | public func setBlocking(mode shouldBlock: Bool) throws {
3326 |
3327 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'fcntl' in scope
3328 | if flags < 0 {
3329 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3327:36: error: cannot find 'F_GETFL' in scope
3325 | public func setBlocking(mode shouldBlock: Bool) throws {
3326 |
3327 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
3328 | if flags < 0 {
3329 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3336:13: error: cannot find 'fcntl' in scope
3334 | if shouldBlock {
3335 |
3336 | result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
3337 |
3338 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3336:34: error: cannot find 'F_SETFL' in scope
3334 | if shouldBlock {
3335 |
3336 | result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
3337 |
3338 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3336:52: error: cannot find 'O_NONBLOCK' in scope
3334 | if shouldBlock {
3335 |
3336 | result = fcntl(self.socketfd, F_SETFL, flags & ~O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
3337 |
3338 | } else {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3340:13: error: cannot find 'fcntl' in scope
3338 | } else {
3339 |
3340 | result = fcntl(self.socketfd, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'fcntl' in scope
3341 | }
3342 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3340:34: error: cannot find 'F_SETFL' in scope
3338 | } else {
3339 |
3340 | result = fcntl(self.socketfd, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'F_SETFL' in scope
3341 | }
3342 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3340:51: error: cannot find 'O_NONBLOCK' in scope
3338 | } else {
3339 |
3340 | result = fcntl(self.socketfd, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
3341 | }
3342 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3379:21: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3377 | timer.tv_usec = Int(uSecs)
3378 | #else
3379 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3380 | #endif
3381 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3383:16: error: cannot find 'setsockopt' in scope
3381 | }
3382 |
3383 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_RCVTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'setsockopt' in scope
3384 |
3385 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3383:42: error: cannot find 'SOL_SOCKET' in scope
3381 | }
3382 |
3383 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_RCVTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SOL_SOCKET' in scope
3384 |
3385 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3383:54: error: cannot find 'SO_RCVTIMEO' in scope
3381 | }
3382 |
3383 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_RCVTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SO_RCVTIMEO' in scope
3384 |
3385 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3419:21: error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3417 | timer.tv_usec = Int(uSecs)
3418 | #else
3419 | timer.tv_usec = Int32(uSecs)
| `- error: cannot assign value of type 'Int32' to type '__kernel_suseconds_t' (aka 'Int')
3420 | #endif
3421 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3423:16: error: cannot find 'setsockopt' in scope
3421 | }
3422 |
3423 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_SNDTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'setsockopt' in scope
3424 |
3425 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3423:42: error: cannot find 'SOL_SOCKET' in scope
3421 | }
3422 |
3423 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_SNDTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SOL_SOCKET' in scope
3424 |
3425 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3423:54: error: cannot find 'SO_SNDTIMEO' in scope
3421 | }
3422 |
3423 | let result = setsockopt(self.socketfd, SOL_SOCKET, SO_SNDTIMEO, &timer, socklen_t(MemoryLayout<timeval>.stride))
| `- error: cannot find 'SO_SNDTIMEO' in scope
3424 |
3425 | if result < 0 {
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3454:6: error: cannot find 'setsockopt' in scope
3452 | // Turn on or off UDP broadcasting...
3453 | var on: Int32 = enable ? 1 : 0
3454 | if setsockopt(self.socketfd, SOL_SOCKET, SO_BROADCAST, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
3455 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3456 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3454:32: error: cannot find 'SOL_SOCKET' in scope
3452 | // Turn on or off UDP broadcasting...
3453 | var on: Int32 = enable ? 1 : 0
3454 | if setsockopt(self.socketfd, SOL_SOCKET, SO_BROADCAST, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
3455 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3456 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3454:44: error: cannot find 'SO_BROADCAST' in scope
3452 | // Turn on or off UDP broadcasting...
3453 | var on: Int32 = enable ? 1 : 0
3454 | if setsockopt(self.socketfd, SOL_SOCKET, SO_BROADCAST, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_BROADCAST' in scope
3455 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3456 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3487:10: error: cannot find 'Darwin' in scope
3485 | #else
3486 | if self.isListening {
3487 | _ = Darwin.shutdown(self.socketfd, Int32(SHUT_RDWR))
| `- error: cannot find 'Darwin' in scope
3488 | self.isListening = false
3489 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3487:47: error: cannot find 'SHUT_RDWR' in scope
3485 | #else
3486 | if self.isListening {
3487 | _ = Darwin.shutdown(self.socketfd, Int32(SHUT_RDWR))
| `- error: cannot find 'SHUT_RDWR' in scope
3488 | self.isListening = false
3489 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3491:9: error: cannot find 'Darwin' in scope
3489 | }
3490 | self.isConnected = false
3491 | _ = Darwin.close(self.socketfd)
| `- error: cannot find 'Darwin' in scope
3492 | #endif
3493 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3508:10: error: cannot find 'Darwin' in scope
3506 | _ = Glibc.unlink(self.signature!.path!)
3507 | #else
3508 | _ = Darwin.unlink(self.signature!.path!)
| `- error: cannot find 'Darwin' in scope
3509 | #endif
3510 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3532:23: error: cannot find 'MSG_DONTWAIT' in scope
3530 | var recvFlags: Int32 = 0
3531 | if self.readStorage.length > 0 {
3532 | recvFlags |= Int32(MSG_DONTWAIT)
| `- error: cannot find 'MSG_DONTWAIT' in scope
3533 | }
3534 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3544:14: error: cannot find 'Darwin' in scope
3542 | count = Glibc.recv(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags)
3543 | #else
3544 | count = Darwin.recv(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags)
| `- error: cannot find 'Darwin' in scope
3545 | #endif
3546 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3592:12: error: cannot find 'errno' in scope
3590 | if count < 0 {
3591 |
3592 | switch errno {
| `- error: cannot find 'errno' in scope
3593 |
3594 | // - Could be an error, but if errno is EAGAIN or EWOULDBLOCK (if a non-blocking socket),
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3646:23: error: cannot find 'MSG_DONTWAIT' in scope
3644 | var recvFlags: Int32 = 0
3645 | if self.readStorage.length > 0 {
3646 | recvFlags |= Int32(MSG_DONTWAIT)
| `- error: cannot find 'MSG_DONTWAIT' in scope
3647 | }
3648 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3656:18: error: cannot find 'Darwin' in scope
3654 | let count = Glibc.recvfrom(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags, addresssPointer, addressLengthPointer)
3655 | #else
3656 | let count = Darwin.recvfrom(self.socketfd, self.readBuffer, self.readBufferSize, recvFlags, addresssPointer, addressLengthPointer)
| `- error: cannot find 'Darwin' in scope
3657 | #endif
3658 |
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3664:9: error: cannot find 'errno' in scope
3662 | // - Could be an error, but if errno is EAGAIN or EWOULDBLOCK (if a non-blocking socket),
3663 | // it means there was NO data to read...
3664 | if errno == EAGAIN || errno == EWOULDBLOCK {
| `- error: cannot find 'errno' in scope
3665 |
3666 | throw OperationInterrupted.readDatagram(length: self.readStorage.length)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3664:28: error: cannot find 'errno' in scope
3662 | // - Could be an error, but if errno is EAGAIN or EWOULDBLOCK (if a non-blocking socket),
3663 | // it means there was NO data to read...
3664 | if errno == EAGAIN || errno == EWOULDBLOCK {
| `- error: cannot find 'errno' in scope
3665 |
3666 | throw OperationInterrupted.readDatagram(length: self.readStorage.length)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3670:9: error: cannot find 'errno' in scope
3668 |
3669 | // - Handle a connection reset by peer (ECONNRESET) and throw a different exception...
3670 | if errno == ECONNRESET {
| `- error: cannot find 'errno' in scope
3671 | self.remoteConnectionClosed = true
3672 | throw Error(code: Socket.SOCKET_ERR_CONNECTION_RESET, reason: self.lastError())
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3737:42: error: cannot find 'errno' in scope
3735 | private func lastError() -> String {
3736 |
3737 | return String(validatingUTF8: strerror(errno)) ?? "Error: \(errno)"
| `- error: cannot find 'errno' in scope
3738 | }
3739 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3737:63: error: cannot find 'errno' in scope
3735 | private func lastError() -> String {
3736 |
3737 | return String(validatingUTF8: strerror(errno)) ?? "Error: \(errno)"
| `- error: cannot find 'errno' in scope
3738 | }
3739 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3753:7: error: cannot find 'setsockopt' in scope
3751 | // MSG_NOSIGNAL flags passed to send. See the write() functions below.
3752 | var on: Int32 = 1
3753 | if setsockopt(self.socketfd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
3754 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3755 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3753:33: error: cannot find 'SOL_SOCKET' in scope
3751 | // MSG_NOSIGNAL flags passed to send. See the write() functions below.
3752 | var on: Int32 = 1
3753 | if setsockopt(self.socketfd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
3754 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3755 | }
/host/spi-builder-workspace/.build/checkouts/BlueSocket/Sources/Socket/Socket.swift:3753:45: error: cannot find 'SO_NOSIGPIPE' in scope
3751 | // MSG_NOSIGNAL flags passed to send. See the write() functions below.
3752 | var on: Int32 = 1
3753 | if setsockopt(self.socketfd, SOL_SOCKET, SO_NOSIGPIPE, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_NOSIGPIPE' in scope
3754 | throw Error(code: Socket.SOCKET_ERR_SETSOCKOPT_FAILED, reason: self.lastError())
3755 | }
BUILD FAILURE 6.1 android