The Swift Package Index logo.Swift Package Index

Build Information

Failed to build containerization, reference main (cc8d32), with Swift 6.2 for Android on 16 Oct 2026 04:14:56 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-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

613 |             return entryType(forMode: stbuf.st_mode)
    |                             `- error: extraneous argument label 'forMode:' in call
614 |         default: return .other
615 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/FileDescriptorOps.swift:613:52: error: missing argument for parameter #2 in call
174 |     ///   - name: The name of a direct child of that directory.
175 |     /// - Throws: `FileDescriptorOps.Error.systemError` if the entry cannot be inspected.
176 |     public static func entryType(_ fd: FileDescriptor, _ name: FilePath.Component) throws -> EntryType? {
    |                        `- note: 'entryType' declared here
177 |         try status(fd, name)?.type
178 |     }
    :
611 |             var stbuf = stat()
612 |             guard fstatat(parentFd, name, &stbuf, AT_SYMLINK_NOFOLLOW) == 0 else { return .other }
613 |             return entryType(forMode: stbuf.st_mode)
    |                                                    `- error: missing argument for parameter #2 in call
614 |         default: return .other
615 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/FileDescriptorOps.swift:613:20: error: value of optional type 'FileDescriptorOps.EntryType?' must be unwrapped to a value of type 'FileDescriptorOps.EntryType'
611 |             var stbuf = stat()
612 |             guard fstatat(parentFd, name, &stbuf, AT_SYMLINK_NOFOLLOW) == 0 else { return .other }
613 |             return entryType(forMode: stbuf.st_mode)
    |                    |- error: value of optional type 'FileDescriptorOps.EntryType?' must be unwrapped to a value of type 'FileDescriptorOps.EntryType'
    |                    |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                    `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
614 |         default: return .other
615 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/FileDescriptorOps.swift:619:23: error: cannot find 'os_S_IFMT' in scope
617 |
618 |     private static func entryType(forMode mode: mode_t) -> EntryType {
619 |         switch mode & os_S_IFMT {
    |                       `- error: cannot find 'os_S_IFMT' in scope
620 |         case os_S_IFREG: return .regular
621 |         case os_S_IFDIR: return .directory
/host/spi-builder-workspace/Sources/ContainerizationOS/FileDescriptorOps.swift:620:14: error: cannot find 'os_S_IFREG' in scope
618 |     private static func entryType(forMode mode: mode_t) -> EntryType {
619 |         switch mode & os_S_IFMT {
620 |         case os_S_IFREG: return .regular
    |              `- error: cannot find 'os_S_IFREG' in scope
621 |         case os_S_IFDIR: return .directory
622 |         case os_S_IFLNK: return .symlink
/host/spi-builder-workspace/Sources/ContainerizationOS/FileDescriptorOps.swift:621:14: error: cannot find 'os_S_IFDIR' in scope
619 |         switch mode & os_S_IFMT {
620 |         case os_S_IFREG: return .regular
621 |         case os_S_IFDIR: return .directory
    |              `- error: cannot find 'os_S_IFDIR' in scope
622 |         case os_S_IFLNK: return .symlink
623 |         default: return .other
/host/spi-builder-workspace/Sources/ContainerizationOS/FileDescriptorOps.swift:622:14: error: cannot find 'os_S_IFLNK' in scope
620 |         case os_S_IFREG: return .regular
621 |         case os_S_IFDIR: return .directory
622 |         case os_S_IFLNK: return .symlink
    |              `- error: cannot find 'os_S_IFLNK' in scope
623 |         default: return .other
624 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/FileDescriptorOps.swift:634:28: error: extraneous argument label 'forMode:' in call
632 |         #endif
633 |         return FileStatus(
634 |             type: entryType(forMode: stbuf.st_mode),
    |                            `- error: extraneous argument label 'forMode:' in call
635 |             permissions: FilePermissions(rawValue: stbuf.st_mode & 0o7777),
636 |             size: Int64(stbuf.st_size),
/host/spi-builder-workspace/Sources/ContainerizationOS/FileDescriptorOps.swift:634:51: error: missing argument for parameter #2 in call
174 |     ///   - name: The name of a direct child of that directory.
175 |     /// - Throws: `FileDescriptorOps.Error.systemError` if the entry cannot be inspected.
176 |     public static func entryType(_ fd: FileDescriptor, _ name: FilePath.Component) throws -> EntryType? {
    |                        `- note: 'entryType' declared here
177 |         try status(fd, name)?.type
178 |     }
    :
632 |         #endif
633 |         return FileStatus(
634 |             type: entryType(forMode: stbuf.st_mode),
    |                                                   `- error: missing argument for parameter #2 in call
635 |             permissions: FilePermissions(rawValue: stbuf.st_mode & 0o7777),
636 |             size: Int64(stbuf.st_size),
/host/spi-builder-workspace/Sources/ContainerizationOS/FileDescriptorOps.swift:634:19: error: value of optional type 'FileDescriptorOps.EntryType?' must be unwrapped to a value of type 'FileDescriptorOps.EntryType'
632 |         #endif
633 |         return FileStatus(
634 |             type: entryType(forMode: stbuf.st_mode),
    |                   |- error: value of optional type 'FileDescriptorOps.EntryType?' must be unwrapped to a value of type 'FileDescriptorOps.EntryType'
    |                   |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                   `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
635 |             permissions: FilePermissions(rawValue: stbuf.st_mode & 0o7777),
636 |             size: Int64(stbuf.st_size),
[776/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 |
/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() }
[777/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 |
/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() }
[778/1697] Compiling Configuration SeparatorKeyEncoder.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() }
[779/1697] 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() }
/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: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: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: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 |
[791/1697] Compiling Configuration CommonProviderFileSystem.swift
[792/1697] Compiling Configuration DirectoryFilesProvider.swift
[793/1697] Compiling Configuration FileProvider.swift
[794/1697] Compiling Configuration FileProviderSnapshot.swift
[795/1697] Compiling Configuration MutableInMemoryProvider.swift
[796/1697] Compiling Configuration ConfigProvider+Operators.swift
[797/1697] Compiling Configuration KeyMappingProvider.swift
[798/1697] Compiling Configuration SecretsSpecifier.swift
[809/1697] Compiling GRPCCore RPCWriterProtocol.swift
[810/1697] Compiling GRPCCore Timeout.swift
[811/1697] Compiling GRPCCore ClientTransport.swift
[812/1697] Compiling GRPCCore RPCParts.swift
[813/1697] Compiling GRPCCore RPCStream.swift
[814/1697] Compiling GRPCCore RetryThrottle.swift
[815/1697] Compiling GRPCCore ServerTransport.swift
[816/1697] Compiling GRPCCore RuntimeError.swift
[817/1697] Compiling GRPCCore ServiceDescriptor.swift
[818/1697] Compiling GRPCCore Status.swift
[819/1697] Compiling GRPCCore AsyncSequenceOfOne.swift
[820/1697] Compiling GRPCCore BroadcastAsyncSequence+RPCWriter.swift
[821/1697] Compiling GRPCCore BroadcastAsyncSequence.swift
[822/1697] Compiling GRPCCore GRPCAsyncThrowingStream.swift
[851/1698] Compiling ssl_stat.cc
[852/1698] Wrapping AST for GRPCCore for debugging
[853/1698] Compiling ssl_session.cc
/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/Terminal.swift:21:28: error: cannot find type 'termios' in scope
 19 | /// `Terminal` provides a clean interface to deal with terminal interactions on Unix platforms.
 20 | public struct Terminal: Sendable {
 21 |     private let initState: termios?
    |                            `- error: cannot find type 'termios' in scope
 22 |
 23 |     private var descriptor: Int32 {
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:44:19: error: cannot find type 'winsize' in scope
 42 |     /// The winsize for a pty.
 43 |     public struct Size: Sendable {
 44 |         let size: winsize
    |                   `- error: cannot find type 'winsize' in scope
 45 |
 46 |         /// The width or `col` of the pty.
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:55:22: error: cannot find type 'winsize' in scope
 53 |         }
 54 |
 55 |         init(_ size: winsize) {
    |                      `- error: cannot find type 'winsize' in scope
 56 |             self.size = size
 57 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:167:56: error: cannot find type 'termios' in scope
165 |     }
166 |
167 |     private static func getattr(_ fd: Int32) throws -> termios {
    |                                                        `- error: cannot find type 'termios' in scope
168 |         var attr = termios()
169 |         try fromSyscall(tcgetattr(fd, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:61:25: error: cannot find 'winsize' in scope
 59 |         /// Set the size for use with a pty.
 60 |         public init(width cols: UInt16, height rows: UInt16) {
 61 |             self.size = winsize(ws_row: rows, ws_col: cols, ws_xpixel: 0, ws_ypixel: 0)
    |                         `- error: cannot find 'winsize' in scope
 62 |         }
 63 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:23: error: cannot find 'STDERR_FILENO' in scope
 66 |     public static var current: Terminal {
 67 |         get throws {
 68 |             for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
    |                       `- error: cannot find 'STDERR_FILENO' in scope
 69 |                 do {
 70 |                     return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:38: error: cannot find 'STDOUT_FILENO' in scope
 66 |     public static var current: Terminal {
 67 |         get throws {
 68 |             for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
    |                                      `- error: cannot find 'STDOUT_FILENO' in scope
 69 |                 do {
 70 |                     return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:53: error: cannot find 'STDIN_FILENO' in scope
 66 |     public static var current: Terminal {
 67 |         get throws {
 68 |             for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
    |                                                     `- error: cannot find 'STDIN_FILENO' in scope
 69 |                 do {
 70 |                     return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:80:22: error: cannot find 'winsize' in scope
 78 |     public var size: Size {
 79 |         get throws {
 80 |             var ws = winsize()
    |                      `- error: cannot find 'winsize' in scope
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
 82 |             return Size(ws)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:81:29: error: cannot find 'ioctl' in scope
 79 |         get throws {
 80 |             var ws = winsize()
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
    |                             `- error: cannot find 'ioctl' in scope
 82 |             return Size(ws)
 83 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:81:52: error: cannot find 'TIOCGWINSZ' in scope
 79 |         get throws {
 80 |             var ws = winsize()
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
    |                                                    `- error: cannot find 'TIOCGWINSZ' in scope
 82 |             return Size(ws)
 83 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:82:25: error: missing argument label 'width:' in call
 80 |             var ws = winsize()
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
 82 |             return Size(ws)
    |                         `- error: missing argument label 'width:' in call
 83 |         }
 84 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:82:27: error: missing argument for parameter 'height' in call
 58 |
 59 |         /// Set the size for use with a pty.
 60 |         public init(width cols: UInt16, height rows: UInt16) {
    |                `- note: 'init(width:height:)' declared here
 61 |             self.size = winsize(ws_row: rows, ws_col: cols, ws_xpixel: 0, ws_ypixel: 0)
 62 |         }
    :
 80 |             var ws = winsize()
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
 82 |             return Size(ws)
    |                           `- error: missing argument for parameter 'height' in call
 83 |         }
 84 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:25: error: cannot find 'openpty' in scope
 92 |         var ws = size.size
 93 |
 94 |         try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
    |                         `- error: cannot find 'openpty' in scope
 95 |         return (
 96 |             parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:50: error: 'nil' requires a contextual type
 92 |         var ws = size.size
 93 |
 94 |         try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
    |                                                  `- error: 'nil' requires a contextual type
 95 |         return (
 96 |             parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:55: error: 'nil' requires a contextual type
 92 |         var ws = size.size
 93 |
 94 |         try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
    |                                                       `- error: 'nil' requires a contextual type
 95 |         return (
 96 |             parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:122:25: error: cannot find 'ioctl' in scope
120 |     public func resize(from pty: Terminal) throws {
121 |         var ws = try pty.size
122 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                         `- error: cannot find 'ioctl' in scope
123 |     }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:122:48: error: cannot find 'TIOCSWINSZ' in scope
120 |     public func resize(from pty: Terminal) throws {
121 |         var ws = try pty.size
122 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                                                `- error: cannot find 'TIOCSWINSZ' in scope
123 |     }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:129:25: error: cannot find 'ioctl' in scope
127 |     public func resize(size: Size) throws {
128 |         var ws = size.size
129 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                         `- error: cannot find 'ioctl' in scope
130 |     }
131 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:129:48: error: cannot find 'TIOCSWINSZ' in scope
127 |     public func resize(size: Size) throws {
128 |         var ws = size.size
129 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                                                `- error: cannot find 'TIOCSWINSZ' in scope
130 |     }
131 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:137:25: error: cannot find 'ioctl' in scope
135 |     public func resize(width: UInt16, height: UInt16) throws {
136 |         var ws = Size(width: width, height: height)
137 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                         `- error: cannot find 'ioctl' in scope
138 |     }
139 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:137:48: error: cannot find 'TIOCSWINSZ' in scope
135 |     public func resize(width: UInt16, height: UInt16) throws {
136 |         var ws = Size(width: width, height: height)
137 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                                                `- error: cannot find 'TIOCSWINSZ' in scope
138 |     }
139 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:145:9: error: cannot find 'cfmakeraw' in scope
143 |     public func setraw() throws {
144 |         var attr = try Self.getattr(descriptor)
145 |         cfmakeraw(&attr)
    |         `- error: cannot find 'cfmakeraw' in scope
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:146:39: error: cannot find 'tcflag_t' in scope
144 |         var attr = try Self.getattr(descriptor)
145 |         cfmakeraw(&attr)
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
    |                                       `- error: cannot find 'tcflag_t' in scope
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
148 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:146:48: error: cannot find 'OPOST' in scope
144 |         var attr = try Self.getattr(descriptor)
145 |         cfmakeraw(&attr)
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
    |                                                `- error: cannot find 'OPOST' in scope
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
148 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:147:25: error: cannot find 'tcsetattr' in scope
145 |         cfmakeraw(&attr)
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                         `- error: cannot find 'tcsetattr' in scope
148 |     }
149 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:147:47: error: cannot find 'TCSANOW' in scope
145 |         cfmakeraw(&attr)
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                                               `- error: cannot find 'TCSANOW' in scope
148 |     }
149 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:154:26: error: cannot find 'tcflag_t' in scope
152 |     public func enableEcho() throws {
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
    |                          `- error: cannot find 'tcflag_t' in scope
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:154:35: error: cannot find 'ICRNL' in scope
152 |     public func enableEcho() throws {
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
    |                                   `- error: cannot find 'ICRNL' in scope
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:26: error: cannot find 'tcflag_t' in scope
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
    |                          `- error: cannot find 'tcflag_t' in scope
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:35: error: cannot find 'ICANON' in scope
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
    |                                   `- error: cannot find 'ICANON' in scope
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:44: error: cannot find 'ECHO' in scope
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
    |                                            `- error: cannot find 'ECHO' in scope
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:156:25: error: cannot find 'tcsetattr' in scope
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                         `- error: cannot find 'tcsetattr' in scope
157 |     }
158 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:156:47: error: cannot find 'TCSANOW' in scope
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                                               `- error: cannot find 'TCSANOW' in scope
157 |     }
158 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:163:26: error: cannot find 'tcflag_t' in scope
161 |     public func disableEcho() throws {
162 |         var attr = try Self.getattr(descriptor)
163 |         attr.c_lflag &= ~tcflag_t(ECHO)
    |                          `- error: cannot find 'tcflag_t' in scope
164 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
165 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:163:35: error: cannot find 'ECHO' in scope
161 |     public func disableEcho() throws {
162 |         var attr = try Self.getattr(descriptor)
163 |         attr.c_lflag &= ~tcflag_t(ECHO)
    |                                   `- error: cannot find 'ECHO' in scope
164 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
165 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:164:25: error: cannot find 'tcsetattr' in scope
162 |         var attr = try Self.getattr(descriptor)
163 |         attr.c_lflag &= ~tcflag_t(ECHO)
164 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                         `- error: cannot find 'tcsetattr' in scope
165 |     }
166 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:164:47: error: cannot find 'TCSANOW' in scope
162 |         var attr = try Self.getattr(descriptor)
163 |         attr.c_lflag &= ~tcflag_t(ECHO)
164 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                                               `- error: cannot find 'TCSANOW' in scope
165 |     }
166 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:168:20: error: cannot find 'termios' in scope
166 |
167 |     private static func getattr(_ fd: Int32) throws -> termios {
168 |         var attr = termios()
    |                    `- error: cannot find 'termios' in scope
169 |         try fromSyscall(tcgetattr(fd, &attr))
170 |         return attr
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:169:25: error: cannot find 'tcgetattr' in scope
167 |     private static func getattr(_ fd: Int32) throws -> termios {
168 |         var attr = termios()
169 |         try fromSyscall(tcgetattr(fd, &attr))
    |                         `- error: cannot find 'tcgetattr' in scope
170 |         return attr
171 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:194:29: error: cannot find 'tcsetattr' in scope
192 |     public func reset() throws {
193 |         if var attr = initState {
194 |             try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                             `- error: cannot find 'tcsetattr' in scope
195 |         }
196 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:194:51: error: cannot find 'TCSANOW' in scope
192 |     public func reset() throws {
193 |         if var attr = initState {
194 |             try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                                                   `- error: cannot find 'TCSANOW' in scope
195 |         }
196 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:207:42: error: cannot find 'errno' in scope
205 | private func fromSyscall(_ status: Int32) throws {
206 |     guard status == 0 else {
207 |         throw POSIXError(.init(rawValue: errno)!)
    |                                          `- error: cannot find 'errno' in scope
208 |     }
209 | }
/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/URL+Extensions.swift:61:18: error: cannot find 'stat' in scope
59 |
60 |     public var isDirectory: Bool {
61 |         var st = stat()
   |                  `- error: cannot find 'stat' in scope
62 |         guard stat(self.path, &st) == 0 else { return false }
63 |         return (st.st_mode & S_IFMT) == S_IFDIR
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:62:15: error: cannot find 'stat' in scope
60 |     public var isDirectory: Bool {
61 |         var st = stat()
62 |         guard stat(self.path, &st) == 0 else { return false }
   |               `- error: cannot find 'stat' in scope
63 |         return (st.st_mode & S_IFMT) == S_IFDIR
64 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:63:30: error: cannot find 'S_IFMT' in scope
61 |         var st = stat()
62 |         guard stat(self.path, &st) == 0 else { return false }
63 |         return (st.st_mode & S_IFMT) == S_IFDIR
   |                              `- error: cannot find 'S_IFMT' in scope
64 |     }
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:63:41: error: cannot find 'S_IFDIR' in scope
61 |         var st = stat()
62 |         guard stat(self.path, &st) == 0 else { return false }
63 |         return (st.st_mode & S_IFMT) == S_IFDIR
   |                                         `- error: cannot find 'S_IFDIR' in scope
64 |     }
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:67:18: error: cannot find 'stat' in scope
65 |
66 |     public var isSymlink: Bool {
67 |         var st = stat()
   |                  `- error: cannot find 'stat' in scope
68 |         guard lstat(self.path, &st) == 0 else { return false }
69 |         return (st.st_mode & S_IFMT) == S_IFLNK
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:68:15: error: cannot find 'lstat' in scope
66 |     public var isSymlink: Bool {
67 |         var st = stat()
68 |         guard lstat(self.path, &st) == 0 else { return false }
   |               `- error: cannot find 'lstat' in scope
69 |         return (st.st_mode & S_IFMT) == S_IFLNK
70 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:69:30: error: cannot find 'S_IFMT' in scope
67 |         var st = stat()
68 |         guard lstat(self.path, &st) == 0 else { return false }
69 |         return (st.st_mode & S_IFMT) == S_IFLNK
   |                              `- error: cannot find 'S_IFMT' in scope
70 |     }
71 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:69:41: error: cannot find 'S_IFLNK' in scope
67 |         var st = stat()
68 |         guard lstat(self.path, &st) == 0 else { return false }
69 |         return (st.st_mode & S_IFMT) == S_IFLNK
   |                                         `- error: cannot find 'S_IFLNK' in scope
70 |     }
71 | }
/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/Terminal.swift:21:28: error: cannot find type 'termios' in scope
 19 | /// `Terminal` provides a clean interface to deal with terminal interactions on Unix platforms.
 20 | public struct Terminal: Sendable {
 21 |     private let initState: termios?
    |                            `- error: cannot find type 'termios' in scope
 22 |
 23 |     private var descriptor: Int32 {
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:44:19: error: cannot find type 'winsize' in scope
 42 |     /// The winsize for a pty.
 43 |     public struct Size: Sendable {
 44 |         let size: winsize
    |                   `- error: cannot find type 'winsize' in scope
 45 |
 46 |         /// The width or `col` of the pty.
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:55:22: error: cannot find type 'winsize' in scope
 53 |         }
 54 |
 55 |         init(_ size: winsize) {
    |                      `- error: cannot find type 'winsize' in scope
 56 |             self.size = size
 57 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:167:56: error: cannot find type 'termios' in scope
165 |     }
166 |
167 |     private static func getattr(_ fd: Int32) throws -> termios {
    |                                                        `- error: cannot find type 'termios' in scope
168 |         var attr = termios()
169 |         try fromSyscall(tcgetattr(fd, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:61:25: error: cannot find 'winsize' in scope
 59 |         /// Set the size for use with a pty.
 60 |         public init(width cols: UInt16, height rows: UInt16) {
 61 |             self.size = winsize(ws_row: rows, ws_col: cols, ws_xpixel: 0, ws_ypixel: 0)
    |                         `- error: cannot find 'winsize' in scope
 62 |         }
 63 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:23: error: cannot find 'STDERR_FILENO' in scope
 66 |     public static var current: Terminal {
 67 |         get throws {
 68 |             for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
    |                       `- error: cannot find 'STDERR_FILENO' in scope
 69 |                 do {
 70 |                     return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:38: error: cannot find 'STDOUT_FILENO' in scope
 66 |     public static var current: Terminal {
 67 |         get throws {
 68 |             for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
    |                                      `- error: cannot find 'STDOUT_FILENO' in scope
 69 |                 do {
 70 |                     return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:53: error: cannot find 'STDIN_FILENO' in scope
 66 |     public static var current: Terminal {
 67 |         get throws {
 68 |             for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
    |                                                     `- error: cannot find 'STDIN_FILENO' in scope
 69 |                 do {
 70 |                     return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:80:22: error: cannot find 'winsize' in scope
 78 |     public var size: Size {
 79 |         get throws {
 80 |             var ws = winsize()
    |                      `- error: cannot find 'winsize' in scope
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
 82 |             return Size(ws)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:81:29: error: cannot find 'ioctl' in scope
 79 |         get throws {
 80 |             var ws = winsize()
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
    |                             `- error: cannot find 'ioctl' in scope
 82 |             return Size(ws)
 83 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:81:52: error: cannot find 'TIOCGWINSZ' in scope
 79 |         get throws {
 80 |             var ws = winsize()
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
    |                                                    `- error: cannot find 'TIOCGWINSZ' in scope
 82 |             return Size(ws)
 83 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:82:25: error: missing argument label 'width:' in call
 80 |             var ws = winsize()
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
 82 |             return Size(ws)
    |                         `- error: missing argument label 'width:' in call
 83 |         }
 84 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:82:27: error: missing argument for parameter 'height' in call
 58 |
 59 |         /// Set the size for use with a pty.
 60 |         public init(width cols: UInt16, height rows: UInt16) {
    |                `- note: 'init(width:height:)' declared here
 61 |             self.size = winsize(ws_row: rows, ws_col: cols, ws_xpixel: 0, ws_ypixel: 0)
 62 |         }
    :
 80 |             var ws = winsize()
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
 82 |             return Size(ws)
    |                           `- error: missing argument for parameter 'height' in call
 83 |         }
 84 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:25: error: cannot find 'openpty' in scope
 92 |         var ws = size.size
 93 |
 94 |         try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
    |                         `- error: cannot find 'openpty' in scope
 95 |         return (
 96 |             parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:50: error: 'nil' requires a contextual type
 92 |         var ws = size.size
 93 |
 94 |         try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
    |                                                  `- error: 'nil' requires a contextual type
 95 |         return (
 96 |             parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:55: error: 'nil' requires a contextual type
 92 |         var ws = size.size
 93 |
 94 |         try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
    |                                                       `- error: 'nil' requires a contextual type
 95 |         return (
 96 |             parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:122:25: error: cannot find 'ioctl' in scope
120 |     public func resize(from pty: Terminal) throws {
121 |         var ws = try pty.size
122 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                         `- error: cannot find 'ioctl' in scope
123 |     }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:122:48: error: cannot find 'TIOCSWINSZ' in scope
120 |     public func resize(from pty: Terminal) throws {
121 |         var ws = try pty.size
122 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                                                `- error: cannot find 'TIOCSWINSZ' in scope
123 |     }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:129:25: error: cannot find 'ioctl' in scope
127 |     public func resize(size: Size) throws {
128 |         var ws = size.size
129 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                         `- error: cannot find 'ioctl' in scope
130 |     }
131 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:129:48: error: cannot find 'TIOCSWINSZ' in scope
127 |     public func resize(size: Size) throws {
128 |         var ws = size.size
129 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                                                `- error: cannot find 'TIOCSWINSZ' in scope
130 |     }
131 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:137:25: error: cannot find 'ioctl' in scope
135 |     public func resize(width: UInt16, height: UInt16) throws {
136 |         var ws = Size(width: width, height: height)
137 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                         `- error: cannot find 'ioctl' in scope
138 |     }
139 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:137:48: error: cannot find 'TIOCSWINSZ' in scope
135 |     public func resize(width: UInt16, height: UInt16) throws {
136 |         var ws = Size(width: width, height: height)
137 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                                                `- error: cannot find 'TIOCSWINSZ' in scope
138 |     }
139 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:145:9: error: cannot find 'cfmakeraw' in scope
143 |     public func setraw() throws {
144 |         var attr = try Self.getattr(descriptor)
145 |         cfmakeraw(&attr)
    |         `- error: cannot find 'cfmakeraw' in scope
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:146:39: error: cannot find 'tcflag_t' in scope
144 |         var attr = try Self.getattr(descriptor)
145 |         cfmakeraw(&attr)
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
    |                                       `- error: cannot find 'tcflag_t' in scope
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
148 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:146:48: error: cannot find 'OPOST' in scope
144 |         var attr = try Self.getattr(descriptor)
145 |         cfmakeraw(&attr)
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
    |                                                `- error: cannot find 'OPOST' in scope
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
148 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:147:25: error: cannot find 'tcsetattr' in scope
145 |         cfmakeraw(&attr)
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                         `- error: cannot find 'tcsetattr' in scope
148 |     }
149 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:147:47: error: cannot find 'TCSANOW' in scope
145 |         cfmakeraw(&attr)
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                                               `- error: cannot find 'TCSANOW' in scope
148 |     }
149 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:154:26: error: cannot find 'tcflag_t' in scope
152 |     public func enableEcho() throws {
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
    |                          `- error: cannot find 'tcflag_t' in scope
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:154:35: error: cannot find 'ICRNL' in scope
152 |     public func enableEcho() throws {
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
    |                                   `- error: cannot find 'ICRNL' in scope
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:26: error: cannot find 'tcflag_t' in scope
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
    |                          `- error: cannot find 'tcflag_t' in scope
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:35: error: cannot find 'ICANON' in scope
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
    |                                   `- error: cannot find 'ICANON' in scope
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:44: error: cannot find 'ECHO' in scope
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
    |                                            `- error: cannot find 'ECHO' in scope
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:156:25: error: cannot find 'tcsetattr' in scope
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                         `- error: cannot find 'tcsetattr' in scope
157 |     }
158 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:156:47: error: cannot find 'TCSANOW' in scope
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                                               `- error: cannot find 'TCSANOW' in scope
157 |     }
158 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:163:26: error: cannot find 'tcflag_t' in scope
161 |     public func disableEcho() throws {
162 |         var attr = try Self.getattr(descriptor)
163 |         attr.c_lflag &= ~tcflag_t(ECHO)
    |                          `- error: cannot find 'tcflag_t' in scope
164 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
165 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:163:35: error: cannot find 'ECHO' in scope
161 |     public func disableEcho() throws {
162 |         var attr = try Self.getattr(descriptor)
163 |         attr.c_lflag &= ~tcflag_t(ECHO)
    |                                   `- error: cannot find 'ECHO' in scope
164 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
165 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:164:25: error: cannot find 'tcsetattr' in scope
162 |         var attr = try Self.getattr(descriptor)
163 |         attr.c_lflag &= ~tcflag_t(ECHO)
164 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                         `- error: cannot find 'tcsetattr' in scope
165 |     }
166 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:164:47: error: cannot find 'TCSANOW' in scope
162 |         var attr = try Self.getattr(descriptor)
163 |         attr.c_lflag &= ~tcflag_t(ECHO)
164 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                                               `- error: cannot find 'TCSANOW' in scope
165 |     }
166 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:168:20: error: cannot find 'termios' in scope
166 |
167 |     private static func getattr(_ fd: Int32) throws -> termios {
168 |         var attr = termios()
    |                    `- error: cannot find 'termios' in scope
169 |         try fromSyscall(tcgetattr(fd, &attr))
170 |         return attr
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:169:25: error: cannot find 'tcgetattr' in scope
167 |     private static func getattr(_ fd: Int32) throws -> termios {
168 |         var attr = termios()
169 |         try fromSyscall(tcgetattr(fd, &attr))
    |                         `- error: cannot find 'tcgetattr' in scope
170 |         return attr
171 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:194:29: error: cannot find 'tcsetattr' in scope
192 |     public func reset() throws {
193 |         if var attr = initState {
194 |             try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                             `- error: cannot find 'tcsetattr' in scope
195 |         }
196 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:194:51: error: cannot find 'TCSANOW' in scope
192 |     public func reset() throws {
193 |         if var attr = initState {
194 |             try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                                                   `- error: cannot find 'TCSANOW' in scope
195 |         }
196 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:207:42: error: cannot find 'errno' in scope
205 | private func fromSyscall(_ status: Int32) throws {
206 |     guard status == 0 else {
207 |         throw POSIXError(.init(rawValue: errno)!)
    |                                          `- error: cannot find 'errno' in scope
208 |     }
209 | }
/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/URL+Extensions.swift:61:18: error: cannot find 'stat' in scope
59 |
60 |     public var isDirectory: Bool {
61 |         var st = stat()
   |                  `- error: cannot find 'stat' in scope
62 |         guard stat(self.path, &st) == 0 else { return false }
63 |         return (st.st_mode & S_IFMT) == S_IFDIR
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:62:15: error: cannot find 'stat' in scope
60 |     public var isDirectory: Bool {
61 |         var st = stat()
62 |         guard stat(self.path, &st) == 0 else { return false }
   |               `- error: cannot find 'stat' in scope
63 |         return (st.st_mode & S_IFMT) == S_IFDIR
64 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:63:30: error: cannot find 'S_IFMT' in scope
61 |         var st = stat()
62 |         guard stat(self.path, &st) == 0 else { return false }
63 |         return (st.st_mode & S_IFMT) == S_IFDIR
   |                              `- error: cannot find 'S_IFMT' in scope
64 |     }
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:63:41: error: cannot find 'S_IFDIR' in scope
61 |         var st = stat()
62 |         guard stat(self.path, &st) == 0 else { return false }
63 |         return (st.st_mode & S_IFMT) == S_IFDIR
   |                                         `- error: cannot find 'S_IFDIR' in scope
64 |     }
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:67:18: error: cannot find 'stat' in scope
65 |
66 |     public var isSymlink: Bool {
67 |         var st = stat()
   |                  `- error: cannot find 'stat' in scope
68 |         guard lstat(self.path, &st) == 0 else { return false }
69 |         return (st.st_mode & S_IFMT) == S_IFLNK
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:68:15: error: cannot find 'lstat' in scope
66 |     public var isSymlink: Bool {
67 |         var st = stat()
68 |         guard lstat(self.path, &st) == 0 else { return false }
   |               `- error: cannot find 'lstat' in scope
69 |         return (st.st_mode & S_IFMT) == S_IFLNK
70 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:69:30: error: cannot find 'S_IFMT' in scope
67 |         var st = stat()
68 |         guard lstat(self.path, &st) == 0 else { return false }
69 |         return (st.st_mode & S_IFMT) == S_IFLNK
   |                              `- error: cannot find 'S_IFMT' in scope
70 |     }
71 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:69:41: error: cannot find 'S_IFLNK' in scope
67 |         var st = stat()
68 |         guard lstat(self.path, &st) == 0 else { return false }
69 |         return (st.st_mode & S_IFMT) == S_IFLNK
   |                                         `- error: cannot find 'S_IFLNK' in scope
70 |     }
71 | }
/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/Terminal.swift:21:28: error: cannot find type 'termios' in scope
 19 | /// `Terminal` provides a clean interface to deal with terminal interactions on Unix platforms.
 20 | public struct Terminal: Sendable {
 21 |     private let initState: termios?
    |                            `- error: cannot find type 'termios' in scope
 22 |
 23 |     private var descriptor: Int32 {
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:44:19: error: cannot find type 'winsize' in scope
 42 |     /// The winsize for a pty.
 43 |     public struct Size: Sendable {
 44 |         let size: winsize
    |                   `- error: cannot find type 'winsize' in scope
 45 |
 46 |         /// The width or `col` of the pty.
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:55:22: error: cannot find type 'winsize' in scope
 53 |         }
 54 |
 55 |         init(_ size: winsize) {
    |                      `- error: cannot find type 'winsize' in scope
 56 |             self.size = size
 57 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:167:56: error: cannot find type 'termios' in scope
165 |     }
166 |
167 |     private static func getattr(_ fd: Int32) throws -> termios {
    |                                                        `- error: cannot find type 'termios' in scope
168 |         var attr = termios()
169 |         try fromSyscall(tcgetattr(fd, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:61:25: error: cannot find 'winsize' in scope
 59 |         /// Set the size for use with a pty.
 60 |         public init(width cols: UInt16, height rows: UInt16) {
 61 |             self.size = winsize(ws_row: rows, ws_col: cols, ws_xpixel: 0, ws_ypixel: 0)
    |                         `- error: cannot find 'winsize' in scope
 62 |         }
 63 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:23: error: cannot find 'STDERR_FILENO' in scope
 66 |     public static var current: Terminal {
 67 |         get throws {
 68 |             for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
    |                       `- error: cannot find 'STDERR_FILENO' in scope
 69 |                 do {
 70 |                     return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:38: error: cannot find 'STDOUT_FILENO' in scope
 66 |     public static var current: Terminal {
 67 |         get throws {
 68 |             for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
    |                                      `- error: cannot find 'STDOUT_FILENO' in scope
 69 |                 do {
 70 |                     return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:68:53: error: cannot find 'STDIN_FILENO' in scope
 66 |     public static var current: Terminal {
 67 |         get throws {
 68 |             for i in [STDERR_FILENO, STDOUT_FILENO, STDIN_FILENO] {
    |                                                     `- error: cannot find 'STDIN_FILENO' in scope
 69 |                 do {
 70 |                     return try Terminal(descriptor: i)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:80:22: error: cannot find 'winsize' in scope
 78 |     public var size: Size {
 79 |         get throws {
 80 |             var ws = winsize()
    |                      `- error: cannot find 'winsize' in scope
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
 82 |             return Size(ws)
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:81:29: error: cannot find 'ioctl' in scope
 79 |         get throws {
 80 |             var ws = winsize()
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
    |                             `- error: cannot find 'ioctl' in scope
 82 |             return Size(ws)
 83 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:81:52: error: cannot find 'TIOCGWINSZ' in scope
 79 |         get throws {
 80 |             var ws = winsize()
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
    |                                                    `- error: cannot find 'TIOCGWINSZ' in scope
 82 |             return Size(ws)
 83 |         }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:82:25: error: missing argument label 'width:' in call
 80 |             var ws = winsize()
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
 82 |             return Size(ws)
    |                         `- error: missing argument label 'width:' in call
 83 |         }
 84 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:82:27: error: missing argument for parameter 'height' in call
 58 |
 59 |         /// Set the size for use with a pty.
 60 |         public init(width cols: UInt16, height rows: UInt16) {
    |                `- note: 'init(width:height:)' declared here
 61 |             self.size = winsize(ws_row: rows, ws_col: cols, ws_xpixel: 0, ws_ypixel: 0)
 62 |         }
    :
 80 |             var ws = winsize()
 81 |             try fromSyscall(ioctl(descriptor, UInt(TIOCGWINSZ), &ws))
 82 |             return Size(ws)
    |                           `- error: missing argument for parameter 'height' in call
 83 |         }
 84 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:25: error: cannot find 'openpty' in scope
 92 |         var ws = size.size
 93 |
 94 |         try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
    |                         `- error: cannot find 'openpty' in scope
 95 |         return (
 96 |             parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:50: error: 'nil' requires a contextual type
 92 |         var ws = size.size
 93 |
 94 |         try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
    |                                                  `- error: 'nil' requires a contextual type
 95 |         return (
 96 |             parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:94:55: error: 'nil' requires a contextual type
 92 |         var ws = size.size
 93 |
 94 |         try fromSyscall(openpty(&parent, &child, nil, nil, &ws))
    |                                                       `- error: 'nil' requires a contextual type
 95 |         return (
 96 |             parent: try Terminal(descriptor: parent, setInitState: false),
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:122:25: error: cannot find 'ioctl' in scope
120 |     public func resize(from pty: Terminal) throws {
121 |         var ws = try pty.size
122 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                         `- error: cannot find 'ioctl' in scope
123 |     }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:122:48: error: cannot find 'TIOCSWINSZ' in scope
120 |     public func resize(from pty: Terminal) throws {
121 |         var ws = try pty.size
122 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                                                `- error: cannot find 'TIOCSWINSZ' in scope
123 |     }
124 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:129:25: error: cannot find 'ioctl' in scope
127 |     public func resize(size: Size) throws {
128 |         var ws = size.size
129 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                         `- error: cannot find 'ioctl' in scope
130 |     }
131 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:129:48: error: cannot find 'TIOCSWINSZ' in scope
127 |     public func resize(size: Size) throws {
128 |         var ws = size.size
129 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                                                `- error: cannot find 'TIOCSWINSZ' in scope
130 |     }
131 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:137:25: error: cannot find 'ioctl' in scope
135 |     public func resize(width: UInt16, height: UInt16) throws {
136 |         var ws = Size(width: width, height: height)
137 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                         `- error: cannot find 'ioctl' in scope
138 |     }
139 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:137:48: error: cannot find 'TIOCSWINSZ' in scope
135 |     public func resize(width: UInt16, height: UInt16) throws {
136 |         var ws = Size(width: width, height: height)
137 |         try fromSyscall(ioctl(descriptor, UInt(TIOCSWINSZ), &ws))
    |                                                `- error: cannot find 'TIOCSWINSZ' in scope
138 |     }
139 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:145:9: error: cannot find 'cfmakeraw' in scope
143 |     public func setraw() throws {
144 |         var attr = try Self.getattr(descriptor)
145 |         cfmakeraw(&attr)
    |         `- error: cannot find 'cfmakeraw' in scope
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:146:39: error: cannot find 'tcflag_t' in scope
144 |         var attr = try Self.getattr(descriptor)
145 |         cfmakeraw(&attr)
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
    |                                       `- error: cannot find 'tcflag_t' in scope
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
148 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:146:48: error: cannot find 'OPOST' in scope
144 |         var attr = try Self.getattr(descriptor)
145 |         cfmakeraw(&attr)
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
    |                                                `- error: cannot find 'OPOST' in scope
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
148 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:147:25: error: cannot find 'tcsetattr' in scope
145 |         cfmakeraw(&attr)
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                         `- error: cannot find 'tcsetattr' in scope
148 |     }
149 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:147:47: error: cannot find 'TCSANOW' in scope
145 |         cfmakeraw(&attr)
146 |         attr.c_oflag = attr.c_oflag | tcflag_t(OPOST)
147 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                                               `- error: cannot find 'TCSANOW' in scope
148 |     }
149 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:154:26: error: cannot find 'tcflag_t' in scope
152 |     public func enableEcho() throws {
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
    |                          `- error: cannot find 'tcflag_t' in scope
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:154:35: error: cannot find 'ICRNL' in scope
152 |     public func enableEcho() throws {
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
    |                                   `- error: cannot find 'ICRNL' in scope
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:26: error: cannot find 'tcflag_t' in scope
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
    |                          `- error: cannot find 'tcflag_t' in scope
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:35: error: cannot find 'ICANON' in scope
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
    |                                   `- error: cannot find 'ICANON' in scope
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:155:44: error: cannot find 'ECHO' in scope
153 |         var attr = try Self.getattr(descriptor)
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
    |                                            `- error: cannot find 'ECHO' in scope
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
157 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:156:25: error: cannot find 'tcsetattr' in scope
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                         `- error: cannot find 'tcsetattr' in scope
157 |     }
158 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:156:47: error: cannot find 'TCSANOW' in scope
154 |         attr.c_iflag &= ~tcflag_t(ICRNL)
155 |         attr.c_lflag &= ~tcflag_t(ICANON | ECHO)
156 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                                               `- error: cannot find 'TCSANOW' in scope
157 |     }
158 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:163:26: error: cannot find 'tcflag_t' in scope
161 |     public func disableEcho() throws {
162 |         var attr = try Self.getattr(descriptor)
163 |         attr.c_lflag &= ~tcflag_t(ECHO)
    |                          `- error: cannot find 'tcflag_t' in scope
164 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
165 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:163:35: error: cannot find 'ECHO' in scope
161 |     public func disableEcho() throws {
162 |         var attr = try Self.getattr(descriptor)
163 |         attr.c_lflag &= ~tcflag_t(ECHO)
    |                                   `- error: cannot find 'ECHO' in scope
164 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
165 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:164:25: error: cannot find 'tcsetattr' in scope
162 |         var attr = try Self.getattr(descriptor)
163 |         attr.c_lflag &= ~tcflag_t(ECHO)
164 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                         `- error: cannot find 'tcsetattr' in scope
165 |     }
166 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:164:47: error: cannot find 'TCSANOW' in scope
162 |         var attr = try Self.getattr(descriptor)
163 |         attr.c_lflag &= ~tcflag_t(ECHO)
164 |         try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                                               `- error: cannot find 'TCSANOW' in scope
165 |     }
166 |
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:168:20: error: cannot find 'termios' in scope
166 |
167 |     private static func getattr(_ fd: Int32) throws -> termios {
168 |         var attr = termios()
    |                    `- error: cannot find 'termios' in scope
169 |         try fromSyscall(tcgetattr(fd, &attr))
170 |         return attr
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:169:25: error: cannot find 'tcgetattr' in scope
167 |     private static func getattr(_ fd: Int32) throws -> termios {
168 |         var attr = termios()
169 |         try fromSyscall(tcgetattr(fd, &attr))
    |                         `- error: cannot find 'tcgetattr' in scope
170 |         return attr
171 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:194:29: error: cannot find 'tcsetattr' in scope
192 |     public func reset() throws {
193 |         if var attr = initState {
194 |             try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                             `- error: cannot find 'tcsetattr' in scope
195 |         }
196 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:194:51: error: cannot find 'TCSANOW' in scope
192 |     public func reset() throws {
193 |         if var attr = initState {
194 |             try fromSyscall(tcsetattr(descriptor, TCSANOW, &attr))
    |                                                   `- error: cannot find 'TCSANOW' in scope
195 |         }
196 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/Terminal.swift:207:42: error: cannot find 'errno' in scope
205 | private func fromSyscall(_ status: Int32) throws {
206 |     guard status == 0 else {
207 |         throw POSIXError(.init(rawValue: errno)!)
    |                                          `- error: cannot find 'errno' in scope
208 |     }
209 | }
/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/URL+Extensions.swift:61:18: error: cannot find 'stat' in scope
59 |
60 |     public var isDirectory: Bool {
61 |         var st = stat()
   |                  `- error: cannot find 'stat' in scope
62 |         guard stat(self.path, &st) == 0 else { return false }
63 |         return (st.st_mode & S_IFMT) == S_IFDIR
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:62:15: error: cannot find 'stat' in scope
60 |     public var isDirectory: Bool {
61 |         var st = stat()
62 |         guard stat(self.path, &st) == 0 else { return false }
   |               `- error: cannot find 'stat' in scope
63 |         return (st.st_mode & S_IFMT) == S_IFDIR
64 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:63:30: error: cannot find 'S_IFMT' in scope
61 |         var st = stat()
62 |         guard stat(self.path, &st) == 0 else { return false }
63 |         return (st.st_mode & S_IFMT) == S_IFDIR
   |                              `- error: cannot find 'S_IFMT' in scope
64 |     }
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:63:41: error: cannot find 'S_IFDIR' in scope
61 |         var st = stat()
62 |         guard stat(self.path, &st) == 0 else { return false }
63 |         return (st.st_mode & S_IFMT) == S_IFDIR
   |                                         `- error: cannot find 'S_IFDIR' in scope
64 |     }
65 |
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:67:18: error: cannot find 'stat' in scope
65 |
66 |     public var isSymlink: Bool {
67 |         var st = stat()
   |                  `- error: cannot find 'stat' in scope
68 |         guard lstat(self.path, &st) == 0 else { return false }
69 |         return (st.st_mode & S_IFMT) == S_IFLNK
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:68:15: error: cannot find 'lstat' in scope
66 |     public var isSymlink: Bool {
67 |         var st = stat()
68 |         guard lstat(self.path, &st) == 0 else { return false }
   |               `- error: cannot find 'lstat' in scope
69 |         return (st.st_mode & S_IFMT) == S_IFLNK
70 |     }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:69:30: error: cannot find 'S_IFMT' in scope
67 |         var st = stat()
68 |         guard lstat(self.path, &st) == 0 else { return false }
69 |         return (st.st_mode & S_IFMT) == S_IFLNK
   |                              `- error: cannot find 'S_IFMT' in scope
70 |     }
71 | }
/host/spi-builder-workspace/Sources/ContainerizationOS/URL+Extensions.swift:69:41: error: cannot find 'S_IFLNK' in scope
67 |         var st = stat()
68 |         guard lstat(self.path, &st) == 0 else { return false }
69 |         return (st.st_mode & S_IFMT) == S_IFLNK
   |                                         `- error: cannot find 'S_IFLNK' in scope
70 |     }
71 | }
[857/1698] Compiling ssl_credential.cc
[857/1698] Compiling ssl_file.cc
[857/1698] Compiling ssl_key_share.cc
[857/1698] Compiling ssl_privkey.cc
[857/1698] Compiling ssl_lib.cc
[858/1698] Emitting module Configuration
BUILD FAILURE 6.2 android