The Swift Package Index logo.Swift Package Index

Build Information

Failed to build containerization, reference 0.51.0 (c41113), with Swift 6.2 for Android on 16 Oct 2026 04:11:25 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

267 |                         metadata: ["fd": "\(dstFd)", "errno": "\(errno)"]
    |                                                                  `- error: cannot find 'errno' in scope
268 |                     )
269 |                 }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:293:16: error: cannot find 'shutdown' in scope
291 |             )
292 |             dir.cancelRead()
293 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                `- error: cannot find 'shutdown' in scope
294 |                 log?.warning(
295 |                     "shutdown(SHUT_RDWR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:293:38: error: cannot find 'SHUT_RDWR' in scope
291 |             )
292 |             dir.cancelRead()
293 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                                      `- error: cannot find 'SHUT_RDWR' in scope
294 |                 log?.warning(
295 |                     "shutdown(SHUT_RDWR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:296:62: error: cannot find 'errno' in scope
294 |                 log?.warning(
295 |                     "shutdown(SHUT_RDWR) failed",
296 |                     metadata: ["fd": "\(dstFd)", "errno": "\(errno)"]
    |                                                              `- error: cannot find 'errno' in scope
297 |                 )
298 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:319:13: error: cannot find 'write' in scope
317 |
318 |         let n = dir.pendingData.withUnsafeBufferPointer { buf in
319 |             write(dstFd, buf.baseAddress!.advanced(by: dir.pendingOffset), remaining)
    |             `- error: cannot find 'write' in scope
320 |         }
321 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:335:30: error: cannot find 'errno' in scope
333 |                 dir.resumeRead()
334 |             }
335 |         } else if n == -1 && errno == EAGAIN {
    |                              `- error: cannot find 'errno' in scope
336 |             // Spurious write-ready notification; wait for the next one.
337 |         } else {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:335:39: error: cannot find 'EAGAIN' in scope
333 |                 dir.resumeRead()
334 |             }
335 |         } else if n == -1 && errno == EAGAIN {
    |                                       `- error: cannot find 'EAGAIN' in scope
336 |             // Spurious write-ready notification; wait for the next one.
337 |         } else {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:340:69: error: cannot find 'errno' in scope
338 |             log?.warning(
339 |                 "write error during pending drain",
340 |                 metadata: ["destinationFd": "\(dstFd)", "errno": "\(errno)"]
    |                                                                     `- error: cannot find 'errno' in scope
341 |             )
342 |             dir.writeSource?.cancel()
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:345:16: error: cannot find 'shutdown' in scope
343 |             dir.writeSource = nil
344 |             dir.cancelRead()
345 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                `- error: cannot find 'shutdown' in scope
346 |                 log?.warning(
347 |                     "shutdown(SHUT_RDWR) failed after drain error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:345:38: error: cannot find 'SHUT_RDWR' in scope
343 |             dir.writeSource = nil
344 |             dir.cancelRead()
345 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                                      `- error: cannot find 'SHUT_RDWR' in scope
346 |                 log?.warning(
347 |                     "shutdown(SHUT_RDWR) failed after drain error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:348:62: error: cannot find 'errno' in scope
346 |                 log?.warning(
347 |                     "shutdown(SHUT_RDWR) failed after drain error",
348 |                     metadata: ["fd": "\(dstFd)", "errno": "\(errno)"]
    |                                                              `- error: cannot find 'errno' in scope
349 |                 )
350 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:371:22: error: cannot find 'read' in scope
369 |
370 |         readLoop: while true {
371 |             let nr = read(srcFd, base, buffer.count)
    |                      `- error: cannot find 'read' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:20: error: cannot find 'errno' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                    `- error: cannot find 'errno' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:29: error: cannot find 'EAGAIN' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                             `- error: cannot find 'EAGAIN' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:39: error: cannot find 'errno' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                                       `- error: cannot find 'errno' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:48: error: cannot find 'EWOULDBLOCK' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                                                `- error: cannot find 'EWOULDBLOCK' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:375:20: error: cannot find 'errno' in scope
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
375 |                 if errno == EINTR { continue readLoop }
    |                    `- error: cannot find 'errno' in scope
376 |                 throw ContainerizationError(
377 |                     .internalError,
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:375:29: error: cannot find 'EINTR' in scope
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
375 |                 if errno == EINTR { continue readLoop }
    |                             `- error: cannot find 'EINTR' in scope
376 |                 throw ContainerizationError(
377 |                     .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:378:65: error: cannot find 'errno' in scope
376 |                 throw ContainerizationError(
377 |                     .internalError,
378 |                     message: "read failed: fd \(srcFd), errno \(errno)"
    |                                                                 `- error: cannot find 'errno' in scope
379 |                 )
380 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:384:26: error: cannot find 'write' in scope
382 |             var offset = 0
383 |             while offset < nr {
384 |                 let nw = write(dstFd, base.advanced(by: offset), nr - offset)
    |                          `- error: cannot find 'write' in scope
385 |                 if nw > 0 {
386 |                     offset += nw
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:388:24: error: cannot find 'errno' in scope
386 |                     offset += nw
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
390 |                         direction.pendingData = Array(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:388:33: error: cannot find 'EINTR' in scope
386 |                     offset += nw
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
390 |                         direction.pendingData = Array(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:24: error: cannot find 'errno' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                        `- error: cannot find 'errno' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:33: error: cannot find 'EAGAIN' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                 `- error: cannot find 'EAGAIN' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:43: error: cannot find 'errno' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                           `- error: cannot find 'errno' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:52: error: cannot find 'EWOULDBLOCK' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                                    `- error: cannot find 'EWOULDBLOCK' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:398:70: error: cannot find 'errno' in scope
396 |                     throw ContainerizationError(
397 |                         .internalError,
398 |                         message: "write failed: fd \(dstFd), errno \(errno)"
    |                                                                      `- error: cannot find 'errno' in scope
399 |                     )
400 |                 } else {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:412:9: error: cannot find 'close' in scope
410 |     private func closeBothFds() {
411 |         log?.debug("closing fds", metadata: ["fd1": "\(fd1)", "fd2": "\(fd2)"])
412 |         close(fd1)
    |         `- error: cannot find 'close' in scope
413 |         close(fd2)
414 |         completionState.withLock { state in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:413:9: error: cannot find 'close' in scope
411 |         log?.debug("closing fds", metadata: ["fd1": "\(fd1)", "fd2": "\(fd2)"])
412 |         close(fd1)
413 |         close(fd2)
    |         `- error: cannot find 'close' in scope
414 |         completionState.withLock { state in
415 |             if case .waiting(let c) = state { c.resume() }
[763/1694] Compiling Configuration MultiProvider.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:36:12: error: cannot find 'fcntl' in scope
34 |     /// Ensure that both sides of the pipe are set with O_CLOEXEC.
35 |     public func setCloexec() throws {
36 |         if fcntl(self.fileHandleForWriting.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |            `- error: cannot find 'fcntl' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:36:60: error: cannot find 'F_SETFD' in scope
34 |     /// Ensure that both sides of the pipe are set with O_CLOEXEC.
35 |     public func setCloexec() throws {
36 |         if fcntl(self.fileHandleForWriting.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |                                                            `- error: cannot find 'F_SETFD' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:36:69: error: cannot find 'FD_CLOEXEC' in scope
34 |     /// Ensure that both sides of the pipe are set with O_CLOEXEC.
35 |     public func setCloexec() throws {
36 |         if fcntl(self.fileHandleForWriting.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |                                                                     `- error: cannot find 'FD_CLOEXEC' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:37:46: error: cannot find 'errno' in scope
35 |     public func setCloexec() throws {
36 |         if fcntl(self.fileHandleForWriting.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
37 |             throw POSIXError(.init(rawValue: errno)!)
   |                                              `- error: cannot find 'errno' in scope
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:39:12: error: cannot find 'fcntl' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |            `- error: cannot find 'fcntl' in scope
40 |             throw POSIXError(.init(rawValue: errno)!)
41 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:39:60: error: cannot find 'F_SETFD' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |                                                            `- error: cannot find 'F_SETFD' in scope
40 |             throw POSIXError(.init(rawValue: errno)!)
41 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:39:69: error: cannot find 'FD_CLOEXEC' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |                                                                     `- error: cannot find 'FD_CLOEXEC' in scope
40 |             throw POSIXError(.init(rawValue: errno)!)
41 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:40:46: error: cannot find 'errno' in scope
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
40 |             throw POSIXError(.init(rawValue: errno)!)
   |                                              `- error: cannot find 'errno' in scope
41 |         }
42 |     }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:51:19: error: cannot find 'rusage' in scope
49 |     /// nil is returned when no pending processes exist.
50 |     private static func wait() -> Exit? {
51 |         var rus = rusage()
   |                   `- error: cannot find 'rusage' in scope
52 |         var ws = Int32()
53 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:54:19: error: cannot find 'wait4' in scope
52 |         var ws = Int32()
53 |
54 |         let pid = wait4(-1, &ws, WNOHANG, &rus)
   |                   `- error: cannot find 'wait4' in scope
55 |         if pid <= 0 {
56 |             return nil
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:54:34: error: cannot find 'WNOHANG' in scope
52 |         var ws = Int32()
53 |
54 |         let pid = wait4(-1, &ws, WNOHANG, &rus)
   |                                  `- error: cannot find 'WNOHANG' in scope
55 |         if pid <= 0 {
56 |             return nil
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:150:28: error: cannot find 'getpagesize' in scope
148 |         self.completionState = Mutex(.pending)
149 |
150 |         let pageSize = Int(getpagesize())
    |                            `- error: cannot find 'getpagesize' in scope
151 |         self.buf1 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: pageSize)
152 |         self.buf2 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: pageSize)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:161:21: error: cannot find 'fcntl' in scope
159 |
160 |     private static func setNonBlocking(_ fd: Int32) throws {
161 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
162 |         guard flags != -1 else {
163 |             throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:161:31: error: cannot find 'F_GETFL' in scope
159 |
160 |     private static func setNonBlocking(_ fd: Int32) throws {
161 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
162 |         guard flags != -1 else {
163 |             throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:165:69: error: cannot find 'errno' in scope
163 |             throw ContainerizationError(
164 |                 .internalError,
165 |                 message: "fcntl F_GETFL failed on fd \(fd): errno \(errno)"
    |                                                                     `- error: cannot find 'errno' in scope
166 |             )
167 |         }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:168:15: error: cannot find 'fcntl' in scope
166 |             )
167 |         }
168 |         guard fcntl(fd, F_SETFL, flags | O_NONBLOCK) != -1 else {
    |               `- error: cannot find 'fcntl' in scope
169 |             throw ContainerizationError(
170 |                 .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:168:25: error: cannot find 'F_SETFL' in scope
166 |             )
167 |         }
168 |         guard fcntl(fd, F_SETFL, flags | O_NONBLOCK) != -1 else {
    |                         `- error: cannot find 'F_SETFL' in scope
169 |             throw ContainerizationError(
170 |                 .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:168:42: error: cannot find 'O_NONBLOCK' in scope
166 |             )
167 |         }
168 |         guard fcntl(fd, F_SETFL, flags | O_NONBLOCK) != -1 else {
    |                                          `- error: cannot find 'O_NONBLOCK' in scope
169 |             throw ContainerizationError(
170 |                 .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:171:80: error: cannot find 'errno' in scope
169 |             throw ContainerizationError(
170 |                 .internalError,
171 |                 message: "fcntl F_SETFL O_NONBLOCK failed on fd \(fd): errno \(errno)"
    |                                                                                `- error: cannot find 'errno' in scope
172 |             )
173 |         }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:264:20: error: cannot find 'shutdown' in scope
262 |                 )
263 |                 dir.cancelRead()
264 |                 if shutdown(dstFd, Int32(SHUT_WR)) != 0 {
    |                    `- error: cannot find 'shutdown' in scope
265 |                     log?.debug(
266 |                         "shutdown(SHUT_WR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:264:42: error: cannot find 'SHUT_WR' in scope
262 |                 )
263 |                 dir.cancelRead()
264 |                 if shutdown(dstFd, Int32(SHUT_WR)) != 0 {
    |                                          `- error: cannot find 'SHUT_WR' in scope
265 |                     log?.debug(
266 |                         "shutdown(SHUT_WR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:267:66: error: cannot find 'errno' in scope
265 |                     log?.debug(
266 |                         "shutdown(SHUT_WR) failed",
267 |                         metadata: ["fd": "\(dstFd)", "errno": "\(errno)"]
    |                                                                  `- error: cannot find 'errno' in scope
268 |                     )
269 |                 }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:293:16: error: cannot find 'shutdown' in scope
291 |             )
292 |             dir.cancelRead()
293 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                `- error: cannot find 'shutdown' in scope
294 |                 log?.warning(
295 |                     "shutdown(SHUT_RDWR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:293:38: error: cannot find 'SHUT_RDWR' in scope
291 |             )
292 |             dir.cancelRead()
293 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                                      `- error: cannot find 'SHUT_RDWR' in scope
294 |                 log?.warning(
295 |                     "shutdown(SHUT_RDWR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:296:62: error: cannot find 'errno' in scope
294 |                 log?.warning(
295 |                     "shutdown(SHUT_RDWR) failed",
296 |                     metadata: ["fd": "\(dstFd)", "errno": "\(errno)"]
    |                                                              `- error: cannot find 'errno' in scope
297 |                 )
298 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:319:13: error: cannot find 'write' in scope
317 |
318 |         let n = dir.pendingData.withUnsafeBufferPointer { buf in
319 |             write(dstFd, buf.baseAddress!.advanced(by: dir.pendingOffset), remaining)
    |             `- error: cannot find 'write' in scope
320 |         }
321 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:335:30: error: cannot find 'errno' in scope
333 |                 dir.resumeRead()
334 |             }
335 |         } else if n == -1 && errno == EAGAIN {
    |                              `- error: cannot find 'errno' in scope
336 |             // Spurious write-ready notification; wait for the next one.
337 |         } else {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:335:39: error: cannot find 'EAGAIN' in scope
333 |                 dir.resumeRead()
334 |             }
335 |         } else if n == -1 && errno == EAGAIN {
    |                                       `- error: cannot find 'EAGAIN' in scope
336 |             // Spurious write-ready notification; wait for the next one.
337 |         } else {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:340:69: error: cannot find 'errno' in scope
338 |             log?.warning(
339 |                 "write error during pending drain",
340 |                 metadata: ["destinationFd": "\(dstFd)", "errno": "\(errno)"]
    |                                                                     `- error: cannot find 'errno' in scope
341 |             )
342 |             dir.writeSource?.cancel()
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:345:16: error: cannot find 'shutdown' in scope
343 |             dir.writeSource = nil
344 |             dir.cancelRead()
345 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                `- error: cannot find 'shutdown' in scope
346 |                 log?.warning(
347 |                     "shutdown(SHUT_RDWR) failed after drain error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:345:38: error: cannot find 'SHUT_RDWR' in scope
343 |             dir.writeSource = nil
344 |             dir.cancelRead()
345 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                                      `- error: cannot find 'SHUT_RDWR' in scope
346 |                 log?.warning(
347 |                     "shutdown(SHUT_RDWR) failed after drain error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:348:62: error: cannot find 'errno' in scope
346 |                 log?.warning(
347 |                     "shutdown(SHUT_RDWR) failed after drain error",
348 |                     metadata: ["fd": "\(dstFd)", "errno": "\(errno)"]
    |                                                              `- error: cannot find 'errno' in scope
349 |                 )
350 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:371:22: error: cannot find 'read' in scope
369 |
370 |         readLoop: while true {
371 |             let nr = read(srcFd, base, buffer.count)
    |                      `- error: cannot find 'read' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:20: error: cannot find 'errno' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                    `- error: cannot find 'errno' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:29: error: cannot find 'EAGAIN' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                             `- error: cannot find 'EAGAIN' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:39: error: cannot find 'errno' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                                       `- error: cannot find 'errno' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:48: error: cannot find 'EWOULDBLOCK' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                                                `- error: cannot find 'EWOULDBLOCK' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:375:20: error: cannot find 'errno' in scope
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
375 |                 if errno == EINTR { continue readLoop }
    |                    `- error: cannot find 'errno' in scope
376 |                 throw ContainerizationError(
377 |                     .internalError,
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:375:29: error: cannot find 'EINTR' in scope
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
375 |                 if errno == EINTR { continue readLoop }
    |                             `- error: cannot find 'EINTR' in scope
376 |                 throw ContainerizationError(
377 |                     .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:378:65: error: cannot find 'errno' in scope
376 |                 throw ContainerizationError(
377 |                     .internalError,
378 |                     message: "read failed: fd \(srcFd), errno \(errno)"
    |                                                                 `- error: cannot find 'errno' in scope
379 |                 )
380 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:384:26: error: cannot find 'write' in scope
382 |             var offset = 0
383 |             while offset < nr {
384 |                 let nw = write(dstFd, base.advanced(by: offset), nr - offset)
    |                          `- error: cannot find 'write' in scope
385 |                 if nw > 0 {
386 |                     offset += nw
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:388:24: error: cannot find 'errno' in scope
386 |                     offset += nw
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
390 |                         direction.pendingData = Array(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:388:33: error: cannot find 'EINTR' in scope
386 |                     offset += nw
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
390 |                         direction.pendingData = Array(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:24: error: cannot find 'errno' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                        `- error: cannot find 'errno' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:33: error: cannot find 'EAGAIN' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                 `- error: cannot find 'EAGAIN' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:43: error: cannot find 'errno' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                           `- error: cannot find 'errno' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:52: error: cannot find 'EWOULDBLOCK' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                                    `- error: cannot find 'EWOULDBLOCK' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:398:70: error: cannot find 'errno' in scope
396 |                     throw ContainerizationError(
397 |                         .internalError,
398 |                         message: "write failed: fd \(dstFd), errno \(errno)"
    |                                                                      `- error: cannot find 'errno' in scope
399 |                     )
400 |                 } else {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:412:9: error: cannot find 'close' in scope
410 |     private func closeBothFds() {
411 |         log?.debug("closing fds", metadata: ["fd1": "\(fd1)", "fd2": "\(fd2)"])
412 |         close(fd1)
    |         `- error: cannot find 'close' in scope
413 |         close(fd2)
414 |         completionState.withLock { state in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:413:9: error: cannot find 'close' in scope
411 |         log?.debug("closing fds", metadata: ["fd1": "\(fd1)", "fd2": "\(fd2)"])
412 |         close(fd1)
413 |         close(fd2)
    |         `- error: cannot find 'close' in scope
414 |         completionState.withLock { state in
415 |             if case .waiting(let c) = state { c.resume() }
[764/1694] Compiling Configuration CLIArgumentParser.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:36:12: error: cannot find 'fcntl' in scope
34 |     /// Ensure that both sides of the pipe are set with O_CLOEXEC.
35 |     public func setCloexec() throws {
36 |         if fcntl(self.fileHandleForWriting.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |            `- error: cannot find 'fcntl' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:36:60: error: cannot find 'F_SETFD' in scope
34 |     /// Ensure that both sides of the pipe are set with O_CLOEXEC.
35 |     public func setCloexec() throws {
36 |         if fcntl(self.fileHandleForWriting.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |                                                            `- error: cannot find 'F_SETFD' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:36:69: error: cannot find 'FD_CLOEXEC' in scope
34 |     /// Ensure that both sides of the pipe are set with O_CLOEXEC.
35 |     public func setCloexec() throws {
36 |         if fcntl(self.fileHandleForWriting.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |                                                                     `- error: cannot find 'FD_CLOEXEC' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:37:46: error: cannot find 'errno' in scope
35 |     public func setCloexec() throws {
36 |         if fcntl(self.fileHandleForWriting.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
37 |             throw POSIXError(.init(rawValue: errno)!)
   |                                              `- error: cannot find 'errno' in scope
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:39:12: error: cannot find 'fcntl' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |            `- error: cannot find 'fcntl' in scope
40 |             throw POSIXError(.init(rawValue: errno)!)
41 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:39:60: error: cannot find 'F_SETFD' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |                                                            `- error: cannot find 'F_SETFD' in scope
40 |             throw POSIXError(.init(rawValue: errno)!)
41 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:39:69: error: cannot find 'FD_CLOEXEC' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |                                                                     `- error: cannot find 'FD_CLOEXEC' in scope
40 |             throw POSIXError(.init(rawValue: errno)!)
41 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:40:46: error: cannot find 'errno' in scope
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
40 |             throw POSIXError(.init(rawValue: errno)!)
   |                                              `- error: cannot find 'errno' in scope
41 |         }
42 |     }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:51:19: error: cannot find 'rusage' in scope
49 |     /// nil is returned when no pending processes exist.
50 |     private static func wait() -> Exit? {
51 |         var rus = rusage()
   |                   `- error: cannot find 'rusage' in scope
52 |         var ws = Int32()
53 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:54:19: error: cannot find 'wait4' in scope
52 |         var ws = Int32()
53 |
54 |         let pid = wait4(-1, &ws, WNOHANG, &rus)
   |                   `- error: cannot find 'wait4' in scope
55 |         if pid <= 0 {
56 |             return nil
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:54:34: error: cannot find 'WNOHANG' in scope
52 |         var ws = Int32()
53 |
54 |         let pid = wait4(-1, &ws, WNOHANG, &rus)
   |                                  `- error: cannot find 'WNOHANG' in scope
55 |         if pid <= 0 {
56 |             return nil
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:150:28: error: cannot find 'getpagesize' in scope
148 |         self.completionState = Mutex(.pending)
149 |
150 |         let pageSize = Int(getpagesize())
    |                            `- error: cannot find 'getpagesize' in scope
151 |         self.buf1 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: pageSize)
152 |         self.buf2 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: pageSize)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:161:21: error: cannot find 'fcntl' in scope
159 |
160 |     private static func setNonBlocking(_ fd: Int32) throws {
161 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
162 |         guard flags != -1 else {
163 |             throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:161:31: error: cannot find 'F_GETFL' in scope
159 |
160 |     private static func setNonBlocking(_ fd: Int32) throws {
161 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
162 |         guard flags != -1 else {
163 |             throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:165:69: error: cannot find 'errno' in scope
163 |             throw ContainerizationError(
164 |                 .internalError,
165 |                 message: "fcntl F_GETFL failed on fd \(fd): errno \(errno)"
    |                                                                     `- error: cannot find 'errno' in scope
166 |             )
167 |         }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:168:15: error: cannot find 'fcntl' in scope
166 |             )
167 |         }
168 |         guard fcntl(fd, F_SETFL, flags | O_NONBLOCK) != -1 else {
    |               `- error: cannot find 'fcntl' in scope
169 |             throw ContainerizationError(
170 |                 .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:168:25: error: cannot find 'F_SETFL' in scope
166 |             )
167 |         }
168 |         guard fcntl(fd, F_SETFL, flags | O_NONBLOCK) != -1 else {
    |                         `- error: cannot find 'F_SETFL' in scope
169 |             throw ContainerizationError(
170 |                 .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:168:42: error: cannot find 'O_NONBLOCK' in scope
166 |             )
167 |         }
168 |         guard fcntl(fd, F_SETFL, flags | O_NONBLOCK) != -1 else {
    |                                          `- error: cannot find 'O_NONBLOCK' in scope
169 |             throw ContainerizationError(
170 |                 .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:171:80: error: cannot find 'errno' in scope
169 |             throw ContainerizationError(
170 |                 .internalError,
171 |                 message: "fcntl F_SETFL O_NONBLOCK failed on fd \(fd): errno \(errno)"
    |                                                                                `- error: cannot find 'errno' in scope
172 |             )
173 |         }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:264:20: error: cannot find 'shutdown' in scope
262 |                 )
263 |                 dir.cancelRead()
264 |                 if shutdown(dstFd, Int32(SHUT_WR)) != 0 {
    |                    `- error: cannot find 'shutdown' in scope
265 |                     log?.debug(
266 |                         "shutdown(SHUT_WR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:264:42: error: cannot find 'SHUT_WR' in scope
262 |                 )
263 |                 dir.cancelRead()
264 |                 if shutdown(dstFd, Int32(SHUT_WR)) != 0 {
    |                                          `- error: cannot find 'SHUT_WR' in scope
265 |                     log?.debug(
266 |                         "shutdown(SHUT_WR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:267:66: error: cannot find 'errno' in scope
265 |                     log?.debug(
266 |                         "shutdown(SHUT_WR) failed",
267 |                         metadata: ["fd": "\(dstFd)", "errno": "\(errno)"]
    |                                                                  `- error: cannot find 'errno' in scope
268 |                     )
269 |                 }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:293:16: error: cannot find 'shutdown' in scope
291 |             )
292 |             dir.cancelRead()
293 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                `- error: cannot find 'shutdown' in scope
294 |                 log?.warning(
295 |                     "shutdown(SHUT_RDWR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:293:38: error: cannot find 'SHUT_RDWR' in scope
291 |             )
292 |             dir.cancelRead()
293 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                                      `- error: cannot find 'SHUT_RDWR' in scope
294 |                 log?.warning(
295 |                     "shutdown(SHUT_RDWR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:296:62: error: cannot find 'errno' in scope
294 |                 log?.warning(
295 |                     "shutdown(SHUT_RDWR) failed",
296 |                     metadata: ["fd": "\(dstFd)", "errno": "\(errno)"]
    |                                                              `- error: cannot find 'errno' in scope
297 |                 )
298 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:319:13: error: cannot find 'write' in scope
317 |
318 |         let n = dir.pendingData.withUnsafeBufferPointer { buf in
319 |             write(dstFd, buf.baseAddress!.advanced(by: dir.pendingOffset), remaining)
    |             `- error: cannot find 'write' in scope
320 |         }
321 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:335:30: error: cannot find 'errno' in scope
333 |                 dir.resumeRead()
334 |             }
335 |         } else if n == -1 && errno == EAGAIN {
    |                              `- error: cannot find 'errno' in scope
336 |             // Spurious write-ready notification; wait for the next one.
337 |         } else {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:335:39: error: cannot find 'EAGAIN' in scope
333 |                 dir.resumeRead()
334 |             }
335 |         } else if n == -1 && errno == EAGAIN {
    |                                       `- error: cannot find 'EAGAIN' in scope
336 |             // Spurious write-ready notification; wait for the next one.
337 |         } else {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:340:69: error: cannot find 'errno' in scope
338 |             log?.warning(
339 |                 "write error during pending drain",
340 |                 metadata: ["destinationFd": "\(dstFd)", "errno": "\(errno)"]
    |                                                                     `- error: cannot find 'errno' in scope
341 |             )
342 |             dir.writeSource?.cancel()
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:345:16: error: cannot find 'shutdown' in scope
343 |             dir.writeSource = nil
344 |             dir.cancelRead()
345 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                `- error: cannot find 'shutdown' in scope
346 |                 log?.warning(
347 |                     "shutdown(SHUT_RDWR) failed after drain error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:345:38: error: cannot find 'SHUT_RDWR' in scope
343 |             dir.writeSource = nil
344 |             dir.cancelRead()
345 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                                      `- error: cannot find 'SHUT_RDWR' in scope
346 |                 log?.warning(
347 |                     "shutdown(SHUT_RDWR) failed after drain error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:348:62: error: cannot find 'errno' in scope
346 |                 log?.warning(
347 |                     "shutdown(SHUT_RDWR) failed after drain error",
348 |                     metadata: ["fd": "\(dstFd)", "errno": "\(errno)"]
    |                                                              `- error: cannot find 'errno' in scope
349 |                 )
350 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:371:22: error: cannot find 'read' in scope
369 |
370 |         readLoop: while true {
371 |             let nr = read(srcFd, base, buffer.count)
    |                      `- error: cannot find 'read' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:20: error: cannot find 'errno' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                    `- error: cannot find 'errno' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:29: error: cannot find 'EAGAIN' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                             `- error: cannot find 'EAGAIN' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:39: error: cannot find 'errno' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                                       `- error: cannot find 'errno' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:48: error: cannot find 'EWOULDBLOCK' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                                                `- error: cannot find 'EWOULDBLOCK' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:375:20: error: cannot find 'errno' in scope
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
375 |                 if errno == EINTR { continue readLoop }
    |                    `- error: cannot find 'errno' in scope
376 |                 throw ContainerizationError(
377 |                     .internalError,
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:375:29: error: cannot find 'EINTR' in scope
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
375 |                 if errno == EINTR { continue readLoop }
    |                             `- error: cannot find 'EINTR' in scope
376 |                 throw ContainerizationError(
377 |                     .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:378:65: error: cannot find 'errno' in scope
376 |                 throw ContainerizationError(
377 |                     .internalError,
378 |                     message: "read failed: fd \(srcFd), errno \(errno)"
    |                                                                 `- error: cannot find 'errno' in scope
379 |                 )
380 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:384:26: error: cannot find 'write' in scope
382 |             var offset = 0
383 |             while offset < nr {
384 |                 let nw = write(dstFd, base.advanced(by: offset), nr - offset)
    |                          `- error: cannot find 'write' in scope
385 |                 if nw > 0 {
386 |                     offset += nw
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:388:24: error: cannot find 'errno' in scope
386 |                     offset += nw
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
390 |                         direction.pendingData = Array(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:388:33: error: cannot find 'EINTR' in scope
386 |                     offset += nw
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
390 |                         direction.pendingData = Array(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:24: error: cannot find 'errno' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                        `- error: cannot find 'errno' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:33: error: cannot find 'EAGAIN' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                 `- error: cannot find 'EAGAIN' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:43: error: cannot find 'errno' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                           `- error: cannot find 'errno' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:52: error: cannot find 'EWOULDBLOCK' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                                    `- error: cannot find 'EWOULDBLOCK' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:398:70: error: cannot find 'errno' in scope
396 |                     throw ContainerizationError(
397 |                         .internalError,
398 |                         message: "write failed: fd \(dstFd), errno \(errno)"
    |                                                                      `- error: cannot find 'errno' in scope
399 |                     )
400 |                 } else {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:412:9: error: cannot find 'close' in scope
410 |     private func closeBothFds() {
411 |         log?.debug("closing fds", metadata: ["fd1": "\(fd1)", "fd2": "\(fd2)"])
412 |         close(fd1)
    |         `- error: cannot find 'close' in scope
413 |         close(fd2)
414 |         completionState.withLock { state in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:413:9: error: cannot find 'close' in scope
411 |         log?.debug("closing fds", metadata: ["fd1": "\(fd1)", "fd2": "\(fd2)"])
412 |         close(fd1)
413 |         close(fd2)
    |         `- error: cannot find 'close' in scope
414 |         completionState.withLock { state in
415 |             if case .waiting(let c) = state { c.resume() }
[765/1694] Compiling Configuration CLISnapshot.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:36:12: error: cannot find 'fcntl' in scope
34 |     /// Ensure that both sides of the pipe are set with O_CLOEXEC.
35 |     public func setCloexec() throws {
36 |         if fcntl(self.fileHandleForWriting.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |            `- error: cannot find 'fcntl' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:36:60: error: cannot find 'F_SETFD' in scope
34 |     /// Ensure that both sides of the pipe are set with O_CLOEXEC.
35 |     public func setCloexec() throws {
36 |         if fcntl(self.fileHandleForWriting.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |                                                            `- error: cannot find 'F_SETFD' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:36:69: error: cannot find 'FD_CLOEXEC' in scope
34 |     /// Ensure that both sides of the pipe are set with O_CLOEXEC.
35 |     public func setCloexec() throws {
36 |         if fcntl(self.fileHandleForWriting.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |                                                                     `- error: cannot find 'FD_CLOEXEC' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:37:46: error: cannot find 'errno' in scope
35 |     public func setCloexec() throws {
36 |         if fcntl(self.fileHandleForWriting.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
37 |             throw POSIXError(.init(rawValue: errno)!)
   |                                              `- error: cannot find 'errno' in scope
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:39:12: error: cannot find 'fcntl' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |            `- error: cannot find 'fcntl' in scope
40 |             throw POSIXError(.init(rawValue: errno)!)
41 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:39:60: error: cannot find 'F_SETFD' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |                                                            `- error: cannot find 'F_SETFD' in scope
40 |             throw POSIXError(.init(rawValue: errno)!)
41 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:39:69: error: cannot find 'FD_CLOEXEC' in scope
37 |             throw POSIXError(.init(rawValue: errno)!)
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
   |                                                                     `- error: cannot find 'FD_CLOEXEC' in scope
40 |             throw POSIXError(.init(rawValue: errno)!)
41 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Pipe+Close.swift:40:46: error: cannot find 'errno' in scope
38 |         }
39 |         if fcntl(self.fileHandleForReading.fileDescriptor, F_SETFD, FD_CLOEXEC) == -1 {
40 |             throw POSIXError(.init(rawValue: errno)!)
   |                                              `- error: cannot find 'errno' in scope
41 |         }
42 |     }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:51:19: error: cannot find 'rusage' in scope
49 |     /// nil is returned when no pending processes exist.
50 |     private static func wait() -> Exit? {
51 |         var rus = rusage()
   |                   `- error: cannot find 'rusage' in scope
52 |         var ws = Int32()
53 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:54:19: error: cannot find 'wait4' in scope
52 |         var ws = Int32()
53 |
54 |         let pid = wait4(-1, &ws, WNOHANG, &rus)
   |                   `- error: cannot find 'wait4' in scope
55 |         if pid <= 0 {
56 |             return nil
/host/spi-builder-workspace/Sources/ContainerizationOS/Reaper.swift:54:34: error: cannot find 'WNOHANG' in scope
52 |         var ws = Int32()
53 |
54 |         let pid = wait4(-1, &ws, WNOHANG, &rus)
   |                                  `- error: cannot find 'WNOHANG' in scope
55 |         if pid <= 0 {
56 |             return nil
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:150:28: error: cannot find 'getpagesize' in scope
148 |         self.completionState = Mutex(.pending)
149 |
150 |         let pageSize = Int(getpagesize())
    |                            `- error: cannot find 'getpagesize' in scope
151 |         self.buf1 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: pageSize)
152 |         self.buf2 = UnsafeMutableBufferPointer<UInt8>.allocate(capacity: pageSize)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:161:21: error: cannot find 'fcntl' in scope
159 |
160 |     private static func setNonBlocking(_ fd: Int32) throws {
161 |         let flags = fcntl(fd, F_GETFL)
    |                     `- error: cannot find 'fcntl' in scope
162 |         guard flags != -1 else {
163 |             throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:161:31: error: cannot find 'F_GETFL' in scope
159 |
160 |     private static func setNonBlocking(_ fd: Int32) throws {
161 |         let flags = fcntl(fd, F_GETFL)
    |                               `- error: cannot find 'F_GETFL' in scope
162 |         guard flags != -1 else {
163 |             throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:165:69: error: cannot find 'errno' in scope
163 |             throw ContainerizationError(
164 |                 .internalError,
165 |                 message: "fcntl F_GETFL failed on fd \(fd): errno \(errno)"
    |                                                                     `- error: cannot find 'errno' in scope
166 |             )
167 |         }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:168:15: error: cannot find 'fcntl' in scope
166 |             )
167 |         }
168 |         guard fcntl(fd, F_SETFL, flags | O_NONBLOCK) != -1 else {
    |               `- error: cannot find 'fcntl' in scope
169 |             throw ContainerizationError(
170 |                 .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:168:25: error: cannot find 'F_SETFL' in scope
166 |             )
167 |         }
168 |         guard fcntl(fd, F_SETFL, flags | O_NONBLOCK) != -1 else {
    |                         `- error: cannot find 'F_SETFL' in scope
169 |             throw ContainerizationError(
170 |                 .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:168:42: error: cannot find 'O_NONBLOCK' in scope
166 |             )
167 |         }
168 |         guard fcntl(fd, F_SETFL, flags | O_NONBLOCK) != -1 else {
    |                                          `- error: cannot find 'O_NONBLOCK' in scope
169 |             throw ContainerizationError(
170 |                 .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:171:80: error: cannot find 'errno' in scope
169 |             throw ContainerizationError(
170 |                 .internalError,
171 |                 message: "fcntl F_SETFL O_NONBLOCK failed on fd \(fd): errno \(errno)"
    |                                                                                `- error: cannot find 'errno' in scope
172 |             )
173 |         }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:264:20: error: cannot find 'shutdown' in scope
262 |                 )
263 |                 dir.cancelRead()
264 |                 if shutdown(dstFd, Int32(SHUT_WR)) != 0 {
    |                    `- error: cannot find 'shutdown' in scope
265 |                     log?.debug(
266 |                         "shutdown(SHUT_WR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:264:42: error: cannot find 'SHUT_WR' in scope
262 |                 )
263 |                 dir.cancelRead()
264 |                 if shutdown(dstFd, Int32(SHUT_WR)) != 0 {
    |                                          `- error: cannot find 'SHUT_WR' in scope
265 |                     log?.debug(
266 |                         "shutdown(SHUT_WR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:267:66: error: cannot find 'errno' in scope
265 |                     log?.debug(
266 |                         "shutdown(SHUT_WR) failed",
267 |                         metadata: ["fd": "\(dstFd)", "errno": "\(errno)"]
    |                                                                  `- error: cannot find 'errno' in scope
268 |                     )
269 |                 }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:293:16: error: cannot find 'shutdown' in scope
291 |             )
292 |             dir.cancelRead()
293 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                `- error: cannot find 'shutdown' in scope
294 |                 log?.warning(
295 |                     "shutdown(SHUT_RDWR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:293:38: error: cannot find 'SHUT_RDWR' in scope
291 |             )
292 |             dir.cancelRead()
293 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                                      `- error: cannot find 'SHUT_RDWR' in scope
294 |                 log?.warning(
295 |                     "shutdown(SHUT_RDWR) failed",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:296:62: error: cannot find 'errno' in scope
294 |                 log?.warning(
295 |                     "shutdown(SHUT_RDWR) failed",
296 |                     metadata: ["fd": "\(dstFd)", "errno": "\(errno)"]
    |                                                              `- error: cannot find 'errno' in scope
297 |                 )
298 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:319:13: error: cannot find 'write' in scope
317 |
318 |         let n = dir.pendingData.withUnsafeBufferPointer { buf in
319 |             write(dstFd, buf.baseAddress!.advanced(by: dir.pendingOffset), remaining)
    |             `- error: cannot find 'write' in scope
320 |         }
321 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:335:30: error: cannot find 'errno' in scope
333 |                 dir.resumeRead()
334 |             }
335 |         } else if n == -1 && errno == EAGAIN {
    |                              `- error: cannot find 'errno' in scope
336 |             // Spurious write-ready notification; wait for the next one.
337 |         } else {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:335:39: error: cannot find 'EAGAIN' in scope
333 |                 dir.resumeRead()
334 |             }
335 |         } else if n == -1 && errno == EAGAIN {
    |                                       `- error: cannot find 'EAGAIN' in scope
336 |             // Spurious write-ready notification; wait for the next one.
337 |         } else {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:340:69: error: cannot find 'errno' in scope
338 |             log?.warning(
339 |                 "write error during pending drain",
340 |                 metadata: ["destinationFd": "\(dstFd)", "errno": "\(errno)"]
    |                                                                     `- error: cannot find 'errno' in scope
341 |             )
342 |             dir.writeSource?.cancel()
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:345:16: error: cannot find 'shutdown' in scope
343 |             dir.writeSource = nil
344 |             dir.cancelRead()
345 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                `- error: cannot find 'shutdown' in scope
346 |                 log?.warning(
347 |                     "shutdown(SHUT_RDWR) failed after drain error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:345:38: error: cannot find 'SHUT_RDWR' in scope
343 |             dir.writeSource = nil
344 |             dir.cancelRead()
345 |             if shutdown(dstFd, Int32(SHUT_RDWR)) != 0 {
    |                                      `- error: cannot find 'SHUT_RDWR' in scope
346 |                 log?.warning(
347 |                     "shutdown(SHUT_RDWR) failed after drain error",
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:348:62: error: cannot find 'errno' in scope
346 |                 log?.warning(
347 |                     "shutdown(SHUT_RDWR) failed after drain error",
348 |                     metadata: ["fd": "\(dstFd)", "errno": "\(errno)"]
    |                                                              `- error: cannot find 'errno' in scope
349 |                 )
350 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:371:22: error: cannot find 'read' in scope
369 |
370 |         readLoop: while true {
371 |             let nr = read(srcFd, base, buffer.count)
    |                      `- error: cannot find 'read' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:20: error: cannot find 'errno' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                    `- error: cannot find 'errno' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:29: error: cannot find 'EAGAIN' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                             `- error: cannot find 'EAGAIN' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:39: error: cannot find 'errno' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                                       `- error: cannot find 'errno' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:374:48: error: cannot find 'EWOULDBLOCK' in scope
372 |             if nr == 0 { return .eof }
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
    |                                                `- error: cannot find 'EWOULDBLOCK' in scope
375 |                 if errno == EINTR { continue readLoop }
376 |                 throw ContainerizationError(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:375:20: error: cannot find 'errno' in scope
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
375 |                 if errno == EINTR { continue readLoop }
    |                    `- error: cannot find 'errno' in scope
376 |                 throw ContainerizationError(
377 |                     .internalError,
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:375:29: error: cannot find 'EINTR' in scope
373 |             if nr < 0 {
374 |                 if errno == EAGAIN || errno == EWOULDBLOCK { return .ok }
375 |                 if errno == EINTR { continue readLoop }
    |                             `- error: cannot find 'EINTR' in scope
376 |                 throw ContainerizationError(
377 |                     .internalError,
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:378:65: error: cannot find 'errno' in scope
376 |                 throw ContainerizationError(
377 |                     .internalError,
378 |                     message: "read failed: fd \(srcFd), errno \(errno)"
    |                                                                 `- error: cannot find 'errno' in scope
379 |                 )
380 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:384:26: error: cannot find 'write' in scope
382 |             var offset = 0
383 |             while offset < nr {
384 |                 let nw = write(dstFd, base.advanced(by: offset), nr - offset)
    |                          `- error: cannot find 'write' in scope
385 |                 if nw > 0 {
386 |                     offset += nw
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:388:24: error: cannot find 'errno' in scope
386 |                     offset += nw
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
    |                        `- error: cannot find 'errno' in scope
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
390 |                         direction.pendingData = Array(
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:388:33: error: cannot find 'EINTR' in scope
386 |                     offset += nw
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
    |                                 `- error: cannot find 'EINTR' in scope
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
390 |                         direction.pendingData = Array(
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:24: error: cannot find 'errno' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                        `- error: cannot find 'errno' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:33: error: cannot find 'EAGAIN' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                 `- error: cannot find 'EAGAIN' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:43: error: cannot find 'errno' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                           `- error: cannot find 'errno' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:389:52: error: cannot find 'EWOULDBLOCK' in scope
387 |                 } else if nw < 0 {
388 |                     if errno == EINTR { continue }
389 |                     if errno == EAGAIN || errno == EWOULDBLOCK {
    |                                                    `- error: cannot find 'EWOULDBLOCK' in scope
390 |                         direction.pendingData = Array(
391 |                             UnsafeBufferPointer(start: base.advanced(by: offset), count: nr - offset)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:398:70: error: cannot find 'errno' in scope
396 |                     throw ContainerizationError(
397 |                         .internalError,
398 |                         message: "write failed: fd \(dstFd), errno \(errno)"
    |                                                                      `- error: cannot find 'errno' in scope
399 |                     )
400 |                 } else {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:412:9: error: cannot find 'close' in scope
410 |     private func closeBothFds() {
411 |         log?.debug("closing fds", metadata: ["fd1": "\(fd1)", "fd2": "\(fd2)"])
412 |         close(fd1)
    |         `- error: cannot find 'close' in scope
413 |         close(fd2)
414 |         completionState.withLock { state in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/BidirectionalRelay.swift:413:9: error: cannot find 'close' in scope
411 |         log?.debug("closing fds", metadata: ["fd1": "\(fd1)", "fd2": "\(fd2)"])
412 |         close(fd1)
413 |         close(fd2)
    |         `- error: cannot find 'close' in scope
414 |         completionState.withLock { state in
415 |             if case .waiting(let c) = state { c.resume() }
[766/1697] Compiling Configuration ExpressibleByConfigString.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
[767/1697] Compiling Configuration CLIKeyEncoder.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
[768/1697] Compiling Configuration ConfigKeyEncoder.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
[769/1697] Compiling Configuration DotSeparatorKeyDecoder.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
[782/1697] Compiling Configuration MutableInMemoryProvider.swift
[783/1697] Compiling Configuration ConfigProvider+Operators.swift
[784/1697] Compiling Configuration KeyMappingProvider.swift
[788/1697] Emitting module Configuration
[789/1697] Compiling Configuration ConfigBytesFromStringDecoder.swift
[790/1697] Compiling GRPCCore MethodConfigs.swift
[791/1697] Compiling GRPCCore Result+Catching.swift
[792/1697] Compiling GRPCCore String+Extensions.swift
[793/1697] Compiling GRPCCore TaskGroup+CancellableTask.swift
[794/1697] Compiling GRPCCore Metadata.swift
[795/1697] Compiling GRPCCore MethodDescriptor.swift
[796/1697] Compiling GRPCCore RPCError.swift
[812/1697] Compiling Configuration ConfigSnapshotReader.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no exact matches in reference to global function 'ioctl'
 43 | let sysAccept = accept
 44 | let sysConnect = connect
 45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
    |                                                                                       `- error: no exact matches in reference to global function 'ioctl'
 46 | let sysRecvmsg = recvmsg
 47 | #endif
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 |  * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 |  */
43 | int ioctl(int __fd, int __op, ...);
   |     `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
   :
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
   |     `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
 43 | let sysAccept = accept
 44 | let sysConnect = connect
 45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
    |                                                                                       `- error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
 46 | let sysRecvmsg = recvmsg
 47 | #endif
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 |  * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 |  */
43 | int ioctl(int __fd, int __op, ...);
   |     `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
   :
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
   |     `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:42:56: error: cannot find type 'sockaddr' in scope
40 |     func accept(fd: Int32) throws -> (Int32, SocketType)
41 |     /// Provide a sockaddr pointer (by casting a socket specific type like sockaddr_un for example).
42 |     func withSockAddr(_ closure: (_ ptr: UnsafePointer<sockaddr>, _ len: UInt32) throws -> Void) throws
   |                                                        `- error: cannot find type 'sockaddr' in scope
43 | }
44 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:90:86: error: cannot find 'errno' in scope
 88 |         let sockFD = sysSocket(type.domain, type.type, 0)
 89 |         if sockFD < 0 {
 90 |             throw SocketError.withErrno("failed to create socket: \(sockFD)", errno: errno)
    |                                                                                      `- error: cannot find 'errno' in scope
 91 |         }
 92 |         self.init(fd: sockFD, type: type, closeOnDeinit: closeOnDeinit)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:55: error: cannot find 'errno' in scope
128 | extension Socket {
129 |     static func errnoToError(msg: String) -> SocketError {
130 |         SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
    |                                                       `- error: cannot find 'errno' in scope
131 |     }
132 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:73: error: cannot find 'errno' in scope
128 | extension Socket {
129 |     static func errnoToError(msg: String) -> SocketError {
130 |         SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
    |                                                                         `- error: cannot find 'errno' in scope
131 |     }
132 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:44: error: cannot find 'errno' in scope
464 |
465 |     static func _errnoString(_ err: Int32?) -> String {
466 |         String(validatingCString: strerror(errno)) ?? "error: \(errno)"
    |                                            `- error: cannot find 'errno' in scope
467 |     }
468 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:65: error: cannot find 'errno' in scope
464 |
465 |     static func _errnoString(_ err: Int32?) -> String {
466 |         String(validatingCString: strerror(errno)) ?? "error: \(errno)"
    |                                                                 `- error: cannot find 'errno' in scope
467 |     }
468 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:39:23: error: cannot find type 'mode_t' in scope
 37 |
 38 |     public let path: String
 39 |     public let perms: mode_t?
    |                       `- error: cannot find type 'mode_t' in scope
 40 |     private let _addr: sockaddr_un
 41 |     private let _unlinkExisting: Bool
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:40:24: error: cannot find type 'sockaddr_un' in scope
 38 |     public let path: String
 39 |     public let perms: mode_t?
 40 |     private let _addr: sockaddr_un
    |                        `- error: cannot find type 'sockaddr_un' in scope
 41 |     private let _unlinkExisting: Bool
 42 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:43:28: error: cannot find type 'sockaddr_un' in scope
 41 |     private let _unlinkExisting: Bool
 42 |
 43 |     private init(sockaddr: sockaddr_un) {
    |                            `- error: cannot find type 'sockaddr_un' in scope
 44 |         let pathname: String = withUnsafePointer(to: sockaddr.sun_path) { ptr in
 45 |             let charPtr = UnsafeRawPointer(ptr).assumingMemoryBound(to: CChar.self)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:57:16: error: cannot find type 'mode_t' in scope
 55 |     public init(
 56 |         path: String,
 57 |         perms: mode_t? = nil,
    |                `- error: cannot find type 'mode_t' in scope
 58 |         unlinkExisting: Bool = false
 59 |     ) throws {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:132:56: error: cannot find type 'sockaddr' in scope
130 |     }
131 |
132 |     public func withSockAddr(_ closure: (UnsafePointer<sockaddr>, UInt32) throws -> Void) throws {
    |                                                        `- error: cannot find type 'sockaddr' in scope
133 |         var addr = self._addr
134 |         try withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:32:32: error: cannot find 'AF_UNIX' in scope
 30 | /// Unix domain socket variant of `SocketType`.
 31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
 32 |     public var domain: Int32 { AF_UNIX }
    |                                `- error: cannot find 'AF_UNIX' in scope
 33 |     public var type: Int32 { _SOCK_STREAM }
 34 |     public var description: String {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:33:30: error: cannot find '_SOCK_STREAM' in scope
 31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
 32 |     public var domain: Int32 { AF_UNIX }
 33 |     public var type: Int32 { _SOCK_STREAM }
    |                              `- error: cannot find '_SOCK_STREAM' in scope
 34 |     public var description: String {
 35 |         path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:63:20: error: cannot find 'sockaddr_un' in scope
 61 |         self.perms = perms
 62 |         self._unlinkExisting = unlinkExisting
 63 |         var addr = sockaddr_un()
    |                    `- error: cannot find 'sockaddr_un' in scope
 64 |         addr.sun_family = sa_family_t(AF_UNIX)
 65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:27: error: cannot find 'sa_family_t' in scope
 62 |         self._unlinkExisting = unlinkExisting
 63 |         var addr = sockaddr_un()
 64 |         addr.sun_family = sa_family_t(AF_UNIX)
    |                           `- error: cannot find 'sa_family_t' in scope
 65 |
 66 |         let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:39: error: cannot find 'AF_UNIX' in scope
 62 |         self._unlinkExisting = unlinkExisting
 63 |         var addr = sockaddr_un()
 64 |         addr.sun_family = sa_family_t(AF_UNIX)
    |                                       `- error: cannot find 'AF_UNIX' in scope
 65 |
 66 |         let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:75:38: error: cannot find 'strncpy' in scope
 73 |
 74 |         _ = withUnsafeMutablePointer(to: &addr.sun_path.0) { ptr in
 75 |             socketName.withCString { strncpy(ptr, $0, nameLength) }
    |                                      `- error: cannot find 'strncpy' in scope
 76 |         }
 77 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:86:20: error: cannot find 'sockaddr_un' in scope
 84 |     public func accept(fd: Int32) throws -> (Int32, SocketType) {
 85 |         var clientFD: Int32 = -1
 86 |         var addr = sockaddr_un()
    |                    `- error: cannot find 'sockaddr_un' in scope
 87 |
 88 |         clientFD = Syscall.retrying {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:89:24: error: cannot find 'socklen_t' in scope
 87 |
 88 |         clientFD = Syscall.retrying {
 89 |             var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
    |                        `- error: cannot find 'socklen_t' in scope
 90 |             return withUnsafeMutablePointer(to: &addr) { pointer in
 91 |                 pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:89:47: error: cannot find type 'sockaddr_un' in scope
 87 |
 88 |         clientFD = Syscall.retrying {
 89 |             var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
    |                                               `- error: cannot find type 'sockaddr_un' in scope
 90 |             return withUnsafeMutablePointer(to: &addr) { pointer in
 91 |                 pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:91:47: error: cannot find 'sockaddr' in scope
 89 |             var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
 90 |             return withUnsafeMutablePointer(to: &addr) { pointer in
 91 |                 pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                               `- error: cannot find 'sockaddr' in scope
 92 |                     sysAccept(fd, pointer, &size)
 93 |                 }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:116:27: error: cannot find 'errno' in scope
114 |         if self._unlinkExisting {
115 |             rc = sysUnlink(self.path)
116 |             if rc != 0 && errno != ENOENT {
    |                           `- error: cannot find 'errno' in scope
117 |                 throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
118 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:116:36: error: cannot find 'ENOENT' in scope
114 |         if self._unlinkExisting {
115 |             rc = sysUnlink(self.path)
116 |             if rc != 0 && errno != ENOENT {
    |                                    `- error: cannot find 'ENOENT' in scope
117 |                 throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
118 |             }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:135:74: error: cannot find 'sockaddr' in scope
133 |         var addr = self._addr
134 |         try withUnsafePointer(to: &addr) {
135 |             let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
    |                                                                          `- error: cannot find 'sockaddr' in scope
136 |             try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
137 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:136:56: error: cannot find type 'sockaddr_un' in scope
134 |         try withUnsafePointer(to: &addr) {
135 |             let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
136 |             try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
    |                                                        `- error: cannot find type 'sockaddr_un' in scope
137 |         }
138 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:135:50: error: generic parameter 'T' could not be inferred
133 |         var addr = self._addr
134 |         try withUnsafePointer(to: &addr) {
135 |             let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
    |                                                  `- error: generic parameter 'T' could not be inferred
136 |             try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
137 |         }
Swift.UnsafeRawPointer.assumingMemoryBound:2:13: note: in call to function 'assumingMemoryBound(to:)'
1 | struct UnsafeRawPointer {
2 | public func assumingMemoryBound<T>(to: T.Type) -> UnsafePointer<T> where T : ~Copyable}
  |             `- note: in call to function 'assumingMemoryBound(to:)'
3 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:32:30: error: cannot find '_SOCK_STREAM' in scope
 30 | public struct VsockType: SocketType, Sendable {
 31 |     public var domain: Int32 { AF_VSOCK }
 32 |     public var type: Int32 { _SOCK_STREAM }
    |                              `- error: cannot find '_SOCK_STREAM' in scope
 33 |     public var description: String {
 34 |         "\(cid):\(port)"
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:32: error: cannot find 'errno' in scope
 92 |                 }
 93 |             }
 94 |             if clientFD < 0 && errno != EINTR {
    |                                `- error: cannot find 'errno' in scope
 95 |                 throw Socket.errnoToError(msg: "accept failed")
 96 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:41: error: cannot find 'EINTR' in scope
 92 |                 }
 93 |             }
 94 |             if clientFD < 0 && errno != EINTR {
    |                                         `- error: cannot find 'EINTR' in scope
 95 |                 throw Socket.errnoToError(msg: "accept failed")
 96 |             }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no exact matches in reference to global function 'ioctl'
 43 | let sysAccept = accept
 44 | let sysConnect = connect
 45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
    |                                                                                       `- error: no exact matches in reference to global function 'ioctl'
 46 | let sysRecvmsg = recvmsg
 47 | #endif
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 |  * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 |  */
43 | int ioctl(int __fd, int __op, ...);
   |     `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
   :
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
   |     `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
 43 | let sysAccept = accept
 44 | let sysConnect = connect
 45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
    |                                                                                       `- error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
 46 | let sysRecvmsg = recvmsg
 47 | #endif
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 |  * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 |  */
43 | int ioctl(int __fd, int __op, ...);
   |     `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
   :
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
   |     `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:42:56: error: cannot find type 'sockaddr' in scope
40 |     func accept(fd: Int32) throws -> (Int32, SocketType)
41 |     /// Provide a sockaddr pointer (by casting a socket specific type like sockaddr_un for example).
42 |     func withSockAddr(_ closure: (_ ptr: UnsafePointer<sockaddr>, _ len: UInt32) throws -> Void) throws
   |                                                        `- error: cannot find type 'sockaddr' in scope
43 | }
44 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:90:86: error: cannot find 'errno' in scope
 88 |         let sockFD = sysSocket(type.domain, type.type, 0)
 89 |         if sockFD < 0 {
 90 |             throw SocketError.withErrno("failed to create socket: \(sockFD)", errno: errno)
    |                                                                                      `- error: cannot find 'errno' in scope
 91 |         }
 92 |         self.init(fd: sockFD, type: type, closeOnDeinit: closeOnDeinit)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:55: error: cannot find 'errno' in scope
128 | extension Socket {
129 |     static func errnoToError(msg: String) -> SocketError {
130 |         SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
    |                                                       `- error: cannot find 'errno' in scope
131 |     }
132 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:73: error: cannot find 'errno' in scope
128 | extension Socket {
129 |     static func errnoToError(msg: String) -> SocketError {
130 |         SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
    |                                                                         `- error: cannot find 'errno' in scope
131 |     }
132 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:44: error: cannot find 'errno' in scope
464 |
465 |     static func _errnoString(_ err: Int32?) -> String {
466 |         String(validatingCString: strerror(errno)) ?? "error: \(errno)"
    |                                            `- error: cannot find 'errno' in scope
467 |     }
468 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:65: error: cannot find 'errno' in scope
464 |
465 |     static func _errnoString(_ err: Int32?) -> String {
466 |         String(validatingCString: strerror(errno)) ?? "error: \(errno)"
    |                                                                 `- error: cannot find 'errno' in scope
467 |     }
468 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:39:23: error: cannot find type 'mode_t' in scope
 37 |
 38 |     public let path: String
 39 |     public let perms: mode_t?
    |                       `- error: cannot find type 'mode_t' in scope
 40 |     private let _addr: sockaddr_un
 41 |     private let _unlinkExisting: Bool
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:40:24: error: cannot find type 'sockaddr_un' in scope
 38 |     public let path: String
 39 |     public let perms: mode_t?
 40 |     private let _addr: sockaddr_un
    |                        `- error: cannot find type 'sockaddr_un' in scope
 41 |     private let _unlinkExisting: Bool
 42 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:43:28: error: cannot find type 'sockaddr_un' in scope
 41 |     private let _unlinkExisting: Bool
 42 |
 43 |     private init(sockaddr: sockaddr_un) {
    |                            `- error: cannot find type 'sockaddr_un' in scope
 44 |         let pathname: String = withUnsafePointer(to: sockaddr.sun_path) { ptr in
 45 |             let charPtr = UnsafeRawPointer(ptr).assumingMemoryBound(to: CChar.self)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:57:16: error: cannot find type 'mode_t' in scope
 55 |     public init(
 56 |         path: String,
 57 |         perms: mode_t? = nil,
    |                `- error: cannot find type 'mode_t' in scope
 58 |         unlinkExisting: Bool = false
 59 |     ) throws {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:132:56: error: cannot find type 'sockaddr' in scope
130 |     }
131 |
132 |     public func withSockAddr(_ closure: (UnsafePointer<sockaddr>, UInt32) throws -> Void) throws {
    |                                                        `- error: cannot find type 'sockaddr' in scope
133 |         var addr = self._addr
134 |         try withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:32:32: error: cannot find 'AF_UNIX' in scope
 30 | /// Unix domain socket variant of `SocketType`.
 31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
 32 |     public var domain: Int32 { AF_UNIX }
    |                                `- error: cannot find 'AF_UNIX' in scope
 33 |     public var type: Int32 { _SOCK_STREAM }
 34 |     public var description: String {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:33:30: error: cannot find '_SOCK_STREAM' in scope
 31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
 32 |     public var domain: Int32 { AF_UNIX }
 33 |     public var type: Int32 { _SOCK_STREAM }
    |                              `- error: cannot find '_SOCK_STREAM' in scope
 34 |     public var description: String {
 35 |         path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:63:20: error: cannot find 'sockaddr_un' in scope
 61 |         self.perms = perms
 62 |         self._unlinkExisting = unlinkExisting
 63 |         var addr = sockaddr_un()
    |                    `- error: cannot find 'sockaddr_un' in scope
 64 |         addr.sun_family = sa_family_t(AF_UNIX)
 65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:27: error: cannot find 'sa_family_t' in scope
 62 |         self._unlinkExisting = unlinkExisting
 63 |         var addr = sockaddr_un()
 64 |         addr.sun_family = sa_family_t(AF_UNIX)
    |                           `- error: cannot find 'sa_family_t' in scope
 65 |
 66 |         let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:39: error: cannot find 'AF_UNIX' in scope
 62 |         self._unlinkExisting = unlinkExisting
 63 |         var addr = sockaddr_un()
 64 |         addr.sun_family = sa_family_t(AF_UNIX)
    |                                       `- error: cannot find 'AF_UNIX' in scope
 65 |
 66 |         let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:75:38: error: cannot find 'strncpy' in scope
 73 |
 74 |         _ = withUnsafeMutablePointer(to: &addr.sun_path.0) { ptr in
 75 |             socketName.withCString { strncpy(ptr, $0, nameLength) }
    |                                      `- error: cannot find 'strncpy' in scope
 76 |         }
 77 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:86:20: error: cannot find 'sockaddr_un' in scope
 84 |     public func accept(fd: Int32) throws -> (Int32, SocketType) {
 85 |         var clientFD: Int32 = -1
 86 |         var addr = sockaddr_un()
    |                    `- error: cannot find 'sockaddr_un' in scope
 87 |
 88 |         clientFD = Syscall.retrying {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:89:24: error: cannot find 'socklen_t' in scope
 87 |
 88 |         clientFD = Syscall.retrying {
 89 |             var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
    |                        `- error: cannot find 'socklen_t' in scope
 90 |             return withUnsafeMutablePointer(to: &addr) { pointer in
 91 |                 pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:89:47: error: cannot find type 'sockaddr_un' in scope
 87 |
 88 |         clientFD = Syscall.retrying {
 89 |             var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
    |                                               `- error: cannot find type 'sockaddr_un' in scope
 90 |             return withUnsafeMutablePointer(to: &addr) { pointer in
 91 |                 pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:91:47: error: cannot find 'sockaddr' in scope
 89 |             var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
 90 |             return withUnsafeMutablePointer(to: &addr) { pointer in
 91 |                 pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                               `- error: cannot find 'sockaddr' in scope
 92 |                     sysAccept(fd, pointer, &size)
 93 |                 }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:116:27: error: cannot find 'errno' in scope
114 |         if self._unlinkExisting {
115 |             rc = sysUnlink(self.path)
116 |             if rc != 0 && errno != ENOENT {
    |                           `- error: cannot find 'errno' in scope
117 |                 throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
118 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:116:36: error: cannot find 'ENOENT' in scope
114 |         if self._unlinkExisting {
115 |             rc = sysUnlink(self.path)
116 |             if rc != 0 && errno != ENOENT {
    |                                    `- error: cannot find 'ENOENT' in scope
117 |                 throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
118 |             }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:135:74: error: cannot find 'sockaddr' in scope
133 |         var addr = self._addr
134 |         try withUnsafePointer(to: &addr) {
135 |             let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
    |                                                                          `- error: cannot find 'sockaddr' in scope
136 |             try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
137 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:136:56: error: cannot find type 'sockaddr_un' in scope
134 |         try withUnsafePointer(to: &addr) {
135 |             let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
136 |             try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
    |                                                        `- error: cannot find type 'sockaddr_un' in scope
137 |         }
138 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:135:50: error: generic parameter 'T' could not be inferred
133 |         var addr = self._addr
134 |         try withUnsafePointer(to: &addr) {
135 |             let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
    |                                                  `- error: generic parameter 'T' could not be inferred
136 |             try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
137 |         }
Swift.UnsafeRawPointer.assumingMemoryBound:2:13: note: in call to function 'assumingMemoryBound(to:)'
1 | struct UnsafeRawPointer {
2 | public func assumingMemoryBound<T>(to: T.Type) -> UnsafePointer<T> where T : ~Copyable}
  |             `- note: in call to function 'assumingMemoryBound(to:)'
3 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:32:30: error: cannot find '_SOCK_STREAM' in scope
 30 | public struct VsockType: SocketType, Sendable {
 31 |     public var domain: Int32 { AF_VSOCK }
 32 |     public var type: Int32 { _SOCK_STREAM }
    |                              `- error: cannot find '_SOCK_STREAM' in scope
 33 |     public var description: String {
 34 |         "\(cid):\(port)"
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:32: error: cannot find 'errno' in scope
 92 |                 }
 93 |             }
 94 |             if clientFD < 0 && errno != EINTR {
    |                                `- error: cannot find 'errno' in scope
 95 |                 throw Socket.errnoToError(msg: "accept failed")
 96 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:41: error: cannot find 'EINTR' in scope
 92 |                 }
 93 |             }
 94 |             if clientFD < 0 && errno != EINTR {
    |                                         `- error: cannot find 'EINTR' in scope
 95 |                 throw Socket.errnoToError(msg: "accept failed")
 96 |             }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no exact matches in reference to global function 'ioctl'
 43 | let sysAccept = accept
 44 | let sysConnect = connect
 45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
    |                                                                                       `- error: no exact matches in reference to global function 'ioctl'
 46 | let sysRecvmsg = recvmsg
 47 | #endif
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 |  * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 |  */
43 | int ioctl(int __fd, int __op, ...);
   |     `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
   :
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
   |     `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
 43 | let sysAccept = accept
 44 | let sysConnect = connect
 45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
    |                                                                                       `- error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
 46 | let sysRecvmsg = recvmsg
 47 | #endif
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 |  * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 |  */
43 | int ioctl(int __fd, int __op, ...);
   |     `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
   :
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
   |     `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:42:56: error: cannot find type 'sockaddr' in scope
40 |     func accept(fd: Int32) throws -> (Int32, SocketType)
41 |     /// Provide a sockaddr pointer (by casting a socket specific type like sockaddr_un for example).
42 |     func withSockAddr(_ closure: (_ ptr: UnsafePointer<sockaddr>, _ len: UInt32) throws -> Void) throws
   |                                                        `- error: cannot find type 'sockaddr' in scope
43 | }
44 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:90:86: error: cannot find 'errno' in scope
 88 |         let sockFD = sysSocket(type.domain, type.type, 0)
 89 |         if sockFD < 0 {
 90 |             throw SocketError.withErrno("failed to create socket: \(sockFD)", errno: errno)
    |                                                                                      `- error: cannot find 'errno' in scope
 91 |         }
 92 |         self.init(fd: sockFD, type: type, closeOnDeinit: closeOnDeinit)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:55: error: cannot find 'errno' in scope
128 | extension Socket {
129 |     static func errnoToError(msg: String) -> SocketError {
130 |         SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
    |                                                       `- error: cannot find 'errno' in scope
131 |     }
132 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:73: error: cannot find 'errno' in scope
128 | extension Socket {
129 |     static func errnoToError(msg: String) -> SocketError {
130 |         SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
    |                                                                         `- error: cannot find 'errno' in scope
131 |     }
132 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:44: error: cannot find 'errno' in scope
464 |
465 |     static func _errnoString(_ err: Int32?) -> String {
466 |         String(validatingCString: strerror(errno)) ?? "error: \(errno)"
    |                                            `- error: cannot find 'errno' in scope
467 |     }
468 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:65: error: cannot find 'errno' in scope
464 |
465 |     static func _errnoString(_ err: Int32?) -> String {
466 |         String(validatingCString: strerror(errno)) ?? "error: \(errno)"
    |                                                                 `- error: cannot find 'errno' in scope
467 |     }
468 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:39:23: error: cannot find type 'mode_t' in scope
 37 |
 38 |     public let path: String
 39 |     public let perms: mode_t?
    |                       `- error: cannot find type 'mode_t' in scope
 40 |     private let _addr: sockaddr_un
 41 |     private let _unlinkExisting: Bool
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:40:24: error: cannot find type 'sockaddr_un' in scope
 38 |     public let path: String
 39 |     public let perms: mode_t?
 40 |     private let _addr: sockaddr_un
    |                        `- error: cannot find type 'sockaddr_un' in scope
 41 |     private let _unlinkExisting: Bool
 42 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:43:28: error: cannot find type 'sockaddr_un' in scope
 41 |     private let _unlinkExisting: Bool
 42 |
 43 |     private init(sockaddr: sockaddr_un) {
    |                            `- error: cannot find type 'sockaddr_un' in scope
 44 |         let pathname: String = withUnsafePointer(to: sockaddr.sun_path) { ptr in
 45 |             let charPtr = UnsafeRawPointer(ptr).assumingMemoryBound(to: CChar.self)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:57:16: error: cannot find type 'mode_t' in scope
 55 |     public init(
 56 |         path: String,
 57 |         perms: mode_t? = nil,
    |                `- error: cannot find type 'mode_t' in scope
 58 |         unlinkExisting: Bool = false
 59 |     ) throws {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:132:56: error: cannot find type 'sockaddr' in scope
130 |     }
131 |
132 |     public func withSockAddr(_ closure: (UnsafePointer<sockaddr>, UInt32) throws -> Void) throws {
    |                                                        `- error: cannot find type 'sockaddr' in scope
133 |         var addr = self._addr
134 |         try withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:32:32: error: cannot find 'AF_UNIX' in scope
 30 | /// Unix domain socket variant of `SocketType`.
 31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
 32 |     public var domain: Int32 { AF_UNIX }
    |                                `- error: cannot find 'AF_UNIX' in scope
 33 |     public var type: Int32 { _SOCK_STREAM }
 34 |     public var description: String {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:33:30: error: cannot find '_SOCK_STREAM' in scope
 31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
 32 |     public var domain: Int32 { AF_UNIX }
 33 |     public var type: Int32 { _SOCK_STREAM }
    |                              `- error: cannot find '_SOCK_STREAM' in scope
 34 |     public var description: String {
 35 |         path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:63:20: error: cannot find 'sockaddr_un' in scope
 61 |         self.perms = perms
 62 |         self._unlinkExisting = unlinkExisting
 63 |         var addr = sockaddr_un()
    |                    `- error: cannot find 'sockaddr_un' in scope
 64 |         addr.sun_family = sa_family_t(AF_UNIX)
 65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:27: error: cannot find 'sa_family_t' in scope
 62 |         self._unlinkExisting = unlinkExisting
 63 |         var addr = sockaddr_un()
 64 |         addr.sun_family = sa_family_t(AF_UNIX)
    |                           `- error: cannot find 'sa_family_t' in scope
 65 |
 66 |         let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:39: error: cannot find 'AF_UNIX' in scope
 62 |         self._unlinkExisting = unlinkExisting
 63 |         var addr = sockaddr_un()
 64 |         addr.sun_family = sa_family_t(AF_UNIX)
    |                                       `- error: cannot find 'AF_UNIX' in scope
 65 |
 66 |         let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:75:38: error: cannot find 'strncpy' in scope
 73 |
 74 |         _ = withUnsafeMutablePointer(to: &addr.sun_path.0) { ptr in
 75 |             socketName.withCString { strncpy(ptr, $0, nameLength) }
    |                                      `- error: cannot find 'strncpy' in scope
 76 |         }
 77 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:86:20: error: cannot find 'sockaddr_un' in scope
 84 |     public func accept(fd: Int32) throws -> (Int32, SocketType) {
 85 |         var clientFD: Int32 = -1
 86 |         var addr = sockaddr_un()
    |                    `- error: cannot find 'sockaddr_un' in scope
 87 |
 88 |         clientFD = Syscall.retrying {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:89:24: error: cannot find 'socklen_t' in scope
 87 |
 88 |         clientFD = Syscall.retrying {
 89 |             var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
    |                        `- error: cannot find 'socklen_t' in scope
 90 |             return withUnsafeMutablePointer(to: &addr) { pointer in
 91 |                 pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:89:47: error: cannot find type 'sockaddr_un' in scope
 87 |
 88 |         clientFD = Syscall.retrying {
 89 |             var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
    |                                               `- error: cannot find type 'sockaddr_un' in scope
 90 |             return withUnsafeMutablePointer(to: &addr) { pointer in
 91 |                 pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:91:47: error: cannot find 'sockaddr' in scope
 89 |             var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
 90 |             return withUnsafeMutablePointer(to: &addr) { pointer in
 91 |                 pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                               `- error: cannot find 'sockaddr' in scope
 92 |                     sysAccept(fd, pointer, &size)
 93 |                 }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:116:27: error: cannot find 'errno' in scope
114 |         if self._unlinkExisting {
115 |             rc = sysUnlink(self.path)
116 |             if rc != 0 && errno != ENOENT {
    |                           `- error: cannot find 'errno' in scope
117 |                 throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
118 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:116:36: error: cannot find 'ENOENT' in scope
114 |         if self._unlinkExisting {
115 |             rc = sysUnlink(self.path)
116 |             if rc != 0 && errno != ENOENT {
    |                                    `- error: cannot find 'ENOENT' in scope
117 |                 throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
118 |             }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:135:74: error: cannot find 'sockaddr' in scope
133 |         var addr = self._addr
134 |         try withUnsafePointer(to: &addr) {
135 |             let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
    |                                                                          `- error: cannot find 'sockaddr' in scope
136 |             try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
137 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:136:56: error: cannot find type 'sockaddr_un' in scope
134 |         try withUnsafePointer(to: &addr) {
135 |             let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
136 |             try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
    |                                                        `- error: cannot find type 'sockaddr_un' in scope
137 |         }
138 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:135:50: error: generic parameter 'T' could not be inferred
133 |         var addr = self._addr
134 |         try withUnsafePointer(to: &addr) {
135 |             let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
    |                                                  `- error: generic parameter 'T' could not be inferred
136 |             try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
137 |         }
Swift.UnsafeRawPointer.assumingMemoryBound:2:13: note: in call to function 'assumingMemoryBound(to:)'
1 | struct UnsafeRawPointer {
2 | public func assumingMemoryBound<T>(to: T.Type) -> UnsafePointer<T> where T : ~Copyable}
  |             `- note: in call to function 'assumingMemoryBound(to:)'
3 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:32:30: error: cannot find '_SOCK_STREAM' in scope
 30 | public struct VsockType: SocketType, Sendable {
 31 |     public var domain: Int32 { AF_VSOCK }
 32 |     public var type: Int32 { _SOCK_STREAM }
    |                              `- error: cannot find '_SOCK_STREAM' in scope
 33 |     public var description: String {
 34 |         "\(cid):\(port)"
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:32: error: cannot find 'errno' in scope
 92 |                 }
 93 |             }
 94 |             if clientFD < 0 && errno != EINTR {
    |                                `- error: cannot find 'errno' in scope
 95 |                 throw Socket.errnoToError(msg: "accept failed")
 96 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:41: error: cannot find 'EINTR' in scope
 92 |                 }
 93 |             }
 94 |             if clientFD < 0 && errno != EINTR {
    |                                         `- error: cannot find 'EINTR' in scope
 95 |                 throw Socket.errnoToError(msg: "accept failed")
 96 |             }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no exact matches in reference to global function 'ioctl'
 43 | let sysAccept = accept
 44 | let sysConnect = connect
 45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
    |                                                                                       `- error: no exact matches in reference to global function 'ioctl'
 46 | let sysRecvmsg = recvmsg
 47 | #endif
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 |  * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 |  */
43 | int ioctl(int __fd, int __op, ...);
   |     `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
   :
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
   |     `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:45:87: error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
 43 | let sysAccept = accept
 44 | let sysConnect = connect
 45 | let sysIoctl: @convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt = ioctl
    |                                                                                       `- error: no 'ioctl' candidates produce the expected contextual result type '@convention(c) (CInt, CUnsignedLong, UnsafeMutableRawPointer) -> CInt' (aka '@convention(c) (Int32, UInt, UnsafeMutableRawPointer) -> Int32')
 46 | let sysRecvmsg = recvmsg
 47 | #endif
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/bits/ioctl.h:43:5: note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
41 |  * [ioctl(2)](http://man7.org/linux/man-pages/man2/ioctl.2.html) operates on device files.
42 |  */
43 | int ioctl(int __fd, int __op, ...);
   |     `- note: found candidate with type '@Sendable (Int32, Int32, Any...) -> Int32'
44 |
45 | /*
   :
58 | #if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
59 | /* enable_if(1) just exists to break overloading ties. */
60 | int ioctl(int __fd, unsigned __op, ...) __overloadable __enable_if(1, "") __RENAME(ioctl);
   |     `- note: found candidate with type '@Sendable (Int32, UInt32, Any...) -> Int32'
61 | #endif
62 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:42:56: error: cannot find type 'sockaddr' in scope
40 |     func accept(fd: Int32) throws -> (Int32, SocketType)
41 |     /// Provide a sockaddr pointer (by casting a socket specific type like sockaddr_un for example).
42 |     func withSockAddr(_ closure: (_ ptr: UnsafePointer<sockaddr>, _ len: UInt32) throws -> Void) throws
   |                                                        `- error: cannot find type 'sockaddr' in scope
43 | }
44 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:90:86: error: cannot find 'errno' in scope
 88 |         let sockFD = sysSocket(type.domain, type.type, 0)
 89 |         if sockFD < 0 {
 90 |             throw SocketError.withErrno("failed to create socket: \(sockFD)", errno: errno)
    |                                                                                      `- error: cannot find 'errno' in scope
 91 |         }
 92 |         self.init(fd: sockFD, type: type, closeOnDeinit: closeOnDeinit)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:55: error: cannot find 'errno' in scope
128 | extension Socket {
129 |     static func errnoToError(msg: String) -> SocketError {
130 |         SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
    |                                                       `- error: cannot find 'errno' in scope
131 |     }
132 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:130:73: error: cannot find 'errno' in scope
128 | extension Socket {
129 |     static func errnoToError(msg: String) -> SocketError {
130 |         SocketError.withErrno("\(msg) (\(_errnoString(errno)))", errno: errno)
    |                                                                         `- error: cannot find 'errno' in scope
131 |     }
132 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:44: error: cannot find 'errno' in scope
464 |
465 |     static func _errnoString(_ err: Int32?) -> String {
466 |         String(validatingCString: strerror(errno)) ?? "error: \(errno)"
    |                                            `- error: cannot find 'errno' in scope
467 |     }
468 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:466:65: error: cannot find 'errno' in scope
464 |
465 |     static func _errnoString(_ err: Int32?) -> String {
466 |         String(validatingCString: strerror(errno)) ?? "error: \(errno)"
    |                                                                 `- error: cannot find 'errno' in scope
467 |     }
468 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:39:23: error: cannot find type 'mode_t' in scope
 37 |
 38 |     public let path: String
 39 |     public let perms: mode_t?
    |                       `- error: cannot find type 'mode_t' in scope
 40 |     private let _addr: sockaddr_un
 41 |     private let _unlinkExisting: Bool
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:40:24: error: cannot find type 'sockaddr_un' in scope
 38 |     public let path: String
 39 |     public let perms: mode_t?
 40 |     private let _addr: sockaddr_un
    |                        `- error: cannot find type 'sockaddr_un' in scope
 41 |     private let _unlinkExisting: Bool
 42 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:43:28: error: cannot find type 'sockaddr_un' in scope
 41 |     private let _unlinkExisting: Bool
 42 |
 43 |     private init(sockaddr: sockaddr_un) {
    |                            `- error: cannot find type 'sockaddr_un' in scope
 44 |         let pathname: String = withUnsafePointer(to: sockaddr.sun_path) { ptr in
 45 |             let charPtr = UnsafeRawPointer(ptr).assumingMemoryBound(to: CChar.self)
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:57:16: error: cannot find type 'mode_t' in scope
 55 |     public init(
 56 |         path: String,
 57 |         perms: mode_t? = nil,
    |                `- error: cannot find type 'mode_t' in scope
 58 |         unlinkExisting: Bool = false
 59 |     ) throws {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:132:56: error: cannot find type 'sockaddr' in scope
130 |     }
131 |
132 |     public func withSockAddr(_ closure: (UnsafePointer<sockaddr>, UInt32) throws -> Void) throws {
    |                                                        `- error: cannot find type 'sockaddr' in scope
133 |         var addr = self._addr
134 |         try withUnsafePointer(to: &addr) {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:32:32: error: cannot find 'AF_UNIX' in scope
 30 | /// Unix domain socket variant of `SocketType`.
 31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
 32 |     public var domain: Int32 { AF_UNIX }
    |                                `- error: cannot find 'AF_UNIX' in scope
 33 |     public var type: Int32 { _SOCK_STREAM }
 34 |     public var description: String {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:33:30: error: cannot find '_SOCK_STREAM' in scope
 31 | public struct UnixType: SocketType, Sendable, CustomStringConvertible {
 32 |     public var domain: Int32 { AF_UNIX }
 33 |     public var type: Int32 { _SOCK_STREAM }
    |                              `- error: cannot find '_SOCK_STREAM' in scope
 34 |     public var description: String {
 35 |         path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:63:20: error: cannot find 'sockaddr_un' in scope
 61 |         self.perms = perms
 62 |         self._unlinkExisting = unlinkExisting
 63 |         var addr = sockaddr_un()
    |                    `- error: cannot find 'sockaddr_un' in scope
 64 |         addr.sun_family = sa_family_t(AF_UNIX)
 65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:27: error: cannot find 'sa_family_t' in scope
 62 |         self._unlinkExisting = unlinkExisting
 63 |         var addr = sockaddr_un()
 64 |         addr.sun_family = sa_family_t(AF_UNIX)
    |                           `- error: cannot find 'sa_family_t' in scope
 65 |
 66 |         let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:64:39: error: cannot find 'AF_UNIX' in scope
 62 |         self._unlinkExisting = unlinkExisting
 63 |         var addr = sockaddr_un()
 64 |         addr.sun_family = sa_family_t(AF_UNIX)
    |                                       `- error: cannot find 'AF_UNIX' in scope
 65 |
 66 |         let socketName = path
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:75:38: error: cannot find 'strncpy' in scope
 73 |
 74 |         _ = withUnsafeMutablePointer(to: &addr.sun_path.0) { ptr in
 75 |             socketName.withCString { strncpy(ptr, $0, nameLength) }
    |                                      `- error: cannot find 'strncpy' in scope
 76 |         }
 77 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:86:20: error: cannot find 'sockaddr_un' in scope
 84 |     public func accept(fd: Int32) throws -> (Int32, SocketType) {
 85 |         var clientFD: Int32 = -1
 86 |         var addr = sockaddr_un()
    |                    `- error: cannot find 'sockaddr_un' in scope
 87 |
 88 |         clientFD = Syscall.retrying {
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:89:24: error: cannot find 'socklen_t' in scope
 87 |
 88 |         clientFD = Syscall.retrying {
 89 |             var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
    |                        `- error: cannot find 'socklen_t' in scope
 90 |             return withUnsafeMutablePointer(to: &addr) { pointer in
 91 |                 pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:89:47: error: cannot find type 'sockaddr_un' in scope
 87 |
 88 |         clientFD = Syscall.retrying {
 89 |             var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
    |                                               `- error: cannot find type 'sockaddr_un' in scope
 90 |             return withUnsafeMutablePointer(to: &addr) { pointer in
 91 |                 pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:91:47: error: cannot find 'sockaddr' in scope
 89 |             var size = socklen_t(MemoryLayout<sockaddr_un>.stride)
 90 |             return withUnsafeMutablePointer(to: &addr) { pointer in
 91 |                 pointer.withMemoryRebound(to: sockaddr.self, capacity: 1) { pointer in
    |                                               `- error: cannot find 'sockaddr' in scope
 92 |                     sysAccept(fd, pointer, &size)
 93 |                 }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:116:27: error: cannot find 'errno' in scope
114 |         if self._unlinkExisting {
115 |             rc = sysUnlink(self.path)
116 |             if rc != 0 && errno != ENOENT {
    |                           `- error: cannot find 'errno' in scope
117 |                 throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
118 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:116:36: error: cannot find 'ENOENT' in scope
114 |         if self._unlinkExisting {
115 |             rc = sysUnlink(self.path)
116 |             if rc != 0 && errno != ENOENT {
    |                                    `- error: cannot find 'ENOENT' in scope
117 |                 throw Socket.errnoToError(msg: "failed to remove old socket at \(self.path)")
118 |             }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:135:74: error: cannot find 'sockaddr' in scope
133 |         var addr = self._addr
134 |         try withUnsafePointer(to: &addr) {
135 |             let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
    |                                                                          `- error: cannot find 'sockaddr' in scope
136 |             try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
137 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:136:56: error: cannot find type 'sockaddr_un' in scope
134 |         try withUnsafePointer(to: &addr) {
135 |             let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
136 |             try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
    |                                                        `- error: cannot find type 'sockaddr_un' in scope
137 |         }
138 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:135:50: error: generic parameter 'T' could not be inferred
133 |         var addr = self._addr
134 |         try withUnsafePointer(to: &addr) {
135 |             let addrBytes = UnsafeRawPointer($0).assumingMemoryBound(to: sockaddr.self)
    |                                                  `- error: generic parameter 'T' could not be inferred
136 |             try closure(addrBytes, UInt32(MemoryLayout<sockaddr_un>.stride))
137 |         }
Swift.UnsafeRawPointer.assumingMemoryBound:2:13: note: in call to function 'assumingMemoryBound(to:)'
1 | struct UnsafeRawPointer {
2 | public func assumingMemoryBound<T>(to: T.Type) -> UnsafePointer<T> where T : ~Copyable}
  |             `- note: in call to function 'assumingMemoryBound(to:)'
3 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:32:30: error: cannot find '_SOCK_STREAM' in scope
 30 | public struct VsockType: SocketType, Sendable {
 31 |     public var domain: Int32 { AF_VSOCK }
 32 |     public var type: Int32 { _SOCK_STREAM }
    |                              `- error: cannot find '_SOCK_STREAM' in scope
 33 |     public var description: String {
 34 |         "\(cid):\(port)"
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:32: error: cannot find 'errno' in scope
 92 |                 }
 93 |             }
 94 |             if clientFD < 0 && errno != EINTR {
    |                                `- error: cannot find 'errno' in scope
 95 |                 throw Socket.errnoToError(msg: "accept failed")
 96 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:94:41: error: cannot find 'EINTR' in scope
 92 |                 }
 93 |             }
 94 |             if clientFD < 0 && errno != EINTR {
    |                                         `- error: cannot find 'EINTR' in scope
 95 |                 throw Socket.errnoToError(msg: "accept failed")
 96 |             }
[816/1697] Compiling Configuration ConfigReader+methods.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:33:29: error: cannot find 'errno' in scope
31 |         while true {
32 |             let res = closure()
33 |             if res == -1 && errno == EINTR {
   |                             `- error: cannot find 'errno' in scope
34 |                 continue
35 |             }
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:33:38: error: cannot find 'EINTR' in scope
31 |         while true {
32 |             let res = closure()
33 |             if res == -1 && errno == EINTR {
   |                                      `- error: cannot find 'EINTR' in scope
34 |                 continue
35 |             }
[817/1697] Compiling Configuration ConfigReader.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:33:29: error: cannot find 'errno' in scope
31 |         while true {
32 |             let res = closure()
33 |             if res == -1 && errno == EINTR {
   |                             `- error: cannot find 'errno' in scope
34 |                 continue
35 |             }
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:33:38: error: cannot find 'EINTR' in scope
31 |         while true {
32 |             let res = closure()
33 |             if res == -1 && errno == EINTR {
   |                                      `- error: cannot find 'EINTR' in scope
34 |                 continue
35 |             }
[818/1697] Compiling Configuration ConfigSnapshotReader+methods.swift
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/Socket.swift:28:8: error: Socket not supported on this platform.
 26 | import Darwin
 27 | #else
 28 | #error("Socket not supported on this platform.")
    |        `- error: Socket not supported on this platform.
 29 | #endif
 30 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/SocketType.swift:24:8: error: SocketType not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("SocketType not supported on this platform.")
   |        `- error: SocketType not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/UnixType.swift:27:8: error: UnixType not supported on this platform.
 25 | let _SOCK_STREAM = SOCK_STREAM
 26 | #else
 27 | #error("UnixType not supported on this platform.")
    |        `- error: UnixType not supported on this platform.
 28 | #endif
 29 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Socket/VsockType.swift:26:8: error: VsockType not supported on this platform.
 24 | import Darwin
 25 | #else
 26 | #error("VsockType not supported on this platform.")
    |        `- error: VsockType not supported on this platform.
 27 | #endif
 28 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:24:8: error: retryingSyscall not supported on this platform.
22 | import Darwin
23 | #else
24 | #error("retryingSyscall not supported on this platform.")
   |        `- error: retryingSyscall not supported on this platform.
25 | #endif
26 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:33:29: error: cannot find 'errno' in scope
31 |         while true {
32 |             let res = closure()
33 |             if res == -1 && errno == EINTR {
   |                             `- error: cannot find 'errno' in scope
34 |                 continue
35 |             }
/host/spi-builder-workspace/Sources/ContainerizationOS/Syscall.swift:33:38: error: cannot find 'EINTR' in scope
31 |         while true {
32 |             let res = closure()
33 |             if res == -1 && errno == EINTR {
   |                                      `- error: cannot find 'EINTR' in scope
34 |                 continue
35 |             }
[818/1697] Compiling ssl_session.cc
[819/1697] Compiling ssl_key_share.cc
[819/1697] Compiling ssl_file.cc
[819/1697] Compiling ssl_privkey.cc
[819/1697] Compiling ssl_lib.cc
BUILD FAILURE 6.2 android