Build Information
Failed to build SKServer, reference 4.1.2 (ee058e
), with Swift 6.1 for Android on 27 May 2025 18:05:48 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pvzig/SKServer.git
Reference: 4.1.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/pvzig/SKServer
* tag 4.1.2 -> FETCH_HEAD
HEAD is now at ee058e1 Merge pull request #5 from MrLotU/patch-1
Cloned https://github.com/pvzig/SKServer.git
Revision (git rev-parse @):
ee058e13e7bc0ef76b7f9abfd8182e806eb158b9
SUCCESS checkout https://github.com/pvzig/SKServer.git at 4.1.2
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/pvzig/SKServer.git
https://github.com/pvzig/SKServer.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "skcore",
"requirement" : {
"range" : [
{
"lower_bound" : "4.1.0",
"upper_bound" : "4.2.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SlackKit/SKCore"
},
{
"identity" : "skwebapi",
"requirement" : {
"range" : [
{
"lower_bound" : "4.1.0",
"upper_bound" : "4.2.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SlackKit/SKWebAPI"
},
{
"identity" : "swifter",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.1",
"upper_bound" : "1.5.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/httpswift/swifter.git"
}
],
"manifest_display_name" : "SKServer",
"name" : "SKServer",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SKServer",
"targets" : [
"SKServer"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SKServer",
"module_type" : "SwiftTarget",
"name" : "SKServer",
"path" : "Sources",
"product_dependencies" : [
"SKCore",
"SKWebAPI",
"Swifter"
],
"product_memberships" : [
"SKServer"
],
"sources" : [
"SKServer/Conformers/SwifterServer.swift",
"SKServer/Middleware/MessageActionMiddleware.swift",
"SKServer/Middleware/OAuthMiddleware.swift",
"SKServer/Middleware/RedirectMiddleware.swift",
"SKServer/Middleware/ResponseMiddleware.swift",
"SKServer/Model/AuthorizeResponse.swift",
"SKServer/Model/IncomingWebhook.swift",
"SKServer/Model/MessageActionRequest.swift",
"SKServer/Model/MessageActionRoute.swift",
"SKServer/Model/OAuthResponse.swift",
"SKServer/Model/RequestRoute.swift",
"SKServer/Model/SKResponse.swift",
"SKServer/Model/WebhookRequest.swift",
"SKServer/SKServer.swift",
"SKServer/SlackKitResponder.swift",
"SKServer/Titan/Titan/Titan.swift",
"SKServer/Titan/Titan404/Titan404.swift",
"SKServer/Titan/TitanCORS/TitanCORS.swift",
"SKServer/Titan/TitanCore/TitanCore.swift",
"SKServer/Titan/TitanCore/TitanError.swift",
"SKServer/Titan/TitanCore/TitanHeader.swift",
"SKServer/Titan/TitanCore/TitanLogs.swift",
"SKServer/Titan/TitanCore/TitanMethod.swift",
"SKServer/Titan/TitanCore/TitanRequest.swift",
"SKServer/Titan/TitanCore/TitanResponse.swift",
"SKServer/Titan/TitanErrorHandling/TitanErrorHandling.swift",
"SKServer/Titan/TitanFormURLEncodedBodyParser/TitanFormURLEncodedBodyParser.swift",
"SKServer/Titan/TitanHealthz/TitanHealthz.swift",
"SKServer/Titan/TitanJSON/TitanJSONRequestBody.swift",
"SKServer/Titan/TitanJSON/TitanJSONResponseBody.swift",
"SKServer/Titan/TitanQueryString/TitanQueryString.swift",
"SKServer/Titan/TitanRouter/InitializerOverloads.swift",
"SKServer/Titan/TitanRouter/PathParameterSupport.swift",
"SKServer/Titan/TitanRouter/TitanParameterizedRoutes.swift",
"SKServer/Titan/TitanRouter/TitanRoutesByMethod.swift",
"SKServer/Titan/TitanRouter/TitanRoutingExtension.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/SlackKit/SKCore
Fetching https://github.com/SlackKit/SKWebAPI
Fetching https://github.com/httpswift/swifter.git
[1/6050] Fetching swifter
[606/6344] Fetching swifter, skwebapi
[1868/6632] Fetching swifter, skwebapi, skcore
Fetched https://github.com/SlackKit/SKCore from cache (0.33s)
[1928/6344] Fetching swifter, skwebapi
Fetched https://github.com/SlackKit/SKWebAPI from cache (0.80s)
Fetched https://github.com/httpswift/swifter.git from cache (0.82s)
Computing version for https://github.com/SlackKit/SKWebAPI
Computed https://github.com/SlackKit/SKWebAPI at 4.1.3 (1.33s)
Computing version for https://github.com/SlackKit/SKCore
Computed https://github.com/SlackKit/SKCore at 4.1.3 (0.69s)
Computing version for https://github.com/httpswift/swifter.git
Computed https://github.com/httpswift/swifter.git at 1.4.7 (2.13s)
Creating working copy for https://github.com/httpswift/swifter.git
Working copy of https://github.com/httpswift/swifter.git resolved at 1.4.7
Creating working copy for https://github.com/SlackKit/SKCore
Working copy of https://github.com/SlackKit/SKCore resolved at 4.1.3
Creating working copy for https://github.com/SlackKit/SKWebAPI
Working copy of https://github.com/SlackKit/SKWebAPI resolved at 4.1.3
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/49] Emitting module SKCore
[7/52] Compiling SKCore Topic.swift
[8/52] Compiling SKCore User.swift
[9/52] Compiling SKCore UserGroup.swift
[10/52] Compiling SKCore Reaction.swift
[11/52] Compiling SKCore Reply.swift
[12/52] Compiling SKCore Scope.swift
[13/52] Compiling SKCore SlackError.swift
[14/52] Compiling SKCore Team.swift
[15/52] Compiling SKCore TeamIcon.swift
[16/52] Compiling SKCore Message.swift
[17/52] Compiling SKCore OAuthConfig.swift
[18/52] Compiling SKCore RTMOptions.swift
[19/52] Compiling SKCore Edited.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
48 | }
49 |
50 | public func port() throws -> in_port_t {
| `- error: cannot find type 'in_port_t' in scope
51 | var addr = sockaddr_in()
52 | return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:51:20: error: cannot find 'sockaddr_in' in scope
49 |
50 | public func port() throws -> in_port_t {
51 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
52 | return try withUnsafePointer(to: &addr) { pointer in
53 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:67:20: error: cannot find 'sockaddr_in' in scope
65 |
66 | public func isIPv4() throws -> Bool {
67 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
68 | return try withUnsafePointer(to: &addr) { pointer in
69 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:69:46: error: cannot find type 'sockaddr_in' in scope
67 | var addr = sockaddr_in()
68 | return try withUnsafePointer(to: &addr) { pointer in
69 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
| `- error: cannot find type 'sockaddr_in' in scope
70 | if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
71 | throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:70:16: error: cannot find 'getsockname' in scope
68 | return try withUnsafePointer(to: &addr) { pointer in
69 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
70 | if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
| `- error: cannot find 'getsockname' in scope
71 | throw SocketError.getSockNameFailed(Errno.description())
72 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:73:57: error: cannot find 'AF_INET' in scope
71 | throw SocketError.getSockNameFailed(Errno.description())
72 | }
73 | return Int32(pointer.pointee.sin_family) == AF_INET
| `- error: cannot find 'AF_INET' in scope
74 | }
75 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:116:30: error: cannot find 'write' in scope
114 | let result = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
115 | #else
116 | let result = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
| `- error: cannot find 'write' in scope
117 | #endif
118 | if result <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:137:18: error: cannot find 'Darwin' in scope
135 | let count = Glibc.read(self.socketFileDescriptor as Int32, &byte, 1)
136 | #else
137 | let count = Darwin.read(self.socketFileDescriptor as Int32, &byte, 1)
| `- error: cannot find 'Darwin' in scope
138 | #endif
139 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:180:26: error: cannot find 'Darwin' in scope
178 | let bytesRead = Glibc.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
179 | #else
180 | let bytesRead = Darwin.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
| `- error: cannot find 'Darwin' in scope
181 | #endif
182 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:20: error: cannot find 'sockaddr' in scope
205 |
206 | public func peername() throws -> String {
207 | var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
| `- error: cannot find 'sockaddr' in scope
208 | if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 | throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:72: error: cannot find type 'sockaddr' in scope
205 |
206 | public func peername() throws -> String {
207 | var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
| `- error: cannot find type 'sockaddr' in scope
208 | if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 | throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:208:12: error: cannot find 'getpeername' in scope
206 | public func peername() throws -> String {
207 | var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
208 | if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
| `- error: cannot find 'getpeername' in scope
209 | throw SocketError.getPeerNameFailed(Errno.description())
210 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:211:59: error: cannot find 'NI_MAXHOST' in scope
209 | throw SocketError.getPeerNameFailed(Errno.description())
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
| `- error: cannot find 'NI_MAXHOST' in scope
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
213 | throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:12: error: cannot find 'getnameinfo' in scope
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
| `- error: cannot find 'getnameinfo' in scope
213 | throw SocketError.getNameInfoFailed(Errno.description())
214 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:86: error: cannot find 'NI_NUMERICHOST' in scope
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
| `- error: cannot find 'NI_NUMERICHOST' in scope
213 | throw SocketError.getNameInfoFailed(Errno.description())
214 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:78: error: 'nil' requires a contextual type
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
| `- error: 'nil' requires a contextual type
213 | throw SocketError.getNameInfoFailed(Errno.description())
214 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:13: error: cannot find 'setsockopt' in scope
223 | // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 | var no_sig_pipe: Int32 = 1
225 | setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'setsockopt' in scope
226 | #endif
227 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:32: error: cannot find 'SOL_SOCKET' in scope
223 | // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 | var no_sig_pipe: Int32 = 1
225 | setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'SOL_SOCKET' in scope
226 | #endif
227 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:44: error: cannot find 'SO_NOSIGPIPE' in scope
223 | // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 | var no_sig_pipe: Int32 = 1
225 | setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'SO_NOSIGPIPE' in scope
226 | #endif
227 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:233:17: error: cannot find 'Darwin' in scope
231 | _ = Glibc.close(socket)
232 | #else
233 | _ = Darwin.close(socket)
| `- error: cannot find 'Darwin' in scope
234 | #endif
235 | }
[20/52] Compiling SKCore Event.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
48 | }
49 |
50 | public func port() throws -> in_port_t {
| `- error: cannot find type 'in_port_t' in scope
51 | var addr = sockaddr_in()
52 | return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:51:20: error: cannot find 'sockaddr_in' in scope
49 |
50 | public func port() throws -> in_port_t {
51 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
52 | return try withUnsafePointer(to: &addr) { pointer in
53 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:67:20: error: cannot find 'sockaddr_in' in scope
65 |
66 | public func isIPv4() throws -> Bool {
67 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
68 | return try withUnsafePointer(to: &addr) { pointer in
69 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:69:46: error: cannot find type 'sockaddr_in' in scope
67 | var addr = sockaddr_in()
68 | return try withUnsafePointer(to: &addr) { pointer in
69 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
| `- error: cannot find type 'sockaddr_in' in scope
70 | if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
71 | throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:70:16: error: cannot find 'getsockname' in scope
68 | return try withUnsafePointer(to: &addr) { pointer in
69 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
70 | if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
| `- error: cannot find 'getsockname' in scope
71 | throw SocketError.getSockNameFailed(Errno.description())
72 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:73:57: error: cannot find 'AF_INET' in scope
71 | throw SocketError.getSockNameFailed(Errno.description())
72 | }
73 | return Int32(pointer.pointee.sin_family) == AF_INET
| `- error: cannot find 'AF_INET' in scope
74 | }
75 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:116:30: error: cannot find 'write' in scope
114 | let result = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
115 | #else
116 | let result = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
| `- error: cannot find 'write' in scope
117 | #endif
118 | if result <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:137:18: error: cannot find 'Darwin' in scope
135 | let count = Glibc.read(self.socketFileDescriptor as Int32, &byte, 1)
136 | #else
137 | let count = Darwin.read(self.socketFileDescriptor as Int32, &byte, 1)
| `- error: cannot find 'Darwin' in scope
138 | #endif
139 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:180:26: error: cannot find 'Darwin' in scope
178 | let bytesRead = Glibc.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
179 | #else
180 | let bytesRead = Darwin.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
| `- error: cannot find 'Darwin' in scope
181 | #endif
182 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:20: error: cannot find 'sockaddr' in scope
205 |
206 | public func peername() throws -> String {
207 | var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
| `- error: cannot find 'sockaddr' in scope
208 | if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 | throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:72: error: cannot find type 'sockaddr' in scope
205 |
206 | public func peername() throws -> String {
207 | var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
| `- error: cannot find type 'sockaddr' in scope
208 | if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 | throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:208:12: error: cannot find 'getpeername' in scope
206 | public func peername() throws -> String {
207 | var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
208 | if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
| `- error: cannot find 'getpeername' in scope
209 | throw SocketError.getPeerNameFailed(Errno.description())
210 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:211:59: error: cannot find 'NI_MAXHOST' in scope
209 | throw SocketError.getPeerNameFailed(Errno.description())
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
| `- error: cannot find 'NI_MAXHOST' in scope
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
213 | throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:12: error: cannot find 'getnameinfo' in scope
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
| `- error: cannot find 'getnameinfo' in scope
213 | throw SocketError.getNameInfoFailed(Errno.description())
214 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:86: error: cannot find 'NI_NUMERICHOST' in scope
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
| `- error: cannot find 'NI_NUMERICHOST' in scope
213 | throw SocketError.getNameInfoFailed(Errno.description())
214 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:78: error: 'nil' requires a contextual type
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
| `- error: 'nil' requires a contextual type
213 | throw SocketError.getNameInfoFailed(Errno.description())
214 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:13: error: cannot find 'setsockopt' in scope
223 | // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 | var no_sig_pipe: Int32 = 1
225 | setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'setsockopt' in scope
226 | #endif
227 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:32: error: cannot find 'SOL_SOCKET' in scope
223 | // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 | var no_sig_pipe: Int32 = 1
225 | setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'SOL_SOCKET' in scope
226 | #endif
227 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:44: error: cannot find 'SO_NOSIGPIPE' in scope
223 | // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 | var no_sig_pipe: Int32 = 1
225 | setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'SO_NOSIGPIPE' in scope
226 | #endif
227 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:233:17: error: cannot find 'Darwin' in scope
231 | _ = Glibc.close(socket)
232 | #else
233 | _ = Darwin.close(socket)
| `- error: cannot find 'Darwin' in scope
234 | #endif
235 | }
[21/54] Compiling SKCore Channel.swift
[22/54] Compiling SKCore Comment.swift
[23/54] Compiling SKCore CustomProfile.swift
[24/54] Compiling SKCore CustomProfileField.swift
[25/54] Compiling Swifter DemoServer.swift
[26/54] Compiling Swifter Errno.swift
[27/54] Compiling Swifter Files.swift
[28/54] Compiling Swifter MimeTypes.swift
[29/54] Compiling SKCore File.swift
[30/54] Compiling SKCore History.swift
[31/54] Compiling SKCore Item.swift
[32/54] Compiling SKCore DoNotDisturbStatus.swift
/host/spi-builder-workspace/.build/checkouts/SKCore/Sources/SKCore/Extensions.swift:37:20: error: cannot find 'NSEC_PER_SEC' in scope
35 | return UInt64(CLOCKS_PER_SEC)
36 | #else
37 | return NSEC_PER_SEC
| `- error: cannot find 'NSEC_PER_SEC' in scope
38 | #endif
39 | }
/host/spi-builder-workspace/.build/checkouts/SKCore/Sources/SKCore/Extensions.swift:37:20: error: cannot find 'NSEC_PER_SEC' in scope
35 | return UInt64(CLOCKS_PER_SEC)
36 | #else
37 | return NSEC_PER_SEC
| `- error: cannot find 'NSEC_PER_SEC' in scope
38 | #endif
39 | }
/host/spi-builder-workspace/.build/checkouts/SKCore/Sources/SKCore/Extensions.swift:37:20: error: cannot find 'NSEC_PER_SEC' in scope
35 | return UInt64(CLOCKS_PER_SEC)
36 | #else
37 | return NSEC_PER_SEC
| `- error: cannot find 'NSEC_PER_SEC' in scope
38 | #endif
39 | }
[35/54] Compiling SKCore Extensions.swift
/host/spi-builder-workspace/.build/checkouts/SKCore/Sources/SKCore/Extensions.swift:37:20: error: cannot find 'NSEC_PER_SEC' in scope
35 | return UInt64(CLOCKS_PER_SEC)
36 | #else
37 | return NSEC_PER_SEC
| `- error: cannot find 'NSEC_PER_SEC' in scope
38 | #endif
39 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
69 |
70 | @available(macOS 10.10, *)
71 | public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
| `- error: cannot find type 'in_port_t' in scope
72 | guard !self.operating else { return }
73 | stop()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
35 | set(state) {
36 | #if !os(Linux)
37 | OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
| `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
38 | #else
39 | self.stateValue = state.rawValue
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
48 | }
49 |
50 | public func port() throws -> in_port_t {
| `- error: cannot find type 'in_port_t' in scope
51 | var addr = sockaddr_in()
52 | return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:76:70: error: cannot find 'SOMAXCONN' in scope
74 | self.state = .starting
75 | let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
76 | self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
| `- error: cannot find 'SOMAXCONN' in scope
77 | self.state = .running
78 | DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
15 | /// connections from. It should be in IPv4 format if forceIPv4 == true,
16 | /// otherwise - in IPv6.
17 | public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
| `- error: cannot find type 'in_port_t' in scope
18 |
19 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
69 |
70 | @available(macOS 10.10, *)
71 | public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
| `- error: cannot find type 'in_port_t' in scope
72 | guard !self.operating else { return }
73 | stop()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
35 | set(state) {
36 | #if !os(Linux)
37 | OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
| `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
38 | #else
39 | self.stateValue = state.rawValue
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
48 | }
49 |
50 | public func port() throws -> in_port_t {
| `- error: cannot find type 'in_port_t' in scope
51 | var addr = sockaddr_in()
52 | return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:76:70: error: cannot find 'SOMAXCONN' in scope
74 | self.state = .starting
75 | let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
76 | self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
| `- error: cannot find 'SOMAXCONN' in scope
77 | self.state = .running
78 | DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
15 | /// connections from. It should be in IPv4 format if forceIPv4 == true,
16 | /// otherwise - in IPv6.
17 | public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
| `- error: cannot find type 'in_port_t' in scope
18 |
19 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
69 |
70 | @available(macOS 10.10, *)
71 | public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
| `- error: cannot find type 'in_port_t' in scope
72 | guard !self.operating else { return }
73 | stop()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
35 | set(state) {
36 | #if !os(Linux)
37 | OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
| `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
38 | #else
39 | self.stateValue = state.rawValue
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
48 | }
49 |
50 | public func port() throws -> in_port_t {
| `- error: cannot find type 'in_port_t' in scope
51 | var addr = sockaddr_in()
52 | return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:76:70: error: cannot find 'SOMAXCONN' in scope
74 | self.state = .starting
75 | let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
76 | self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
| `- error: cannot find 'SOMAXCONN' in scope
77 | self.state = .running
78 | DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
15 | /// connections from. It should be in IPv4 format if forceIPv4 == true,
16 | /// otherwise - in IPv6.
17 | public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
| `- error: cannot find type 'in_port_t' in scope
18 |
19 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
16 | public class File {
17 |
18 | let pointer: UnsafeMutablePointer<FILE>
| `- error: cannot find type 'FILE' in scope
19 |
20 | public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
18 | let pointer: UnsafeMutablePointer<FILE>
19 |
20 | public init(_ pointer: UnsafeMutablePointer<FILE>) {
| `- error: cannot find type 'FILE' in scope
21 | self.pointer = pointer
22 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 | }
134 |
135 | private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
| `- error: cannot find type 'stat' in scope
136 | return try self.withCString({
137 | var statBuffer = stat()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:44:39: error: cannot find 'errno' in scope
42 | }
43 | if ferror(self.pointer) != 0 {
44 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
45 | }
46 | throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:55:43: error: cannot find 'errno' in scope
53 | try data.withUnsafeBufferPointer {
54 | if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
55 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
56 | }
57 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:54:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
52 | }
53 | try data.withUnsafeBufferPointer {
54 | if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
| |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
55 | throw FileError.error(errno)
56 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:30: error: cannot find 'getcwd' in scope
59 |
60 | public static func currentWorkingDirectory() throws -> String {
61 | guard let path = getcwd(nil, 0) else {
| `- error: cannot find 'getcwd' in scope
62 | throw FileError.error(errno)
63 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:37: error: 'nil' requires a contextual type
59 |
60 | public static func currentWorkingDirectory() throws -> String {
61 | guard let path = getcwd(nil, 0) else {
| `- error: 'nil' requires a contextual type
62 | throw FileError.error(errno)
63 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:62:39: error: cannot find 'errno' in scope
60 | public static func currentWorkingDirectory() throws -> String {
61 | guard let path = getcwd(nil, 0) else {
62 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
63 | }
64 | return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:84:35: error: cannot find 'errno' in scope
82 | public func openFileForMode(_ path: String, _ mode: String) throws -> File {
83 | guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
84 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
85 | }
86 | return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:39: error: cannot find 'S_IFMT' in scope
99 | return try self.withStat {
100 | if let stat = $0 {
101 | return stat.st_mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFMT' in scope
102 | }
103 | return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:49: error: cannot find 'S_IFDIR' in scope
99 | return try self.withStat {
100 | if let stat = $0 {
101 | return stat.st_mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFDIR' in scope
102 | }
103 | return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:108:44: error: cannot find 'opendir' in scope
106 |
107 | public func files() throws -> [String] {
108 | guard let dir = self.withCString({ opendir($0) }) else {
| `- error: cannot find 'opendir' in scope
109 | throw FileError.error(errno)
110 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:109:35: error: cannot find 'errno' in scope
107 | public func files() throws -> [String] {
108 | guard let dir = self.withCString({ opendir($0) }) else {
109 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
110 | }
111 | defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:111:17: error: cannot find 'closedir' in scope
109 | throw FileError.error(errno)
110 | }
111 | defer { closedir(dir) }
| `- error: cannot find 'closedir' in scope
112 | var results = [String]()
113 | while let ent = readdir(dir) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:113:25: error: cannot find 'readdir' in scope
111 | defer { closedir(dir) }
112 | var results = [String]()
113 | while let ent = readdir(dir) {
| `- error: cannot find 'readdir' in scope
114 | var name = ent.pointee.d_name
115 | let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:137:30: error: cannot find 'stat' in scope
135 | private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
136 | return try self.withCString({
137 | var statBuffer = stat()
| `- error: cannot find 'stat' in scope
138 | if stat($0, &statBuffer) == 0 {
139 | return try closure(statBuffer)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:138:16: error: cannot find 'stat' in scope
136 | return try self.withCString({
137 | var statBuffer = stat()
138 | if stat($0, &statBuffer) == 0 {
| `- error: cannot find 'stat' in scope
139 | return try closure(statBuffer)
140 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:141:16: error: cannot find 'errno' in scope
139 | return try closure(statBuffer)
140 | }
141 | if errno == ENOENT {
| `- error: cannot find 'errno' in scope
142 | return try closure(nil)
143 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:144:35: error: cannot find 'errno' in scope
142 | return try closure(nil)
143 | }
144 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
145 | })
146 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
16 | public class File {
17 |
18 | let pointer: UnsafeMutablePointer<FILE>
| `- error: cannot find type 'FILE' in scope
19 |
20 | public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
18 | let pointer: UnsafeMutablePointer<FILE>
19 |
20 | public init(_ pointer: UnsafeMutablePointer<FILE>) {
| `- error: cannot find type 'FILE' in scope
21 | self.pointer = pointer
22 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 | }
134 |
135 | private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
| `- error: cannot find type 'stat' in scope
136 | return try self.withCString({
137 | var statBuffer = stat()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:44:39: error: cannot find 'errno' in scope
42 | }
43 | if ferror(self.pointer) != 0 {
44 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
45 | }
46 | throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:55:43: error: cannot find 'errno' in scope
53 | try data.withUnsafeBufferPointer {
54 | if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
55 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
56 | }
57 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:54:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
52 | }
53 | try data.withUnsafeBufferPointer {
54 | if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
| |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
55 | throw FileError.error(errno)
56 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:30: error: cannot find 'getcwd' in scope
59 |
60 | public static func currentWorkingDirectory() throws -> String {
61 | guard let path = getcwd(nil, 0) else {
| `- error: cannot find 'getcwd' in scope
62 | throw FileError.error(errno)
63 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:37: error: 'nil' requires a contextual type
59 |
60 | public static func currentWorkingDirectory() throws -> String {
61 | guard let path = getcwd(nil, 0) else {
| `- error: 'nil' requires a contextual type
62 | throw FileError.error(errno)
63 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:62:39: error: cannot find 'errno' in scope
60 | public static func currentWorkingDirectory() throws -> String {
61 | guard let path = getcwd(nil, 0) else {
62 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
63 | }
64 | return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:84:35: error: cannot find 'errno' in scope
82 | public func openFileForMode(_ path: String, _ mode: String) throws -> File {
83 | guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
84 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
85 | }
86 | return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:39: error: cannot find 'S_IFMT' in scope
99 | return try self.withStat {
100 | if let stat = $0 {
101 | return stat.st_mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFMT' in scope
102 | }
103 | return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:49: error: cannot find 'S_IFDIR' in scope
99 | return try self.withStat {
100 | if let stat = $0 {
101 | return stat.st_mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFDIR' in scope
102 | }
103 | return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:108:44: error: cannot find 'opendir' in scope
106 |
107 | public func files() throws -> [String] {
108 | guard let dir = self.withCString({ opendir($0) }) else {
| `- error: cannot find 'opendir' in scope
109 | throw FileError.error(errno)
110 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:109:35: error: cannot find 'errno' in scope
107 | public func files() throws -> [String] {
108 | guard let dir = self.withCString({ opendir($0) }) else {
109 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
110 | }
111 | defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:111:17: error: cannot find 'closedir' in scope
109 | throw FileError.error(errno)
110 | }
111 | defer { closedir(dir) }
| `- error: cannot find 'closedir' in scope
112 | var results = [String]()
113 | while let ent = readdir(dir) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:113:25: error: cannot find 'readdir' in scope
111 | defer { closedir(dir) }
112 | var results = [String]()
113 | while let ent = readdir(dir) {
| `- error: cannot find 'readdir' in scope
114 | var name = ent.pointee.d_name
115 | let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:137:30: error: cannot find 'stat' in scope
135 | private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
136 | return try self.withCString({
137 | var statBuffer = stat()
| `- error: cannot find 'stat' in scope
138 | if stat($0, &statBuffer) == 0 {
139 | return try closure(statBuffer)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:138:16: error: cannot find 'stat' in scope
136 | return try self.withCString({
137 | var statBuffer = stat()
138 | if stat($0, &statBuffer) == 0 {
| `- error: cannot find 'stat' in scope
139 | return try closure(statBuffer)
140 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:141:16: error: cannot find 'errno' in scope
139 | return try closure(statBuffer)
140 | }
141 | if errno == ENOENT {
| `- error: cannot find 'errno' in scope
142 | return try closure(nil)
143 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:144:35: error: cannot find 'errno' in scope
142 | return try closure(nil)
143 | }
144 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
145 | })
146 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:13:20: error: cannot find 'getpid' in scope
11 |
12 | public static var pid: Int {
13 | return Int(getpid())
| `- error: cannot find 'getpid' in scope
14 | }
15 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:21:13: error: cannot find 'pthread_threadid_np' in scope
19 | #else
20 | var tid: __uint64_t = 0
21 | pthread_threadid_np(nil, &tid)
| `- error: cannot find 'pthread_threadid_np' in scope
22 | return UInt64(tid)
23 | #endif
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:21:33: error: 'nil' requires a contextual type
19 | #else
20 | var tid: __uint64_t = 0
21 | pthread_threadid_np(nil, &tid)
| `- error: 'nil' requires a contextual type
22 | return UInt64(tid)
23 | #endif
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:32:17: error: function is unused
30 | if !signalsObserved {
31 | [SIGTERM, SIGHUP, SIGSTOP, SIGINT].forEach { item in
32 | signal(item) { signum in
| `- error: function is unused
33 | Process.signalsWatchers.forEach { $0(signum) }
34 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:13:20: error: cannot find 'getpid' in scope
11 |
12 | public static var pid: Int {
13 | return Int(getpid())
| `- error: cannot find 'getpid' in scope
14 | }
15 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:21:13: error: cannot find 'pthread_threadid_np' in scope
19 | #else
20 | var tid: __uint64_t = 0
21 | pthread_threadid_np(nil, &tid)
| `- error: cannot find 'pthread_threadid_np' in scope
22 | return UInt64(tid)
23 | #endif
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:21:33: error: 'nil' requires a contextual type
19 | #else
20 | var tid: __uint64_t = 0
21 | pthread_threadid_np(nil, &tid)
| `- error: 'nil' requires a contextual type
22 | return UInt64(tid)
23 | #endif
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:32:17: error: function is unused
30 | if !signalsObserved {
31 | [SIGTERM, SIGHUP, SIGSTOP, SIGINT].forEach { item in
32 | signal(item) { signum in
| `- error: function is unused
33 | Process.signalsWatchers.forEach { $0(signum) }
34 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:13:20: error: cannot find 'getpid' in scope
11 |
12 | public static var pid: Int {
13 | return Int(getpid())
| `- error: cannot find 'getpid' in scope
14 | }
15 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:21:13: error: cannot find 'pthread_threadid_np' in scope
19 | #else
20 | var tid: __uint64_t = 0
21 | pthread_threadid_np(nil, &tid)
| `- error: cannot find 'pthread_threadid_np' in scope
22 | return UInt64(tid)
23 | #endif
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:21:33: error: 'nil' requires a contextual type
19 | #else
20 | var tid: __uint64_t = 0
21 | pthread_threadid_np(nil, &tid)
| `- error: 'nil' requires a contextual type
22 | return UInt64(tid)
23 | #endif
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Process.swift:32:17: error: function is unused
30 | if !signalsObserved {
31 | [SIGTERM, SIGHUP, SIGSTOP, SIGINT].forEach { item in
32 | signal(item) { signum in
| `- error: function is unused
33 | Process.signalsWatchers.forEach { $0(signum) }
34 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/45] Emitting module Swifter
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/HttpServerIO.swift:71:31: error: cannot find type 'in_port_t' in scope
69 |
70 | @available(macOS 10.10, *)
71 | public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
| `- error: cannot find type 'in_port_t' in scope
72 | guard !self.operating else { return }
73 | stop()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:50: error: cannot find type 'in_port_t' in scope
15 | /// connections from. It should be in IPv4 format if forceIPv4 == true,
16 | /// otherwise - in IPv6.
17 | public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
| `- error: cannot find type 'in_port_t' in scope
18 |
19 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket+Server.swift:17:120: error: cannot find 'SOMAXCONN' in scope
15 | /// connections from. It should be in IPv4 format if forceIPv4 == true,
16 | /// otherwise - in IPv6.
17 | public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
| `- error: cannot find 'SOMAXCONN' in scope
18 |
19 | #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
48 | }
49 |
50 | public func port() throws -> in_port_t {
| `- error: cannot find type 'in_port_t' in scope
51 | var addr = sockaddr_in()
52 | return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
16 | public class File {
17 |
18 | let pointer: UnsafeMutablePointer<FILE>
| `- error: cannot find type 'FILE' in scope
19 |
20 | public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
18 | let pointer: UnsafeMutablePointer<FILE>
19 |
20 | public init(_ pointer: UnsafeMutablePointer<FILE>) {
| `- error: cannot find type 'FILE' in scope
21 | self.pointer = pointer
22 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 | }
134 |
135 | private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
| `- error: cannot find type 'stat' in scope
136 | return try self.withCString({
137 | var statBuffer = stat()
[3/47] Compiling Swifter String+File.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
16 | public class File {
17 |
18 | let pointer: UnsafeMutablePointer<FILE>
| `- error: cannot find type 'FILE' in scope
19 |
20 | public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
18 | let pointer: UnsafeMutablePointer<FILE>
19 |
20 | public init(_ pointer: UnsafeMutablePointer<FILE>) {
| `- error: cannot find type 'FILE' in scope
21 | self.pointer = pointer
22 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 | }
134 |
135 | private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
| `- error: cannot find type 'stat' in scope
136 | return try self.withCString({
137 | var statBuffer = stat()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:44:39: error: cannot find 'errno' in scope
42 | }
43 | if ferror(self.pointer) != 0 {
44 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
45 | }
46 | throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:55:43: error: cannot find 'errno' in scope
53 | try data.withUnsafeBufferPointer {
54 | if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
55 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
56 | }
57 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:54:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
52 | }
53 | try data.withUnsafeBufferPointer {
54 | if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
| |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
55 | throw FileError.error(errno)
56 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:30: error: cannot find 'getcwd' in scope
59 |
60 | public static func currentWorkingDirectory() throws -> String {
61 | guard let path = getcwd(nil, 0) else {
| `- error: cannot find 'getcwd' in scope
62 | throw FileError.error(errno)
63 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:37: error: 'nil' requires a contextual type
59 |
60 | public static func currentWorkingDirectory() throws -> String {
61 | guard let path = getcwd(nil, 0) else {
| `- error: 'nil' requires a contextual type
62 | throw FileError.error(errno)
63 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:62:39: error: cannot find 'errno' in scope
60 | public static func currentWorkingDirectory() throws -> String {
61 | guard let path = getcwd(nil, 0) else {
62 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
63 | }
64 | return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:84:35: error: cannot find 'errno' in scope
82 | public func openFileForMode(_ path: String, _ mode: String) throws -> File {
83 | guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
84 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
85 | }
86 | return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:39: error: cannot find 'S_IFMT' in scope
99 | return try self.withStat {
100 | if let stat = $0 {
101 | return stat.st_mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFMT' in scope
102 | }
103 | return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:49: error: cannot find 'S_IFDIR' in scope
99 | return try self.withStat {
100 | if let stat = $0 {
101 | return stat.st_mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFDIR' in scope
102 | }
103 | return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:108:44: error: cannot find 'opendir' in scope
106 |
107 | public func files() throws -> [String] {
108 | guard let dir = self.withCString({ opendir($0) }) else {
| `- error: cannot find 'opendir' in scope
109 | throw FileError.error(errno)
110 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:109:35: error: cannot find 'errno' in scope
107 | public func files() throws -> [String] {
108 | guard let dir = self.withCString({ opendir($0) }) else {
109 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
110 | }
111 | defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:111:17: error: cannot find 'closedir' in scope
109 | throw FileError.error(errno)
110 | }
111 | defer { closedir(dir) }
| `- error: cannot find 'closedir' in scope
112 | var results = [String]()
113 | while let ent = readdir(dir) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:113:25: error: cannot find 'readdir' in scope
111 | defer { closedir(dir) }
112 | var results = [String]()
113 | while let ent = readdir(dir) {
| `- error: cannot find 'readdir' in scope
114 | var name = ent.pointee.d_name
115 | let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:137:30: error: cannot find 'stat' in scope
135 | private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
136 | return try self.withCString({
137 | var statBuffer = stat()
| `- error: cannot find 'stat' in scope
138 | if stat($0, &statBuffer) == 0 {
139 | return try closure(statBuffer)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:138:16: error: cannot find 'stat' in scope
136 | return try self.withCString({
137 | var statBuffer = stat()
138 | if stat($0, &statBuffer) == 0 {
| `- error: cannot find 'stat' in scope
139 | return try closure(statBuffer)
140 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:141:16: error: cannot find 'errno' in scope
139 | return try closure(statBuffer)
140 | }
141 | if errno == ENOENT {
| `- error: cannot find 'errno' in scope
142 | return try closure(nil)
143 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:144:35: error: cannot find 'errno' in scope
142 | return try closure(nil)
143 | }
144 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
145 | })
146 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[4/47] Compiling Swifter String+Misc.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:18:43: error: cannot find type 'FILE' in scope
16 | public class File {
17 |
18 | let pointer: UnsafeMutablePointer<FILE>
| `- error: cannot find type 'FILE' in scope
19 |
20 | public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:20:53: error: cannot find type 'FILE' in scope
18 | let pointer: UnsafeMutablePointer<FILE>
19 |
20 | public init(_ pointer: UnsafeMutablePointer<FILE>) {
| `- error: cannot find type 'FILE' in scope
21 | self.pointer = pointer
22 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:135:43: error: cannot find type 'stat' in scope
133 | }
134 |
135 | private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
| `- error: cannot find type 'stat' in scope
136 | return try self.withCString({
137 | var statBuffer = stat()
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:44:39: error: cannot find 'errno' in scope
42 | }
43 | if ferror(self.pointer) != 0 {
44 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
45 | }
46 | throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:55:43: error: cannot find 'errno' in scope
53 | try data.withUnsafeBufferPointer {
54 | if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
55 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
56 | }
57 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:54:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
52 | }
53 | try data.withUnsafeBufferPointer {
54 | if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
| |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
55 | throw FileError.error(errno)
56 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:30: error: cannot find 'getcwd' in scope
59 |
60 | public static func currentWorkingDirectory() throws -> String {
61 | guard let path = getcwd(nil, 0) else {
| `- error: cannot find 'getcwd' in scope
62 | throw FileError.error(errno)
63 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:61:37: error: 'nil' requires a contextual type
59 |
60 | public static func currentWorkingDirectory() throws -> String {
61 | guard let path = getcwd(nil, 0) else {
| `- error: 'nil' requires a contextual type
62 | throw FileError.error(errno)
63 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:62:39: error: cannot find 'errno' in scope
60 | public static func currentWorkingDirectory() throws -> String {
61 | guard let path = getcwd(nil, 0) else {
62 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
63 | }
64 | return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:84:35: error: cannot find 'errno' in scope
82 | public func openFileForMode(_ path: String, _ mode: String) throws -> File {
83 | guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
84 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
85 | }
86 | return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:39: error: cannot find 'S_IFMT' in scope
99 | return try self.withStat {
100 | if let stat = $0 {
101 | return stat.st_mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFMT' in scope
102 | }
103 | return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:101:49: error: cannot find 'S_IFDIR' in scope
99 | return try self.withStat {
100 | if let stat = $0 {
101 | return stat.st_mode & S_IFMT == S_IFDIR
| `- error: cannot find 'S_IFDIR' in scope
102 | }
103 | return false
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:108:44: error: cannot find 'opendir' in scope
106 |
107 | public func files() throws -> [String] {
108 | guard let dir = self.withCString({ opendir($0) }) else {
| `- error: cannot find 'opendir' in scope
109 | throw FileError.error(errno)
110 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:109:35: error: cannot find 'errno' in scope
107 | public func files() throws -> [String] {
108 | guard let dir = self.withCString({ opendir($0) }) else {
109 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
110 | }
111 | defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:111:17: error: cannot find 'closedir' in scope
109 | throw FileError.error(errno)
110 | }
111 | defer { closedir(dir) }
| `- error: cannot find 'closedir' in scope
112 | var results = [String]()
113 | while let ent = readdir(dir) {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:113:25: error: cannot find 'readdir' in scope
111 | defer { closedir(dir) }
112 | var results = [String]()
113 | while let ent = readdir(dir) {
| `- error: cannot find 'readdir' in scope
114 | var name = ent.pointee.d_name
115 | let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:137:30: error: cannot find 'stat' in scope
135 | private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
136 | return try self.withCString({
137 | var statBuffer = stat()
| `- error: cannot find 'stat' in scope
138 | if stat($0, &statBuffer) == 0 {
139 | return try closure(statBuffer)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:138:16: error: cannot find 'stat' in scope
136 | return try self.withCString({
137 | var statBuffer = stat()
138 | if stat($0, &statBuffer) == 0 {
| `- error: cannot find 'stat' in scope
139 | return try closure(statBuffer)
140 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:141:16: error: cannot find 'errno' in scope
139 | return try closure(statBuffer)
140 | }
141 | if errno == ENOENT {
| `- error: cannot find 'errno' in scope
142 | return try closure(nil)
143 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/String+File.swift:144:35: error: cannot find 'errno' in scope
142 | return try closure(nil)
143 | }
144 | throw FileError.error(errno)
| `- error: cannot find 'errno' in scope
145 | })
146 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[5/47] Compiling Swifter Scopes.swift
[8/50] Compiling SKCore Reaction.swift
[9/50] Compiling SKCore Reply.swift
[10/50] Compiling SKCore Scope.swift
[11/50] Compiling Swifter String+SHA1.swift
[12/50] Compiling Swifter WebSockets.swift
[13/50] Compiling SKCore RTMOptions.swift
[14/50] Emitting module SKCore
[15/50] Compiling Swifter Socket+File.swift
[16/50] Compiling Swifter Socket+Server.swift
[17/50] Compiling Swifter DemoServer.swift
[18/50] Compiling Swifter Errno.swift
[19/50] Compiling Swifter Files.swift
[20/50] Compiling Swifter HttpParser.swift
[21/50] Compiling Swifter HttpRequest.swift
[22/50] Compiling Swifter HttpResponse.swift
[23/50] Compiling Swifter HttpRouter.swift
/host/spi-builder-workspace/.build/checkouts/SKCore/Sources/SKCore/Extensions.swift:37:20: error: cannot find 'NSEC_PER_SEC' in scope
35 | return UInt64(CLOCKS_PER_SEC)
36 | #else
37 | return NSEC_PER_SEC
| `- error: cannot find 'NSEC_PER_SEC' in scope
38 | #endif
39 | }
[24/50] Compiling Swifter HttpServer.swift
/host/spi-builder-workspace/.build/checkouts/SKCore/Sources/SKCore/Extensions.swift:37:20: error: cannot find 'NSEC_PER_SEC' in scope
35 | return UInt64(CLOCKS_PER_SEC)
36 | #else
37 | return NSEC_PER_SEC
| `- error: cannot find 'NSEC_PER_SEC' in scope
38 | #endif
39 | }
[25/50] Compiling Swifter HttpServerIO.swift
/host/spi-builder-workspace/.build/checkouts/SKCore/Sources/SKCore/Extensions.swift:37:20: error: cannot find 'NSEC_PER_SEC' in scope
35 | return UInt64(CLOCKS_PER_SEC)
36 | #else
37 | return NSEC_PER_SEC
| `- error: cannot find 'NSEC_PER_SEC' in scope
38 | #endif
39 | }
[26/50] Compiling Swifter Socket.swift
/host/spi-builder-workspace/.build/checkouts/SKCore/Sources/SKCore/Extensions.swift:37:20: error: cannot find 'NSEC_PER_SEC' in scope
35 | return UInt64(CLOCKS_PER_SEC)
36 | #else
37 | return NSEC_PER_SEC
| `- error: cannot find 'NSEC_PER_SEC' in scope
38 | #endif
39 | }
[27/50] Compiling Swifter String+BASE64.swift
[28/50] Compiling Swifter MimeTypes.swift
[29/50] Compiling Swifter Process.swift
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
48 | }
49 |
50 | public func port() throws -> in_port_t {
| `- error: cannot find type 'in_port_t' in scope
51 | var addr = sockaddr_in()
52 | return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:51:20: error: cannot find 'sockaddr_in' in scope
49 |
50 | public func port() throws -> in_port_t {
51 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
52 | return try withUnsafePointer(to: &addr) { pointer in
53 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:67:20: error: cannot find 'sockaddr_in' in scope
65 |
66 | public func isIPv4() throws -> Bool {
67 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
68 | return try withUnsafePointer(to: &addr) { pointer in
69 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:69:46: error: cannot find type 'sockaddr_in' in scope
67 | var addr = sockaddr_in()
68 | return try withUnsafePointer(to: &addr) { pointer in
69 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
| `- error: cannot find type 'sockaddr_in' in scope
70 | if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
71 | throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:70:16: error: cannot find 'getsockname' in scope
68 | return try withUnsafePointer(to: &addr) { pointer in
69 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
70 | if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
| `- error: cannot find 'getsockname' in scope
71 | throw SocketError.getSockNameFailed(Errno.description())
72 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:73:57: error: cannot find 'AF_INET' in scope
71 | throw SocketError.getSockNameFailed(Errno.description())
72 | }
73 | return Int32(pointer.pointee.sin_family) == AF_INET
| `- error: cannot find 'AF_INET' in scope
74 | }
75 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:116:30: error: cannot find 'write' in scope
114 | let result = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
115 | #else
116 | let result = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
| `- error: cannot find 'write' in scope
117 | #endif
118 | if result <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:137:18: error: cannot find 'Darwin' in scope
135 | let count = Glibc.read(self.socketFileDescriptor as Int32, &byte, 1)
136 | #else
137 | let count = Darwin.read(self.socketFileDescriptor as Int32, &byte, 1)
| `- error: cannot find 'Darwin' in scope
138 | #endif
139 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:180:26: error: cannot find 'Darwin' in scope
178 | let bytesRead = Glibc.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
179 | #else
180 | let bytesRead = Darwin.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
| `- error: cannot find 'Darwin' in scope
181 | #endif
182 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:20: error: cannot find 'sockaddr' in scope
205 |
206 | public func peername() throws -> String {
207 | var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
| `- error: cannot find 'sockaddr' in scope
208 | if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 | throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:72: error: cannot find type 'sockaddr' in scope
205 |
206 | public func peername() throws -> String {
207 | var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
| `- error: cannot find type 'sockaddr' in scope
208 | if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 | throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:208:12: error: cannot find 'getpeername' in scope
206 | public func peername() throws -> String {
207 | var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
208 | if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
| `- error: cannot find 'getpeername' in scope
209 | throw SocketError.getPeerNameFailed(Errno.description())
210 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:211:59: error: cannot find 'NI_MAXHOST' in scope
209 | throw SocketError.getPeerNameFailed(Errno.description())
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
| `- error: cannot find 'NI_MAXHOST' in scope
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
213 | throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:12: error: cannot find 'getnameinfo' in scope
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
| `- error: cannot find 'getnameinfo' in scope
213 | throw SocketError.getNameInfoFailed(Errno.description())
214 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:86: error: cannot find 'NI_NUMERICHOST' in scope
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
| `- error: cannot find 'NI_NUMERICHOST' in scope
213 | throw SocketError.getNameInfoFailed(Errno.description())
214 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:78: error: 'nil' requires a contextual type
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
| `- error: 'nil' requires a contextual type
213 | throw SocketError.getNameInfoFailed(Errno.description())
214 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:13: error: cannot find 'setsockopt' in scope
223 | // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 | var no_sig_pipe: Int32 = 1
225 | setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'setsockopt' in scope
226 | #endif
227 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:32: error: cannot find 'SOL_SOCKET' in scope
223 | // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 | var no_sig_pipe: Int32 = 1
225 | setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'SOL_SOCKET' in scope
226 | #endif
227 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:44: error: cannot find 'SO_NOSIGPIPE' in scope
223 | // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 | var no_sig_pipe: Int32 = 1
225 | setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'SO_NOSIGPIPE' in scope
226 | #endif
227 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:233:17: error: cannot find 'Darwin' in scope
231 | _ = Glibc.close(socket)
232 | #else
233 | _ = Darwin.close(socket)
| `- error: cannot find 'Darwin' in scope
234 | #endif
235 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:50:34: error: cannot find type 'in_port_t' in scope
48 | }
49 |
50 | public func port() throws -> in_port_t {
| `- error: cannot find type 'in_port_t' in scope
51 | var addr = sockaddr_in()
52 | return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:51:20: error: cannot find 'sockaddr_in' in scope
49 |
50 | public func port() throws -> in_port_t {
51 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
52 | return try withUnsafePointer(to: &addr) { pointer in
53 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:67:20: error: cannot find 'sockaddr_in' in scope
65 |
66 | public func isIPv4() throws -> Bool {
67 | var addr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
68 | return try withUnsafePointer(to: &addr) { pointer in
69 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:69:46: error: cannot find type 'sockaddr_in' in scope
67 | var addr = sockaddr_in()
68 | return try withUnsafePointer(to: &addr) { pointer in
69 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
| `- error: cannot find type 'sockaddr_in' in scope
70 | if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
71 | throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:70:16: error: cannot find 'getsockname' in scope
68 | return try withUnsafePointer(to: &addr) { pointer in
69 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
70 | if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
| `- error: cannot find 'getsockname' in scope
71 | throw SocketError.getSockNameFailed(Errno.description())
72 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:73:57: error: cannot find 'AF_INET' in scope
71 | throw SocketError.getSockNameFailed(Errno.description())
72 | }
73 | return Int32(pointer.pointee.sin_family) == AF_INET
| `- error: cannot find 'AF_INET' in scope
74 | }
75 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:116:30: error: cannot find 'write' in scope
114 | let result = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
115 | #else
116 | let result = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
| `- error: cannot find 'write' in scope
117 | #endif
118 | if result <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:137:18: error: cannot find 'Darwin' in scope
135 | let count = Glibc.read(self.socketFileDescriptor as Int32, &byte, 1)
136 | #else
137 | let count = Darwin.read(self.socketFileDescriptor as Int32, &byte, 1)
| `- error: cannot find 'Darwin' in scope
138 | #endif
139 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:180:26: error: cannot find 'Darwin' in scope
178 | let bytesRead = Glibc.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
179 | #else
180 | let bytesRead = Darwin.read(self.socketFileDescriptor as Int32, baseAddress + offset, readLength)
| `- error: cannot find 'Darwin' in scope
181 | #endif
182 |
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:20: error: cannot find 'sockaddr' in scope
205 |
206 | public func peername() throws -> String {
207 | var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
| `- error: cannot find 'sockaddr' in scope
208 | if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 | throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:207:72: error: cannot find type 'sockaddr' in scope
205 |
206 | public func peername() throws -> String {
207 | var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
| `- error: cannot find type 'sockaddr' in scope
208 | if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
209 | throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:208:12: error: cannot find 'getpeername' in scope
206 | public func peername() throws -> String {
207 | var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
208 | if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
| `- error: cannot find 'getpeername' in scope
209 | throw SocketError.getPeerNameFailed(Errno.description())
210 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:211:59: error: cannot find 'NI_MAXHOST' in scope
209 | throw SocketError.getPeerNameFailed(Errno.description())
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
| `- error: cannot find 'NI_MAXHOST' in scope
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
213 | throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:12: error: cannot find 'getnameinfo' in scope
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
| `- error: cannot find 'getnameinfo' in scope
213 | throw SocketError.getNameInfoFailed(Errno.description())
214 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:86: error: cannot find 'NI_NUMERICHOST' in scope
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
| `- error: cannot find 'NI_NUMERICHOST' in scope
213 | throw SocketError.getNameInfoFailed(Errno.description())
214 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:212:78: error: 'nil' requires a contextual type
210 | }
211 | var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
212 | if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
| `- error: 'nil' requires a contextual type
213 | throw SocketError.getNameInfoFailed(Errno.description())
214 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:13: error: cannot find 'setsockopt' in scope
223 | // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 | var no_sig_pipe: Int32 = 1
225 | setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'setsockopt' in scope
226 | #endif
227 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:32: error: cannot find 'SOL_SOCKET' in scope
223 | // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 | var no_sig_pipe: Int32 = 1
225 | setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'SOL_SOCKET' in scope
226 | #endif
227 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:225:44: error: cannot find 'SO_NOSIGPIPE' in scope
223 | // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
224 | var no_sig_pipe: Int32 = 1
225 | setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'SO_NOSIGPIPE' in scope
226 | #endif
227 | }
/host/spi-builder-workspace/.build/checkouts/swifter/XCode/Sources/Socket.swift:233:17: error: cannot find 'Darwin' in scope
231 | _ = Glibc.close(socket)
232 | #else
233 | _ = Darwin.close(socket)
| `- error: cannot find 'Darwin' in scope
234 | #endif
235 | }
[32/50] Compiling SKCore Topic.swift
[33/50] Compiling SKCore User.swift
[34/50] Compiling SKCore UserGroup.swift
BUILD FAILURE 6.1 android