Build Information
Failed to build MicroExpress, reference 0.0.1 (06f66c
), with Swift 6.1 for Android on 28 May 2025 07:14:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/helje5/MicroExpress.git
Reference: 0.0.1
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/helje5/MicroExpress
* tag 0.0.1 -> FETCH_HEAD
HEAD is now at 06f66cf Language tag
Cloned https://github.com/helje5/MicroExpress.git
Revision (git rev-parse @):
06f66cf05a8cd8a1e0dca120d615afbc470bde10
SUCCESS checkout https://github.com/helje5/MicroExpress.git at 0.0.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/helje5/MicroExpress.git
https://github.com/helje5/MicroExpress.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "http",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/http"
}
],
"manifest_display_name" : "MicroExpress",
"name" : "MicroExpress",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "MicroExpress",
"targets" : [
"MicroExpress"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MicroHelloServer",
"targets" : [
"MicroHelloServer"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "MicroHelloServer",
"module_type" : "SwiftTarget",
"name" : "MicroHelloServer",
"path" : "Sources/MicroHelloServer",
"product_memberships" : [
"MicroHelloServer"
],
"sources" : [
"TodoModel.swift",
"main.swift"
],
"target_dependencies" : [
"MicroExpress"
],
"type" : "executable"
},
{
"c99name" : "MicroExpress",
"module_type" : "SwiftTarget",
"name" : "MicroExpress",
"path" : "Sources/MicroExpress",
"product_dependencies" : [
"HTTP"
],
"product_memberships" : [
"MicroExpress",
"MicroHelloServer"
],
"sources" : [
"CORS.swift",
"Express.swift",
"IncomingMessage.swift",
"Middleware.swift",
"QueryString.swift",
"Router.swift",
"ServerResponse.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/swift-server/http
[1/1874] Fetching http
Fetched https://github.com/swift-server/http from cache (0.34s)
Computing version for https://github.com/swift-server/http
Computed https://github.com/swift-server/http at 0.1.0 (0.94s)
Creating working copy for https://github.com/swift-server/http
Working copy of https://github.com/swift-server/http resolved at 0.1.0
Building for debugging...
[0/10] Write sources
[3/10] Compiling CHTTPParser http_parser.c
[4/10] Write swift-version-24593BA9C3E375BF.txt
[6/21] Compiling HTTP HTTPVersion.swift
[7/22] Compiling HTTP PoCSocketSimpleServer.swift
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocketSimpleServer.swift:72:25: error: cannot find 'SIG_IGN' in scope
70 |
71 | // Don't let a signal generated by a broken socket kill the server
72 | signal(SIGPIPE, SIG_IGN);
| `- error: cannot find 'SIG_IGN' in scope
73 |
74 | if queueCount > 0 {
[8/22] Compiling HTTP HTTPMethod.swift
[9/22] Compiling HTTP HTTPRequest.swift
[10/22] Compiling HTTP PoCSocketConnectionListener.swift
[11/22] Emitting module HTTP
[12/22] Compiling HTTP HTTPCommon.swift
[13/22] Compiling HTTP HTTPHeaders.swift
[14/22] Compiling HTTP HTTPResponse.swift
[15/22] Compiling HTTP HTTPServer.swift
[16/22] Compiling HTTP HTTPStreamingParser.swift
[17/22] Compiling HTTP PoCSocket.swift
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:83:20: error: cannot find 'recv' in scope
81 | readBuffer.initialize(to: 0x0, count: maxLength)
82 |
83 | let read = recv(self.socketfd, readBuffer, maxLength, Int32(0))
| `- error: cannot find 'recv' in scope
84 | //Leave this as a local variable to facilitate Setting a Watchpoint in lldb
85 | return read
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:109:20: error: cannot find 'send' in scope
107 | }
108 |
109 | let sent = send(self.socketfd, buffer, Int(bufSize), Int32(0))
| `- error: cannot find 'send' in scope
110 | //Leave this as a local variable to facilitate Setting a Watchpoint in lldb
111 | return sent
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:124:17: error: cannot find 'shutdown' in scope
122 | if self.isListening || self.isConnected {
123 | //print("Shutting down socket")
124 | _ = shutdown(self.socketfd, Int32(SHUT_RDWR))
| `- error: cannot find 'shutdown' in scope
125 | self.isListening = false
126 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:124:47: error: cannot find 'SHUT_RDWR' in scope
122 | if self.isListening || self.isConnected {
123 | //print("Shutting down socket")
124 | _ = shutdown(self.socketfd, Int32(SHUT_RDWR))
| `- error: cannot find 'SHUT_RDWR' in scope
125 | self.isListening = false
126 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:128:9: error: cannot find 'close' in scope
126 | }
127 | self.isConnected = false
128 | close(self.socketfd)
| `- error: cannot find 'close' in scope
129 | }
130 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:146:30: error: cannot find 'sockaddr_in' in scope
144 | var acceptFD: Int32 = -1
145 | repeat {
146 | var acceptAddr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
147 | var addrSize = socklen_t(MemoryLayout<sockaddr_in>.size)
148 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:147:51: error: cannot find type 'sockaddr_in' in scope
145 | repeat {
146 | var acceptAddr = sockaddr_in()
147 | var addrSize = socklen_t(MemoryLayout<sockaddr_in>.size)
| `- error: cannot find type 'sockaddr_in' in scope
148 |
149 | acceptFD = withUnsafeMutablePointer(to: &acceptAddr) { pointer in
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:150:24: error: cannot find 'accept' in scope
148 |
149 | acceptFD = withUnsafeMutablePointer(to: &acceptAddr) { pointer in
150 | return accept(self.socketfd, UnsafeMutableRawPointer(pointer).assumingMemoryBound(to: sockaddr.self), &addrSize)
| `- error: cannot find 'accept' in scope
151 | }
152 | if acceptFD < 0 && errno != EINTR {
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:150:103: error: cannot find 'sockaddr' in scope
148 |
149 | acceptFD = withUnsafeMutablePointer(to: &acceptAddr) { pointer in
150 | return accept(self.socketfd, UnsafeMutableRawPointer(pointer).assumingMemoryBound(to: sockaddr.self), &addrSize)
| `- error: cannot find 'sockaddr' in scope
151 | }
152 | if acceptFD < 0 && errno != EINTR {
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:150:79: error: generic parameter 'T' could not be inferred
148 |
149 | acceptFD = withUnsafeMutablePointer(to: &acceptAddr) { pointer in
150 | return accept(self.socketfd, UnsafeMutableRawPointer(pointer).assumingMemoryBound(to: sockaddr.self), &addrSize)
| `- error: generic parameter 'T' could not be inferred
151 | }
152 | if acceptFD < 0 && errno != EINTR {
Swift.UnsafeMutableRawPointer.assumingMemoryBound:2:13: note: in call to function 'assumingMemoryBound(to:)'
1 | struct UnsafeMutableRawPointer {
2 | public func assumingMemoryBound<T>(to: T.Type) -> UnsafeMutablePointer<T> where T : ~Copyable}
| `- note: in call to function 'assumingMemoryBound(to:)'
3 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:152:32: error: cannot find 'errno' in scope
150 | return accept(self.socketfd, UnsafeMutableRawPointer(pointer).assumingMemoryBound(to: sockaddr.self), &addrSize)
151 | }
152 | if acceptFD < 0 && errno != EINTR {
| `- error: cannot find 'errno' in scope
153 | //fail
154 | if (isShuttingDown) {
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:158:75: error: cannot find 'errno' in scope
156 | }
157 | maxRetryCount = maxRetryCount - 1
158 | print("Could not accept on socket \(socketfd). Error is \(errno). Will retry.")
| `- error: cannot find 'errno' in scope
159 | }
160 | }
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:164:55: error: cannot find 'errno' in scope
162 |
163 | if acceptFD < 0 {
164 | throw PoCSocketError.SocketOSError(errno: errno)
| `- error: cannot find 'errno' in scope
165 | }
166 |
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:183:24: error: cannot find 'socket' in scope
181 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM.rawValue), Int32(IPPROTO_TCP))
182 | #else
183 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM), Int32(IPPROTO_TCP))
| `- error: cannot find 'socket' in scope
184 | #endif
185 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:183:37: error: cannot find 'AF_INET' in scope
181 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM.rawValue), Int32(IPPROTO_TCP))
182 | #else
183 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM), Int32(IPPROTO_TCP))
| `- error: cannot find 'AF_INET' in scope
184 | #endif
185 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:183:53: error: cannot find 'SOCK_STREAM' in scope
181 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM.rawValue), Int32(IPPROTO_TCP))
182 | #else
183 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM), Int32(IPPROTO_TCP))
| `- error: cannot find 'SOCK_STREAM' in scope
184 | #endif
185 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:183:73: error: cannot find 'IPPROTO_TCP' in scope
181 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM.rawValue), Int32(IPPROTO_TCP))
182 | #else
183 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM), Int32(IPPROTO_TCP))
| `- error: cannot find 'IPPROTO_TCP' in scope
184 | #endif
185 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:192:12: error: cannot find 'setsockopt' in scope
190 | var on: Int32 = 1
191 | // Allow address reuse
192 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
193 | throw PoCSocketError.SocketOSError(errno: errno)
194 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:192:38: error: cannot find 'SOL_SOCKET' in scope
190 | var on: Int32 = 1
191 | // Allow address reuse
192 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
193 | throw PoCSocketError.SocketOSError(errno: errno)
194 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:192:50: error: cannot find 'SO_REUSEADDR' in scope
190 | var on: Int32 = 1
191 | // Allow address reuse
192 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEADDR' in scope
193 | throw PoCSocketError.SocketOSError(errno: errno)
194 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:193:55: error: cannot find 'errno' in scope
191 | // Allow address reuse
192 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
193 | throw PoCSocketError.SocketOSError(errno: errno)
| `- error: cannot find 'errno' in scope
194 | }
195 |
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:197:12: error: cannot find 'setsockopt' in scope
195 |
196 | // Allow port reuse
197 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
198 | throw PoCSocketError.SocketOSError(errno: errno)
199 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:197:38: error: cannot find 'SOL_SOCKET' in scope
195 |
196 | // Allow port reuse
197 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
198 | throw PoCSocketError.SocketOSError(errno: errno)
199 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:197:50: error: cannot find 'SO_REUSEPORT' in scope
195 |
196 | // Allow port reuse
197 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEPORT' in scope
198 | throw PoCSocketError.SocketOSError(errno: errno)
199 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:198:55: error: cannot find 'errno' in scope
196 | // Allow port reuse
197 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
198 | throw PoCSocketError.SocketOSError(errno: errno)
| `- error: cannot find 'errno' in scope
199 | }
200 |
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:208:24: error: cannot find 'sockaddr_in' in scope
206 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
207 | #else
208 | var addr = sockaddr_in(
| `- error: cannot find 'sockaddr_in' in scope
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
210 | sin_family: UInt8(AF_INET),
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:209:45: error: cannot find type 'sockaddr_in' in scope
207 | #else
208 | var addr = sockaddr_in(
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
| `- error: cannot find type 'sockaddr_in' in scope
210 | sin_family: UInt8(AF_INET),
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:210:35: error: cannot find 'AF_INET' in scope
208 | var addr = sockaddr_in(
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
210 | sin_family: UInt8(AF_INET),
| `- error: cannot find 'AF_INET' in scope
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
212 | sin_addr: in_addr(s_addr: in_addr_t(0)),
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:211:32: error: cannot find 'OSHostByteOrder' in scope
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
210 | sin_family: UInt8(AF_INET),
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
| `- error: cannot find 'OSHostByteOrder' in scope
212 | sin_addr: in_addr(s_addr: in_addr_t(0)),
213 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:211:54: error: cannot find 'OSLittleEndian' in scope
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
210 | sin_family: UInt8(AF_INET),
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
| `- error: cannot find 'OSLittleEndian' in scope
212 | sin_addr: in_addr(s_addr: in_addr_t(0)),
213 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:211:86: error: cannot find '_OSSwapInt16' in scope
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
210 | sin_family: UInt8(AF_INET),
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
| `- error: cannot find '_OSSwapInt16' in scope
212 | sin_addr: in_addr(s_addr: in_addr_t(0)),
213 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:212:27: error: cannot find 'in_addr' in scope
210 | sin_family: UInt8(AF_INET),
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
212 | sin_addr: in_addr(s_addr: in_addr_t(0)),
| `- error: cannot find 'in_addr' in scope
213 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
214 | #endif
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:212:43: error: cannot find 'in_addr_t' in scope
210 | sin_family: UInt8(AF_INET),
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
212 | sin_addr: in_addr(s_addr: in_addr_t(0)),
| `- error: cannot find 'in_addr_t' in scope
213 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
214 | #endif
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:208:17: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
206 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
207 | #else
208 | var addr = sockaddr_in(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
210 | sin_family: UInt8(AF_INET),
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:217:13: error: cannot find 'bind' in scope
215 |
216 | let _ = withUnsafePointer(to: &addr) {
217 | bind(self.socketfd, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find 'bind' in scope
218 | }
219 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:217:100: error: cannot find type 'sockaddr_in' in scope
215 |
216 | let _ = withUnsafePointer(to: &addr) {
217 | bind(self.socketfd, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr_in' in scope
218 | }
219 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:217:47: error: cannot find type 'sockaddr' in scope
215 |
216 | let _ = withUnsafePointer(to: &addr) {
217 | bind(self.socketfd, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr' in scope
218 | }
219 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:222:17: error: cannot find 'listen' in scope
220 | //print("bindResult is \(bindResult)")
221 |
222 | let _ = listen(self.socketfd, maxBacklogSize)
| `- error: cannot find 'listen' in scope
223 |
224 | isListening = true
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:228:23: error: cannot find 'sockaddr_in' in scope
226 | //print("listenResult is \(listenResult)")
227 |
228 | var addr_in = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
229 |
230 | listeningPort = try withUnsafePointer(to: &addr_in) { pointer in
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:231:46: error: cannot find type 'sockaddr_in' in scope
229 |
230 | listeningPort = try withUnsafePointer(to: &addr_in) { pointer in
231 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
| `- error: cannot find type 'sockaddr_in' in scope
232 | if getsockname(socketfd, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
233 | throw PoCSocketError.SocketOSError(errno: errno)
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:232:16: error: cannot find 'getsockname' in scope
230 | listeningPort = try withUnsafePointer(to: &addr_in) { pointer in
231 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
232 | if getsockname(socketfd, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
| `- error: cannot find 'getsockname' in scope
233 | throw PoCSocketError.SocketOSError(errno: errno)
234 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:233:59: error: cannot find 'errno' in scope
231 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
232 | if getsockname(socketfd, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
233 | throw PoCSocketError.SocketOSError(errno: errno)
| `- error: cannot find 'errno' in scope
234 | }
235 | #if os(Linux)
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:238:34: error: cannot find 'OSHostByteOrder' in scope
236 | return Int32(ntohs(addr_in.sin_port))
237 | #else
238 | return Int32(Int(OSHostByteOrder()) != OSLittleEndian ? addr_in.sin_port.littleEndian : addr_in.sin_port.bigEndian)
| `- error: cannot find 'OSHostByteOrder' in scope
239 | #endif
240 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:238:56: error: cannot find 'OSLittleEndian' in scope
236 | return Int32(ntohs(addr_in.sin_port))
237 | #else
238 | return Int32(Int(OSHostByteOrder()) != OSLittleEndian ? addr_in.sin_port.littleEndian : addr_in.sin_port.bigEndian)
| `- error: cannot find 'OSLittleEndian' in scope
239 | #endif
240 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:258:21: error: cannot find 'fcntl' in scope
256 | /// - Throws: PoCSocketError if `fcntl` fails
257 | @discardableResult internal func setBlocking(mode: Bool) throws -> Int32 {
258 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'fcntl' in scope
259 | if flags < 0 {
260 | //Failed
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:258:42: error: cannot find 'F_GETFL' in scope
256 | /// - Throws: PoCSocketError if `fcntl` fails
257 | @discardableResult internal func setBlocking(mode: Bool) throws -> Int32 {
258 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
259 | if flags < 0 {
260 | //Failed
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:261:55: error: cannot find 'errno' in scope
259 | if flags < 0 {
260 | //Failed
261 | throw PoCSocketError.SocketOSError(errno: errno)
| `- error: cannot find 'errno' in scope
262 | }
263 |
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:264:40: error: cannot find 'O_NONBLOCK' in scope
262 | }
263 |
264 | let newFlags = mode ? flags & ~O_NONBLOCK : flags | O_NONBLOCK
| `- error: cannot find 'O_NONBLOCK' in scope
265 |
266 | let result = fcntl(self.socketfd, F_SETFL, newFlags)
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:264:61: error: cannot find 'O_NONBLOCK' in scope
262 | }
263 |
264 | let newFlags = mode ? flags & ~O_NONBLOCK : flags | O_NONBLOCK
| `- error: cannot find 'O_NONBLOCK' in scope
265 |
266 | let result = fcntl(self.socketfd, F_SETFL, newFlags)
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:266:22: error: cannot find 'fcntl' in scope
264 | let newFlags = mode ? flags & ~O_NONBLOCK : flags | O_NONBLOCK
265 |
266 | let result = fcntl(self.socketfd, F_SETFL, newFlags)
| `- error: cannot find 'fcntl' in scope
267 | if result < 0 {
268 | //Failed
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:266:43: error: cannot find 'F_SETFL' in scope
264 | let newFlags = mode ? flags & ~O_NONBLOCK : flags | O_NONBLOCK
265 |
266 | let result = fcntl(self.socketfd, F_SETFL, newFlags)
| `- error: cannot find 'F_SETFL' in scope
267 | if result < 0 {
268 | //Failed
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:269:55: error: cannot find 'errno' in scope
267 | if result < 0 {
268 | //Failed
269 | throw PoCSocketError.SocketOSError(errno: errno)
| `- error: cannot find 'errno' in scope
270 | }
271 | return result
/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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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/6] Write swift-version-24593BA9C3E375BF.txt
[2/17] Compiling HTTP HTTPMethod.swift
[3/17] Compiling HTTP HTTPRequest.swift
[4/18] Compiling HTTP HTTPResponse.swift
[5/18] Compiling HTTP HTTPServer.swift
[6/18] Compiling HTTP PoCSocketConnectionListener.swift
[7/18] Compiling HTTP PoCSocketSimpleServer.swift
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocketSimpleServer.swift:72:25: error: cannot find 'SIG_IGN' in scope
70 |
71 | // Don't let a signal generated by a broken socket kill the server
72 | signal(SIGPIPE, SIG_IGN);
| `- error: cannot find 'SIG_IGN' in scope
73 |
74 | if queueCount > 0 {
[8/18] Emitting module HTTP
[9/18] Compiling HTTP HTTPCommon.swift
[10/18] Compiling HTTP HTTPHeaders.swift
[11/18] Compiling HTTP HTTPStreamingParser.swift
[12/18] Compiling HTTP HTTPVersion.swift
[13/18] Compiling HTTP PoCSocket.swift
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:83:20: error: cannot find 'recv' in scope
81 | readBuffer.initialize(to: 0x0, count: maxLength)
82 |
83 | let read = recv(self.socketfd, readBuffer, maxLength, Int32(0))
| `- error: cannot find 'recv' in scope
84 | //Leave this as a local variable to facilitate Setting a Watchpoint in lldb
85 | return read
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:109:20: error: cannot find 'send' in scope
107 | }
108 |
109 | let sent = send(self.socketfd, buffer, Int(bufSize), Int32(0))
| `- error: cannot find 'send' in scope
110 | //Leave this as a local variable to facilitate Setting a Watchpoint in lldb
111 | return sent
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:124:17: error: cannot find 'shutdown' in scope
122 | if self.isListening || self.isConnected {
123 | //print("Shutting down socket")
124 | _ = shutdown(self.socketfd, Int32(SHUT_RDWR))
| `- error: cannot find 'shutdown' in scope
125 | self.isListening = false
126 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:124:47: error: cannot find 'SHUT_RDWR' in scope
122 | if self.isListening || self.isConnected {
123 | //print("Shutting down socket")
124 | _ = shutdown(self.socketfd, Int32(SHUT_RDWR))
| `- error: cannot find 'SHUT_RDWR' in scope
125 | self.isListening = false
126 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:128:9: error: cannot find 'close' in scope
126 | }
127 | self.isConnected = false
128 | close(self.socketfd)
| `- error: cannot find 'close' in scope
129 | }
130 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:146:30: error: cannot find 'sockaddr_in' in scope
144 | var acceptFD: Int32 = -1
145 | repeat {
146 | var acceptAddr = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
147 | var addrSize = socklen_t(MemoryLayout<sockaddr_in>.size)
148 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:147:51: error: cannot find type 'sockaddr_in' in scope
145 | repeat {
146 | var acceptAddr = sockaddr_in()
147 | var addrSize = socklen_t(MemoryLayout<sockaddr_in>.size)
| `- error: cannot find type 'sockaddr_in' in scope
148 |
149 | acceptFD = withUnsafeMutablePointer(to: &acceptAddr) { pointer in
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:150:24: error: cannot find 'accept' in scope
148 |
149 | acceptFD = withUnsafeMutablePointer(to: &acceptAddr) { pointer in
150 | return accept(self.socketfd, UnsafeMutableRawPointer(pointer).assumingMemoryBound(to: sockaddr.self), &addrSize)
| `- error: cannot find 'accept' in scope
151 | }
152 | if acceptFD < 0 && errno != EINTR {
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:150:103: error: cannot find 'sockaddr' in scope
148 |
149 | acceptFD = withUnsafeMutablePointer(to: &acceptAddr) { pointer in
150 | return accept(self.socketfd, UnsafeMutableRawPointer(pointer).assumingMemoryBound(to: sockaddr.self), &addrSize)
| `- error: cannot find 'sockaddr' in scope
151 | }
152 | if acceptFD < 0 && errno != EINTR {
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:150:79: error: generic parameter 'T' could not be inferred
148 |
149 | acceptFD = withUnsafeMutablePointer(to: &acceptAddr) { pointer in
150 | return accept(self.socketfd, UnsafeMutableRawPointer(pointer).assumingMemoryBound(to: sockaddr.self), &addrSize)
| `- error: generic parameter 'T' could not be inferred
151 | }
152 | if acceptFD < 0 && errno != EINTR {
Swift.UnsafeMutableRawPointer.assumingMemoryBound:2:13: note: in call to function 'assumingMemoryBound(to:)'
1 | struct UnsafeMutableRawPointer {
2 | public func assumingMemoryBound<T>(to: T.Type) -> UnsafeMutablePointer<T> where T : ~Copyable}
| `- note: in call to function 'assumingMemoryBound(to:)'
3 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:152:32: error: cannot find 'errno' in scope
150 | return accept(self.socketfd, UnsafeMutableRawPointer(pointer).assumingMemoryBound(to: sockaddr.self), &addrSize)
151 | }
152 | if acceptFD < 0 && errno != EINTR {
| `- error: cannot find 'errno' in scope
153 | //fail
154 | if (isShuttingDown) {
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:158:75: error: cannot find 'errno' in scope
156 | }
157 | maxRetryCount = maxRetryCount - 1
158 | print("Could not accept on socket \(socketfd). Error is \(errno). Will retry.")
| `- error: cannot find 'errno' in scope
159 | }
160 | }
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:164:55: error: cannot find 'errno' in scope
162 |
163 | if acceptFD < 0 {
164 | throw PoCSocketError.SocketOSError(errno: errno)
| `- error: cannot find 'errno' in scope
165 | }
166 |
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:183:24: error: cannot find 'socket' in scope
181 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM.rawValue), Int32(IPPROTO_TCP))
182 | #else
183 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM), Int32(IPPROTO_TCP))
| `- error: cannot find 'socket' in scope
184 | #endif
185 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:183:37: error: cannot find 'AF_INET' in scope
181 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM.rawValue), Int32(IPPROTO_TCP))
182 | #else
183 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM), Int32(IPPROTO_TCP))
| `- error: cannot find 'AF_INET' in scope
184 | #endif
185 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:183:53: error: cannot find 'SOCK_STREAM' in scope
181 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM.rawValue), Int32(IPPROTO_TCP))
182 | #else
183 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM), Int32(IPPROTO_TCP))
| `- error: cannot find 'SOCK_STREAM' in scope
184 | #endif
185 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:183:73: error: cannot find 'IPPROTO_TCP' in scope
181 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM.rawValue), Int32(IPPROTO_TCP))
182 | #else
183 | socketfd = socket(Int32(AF_INET), Int32(SOCK_STREAM), Int32(IPPROTO_TCP))
| `- error: cannot find 'IPPROTO_TCP' in scope
184 | #endif
185 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:192:12: error: cannot find 'setsockopt' in scope
190 | var on: Int32 = 1
191 | // Allow address reuse
192 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
193 | throw PoCSocketError.SocketOSError(errno: errno)
194 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:192:38: error: cannot find 'SOL_SOCKET' in scope
190 | var on: Int32 = 1
191 | // Allow address reuse
192 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
193 | throw PoCSocketError.SocketOSError(errno: errno)
194 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:192:50: error: cannot find 'SO_REUSEADDR' in scope
190 | var on: Int32 = 1
191 | // Allow address reuse
192 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEADDR' in scope
193 | throw PoCSocketError.SocketOSError(errno: errno)
194 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:193:55: error: cannot find 'errno' in scope
191 | // Allow address reuse
192 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEADDR, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
193 | throw PoCSocketError.SocketOSError(errno: errno)
| `- error: cannot find 'errno' in scope
194 | }
195 |
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:197:12: error: cannot find 'setsockopt' in scope
195 |
196 | // Allow port reuse
197 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'setsockopt' in scope
198 | throw PoCSocketError.SocketOSError(errno: errno)
199 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:197:38: error: cannot find 'SOL_SOCKET' in scope
195 |
196 | // Allow port reuse
197 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SOL_SOCKET' in scope
198 | throw PoCSocketError.SocketOSError(errno: errno)
199 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:197:50: error: cannot find 'SO_REUSEPORT' in scope
195 |
196 | // Allow port reuse
197 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
| `- error: cannot find 'SO_REUSEPORT' in scope
198 | throw PoCSocketError.SocketOSError(errno: errno)
199 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:198:55: error: cannot find 'errno' in scope
196 | // Allow port reuse
197 | if setsockopt(self.socketfd, SOL_SOCKET, SO_REUSEPORT, &on, socklen_t(MemoryLayout<Int32>.size)) < 0 {
198 | throw PoCSocketError.SocketOSError(errno: errno)
| `- error: cannot find 'errno' in scope
199 | }
200 |
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:208:24: error: cannot find 'sockaddr_in' in scope
206 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
207 | #else
208 | var addr = sockaddr_in(
| `- error: cannot find 'sockaddr_in' in scope
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
210 | sin_family: UInt8(AF_INET),
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:209:45: error: cannot find type 'sockaddr_in' in scope
207 | #else
208 | var addr = sockaddr_in(
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
| `- error: cannot find type 'sockaddr_in' in scope
210 | sin_family: UInt8(AF_INET),
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:210:35: error: cannot find 'AF_INET' in scope
208 | var addr = sockaddr_in(
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
210 | sin_family: UInt8(AF_INET),
| `- error: cannot find 'AF_INET' in scope
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
212 | sin_addr: in_addr(s_addr: in_addr_t(0)),
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:211:32: error: cannot find 'OSHostByteOrder' in scope
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
210 | sin_family: UInt8(AF_INET),
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
| `- error: cannot find 'OSHostByteOrder' in scope
212 | sin_addr: in_addr(s_addr: in_addr_t(0)),
213 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:211:54: error: cannot find 'OSLittleEndian' in scope
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
210 | sin_family: UInt8(AF_INET),
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
| `- error: cannot find 'OSLittleEndian' in scope
212 | sin_addr: in_addr(s_addr: in_addr_t(0)),
213 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:211:86: error: cannot find '_OSSwapInt16' in scope
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
210 | sin_family: UInt8(AF_INET),
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
| `- error: cannot find '_OSSwapInt16' in scope
212 | sin_addr: in_addr(s_addr: in_addr_t(0)),
213 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:212:27: error: cannot find 'in_addr' in scope
210 | sin_family: UInt8(AF_INET),
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
212 | sin_addr: in_addr(s_addr: in_addr_t(0)),
| `- error: cannot find 'in_addr' in scope
213 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
214 | #endif
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:212:43: error: cannot find 'in_addr_t' in scope
210 | sin_family: UInt8(AF_INET),
211 | sin_port: (Int(OSHostByteOrder()) != OSLittleEndian ? UInt16(port) : _OSSwapInt16(UInt16(port))),
212 | sin_addr: in_addr(s_addr: in_addr_t(0)),
| `- error: cannot find 'in_addr_t' in scope
213 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
214 | #endif
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:208:17: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
206 | sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
207 | #else
208 | var addr = sockaddr_in(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
209 | sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
210 | sin_family: UInt8(AF_INET),
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:217:13: error: cannot find 'bind' in scope
215 |
216 | let _ = withUnsafePointer(to: &addr) {
217 | bind(self.socketfd, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find 'bind' in scope
218 | }
219 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:217:100: error: cannot find type 'sockaddr_in' in scope
215 |
216 | let _ = withUnsafePointer(to: &addr) {
217 | bind(self.socketfd, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr_in' in scope
218 | }
219 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:217:47: error: cannot find type 'sockaddr' in scope
215 |
216 | let _ = withUnsafePointer(to: &addr) {
217 | bind(self.socketfd, UnsafePointer<sockaddr>(OpaquePointer($0)), socklen_t(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find type 'sockaddr' in scope
218 | }
219 |
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:222:17: error: cannot find 'listen' in scope
220 | //print("bindResult is \(bindResult)")
221 |
222 | let _ = listen(self.socketfd, maxBacklogSize)
| `- error: cannot find 'listen' in scope
223 |
224 | isListening = true
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:228:23: error: cannot find 'sockaddr_in' in scope
226 | //print("listenResult is \(listenResult)")
227 |
228 | var addr_in = sockaddr_in()
| `- error: cannot find 'sockaddr_in' in scope
229 |
230 | listeningPort = try withUnsafePointer(to: &addr_in) { pointer in
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:231:46: error: cannot find type 'sockaddr_in' in scope
229 |
230 | listeningPort = try withUnsafePointer(to: &addr_in) { pointer in
231 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
| `- error: cannot find type 'sockaddr_in' in scope
232 | if getsockname(socketfd, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
233 | throw PoCSocketError.SocketOSError(errno: errno)
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:232:16: error: cannot find 'getsockname' in scope
230 | listeningPort = try withUnsafePointer(to: &addr_in) { pointer in
231 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
232 | if getsockname(socketfd, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
| `- error: cannot find 'getsockname' in scope
233 | throw PoCSocketError.SocketOSError(errno: errno)
234 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:233:59: error: cannot find 'errno' in scope
231 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
232 | if getsockname(socketfd, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
233 | throw PoCSocketError.SocketOSError(errno: errno)
| `- error: cannot find 'errno' in scope
234 | }
235 | #if os(Linux)
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:238:34: error: cannot find 'OSHostByteOrder' in scope
236 | return Int32(ntohs(addr_in.sin_port))
237 | #else
238 | return Int32(Int(OSHostByteOrder()) != OSLittleEndian ? addr_in.sin_port.littleEndian : addr_in.sin_port.bigEndian)
| `- error: cannot find 'OSHostByteOrder' in scope
239 | #endif
240 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:238:56: error: cannot find 'OSLittleEndian' in scope
236 | return Int32(ntohs(addr_in.sin_port))
237 | #else
238 | return Int32(Int(OSHostByteOrder()) != OSLittleEndian ? addr_in.sin_port.littleEndian : addr_in.sin_port.bigEndian)
| `- error: cannot find 'OSLittleEndian' in scope
239 | #endif
240 | }
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:258:21: error: cannot find 'fcntl' in scope
256 | /// - Throws: PoCSocketError if `fcntl` fails
257 | @discardableResult internal func setBlocking(mode: Bool) throws -> Int32 {
258 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'fcntl' in scope
259 | if flags < 0 {
260 | //Failed
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:258:42: error: cannot find 'F_GETFL' in scope
256 | /// - Throws: PoCSocketError if `fcntl` fails
257 | @discardableResult internal func setBlocking(mode: Bool) throws -> Int32 {
258 | let flags = fcntl(self.socketfd, F_GETFL)
| `- error: cannot find 'F_GETFL' in scope
259 | if flags < 0 {
260 | //Failed
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:261:55: error: cannot find 'errno' in scope
259 | if flags < 0 {
260 | //Failed
261 | throw PoCSocketError.SocketOSError(errno: errno)
| `- error: cannot find 'errno' in scope
262 | }
263 |
/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/http/Sources/HTTP/PoCSocket/PoCSocket.swift:264:40: error: cannot find 'O_NONBLOCK' in scope
262 | }
263 |
264 | let newFlags = mode ? flags & ~O_NONBLOCK : flags | O_NONBLOCK
| `- error: cannot find 'O_NONBLOCK' in scope
265 |
266 | let result = fcntl(self.socketfd, F_SETFL, newFlags)
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:264:61: error: cannot find 'O_NONBLOCK' in scope
262 | }
263 |
264 | let newFlags = mode ? flags & ~O_NONBLOCK : flags | O_NONBLOCK
| `- error: cannot find 'O_NONBLOCK' in scope
265 |
266 | let result = fcntl(self.socketfd, F_SETFL, newFlags)
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:266:22: error: cannot find 'fcntl' in scope
264 | let newFlags = mode ? flags & ~O_NONBLOCK : flags | O_NONBLOCK
265 |
266 | let result = fcntl(self.socketfd, F_SETFL, newFlags)
| `- error: cannot find 'fcntl' in scope
267 | if result < 0 {
268 | //Failed
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:266:43: error: cannot find 'F_SETFL' in scope
264 | let newFlags = mode ? flags & ~O_NONBLOCK : flags | O_NONBLOCK
265 |
266 | let result = fcntl(self.socketfd, F_SETFL, newFlags)
| `- error: cannot find 'F_SETFL' in scope
267 | if result < 0 {
268 | //Failed
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:269:55: error: cannot find 'errno' in scope
267 | if result < 0 {
268 | //Failed
269 | throw PoCSocketError.SocketOSError(errno: errno)
| `- error: cannot find 'errno' in scope
270 | }
271 | return result
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
BUILD FAILURE 6.1 android