The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SimpleSwiftServer, reference master (7c799e), with Swift 6.1 for Android on 29 May 2025 09:22:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Samasaur1/SimpleSwiftServer.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/Samasaur1/SimpleSwiftServer
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7c799e6 Bump flake inputs
Cloned https://github.com/Samasaur1/SimpleSwiftServer.git
Revision (git rev-parse @):
7c799e654425d64b304a8fa11bac4d5fb05b76ed
SUCCESS checkout https://github.com/Samasaur1/SimpleSwiftServer.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Samasaur1/SimpleSwiftServer.git
https://github.com/Samasaur1/SimpleSwiftServer.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swiftip",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Samasaur1/SwiftIP"
    },
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    },
    {
      "identity" : "swifter",
      "requirement" : {
        "exact" : [
          "1.4.5"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/httpswift/swifter"
    }
  ],
  "manifest_display_name" : "SimpleSwiftServer",
  "name" : "SimpleSwiftServer",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "server",
      "targets" : [
        "SimpleSwiftServer"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SimpleSwiftServer",
      "module_type" : "SwiftTarget",
      "name" : "SimpleSwiftServer",
      "path" : "Sources/SimpleSwiftServer",
      "product_dependencies" : [
        "ArgumentParser",
        "SwiftIP",
        "Swifter"
      ],
      "product_memberships" : [
        "server"
      ],
      "sources" : [
        "main.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/httpswift/swifter
Fetching https://github.com/Samasaur1/SwiftIP
Fetching https://github.com/apple/swift-argument-parser.git
[1/6050] Fetching swifter
[304/6345] Fetching swifter, swiftip
Fetched https://github.com/Samasaur1/SwiftIP from cache (0.33s)
[1634/6050] Fetching swifter
[4357/21429] Fetching swifter, swift-argument-parser
Fetched https://github.com/httpswift/swifter from cache (0.84s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.95s)
Computing version for https://github.com/httpswift/swifter
Computed https://github.com/httpswift/swifter at 1.4.5 (3.47s)
Computing version for https://github.com/Samasaur1/SwiftIP
Computed https://github.com/Samasaur1/SwiftIP at 2.2.2 (0.89s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 0.5.0 (2.42s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 0.5.0
Creating working copy for https://github.com/httpswift/swifter
Working copy of https://github.com/httpswift/swifter resolved at 1.4.5
Creating working copy for https://github.com/Samasaur1/SwiftIP
Working copy of https://github.com/Samasaur1/SwiftIP resolved at 2.2.2
Building for debugging...
[0/13] Write sources
[5/13] Write swift-version-24593BA9C3E375BF.txt
[7/36] Emitting module ArgumentParserToolInfo
[8/36] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/37] Wrapping AST for ArgumentParserToolInfo for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/71] Emitting module Swifter
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/HttpServerIO.swift:72:31: error: cannot find type 'in_port_t' in scope
 70 |
 71 |     @available(macOS 10.10, *)
 72 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 73 |         guard !self.operating else { return }
 74 |         stop()
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:16:50: error: cannot find type 'in_port_t' in scope
 14 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 15 |     ///       otherwise - in IPv6.
 16 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 17 |
 18 |         #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:16:120: error: cannot find 'SOMAXCONN' in scope
 14 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 15 |     ///       otherwise - in IPv6.
 16 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                                                                                        `- error: cannot find 'SOMAXCONN' in scope
 17 |
 18 |         #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:49:34: error: cannot find type 'in_port_t' in scope
 47 |     }
 48 |
 49 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 50 |         var addr = sockaddr_in()
 51 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:19:43: error: cannot find type 'FILE' in scope
 17 |     public class File {
 18 |
 19 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:21:53: error: cannot find type 'FILE' in scope
 19 |         let pointer: UnsafeMutablePointer<FILE>
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 22 |             self.pointer = pointer
 23 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:136:43: error: cannot find type 'stat' in scope
134 |     }
135 |
136 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
137 |         return try self.withCString({
138 |             var statBuffer = stat()
[12/71] Compiling ArgumentParser OptionGroup.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:19:43: error: cannot find type 'FILE' in scope
 17 |     public class File {
 18 |
 19 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:21:53: error: cannot find type 'FILE' in scope
 19 |         let pointer: UnsafeMutablePointer<FILE>
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 22 |             self.pointer = pointer
 23 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:136:43: error: cannot find type 'stat' in scope
134 |     }
135 |
136 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
137 |         return try self.withCString({
138 |             var statBuffer = stat()
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:45:39: error: cannot find 'errno' in scope
 43 |             }
 44 |             if ferror(self.pointer) != 0 {
 45 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 46 |             }
 47 |             throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:56:43: error: cannot find 'errno' in scope
 54 |             try data.withUnsafeBufferPointer {
 55 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
 56 |                     throw FileError.error(errno)
    |                                           `- error: cannot find 'errno' in scope
 57 |                 }
 58 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:55:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
 53 |             }
 54 |             try data.withUnsafeBufferPointer {
 55 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
    |                              |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
    |                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 56 |                     throw FileError.error(errno)
 57 |                 }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:62:30: error: cannot find 'getcwd' in scope
 60 |
 61 |         public static func currentWorkingDirectory() throws -> String {
 62 |             guard let path = getcwd(nil, 0) else {
    |                              `- error: cannot find 'getcwd' in scope
 63 |                 throw FileError.error(errno)
 64 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:62:37: error: 'nil' requires a contextual type
 60 |
 61 |         public static func currentWorkingDirectory() throws -> String {
 62 |             guard let path = getcwd(nil, 0) else {
    |                                     `- error: 'nil' requires a contextual type
 63 |                 throw FileError.error(errno)
 64 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:63:39: error: cannot find 'errno' in scope
 61 |         public static func currentWorkingDirectory() throws -> String {
 62 |             guard let path = getcwd(nil, 0) else {
 63 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 64 |             }
 65 |             return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:85:35: error: cannot find 'errno' in scope
 83 |     public func openFileForMode(_ path: String, _ mode: String) throws -> File {
 84 |         guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
 85 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
 86 |         }
 87 |         return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:102:39: error: cannot find 'S_IFMT' in scope
100 |         return try self.withStat {
101 |             if let stat = $0 {
102 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                       `- error: cannot find 'S_IFMT' in scope
103 |             }
104 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:102:49: error: cannot find 'S_IFDIR' in scope
100 |         return try self.withStat {
101 |             if let stat = $0 {
102 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                                 `- error: cannot find 'S_IFDIR' in scope
103 |             }
104 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:109:44: error: cannot find 'opendir' in scope
107 |
108 |     public func files() throws -> [String] {
109 |         guard let dir = self.withCString({ opendir($0) }) else {
    |                                            `- error: cannot find 'opendir' in scope
110 |             throw FileError.error(errno)
111 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:110:35: error: cannot find 'errno' in scope
108 |     public func files() throws -> [String] {
109 |         guard let dir = self.withCString({ opendir($0) }) else {
110 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
111 |         }
112 |         defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:112:17: error: cannot find 'closedir' in scope
110 |             throw FileError.error(errno)
111 |         }
112 |         defer { closedir(dir) }
    |                 `- error: cannot find 'closedir' in scope
113 |         var results = [String]()
114 |         while let ent = readdir(dir) {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:114:25: error: cannot find 'readdir' in scope
112 |         defer { closedir(dir) }
113 |         var results = [String]()
114 |         while let ent = readdir(dir) {
    |                         `- error: cannot find 'readdir' in scope
115 |             var name = ent.pointee.d_name
116 |             let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:138:30: error: cannot find 'stat' in scope
136 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
137 |         return try self.withCString({
138 |             var statBuffer = stat()
    |                              `- error: cannot find 'stat' in scope
139 |             if stat($0, &statBuffer) == 0 {
140 |                 return try closure(statBuffer)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:139:16: error: cannot find 'stat' in scope
137 |         return try self.withCString({
138 |             var statBuffer = stat()
139 |             if stat($0, &statBuffer) == 0 {
    |                `- error: cannot find 'stat' in scope
140 |                 return try closure(statBuffer)
141 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:142:16: error: cannot find 'errno' in scope
140 |                 return try closure(statBuffer)
141 |             }
142 |             if errno == ENOENT {
    |                `- error: cannot find 'errno' in scope
143 |                 return try closure(nil)
144 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:145:35: error: cannot find 'errno' in scope
143 |                 return try closure(nil)
144 |             }
145 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
146 |         })
147 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[13/71] Compiling ArgumentParser CommandConfiguration.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:19:43: error: cannot find type 'FILE' in scope
 17 |     public class File {
 18 |
 19 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:21:53: error: cannot find type 'FILE' in scope
 19 |         let pointer: UnsafeMutablePointer<FILE>
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 22 |             self.pointer = pointer
 23 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:136:43: error: cannot find type 'stat' in scope
134 |     }
135 |
136 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
137 |         return try self.withCString({
138 |             var statBuffer = stat()
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:45:39: error: cannot find 'errno' in scope
 43 |             }
 44 |             if ferror(self.pointer) != 0 {
 45 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 46 |             }
 47 |             throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:56:43: error: cannot find 'errno' in scope
 54 |             try data.withUnsafeBufferPointer {
 55 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
 56 |                     throw FileError.error(errno)
    |                                           `- error: cannot find 'errno' in scope
 57 |                 }
 58 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:55:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
 53 |             }
 54 |             try data.withUnsafeBufferPointer {
 55 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
    |                              |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
    |                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 56 |                     throw FileError.error(errno)
 57 |                 }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:62:30: error: cannot find 'getcwd' in scope
 60 |
 61 |         public static func currentWorkingDirectory() throws -> String {
 62 |             guard let path = getcwd(nil, 0) else {
    |                              `- error: cannot find 'getcwd' in scope
 63 |                 throw FileError.error(errno)
 64 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:62:37: error: 'nil' requires a contextual type
 60 |
 61 |         public static func currentWorkingDirectory() throws -> String {
 62 |             guard let path = getcwd(nil, 0) else {
    |                                     `- error: 'nil' requires a contextual type
 63 |                 throw FileError.error(errno)
 64 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:63:39: error: cannot find 'errno' in scope
 61 |         public static func currentWorkingDirectory() throws -> String {
 62 |             guard let path = getcwd(nil, 0) else {
 63 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 64 |             }
 65 |             return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:85:35: error: cannot find 'errno' in scope
 83 |     public func openFileForMode(_ path: String, _ mode: String) throws -> File {
 84 |         guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
 85 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
 86 |         }
 87 |         return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:102:39: error: cannot find 'S_IFMT' in scope
100 |         return try self.withStat {
101 |             if let stat = $0 {
102 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                       `- error: cannot find 'S_IFMT' in scope
103 |             }
104 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:102:49: error: cannot find 'S_IFDIR' in scope
100 |         return try self.withStat {
101 |             if let stat = $0 {
102 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                                 `- error: cannot find 'S_IFDIR' in scope
103 |             }
104 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:109:44: error: cannot find 'opendir' in scope
107 |
108 |     public func files() throws -> [String] {
109 |         guard let dir = self.withCString({ opendir($0) }) else {
    |                                            `- error: cannot find 'opendir' in scope
110 |             throw FileError.error(errno)
111 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:110:35: error: cannot find 'errno' in scope
108 |     public func files() throws -> [String] {
109 |         guard let dir = self.withCString({ opendir($0) }) else {
110 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
111 |         }
112 |         defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:112:17: error: cannot find 'closedir' in scope
110 |             throw FileError.error(errno)
111 |         }
112 |         defer { closedir(dir) }
    |                 `- error: cannot find 'closedir' in scope
113 |         var results = [String]()
114 |         while let ent = readdir(dir) {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:114:25: error: cannot find 'readdir' in scope
112 |         defer { closedir(dir) }
113 |         var results = [String]()
114 |         while let ent = readdir(dir) {
    |                         `- error: cannot find 'readdir' in scope
115 |             var name = ent.pointee.d_name
116 |             let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:138:30: error: cannot find 'stat' in scope
136 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
137 |         return try self.withCString({
138 |             var statBuffer = stat()
    |                              `- error: cannot find 'stat' in scope
139 |             if stat($0, &statBuffer) == 0 {
140 |                 return try closure(statBuffer)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:139:16: error: cannot find 'stat' in scope
137 |         return try self.withCString({
138 |             var statBuffer = stat()
139 |             if stat($0, &statBuffer) == 0 {
    |                `- error: cannot find 'stat' in scope
140 |                 return try closure(statBuffer)
141 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:142:16: error: cannot find 'errno' in scope
140 |                 return try closure(statBuffer)
141 |             }
142 |             if errno == ENOENT {
    |                `- error: cannot find 'errno' in scope
143 |                 return try closure(nil)
144 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:145:35: error: cannot find 'errno' in scope
143 |                 return try closure(nil)
144 |             }
145 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
146 |         })
147 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[14/73] Compiling ArgumentParser BashCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Errno.swift:13:55: error: cannot find 'errno' in scope
11 |
12 |     public class func description() -> String {
13 |         return String(cString: UnsafePointer(strerror(errno)))
   |                                                       `- error: cannot find 'errno' in scope
14 |     }
15 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[15/73] Compiling ArgumentParser CompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Errno.swift:13:55: error: cannot find 'errno' in scope
11 |
12 |     public class func description() -> String {
13 |         return String(cString: UnsafePointer(strerror(errno)))
   |                                                       `- error: cannot find 'errno' in scope
14 |     }
15 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[16/73] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Errno.swift:13:55: error: cannot find 'errno' in scope
11 |
12 |     public class func description() -> String {
13 |         return String(cString: UnsafePointer(strerror(errno)))
   |                                                       `- error: cannot find 'errno' in scope
14 |     }
15 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[17/73] Compiling ArgumentParser ParsableArgumentsValidation.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:49:34: error: cannot find type 'in_port_t' in scope
 47 |     }
 48 |
 49 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 50 |         var addr = sockaddr_in()
 51 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:50:20: error: cannot find 'sockaddr_in' in scope
 48 |
 49 |     public func port() throws -> in_port_t {
 50 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 51 |         return try withUnsafePointer(to: &addr) { pointer in
 52 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:66:20: error: cannot find 'sockaddr_in' in scope
 64 |
 65 |     public func isIPv4() throws -> Bool {
 66 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 67 |         return try withUnsafePointer(to: &addr) { pointer in
 68 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:68:46: error: cannot find type 'sockaddr_in' in scope
 66 |         var addr = sockaddr_in()
 67 |         return try withUnsafePointer(to: &addr) { pointer in
 68 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 69 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
 70 |                 throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:69:16: error: cannot find 'getsockname' in scope
 67 |         return try withUnsafePointer(to: &addr) { pointer in
 68 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
 69 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    |                `- error: cannot find 'getsockname' in scope
 70 |                 throw SocketError.getSockNameFailed(Errno.description())
 71 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:72:57: error: cannot find 'AF_INET' in scope
 70 |                 throw SocketError.getSockNameFailed(Errno.description())
 71 |             }
 72 |             return Int32(pointer.pointee.sin_family) == AF_INET
    |                                                         `- error: cannot find 'AF_INET' in scope
 73 |         }
 74 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:106:25: error: cannot find 'write' in scope
104 |                 let s = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
105 |             #else
106 |                 let s = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
    |                         `- error: cannot find 'write' in scope
107 |             #endif
108 |             if s <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:120:24: error: cannot find 'recv' in scope
118 |             let next = recv(self.socketFileDescriptor as Int32, &buffer, Int(buffer.count), Int32(MSG_NOSIGNAL))
119 |         #else
120 |             let next = recv(self.socketFileDescriptor as Int32, &buffer, Int(buffer.count), 0)
    |                        `- error: cannot find 'recv' in scope
121 |         #endif
122 |         if next <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:142:20: error: cannot find 'sockaddr' in scope
140 |
141 |     public func peername() throws -> String {
142 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                    `- error: cannot find 'sockaddr' in scope
143 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
144 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:142:72: error: cannot find type 'sockaddr' in scope
140 |
141 |     public func peername() throws -> String {
142 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                                                                        `- error: cannot find type 'sockaddr' in scope
143 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
144 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:143:12: error: cannot find 'getpeername' in scope
141 |     public func peername() throws -> String {
142 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
143 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
    |            `- error: cannot find 'getpeername' in scope
144 |             throw SocketError.getPeerNameFailed(Errno.description())
145 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:146:59: error: cannot find 'NI_MAXHOST' in scope
144 |             throw SocketError.getPeerNameFailed(Errno.description())
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                           `- error: cannot find 'NI_MAXHOST' in scope
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
148 |             throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:147:12: error: cannot find 'getnameinfo' in scope
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |            `- error: cannot find 'getnameinfo' in scope
148 |             throw SocketError.getNameInfoFailed(Errno.description())
149 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:147:86: error: cannot find 'NI_NUMERICHOST' in scope
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                                      `- error: cannot find 'NI_NUMERICHOST' in scope
148 |             throw SocketError.getNameInfoFailed(Errno.description())
149 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:147:78: error: 'nil' requires a contextual type
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                              `- error: 'nil' requires a contextual type
148 |             throw SocketError.getNameInfoFailed(Errno.description())
149 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:160:13: error: cannot find 'setsockopt' in scope
158 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
159 |             var no_sig_pipe: Int32 = 1
160 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |             `- error: cannot find 'setsockopt' in scope
161 |         #endif
162 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:160:32: error: cannot find 'SOL_SOCKET' in scope
158 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
159 |             var no_sig_pipe: Int32 = 1
160 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                `- error: cannot find 'SOL_SOCKET' in scope
161 |         #endif
162 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:160:44: error: cannot find 'SO_NOSIGPIPE' in scope
158 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
159 |             var no_sig_pipe: Int32 = 1
160 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                            `- error: cannot find 'SO_NOSIGPIPE' in scope
161 |         #endif
162 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:168:21: error: cannot find 'Darwin' in scope
166 |             let _ = Glibc.close(socket)
167 |         #else
168 |             let _ = Darwin.close(socket)
    |                     `- error: cannot find 'Darwin' in scope
169 |         #endif
170 |     }
[18/73] Compiling ArgumentParser ParsableCommand.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:49:34: error: cannot find type 'in_port_t' in scope
 47 |     }
 48 |
 49 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 50 |         var addr = sockaddr_in()
 51 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:50:20: error: cannot find 'sockaddr_in' in scope
 48 |
 49 |     public func port() throws -> in_port_t {
 50 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 51 |         return try withUnsafePointer(to: &addr) { pointer in
 52 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:66:20: error: cannot find 'sockaddr_in' in scope
 64 |
 65 |     public func isIPv4() throws -> Bool {
 66 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 67 |         return try withUnsafePointer(to: &addr) { pointer in
 68 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:68:46: error: cannot find type 'sockaddr_in' in scope
 66 |         var addr = sockaddr_in()
 67 |         return try withUnsafePointer(to: &addr) { pointer in
 68 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 69 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
 70 |                 throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:69:16: error: cannot find 'getsockname' in scope
 67 |         return try withUnsafePointer(to: &addr) { pointer in
 68 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
 69 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    |                `- error: cannot find 'getsockname' in scope
 70 |                 throw SocketError.getSockNameFailed(Errno.description())
 71 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:72:57: error: cannot find 'AF_INET' in scope
 70 |                 throw SocketError.getSockNameFailed(Errno.description())
 71 |             }
 72 |             return Int32(pointer.pointee.sin_family) == AF_INET
    |                                                         `- error: cannot find 'AF_INET' in scope
 73 |         }
 74 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:106:25: error: cannot find 'write' in scope
104 |                 let s = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
105 |             #else
106 |                 let s = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
    |                         `- error: cannot find 'write' in scope
107 |             #endif
108 |             if s <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:120:24: error: cannot find 'recv' in scope
118 |             let next = recv(self.socketFileDescriptor as Int32, &buffer, Int(buffer.count), Int32(MSG_NOSIGNAL))
119 |         #else
120 |             let next = recv(self.socketFileDescriptor as Int32, &buffer, Int(buffer.count), 0)
    |                        `- error: cannot find 'recv' in scope
121 |         #endif
122 |         if next <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:142:20: error: cannot find 'sockaddr' in scope
140 |
141 |     public func peername() throws -> String {
142 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                    `- error: cannot find 'sockaddr' in scope
143 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
144 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:142:72: error: cannot find type 'sockaddr' in scope
140 |
141 |     public func peername() throws -> String {
142 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                                                                        `- error: cannot find type 'sockaddr' in scope
143 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
144 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:143:12: error: cannot find 'getpeername' in scope
141 |     public func peername() throws -> String {
142 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
143 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
    |            `- error: cannot find 'getpeername' in scope
144 |             throw SocketError.getPeerNameFailed(Errno.description())
145 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:146:59: error: cannot find 'NI_MAXHOST' in scope
144 |             throw SocketError.getPeerNameFailed(Errno.description())
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                           `- error: cannot find 'NI_MAXHOST' in scope
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
148 |             throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:147:12: error: cannot find 'getnameinfo' in scope
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |            `- error: cannot find 'getnameinfo' in scope
148 |             throw SocketError.getNameInfoFailed(Errno.description())
149 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:147:86: error: cannot find 'NI_NUMERICHOST' in scope
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                                      `- error: cannot find 'NI_NUMERICHOST' in scope
148 |             throw SocketError.getNameInfoFailed(Errno.description())
149 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:147:78: error: 'nil' requires a contextual type
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                              `- error: 'nil' requires a contextual type
148 |             throw SocketError.getNameInfoFailed(Errno.description())
149 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:160:13: error: cannot find 'setsockopt' in scope
158 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
159 |             var no_sig_pipe: Int32 = 1
160 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |             `- error: cannot find 'setsockopt' in scope
161 |         #endif
162 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:160:32: error: cannot find 'SOL_SOCKET' in scope
158 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
159 |             var no_sig_pipe: Int32 = 1
160 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                `- error: cannot find 'SOL_SOCKET' in scope
161 |         #endif
162 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:160:44: error: cannot find 'SO_NOSIGPIPE' in scope
158 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
159 |             var no_sig_pipe: Int32 = 1
160 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                            `- error: cannot find 'SO_NOSIGPIPE' in scope
161 |         #endif
162 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:168:21: error: cannot find 'Darwin' in scope
166 |             let _ = Glibc.close(socket)
167 |         #else
168 |             let _ = Darwin.close(socket)
    |                     `- error: cannot find 'Darwin' in scope
169 |         #endif
170 |     }
[19/73] Compiling ArgumentParser ZshCompletionsGenerator.swift
[20/73] Compiling ArgumentParser Argument.swift
[21/73] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[23/73] Compiling ArgumentParser CompletionKind.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[24/73] Compiling ArgumentParser Errors.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[25/73] Compiling ArgumentParser Flag.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[26/73] Compiling ArgumentParser NameSpecification.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[27/77] Emitting module ArgumentParser
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
error: emit-module command failed with exit code 1 (use -v to see invocation)
[33/77] Emitting module SwiftIP
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:8:11: error: cannot find type 'sockaddr' in scope
  6 |
  7 | #if !os(macOS)
  8 | extension sockaddr {
    |           `- error: cannot find type 'sockaddr' in scope
  9 |     var sa_len: Int {
 10 |         switch Int32(sa_family) {
[34/77] Compiling SwiftIP SwiftIP.swift
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:8:11: error: cannot find type 'sockaddr' in scope
  6 |
  7 | #if !os(macOS)
  8 | extension sockaddr {
    |           `- error: cannot find type 'sockaddr' in scope
  9 |     var sa_len: Int {
 10 |         switch Int32(sa_family) {
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:67:43: error: cannot find type 'ifaddrs' in scope
 65 |
 66 |         // Get list of all interfaces on the local machine:
 67 |         var ifaddr : UnsafeMutablePointer<ifaddrs>? = nil
    |                                           `- error: cannot find type 'ifaddrs' in scope
 68 |         if getifaddrs(&ifaddr) == 0 {
 69 |
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:68:12: error: cannot find 'getifaddrs' in scope
 66 |         // Get list of all interfaces on the local machine:
 67 |         var ifaddr : UnsafeMutablePointer<ifaddrs>? = nil
 68 |         if getifaddrs(&ifaddr) == 0 {
    |            `- error: cannot find 'getifaddrs' in scope
 69 |
 70 |             // For each interface ...
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:84:30: error: cannot find 'IFF_UP' in scope
 82 |
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
    |                              `- error: cannot find 'IFF_UP' in scope
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
 86 |
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:84:37: error: cannot find 'IFF_RUNNING' in scope
 82 |
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
    |                                     `- error: cannot find 'IFF_RUNNING' in scope
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
 86 |
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:84:49: error: cannot find 'IFF_LOOPBACK' in scope
 82 |
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
    |                                                 `- error: cannot find 'IFF_LOOPBACK' in scope
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
 86 |
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:84:68: error: cannot find 'IFF_UP' in scope
 82 |
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
    |                                                                    `- error: cannot find 'IFF_UP' in scope
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
 86 |
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:84:75: error: cannot find 'IFF_RUNNING' in scope
 82 |
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
    |                                                                           `- error: cannot find 'IFF_RUNNING' in scope
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
 86 |
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:85:67: error: cannot find 'AF_INET' in scope
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
    |                                                                   `- error: cannot find 'AF_INET' in scope
 86 |
 87 |                         // Convert interface address to a human readable string:
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:85:77: error: cannot find 'AF_INET6' in scope
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
    |                                                                             `- error: cannot find 'AF_INET6' in scope
 86 |
 87 |                         // Convert interface address to a human readable string:
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:88:73: error: cannot find 'NI_MAXHOST' in scope
 86 |
 87 |                         // Convert interface address to a human readable string:
 88 |                         var hostname = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                                         `- error: cannot find 'NI_MAXHOST' in scope
 89 |                         if (getnameinfo(&addr, socklen_t(addr.sa_len), &hostname, socklen_t(hostname.count),
 90 |                                         nil, socklen_t(0), NI_NUMERICHOST) == 0) {
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:89:29: error: cannot find 'getnameinfo' in scope
 87 |                         // Convert interface address to a human readable string:
 88 |                         var hostname = [CChar](repeating: 0, count: Int(NI_MAXHOST))
 89 |                         if (getnameinfo(&addr, socklen_t(addr.sa_len), &hostname, socklen_t(hostname.count),
    |                             `- error: cannot find 'getnameinfo' in scope
 90 |                                         nil, socklen_t(0), NI_NUMERICHOST) == 0) {
 91 |                             //                        if let address = String(cString: hostname) {
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:90:60: error: cannot find 'NI_NUMERICHOST' in scope
 88 |                         var hostname = [CChar](repeating: 0, count: Int(NI_MAXHOST))
 89 |                         if (getnameinfo(&addr, socklen_t(addr.sa_len), &hostname, socklen_t(hostname.count),
 90 |                                         nil, socklen_t(0), NI_NUMERICHOST) == 0) {
    |                                                            `- error: cannot find 'NI_NUMERICHOST' in scope
 91 |                             //                        if let address = String(cString: hostname) {
 92 |                             //                            addresses.append(address)
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:90:41: error: 'nil' requires a contextual type
 88 |                         var hostname = [CChar](repeating: 0, count: Int(NI_MAXHOST))
 89 |                         if (getnameinfo(&addr, socklen_t(addr.sa_len), &hostname, socklen_t(hostname.count),
 90 |                                         nil, socklen_t(0), NI_NUMERICHOST) == 0) {
    |                                         `- error: 'nil' requires a contextual type
 91 |                             //                        if let address = String(cString: hostname) {
 92 |                             //                            addresses.append(address)
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:100:13: error: cannot find 'freeifaddrs' in scope
 98 |                 ptr = pointer.pointee.ifa_next
 99 |             }
100 |             freeifaddrs(ifaddr)
    |             `- error: cannot find 'freeifaddrs' in scope
101 |         }
102 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 |           height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 |   var w = winsize()
    |           `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 |   // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |             `- error: cannot find 'ioctl' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |                   `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |                                  `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/8] Write swift-version-24593BA9C3E375BF.txt
[2/31] Compiling Swifter DemoServer.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Errno.swift:13:55: error: cannot find 'errno' in scope
11 |
12 |     public class func description() -> String {
13 |         return String(cString: UnsafePointer(strerror(errno)))
   |                                                       `- error: cannot find 'errno' in scope
14 |     }
15 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[3/31] Compiling Swifter Errno.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Errno.swift:13:55: error: cannot find 'errno' in scope
11 |
12 |     public class func description() -> String {
13 |         return String(cString: UnsafePointer(strerror(errno)))
   |                                                       `- error: cannot find 'errno' in scope
14 |     }
15 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[4/31] Compiling Swifter Files.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Errno.swift:13:55: error: cannot find 'errno' in scope
11 |
12 |     public class func description() -> String {
13 |         return String(cString: UnsafePointer(strerror(errno)))
   |                                                       `- error: cannot find 'errno' in scope
14 |     }
15 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[5/31] Emitting module ArgumentParserToolInfo
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/33] Emitting module Swifter
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/HttpServerIO.swift:72:31: error: cannot find type 'in_port_t' in scope
 70 |
 71 |     @available(macOS 10.10, *)
 72 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 73 |         guard !self.operating else { return }
 74 |         stop()
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:16:50: error: cannot find type 'in_port_t' in scope
 14 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 15 |     ///       otherwise - in IPv6.
 16 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 17 |
 18 |         #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:16:120: error: cannot find 'SOMAXCONN' in scope
 14 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 15 |     ///       otherwise - in IPv6.
 16 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                                                                                        `- error: cannot find 'SOMAXCONN' in scope
 17 |
 18 |         #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:49:34: error: cannot find type 'in_port_t' in scope
 47 |     }
 48 |
 49 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 50 |         var addr = sockaddr_in()
 51 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:19:43: error: cannot find type 'FILE' in scope
 17 |     public class File {
 18 |
 19 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:21:53: error: cannot find type 'FILE' in scope
 19 |         let pointer: UnsafeMutablePointer<FILE>
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 22 |             self.pointer = pointer
 23 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:136:43: error: cannot find type 'stat' in scope
134 |     }
135 |
136 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
137 |         return try self.withCString({
138 |             var statBuffer = stat()
[7/33] Compiling Swifter String+File.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:19:43: error: cannot find type 'FILE' in scope
 17 |     public class File {
 18 |
 19 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:21:53: error: cannot find type 'FILE' in scope
 19 |         let pointer: UnsafeMutablePointer<FILE>
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 22 |             self.pointer = pointer
 23 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:136:43: error: cannot find type 'stat' in scope
134 |     }
135 |
136 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
137 |         return try self.withCString({
138 |             var statBuffer = stat()
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:45:39: error: cannot find 'errno' in scope
 43 |             }
 44 |             if ferror(self.pointer) != 0 {
 45 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 46 |             }
 47 |             throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:56:43: error: cannot find 'errno' in scope
 54 |             try data.withUnsafeBufferPointer {
 55 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
 56 |                     throw FileError.error(errno)
    |                                           `- error: cannot find 'errno' in scope
 57 |                 }
 58 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:55:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
 53 |             }
 54 |             try data.withUnsafeBufferPointer {
 55 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
    |                              |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
    |                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 56 |                     throw FileError.error(errno)
 57 |                 }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:62:30: error: cannot find 'getcwd' in scope
 60 |
 61 |         public static func currentWorkingDirectory() throws -> String {
 62 |             guard let path = getcwd(nil, 0) else {
    |                              `- error: cannot find 'getcwd' in scope
 63 |                 throw FileError.error(errno)
 64 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:62:37: error: 'nil' requires a contextual type
 60 |
 61 |         public static func currentWorkingDirectory() throws -> String {
 62 |             guard let path = getcwd(nil, 0) else {
    |                                     `- error: 'nil' requires a contextual type
 63 |                 throw FileError.error(errno)
 64 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:63:39: error: cannot find 'errno' in scope
 61 |         public static func currentWorkingDirectory() throws -> String {
 62 |             guard let path = getcwd(nil, 0) else {
 63 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 64 |             }
 65 |             return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:85:35: error: cannot find 'errno' in scope
 83 |     public func openFileForMode(_ path: String, _ mode: String) throws -> File {
 84 |         guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
 85 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
 86 |         }
 87 |         return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:102:39: error: cannot find 'S_IFMT' in scope
100 |         return try self.withStat {
101 |             if let stat = $0 {
102 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                       `- error: cannot find 'S_IFMT' in scope
103 |             }
104 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:102:49: error: cannot find 'S_IFDIR' in scope
100 |         return try self.withStat {
101 |             if let stat = $0 {
102 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                                 `- error: cannot find 'S_IFDIR' in scope
103 |             }
104 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:109:44: error: cannot find 'opendir' in scope
107 |
108 |     public func files() throws -> [String] {
109 |         guard let dir = self.withCString({ opendir($0) }) else {
    |                                            `- error: cannot find 'opendir' in scope
110 |             throw FileError.error(errno)
111 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:110:35: error: cannot find 'errno' in scope
108 |     public func files() throws -> [String] {
109 |         guard let dir = self.withCString({ opendir($0) }) else {
110 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
111 |         }
112 |         defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:112:17: error: cannot find 'closedir' in scope
110 |             throw FileError.error(errno)
111 |         }
112 |         defer { closedir(dir) }
    |                 `- error: cannot find 'closedir' in scope
113 |         var results = [String]()
114 |         while let ent = readdir(dir) {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:114:25: error: cannot find 'readdir' in scope
112 |         defer { closedir(dir) }
113 |         var results = [String]()
114 |         while let ent = readdir(dir) {
    |                         `- error: cannot find 'readdir' in scope
115 |             var name = ent.pointee.d_name
116 |             let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:138:30: error: cannot find 'stat' in scope
136 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
137 |         return try self.withCString({
138 |             var statBuffer = stat()
    |                              `- error: cannot find 'stat' in scope
139 |             if stat($0, &statBuffer) == 0 {
140 |                 return try closure(statBuffer)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:139:16: error: cannot find 'stat' in scope
137 |         return try self.withCString({
138 |             var statBuffer = stat()
139 |             if stat($0, &statBuffer) == 0 {
    |                `- error: cannot find 'stat' in scope
140 |                 return try closure(statBuffer)
141 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:142:16: error: cannot find 'errno' in scope
140 |                 return try closure(statBuffer)
141 |             }
142 |             if errno == ENOENT {
    |                `- error: cannot find 'errno' in scope
143 |                 return try closure(nil)
144 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:145:35: error: cannot find 'errno' in scope
143 |                 return try closure(nil)
144 |             }
145 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
146 |         })
147 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[8/33] Compiling Swifter String+Misc.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:19:43: error: cannot find type 'FILE' in scope
 17 |     public class File {
 18 |
 19 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:21:53: error: cannot find type 'FILE' in scope
 19 |         let pointer: UnsafeMutablePointer<FILE>
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
    |                                                     `- error: cannot find type 'FILE' in scope
 22 |             self.pointer = pointer
 23 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:136:43: error: cannot find type 'stat' in scope
134 |     }
135 |
136 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
    |                                           `- error: cannot find type 'stat' in scope
137 |         return try self.withCString({
138 |             var statBuffer = stat()
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:45:39: error: cannot find 'errno' in scope
 43 |             }
 44 |             if ferror(self.pointer) != 0 {
 45 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 46 |             }
 47 |             throw FileError.error(0)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:56:43: error: cannot find 'errno' in scope
 54 |             try data.withUnsafeBufferPointer {
 55 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
 56 |                     throw FileError.error(errno)
    |                                           `- error: cannot find 'errno' in scope
 57 |                 }
 58 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:55:30: error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
 53 |             }
 54 |             try data.withUnsafeBufferPointer {
 55 |                 if fwrite($0.baseAddress, 1, data.count, self.pointer) != data.count {
    |                              |- error: value of optional type 'UnsafePointer<UInt8>?' must be unwrapped to a value of type 'UnsafePointer<UInt8>'
    |                              |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
    |                              `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
 56 |                     throw FileError.error(errno)
 57 |                 }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:62:30: error: cannot find 'getcwd' in scope
 60 |
 61 |         public static func currentWorkingDirectory() throws -> String {
 62 |             guard let path = getcwd(nil, 0) else {
    |                              `- error: cannot find 'getcwd' in scope
 63 |                 throw FileError.error(errno)
 64 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:62:37: error: 'nil' requires a contextual type
 60 |
 61 |         public static func currentWorkingDirectory() throws -> String {
 62 |             guard let path = getcwd(nil, 0) else {
    |                                     `- error: 'nil' requires a contextual type
 63 |                 throw FileError.error(errno)
 64 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:63:39: error: cannot find 'errno' in scope
 61 |         public static func currentWorkingDirectory() throws -> String {
 62 |             guard let path = getcwd(nil, 0) else {
 63 |                 throw FileError.error(errno)
    |                                       `- error: cannot find 'errno' in scope
 64 |             }
 65 |             return String(cString: path)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:85:35: error: cannot find 'errno' in scope
 83 |     public func openFileForMode(_ path: String, _ mode: String) throws -> File {
 84 |         guard let file = path.withCString({ pathPointer in mode.withCString({ fopen(pathPointer, $0) }) }) else {
 85 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
 86 |         }
 87 |         return File(file)
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:102:39: error: cannot find 'S_IFMT' in scope
100 |         return try self.withStat {
101 |             if let stat = $0 {
102 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                       `- error: cannot find 'S_IFMT' in scope
103 |             }
104 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:102:49: error: cannot find 'S_IFDIR' in scope
100 |         return try self.withStat {
101 |             if let stat = $0 {
102 |                 return stat.st_mode & S_IFMT == S_IFDIR
    |                                                 `- error: cannot find 'S_IFDIR' in scope
103 |             }
104 |             return false
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:109:44: error: cannot find 'opendir' in scope
107 |
108 |     public func files() throws -> [String] {
109 |         guard let dir = self.withCString({ opendir($0) }) else {
    |                                            `- error: cannot find 'opendir' in scope
110 |             throw FileError.error(errno)
111 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:110:35: error: cannot find 'errno' in scope
108 |     public func files() throws -> [String] {
109 |         guard let dir = self.withCString({ opendir($0) }) else {
110 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
111 |         }
112 |         defer { closedir(dir) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:112:17: error: cannot find 'closedir' in scope
110 |             throw FileError.error(errno)
111 |         }
112 |         defer { closedir(dir) }
    |                 `- error: cannot find 'closedir' in scope
113 |         var results = [String]()
114 |         while let ent = readdir(dir) {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:114:25: error: cannot find 'readdir' in scope
112 |         defer { closedir(dir) }
113 |         var results = [String]()
114 |         while let ent = readdir(dir) {
    |                         `- error: cannot find 'readdir' in scope
115 |             var name = ent.pointee.d_name
116 |             let fileName = withUnsafePointer(to: &name) { (ptr) -> String? in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:138:30: error: cannot find 'stat' in scope
136 |     private func withStat<T>(_ closure: ((stat?) throws -> T)) throws -> T {
137 |         return try self.withCString({
138 |             var statBuffer = stat()
    |                              `- error: cannot find 'stat' in scope
139 |             if stat($0, &statBuffer) == 0 {
140 |                 return try closure(statBuffer)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:139:16: error: cannot find 'stat' in scope
137 |         return try self.withCString({
138 |             var statBuffer = stat()
139 |             if stat($0, &statBuffer) == 0 {
    |                `- error: cannot find 'stat' in scope
140 |                 return try closure(statBuffer)
141 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:142:16: error: cannot find 'errno' in scope
140 |                 return try closure(statBuffer)
141 |             }
142 |             if errno == ENOENT {
    |                `- error: cannot find 'errno' in scope
143 |                 return try closure(nil)
144 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:145:35: error: cannot find 'errno' in scope
143 |                 return try closure(nil)
144 |             }
145 |             throw FileError.error(errno)
    |                                   `- error: cannot find 'errno' in scope
146 |         })
147 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[9/33] Compiling ArgumentParserToolInfo ToolInfo.swift
[10/34] Compiling Swifter HttpRouter.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/HttpServerIO.swift:72:31: error: cannot find type 'in_port_t' in scope
 70 |
 71 |     @available(macOS 10.10, *)
 72 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 73 |         guard !self.operating else { return }
 74 |         stop()
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 35 |         set(state) {
 36 |             #if !os(Linux)
 37 |             OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
    |             `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 38 |             #else
 39 |             //TODO - hehe :)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:49:34: error: cannot find type 'in_port_t' in scope
 47 |     }
 48 |
 49 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 50 |         var addr = sockaddr_in()
 51 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/HttpServerIO.swift:77:70: error: cannot find 'SOMAXCONN' in scope
 75 |         self.state = .starting
 76 |         let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
 77 |         self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
    |                                                                      `- error: cannot find 'SOMAXCONN' in scope
 78 |         self.state = .running
 79 |         DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:16:50: error: cannot find type 'in_port_t' in scope
 14 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 15 |     ///       otherwise - in IPv6.
 16 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 17 |
 18 |         #if os(Linux)
[11/34] Compiling Swifter HttpServer.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/HttpServerIO.swift:72:31: error: cannot find type 'in_port_t' in scope
 70 |
 71 |     @available(macOS 10.10, *)
 72 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 73 |         guard !self.operating else { return }
 74 |         stop()
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 35 |         set(state) {
 36 |             #if !os(Linux)
 37 |             OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
    |             `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 38 |             #else
 39 |             //TODO - hehe :)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:49:34: error: cannot find type 'in_port_t' in scope
 47 |     }
 48 |
 49 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 50 |         var addr = sockaddr_in()
 51 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/HttpServerIO.swift:77:70: error: cannot find 'SOMAXCONN' in scope
 75 |         self.state = .starting
 76 |         let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
 77 |         self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
    |                                                                      `- error: cannot find 'SOMAXCONN' in scope
 78 |         self.state = .running
 79 |         DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:16:50: error: cannot find type 'in_port_t' in scope
 14 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 15 |     ///       otherwise - in IPv6.
 16 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 17 |
 18 |         #if os(Linux)
[12/34] Compiling Swifter HttpServerIO.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/HttpServerIO.swift:72:31: error: cannot find type 'in_port_t' in scope
 70 |
 71 |     @available(macOS 10.10, *)
 72 |     public func start(_ port: in_port_t = 8080, forceIPv4: Bool = false, priority: DispatchQoS.QoSClass = DispatchQoS.QoSClass.background) throws {
    |                               `- error: cannot find type 'in_port_t' in scope
 73 |         guard !self.operating else { return }
 74 |         stop()
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/HttpServerIO.swift:37:13: error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 35 |         set(state) {
 36 |             #if !os(Linux)
 37 |             OSAtomicCompareAndSwapInt(self.state.rawValue, state.rawValue, &stateValue)
    |             `- error: cannot find 'OSAtomicCompareAndSwapInt' in scope
 38 |             #else
 39 |             //TODO - hehe :)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:49:34: error: cannot find type 'in_port_t' in scope
 47 |     }
 48 |
 49 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 50 |         var addr = sockaddr_in()
 51 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/HttpServerIO.swift:77:70: error: cannot find 'SOMAXCONN' in scope
 75 |         self.state = .starting
 76 |         let address = forceIPv4 ? listenAddressIPv4 : listenAddressIPv6
 77 |         self.socket = try Socket.tcpSocketForListen(port, forceIPv4, SOMAXCONN, address)
    |                                                                      `- error: cannot find 'SOMAXCONN' in scope
 78 |         self.state = .running
 79 |         DispatchQueue.global(qos: priority).async { [weak self] in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:16:50: error: cannot find type 'in_port_t' in scope
 14 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 15 |     ///       otherwise - in IPv6.
 16 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 17 |
 18 |         #if os(Linux)
[14/34] Compiling Swifter Socket.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:49:34: error: cannot find type 'in_port_t' in scope
 47 |     }
 48 |
 49 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 50 |         var addr = sockaddr_in()
 51 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:50:20: error: cannot find 'sockaddr_in' in scope
 48 |
 49 |     public func port() throws -> in_port_t {
 50 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 51 |         return try withUnsafePointer(to: &addr) { pointer in
 52 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:66:20: error: cannot find 'sockaddr_in' in scope
 64 |
 65 |     public func isIPv4() throws -> Bool {
 66 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 67 |         return try withUnsafePointer(to: &addr) { pointer in
 68 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:68:46: error: cannot find type 'sockaddr_in' in scope
 66 |         var addr = sockaddr_in()
 67 |         return try withUnsafePointer(to: &addr) { pointer in
 68 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 69 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
 70 |                 throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:69:16: error: cannot find 'getsockname' in scope
 67 |         return try withUnsafePointer(to: &addr) { pointer in
 68 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
 69 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    |                `- error: cannot find 'getsockname' in scope
 70 |                 throw SocketError.getSockNameFailed(Errno.description())
 71 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:72:57: error: cannot find 'AF_INET' in scope
 70 |                 throw SocketError.getSockNameFailed(Errno.description())
 71 |             }
 72 |             return Int32(pointer.pointee.sin_family) == AF_INET
    |                                                         `- error: cannot find 'AF_INET' in scope
 73 |         }
 74 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:106:25: error: cannot find 'write' in scope
104 |                 let s = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
105 |             #else
106 |                 let s = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
    |                         `- error: cannot find 'write' in scope
107 |             #endif
108 |             if s <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:120:24: error: cannot find 'recv' in scope
118 |             let next = recv(self.socketFileDescriptor as Int32, &buffer, Int(buffer.count), Int32(MSG_NOSIGNAL))
119 |         #else
120 |             let next = recv(self.socketFileDescriptor as Int32, &buffer, Int(buffer.count), 0)
    |                        `- error: cannot find 'recv' in scope
121 |         #endif
122 |         if next <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:142:20: error: cannot find 'sockaddr' in scope
140 |
141 |     public func peername() throws -> String {
142 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                    `- error: cannot find 'sockaddr' in scope
143 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
144 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:142:72: error: cannot find type 'sockaddr' in scope
140 |
141 |     public func peername() throws -> String {
142 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                                                                        `- error: cannot find type 'sockaddr' in scope
143 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
144 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:143:12: error: cannot find 'getpeername' in scope
141 |     public func peername() throws -> String {
142 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
143 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
    |            `- error: cannot find 'getpeername' in scope
144 |             throw SocketError.getPeerNameFailed(Errno.description())
145 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:146:59: error: cannot find 'NI_MAXHOST' in scope
144 |             throw SocketError.getPeerNameFailed(Errno.description())
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                           `- error: cannot find 'NI_MAXHOST' in scope
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
148 |             throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:147:12: error: cannot find 'getnameinfo' in scope
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |            `- error: cannot find 'getnameinfo' in scope
148 |             throw SocketError.getNameInfoFailed(Errno.description())
149 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:147:86: error: cannot find 'NI_NUMERICHOST' in scope
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                                      `- error: cannot find 'NI_NUMERICHOST' in scope
148 |             throw SocketError.getNameInfoFailed(Errno.description())
149 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:147:78: error: 'nil' requires a contextual type
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                              `- error: 'nil' requires a contextual type
148 |             throw SocketError.getNameInfoFailed(Errno.description())
149 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:160:13: error: cannot find 'setsockopt' in scope
158 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
159 |             var no_sig_pipe: Int32 = 1
160 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |             `- error: cannot find 'setsockopt' in scope
161 |         #endif
162 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:160:32: error: cannot find 'SOL_SOCKET' in scope
158 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
159 |             var no_sig_pipe: Int32 = 1
160 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                `- error: cannot find 'SOL_SOCKET' in scope
161 |         #endif
162 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:160:44: error: cannot find 'SO_NOSIGPIPE' in scope
158 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
159 |             var no_sig_pipe: Int32 = 1
160 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                            `- error: cannot find 'SO_NOSIGPIPE' in scope
161 |         #endif
162 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:168:21: error: cannot find 'Darwin' in scope
166 |             let _ = Glibc.close(socket)
167 |         #else
168 |             let _ = Darwin.close(socket)
    |                     `- error: cannot find 'Darwin' in scope
169 |         #endif
170 |     }
[15/34] Compiling Swifter String+BASE64.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:49:34: error: cannot find type 'in_port_t' in scope
 47 |     }
 48 |
 49 |     public func port() throws -> in_port_t {
    |                                  `- error: cannot find type 'in_port_t' in scope
 50 |         var addr = sockaddr_in()
 51 |         return try withUnsafePointer(to: &addr) { pointer in
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:50:20: error: cannot find 'sockaddr_in' in scope
 48 |
 49 |     public func port() throws -> in_port_t {
 50 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 51 |         return try withUnsafePointer(to: &addr) { pointer in
 52 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:66:20: error: cannot find 'sockaddr_in' in scope
 64 |
 65 |     public func isIPv4() throws -> Bool {
 66 |         var addr = sockaddr_in()
    |                    `- error: cannot find 'sockaddr_in' in scope
 67 |         return try withUnsafePointer(to: &addr) { pointer in
 68 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:68:46: error: cannot find type 'sockaddr_in' in scope
 66 |         var addr = sockaddr_in()
 67 |         return try withUnsafePointer(to: &addr) { pointer in
 68 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
    |                                              `- error: cannot find type 'sockaddr_in' in scope
 69 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
 70 |                 throw SocketError.getSockNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:69:16: error: cannot find 'getsockname' in scope
 67 |         return try withUnsafePointer(to: &addr) { pointer in
 68 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
 69 |             if getsockname(socketFileDescriptor, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    |                `- error: cannot find 'getsockname' in scope
 70 |                 throw SocketError.getSockNameFailed(Errno.description())
 71 |             }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:72:57: error: cannot find 'AF_INET' in scope
 70 |                 throw SocketError.getSockNameFailed(Errno.description())
 71 |             }
 72 |             return Int32(pointer.pointee.sin_family) == AF_INET
    |                                                         `- error: cannot find 'AF_INET' in scope
 73 |         }
 74 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:106:25: error: cannot find 'write' in scope
104 |                 let s = send(self.socketFileDescriptor, pointer + sent, Int(length - sent), Int32(MSG_NOSIGNAL))
105 |             #else
106 |                 let s = write(self.socketFileDescriptor, pointer + sent, Int(length - sent))
    |                         `- error: cannot find 'write' in scope
107 |             #endif
108 |             if s <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:120:24: error: cannot find 'recv' in scope
118 |             let next = recv(self.socketFileDescriptor as Int32, &buffer, Int(buffer.count), Int32(MSG_NOSIGNAL))
119 |         #else
120 |             let next = recv(self.socketFileDescriptor as Int32, &buffer, Int(buffer.count), 0)
    |                        `- error: cannot find 'recv' in scope
121 |         #endif
122 |         if next <= 0 {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:142:20: error: cannot find 'sockaddr' in scope
140 |
141 |     public func peername() throws -> String {
142 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                    `- error: cannot find 'sockaddr' in scope
143 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
144 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:142:72: error: cannot find type 'sockaddr' in scope
140 |
141 |     public func peername() throws -> String {
142 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
    |                                                                        `- error: cannot find type 'sockaddr' in scope
143 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
144 |             throw SocketError.getPeerNameFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:143:12: error: cannot find 'getpeername' in scope
141 |     public func peername() throws -> String {
142 |         var addr = sockaddr(), len: socklen_t = socklen_t(MemoryLayout<sockaddr>.size)
143 |         if getpeername(self.socketFileDescriptor, &addr, &len) != 0 {
    |            `- error: cannot find 'getpeername' in scope
144 |             throw SocketError.getPeerNameFailed(Errno.description())
145 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:146:59: error: cannot find 'NI_MAXHOST' in scope
144 |             throw SocketError.getPeerNameFailed(Errno.description())
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
    |                                                           `- error: cannot find 'NI_MAXHOST' in scope
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
148 |             throw SocketError.getNameInfoFailed(Errno.description())
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:147:12: error: cannot find 'getnameinfo' in scope
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |            `- error: cannot find 'getnameinfo' in scope
148 |             throw SocketError.getNameInfoFailed(Errno.description())
149 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:147:86: error: cannot find 'NI_NUMERICHOST' in scope
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                                      `- error: cannot find 'NI_NUMERICHOST' in scope
148 |             throw SocketError.getNameInfoFailed(Errno.description())
149 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:147:78: error: 'nil' requires a contextual type
145 |         }
146 |         var hostBuffer = [CChar](repeating: 0, count: Int(NI_MAXHOST))
147 |         if getnameinfo(&addr, len, &hostBuffer, socklen_t(hostBuffer.count), nil, 0, NI_NUMERICHOST) != 0 {
    |                                                                              `- error: 'nil' requires a contextual type
148 |             throw SocketError.getNameInfoFailed(Errno.description())
149 |         }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:160:13: error: cannot find 'setsockopt' in scope
158 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
159 |             var no_sig_pipe: Int32 = 1
160 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |             `- error: cannot find 'setsockopt' in scope
161 |         #endif
162 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:160:32: error: cannot find 'SOL_SOCKET' in scope
158 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
159 |             var no_sig_pipe: Int32 = 1
160 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                `- error: cannot find 'SOL_SOCKET' in scope
161 |         #endif
162 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:160:44: error: cannot find 'SO_NOSIGPIPE' in scope
158 |             // Prevents crashes when blocking calls are pending and the app is paused ( via Home button ).
159 |             var no_sig_pipe: Int32 = 1
160 |             setsockopt(socket, SOL_SOCKET, SO_NOSIGPIPE, &no_sig_pipe, socklen_t(MemoryLayout<Int32>.size))
    |                                            `- error: cannot find 'SO_NOSIGPIPE' in scope
161 |         #endif
162 |     }
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket.swift:168:21: error: cannot find 'Darwin' in scope
166 |             let _ = Glibc.close(socket)
167 |         #else
168 |             let _ = Darwin.close(socket)
    |                     `- error: cannot find 'Darwin' in scope
169 |         #endif
170 |     }
[16/33] Compiling Swifter HttpParser.swift
[17/33] Compiling Swifter HttpRequest.swift
[18/33] Compiling Swifter HttpResponse.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/67] Emitting module ArgumentParser
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[20/71] Compiling ArgumentParser BashCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
[21/71] Compiling ArgumentParser CompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
[22/71] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
[23/71] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
[24/71] Compiling ArgumentParser Argument.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
[25/71] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                               `- error: cannot find 'putc' in scope
 64 |   }
 65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                                                       `- error: cannot find 'stderr' in scope
 64 |   }
 65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                                    `- error: generic parameter 'U' could not be inferred
 64 |   }
 65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 |   ) -> Never {
184 |     guard let error = error else {
185 |       _exit(ExitCode.success.rawValue)
    |       `- error: cannot find '_exit' in scope
186 |     }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 |       }
196 |     }
197 |     _exit(messageInfo.exitCode.rawValue)
    |     `- error: cannot find '_exit' in scope
198 |   }
199 |
[26/71] Compiling ArgumentParser ParsableArgumentsValidation.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                               `- error: cannot find 'putc' in scope
 64 |   }
 65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                                                       `- error: cannot find 'stderr' in scope
 64 |   }
 65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                                    `- error: generic parameter 'U' could not be inferred
 64 |   }
 65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 |   ) -> Never {
184 |     guard let error = error else {
185 |       _exit(ExitCode.success.rawValue)
    |       `- error: cannot find '_exit' in scope
186 |     }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 |       }
196 |     }
197 |     _exit(messageInfo.exitCode.rawValue)
    |     `- error: cannot find '_exit' in scope
198 |   }
199 |
[27/71] Compiling ArgumentParser ParsableCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                               `- error: cannot find 'putc' in scope
 64 |   }
 65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                                                       `- error: cannot find 'stderr' in scope
 64 |   }
 65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                                    `- error: generic parameter 'U' could not be inferred
 64 |   }
 65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 |   ) -> Never {
184 |     guard let error = error else {
185 |       _exit(ExitCode.success.rawValue)
    |       `- error: cannot find '_exit' in scope
186 |     }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 |       }
196 |     }
197 |     _exit(messageInfo.exitCode.rawValue)
    |     `- error: cannot find '_exit' in scope
198 |   }
199 |
[28/71] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                               `- error: cannot find 'putc' in scope
 64 |   }
 65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                                                       `- error: cannot find 'stderr' in scope
 64 |   }
 65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                                    `- error: generic parameter 'U' could not be inferred
 64 |   }
 65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 |   ) -> Never {
184 |     guard let error = error else {
185 |       _exit(ExitCode.success.rawValue)
    |       `- error: cannot find '_exit' in scope
186 |     }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 |       }
196 |     }
197 |     _exit(messageInfo.exitCode.rawValue)
    |     `- error: cannot find '_exit' in scope
198 |   }
199 |
[29/71] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                               `- error: cannot find 'putc' in scope
 64 |   }
 65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                                                       `- error: cannot find 'stderr' in scope
 64 |   }
 65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
 61 | struct StandardError: TextOutputStream {
 62 |   mutating func write(_ string: String) {
 63 |     for byte in string.utf8 { putc(numericCast(byte), stderr) }
    |                                    `- error: generic parameter 'U' could not be inferred
 64 |   }
 65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
  |                        `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 |   ) -> Never {
184 |     guard let error = error else {
185 |       _exit(ExitCode.success.rawValue)
    |       `- error: cannot find '_exit' in scope
186 |     }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 |       }
196 |     }
197 |     _exit(messageInfo.exitCode.rawValue)
    |     `- error: cannot find '_exit' in scope
198 |   }
199 |
[30/71] Compiling ArgumentParser NameSpecification.swift
[31/71] Compiling ArgumentParser ArgumentSet.swift
[32/71] Compiling ArgumentParser Option.swift
[33/71] Compiling ArgumentParser OptionGroup.swift
[34/71] Compiling ArgumentParser CommandConfiguration.swift
[35/71] Compiling ArgumentParser EnumerableFlag.swift
[36/71] Compiling ArgumentParser ExpressibleByArgument.swift
[37/71] Compiling ArgumentParser CollectionExtensions.swift
[38/71] Compiling ArgumentParser SequenceExtensions.swift
[39/71] Compiling ArgumentParser StringExtensions.swift
[40/71] Compiling ArgumentParser Tree.swift
[41/71] Compiling ArgumentParser ParsedValues.swift
[42/71] Compiling ArgumentParser ParserError.swift
[43/71] Compiling ArgumentParser SplitArguments.swift
[44/71] Compiling ArgumentParser DumpHelpGenerator.swift
[46/71] Compiling ArgumentParser CommandParser.swift
[47/71] Compiling ArgumentParser InputOrigin.swift
[48/71] Compiling ArgumentParser Name.swift
[49/71] Compiling ArgumentParser Parsed.swift
[50/71] Compiling ArgumentParser HelpCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 |           height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 |   var w = winsize()
    |           `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 |   // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |             `- error: cannot find 'ioctl' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |                   `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |                                  `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[51/71] Compiling ArgumentParser HelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 |           height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 |   var w = winsize()
    |           `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 |   // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |             `- error: cannot find 'ioctl' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |                   `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |                                  `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[52/71] Compiling ArgumentParser MessageInfo.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 |           height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 |   var w = winsize()
    |           `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 |   // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |             `- error: cannot find 'ioctl' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |                   `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |                                  `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[53/71] Compiling ArgumentParser UsageGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 |           height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 |   var w = winsize()
    |           `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 |   // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |             `- error: cannot find 'ioctl' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |                   `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |                                  `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[54/71] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[55/71] Compiling ArgumentParser CompletionKind.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[56/71] Compiling ArgumentParser Errors.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[57/71] Compiling ArgumentParser Flag.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+File.swift:40:17: error: cannot find type 'sf_hdtr' in scope
38 |     public func writeFile(_ file: String.File) throws -> Void {
39 |         var offset: off_t = 0
40 |         var sf: sf_hdtr = sf_hdtr()
   |                 `- error: cannot find type 'sf_hdtr' in scope
41 |
42 |         #if os(iOS) || os(tvOS) || os (Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+File.swift:45:22: error: cannot find 'sendfile' in scope
43 |         let result = sendfileImpl(file.pointer, self.socketFileDescriptor, 0, &offset, &sf, 0)
44 |         #else
45 |         let result = sendfile(fileno(file.pointer), self.socketFileDescriptor, 0, &offset, &sf, 0)
   |                      `- error: cannot find 'sendfile' in scope
46 |         #endif
47 |
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/String+File.swift:19:43: error: cannot find type 'FILE' in scope
 17 |     public class File {
 18 |
 19 |         let pointer: UnsafeMutablePointer<FILE>
    |                                           `- error: cannot find type 'FILE' in scope
 20 |
 21 |         public init(_ pointer: UnsafeMutablePointer<FILE>) {
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:16:50: error: cannot find type 'in_port_t' in scope
 14 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 15 |     ///       otherwise - in IPv6.
 16 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                  `- error: cannot find type 'in_port_t' in scope
 17 |
 18 |         #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:16:120: error: cannot find 'SOMAXCONN' in scope
 14 |     ///       connections from. It should be in IPv4 format if forceIPv4 == true,
 15 |     ///       otherwise - in IPv6.
 16 |     public class func tcpSocketForListen(_ port: in_port_t, _ forceIPv4: Bool = false, _ maxPendingConnection: Int32 = SOMAXCONN, _ listenAddress: String? = nil) throws -> Socket {
    |                                                                                                                        `- error: cannot find 'SOMAXCONN' in scope
 17 |
 18 |         #if os(Linux)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:21:40: error: cannot find 'socket' in scope
 19 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 20 |         #else
 21 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                        `- error: cannot find 'socket' in scope
 22 |         #endif
 23 |
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:21:59: error: cannot find 'AF_INET' in scope
 19 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 20 |         #else
 21 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                           `- error: cannot find 'AF_INET' in scope
 22 |         #endif
 23 |
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:21:69: error: cannot find 'AF_INET6' in scope
 19 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 20 |         #else
 21 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                                     `- error: cannot find 'AF_INET6' in scope
 22 |         #endif
 23 |
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:21:79: error: cannot find 'SOCK_STREAM' in scope
 19 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, Int32(SOCK_STREAM.rawValue), 0)
 20 |         #else
 21 |             let socketFileDescriptor = socket(forceIPv4 ? AF_INET : AF_INET6, SOCK_STREAM, 0)
    |                                                                               `- error: cannot find 'SOCK_STREAM' in scope
 22 |         #endif
 23 |
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:29:12: error: cannot find 'setsockopt' in scope
 27 |
 28 |         var value: Int32 = 1
 29 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |            `- error: cannot find 'setsockopt' in scope
 30 |             let details = Errno.description()
 31 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:29:45: error: cannot find 'SOL_SOCKET' in scope
 27 |
 28 |         var value: Int32 = 1
 29 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                             `- error: cannot find 'SOL_SOCKET' in scope
 30 |             let details = Errno.description()
 31 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:29:57: error: cannot find 'SO_REUSEADDR' in scope
 27 |
 28 |         var value: Int32 = 1
 29 |         if setsockopt(socketFileDescriptor, SOL_SOCKET, SO_REUSEADDR, &value, socklen_t(MemoryLayout<Int32>.size)) == -1 {
    |                                                         `- error: cannot find 'SO_REUSEADDR' in scope
 30 |             let details = Errno.description()
 31 |             Socket.close(socketFileDescriptor)
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:45:24: error: cannot find 'sockaddr_in' in scope
 43 |                 sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
 44 |             #else
 45 |             var addr = sockaddr_in(
    |                        `- error: cannot find 'sockaddr_in' in scope
 46 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
 47 |                 sin_family: UInt8(AF_INET),
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:46:45: error: cannot find type 'sockaddr_in' in scope
 44 |             #else
 45 |             var addr = sockaddr_in(
 46 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
    |                                             `- error: cannot find type 'sockaddr_in' in scope
 47 |                 sin_family: UInt8(AF_INET),
 48 |                 sin_port: port.bigEndian,
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:47:35: error: cannot find 'AF_INET' in scope
 45 |             var addr = sockaddr_in(
 46 |                 sin_len: UInt8(MemoryLayout<sockaddr_in>.stride),
 47 |                 sin_family: UInt8(AF_INET),
    |                                   `- error: cannot find 'AF_INET' in scope
 48 |                 sin_port: port.bigEndian,
 49 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+Server.swift:49:27: error: cannot find 'in_addr' in scope
 47 |                 sin_family: UInt8(AF_INET),
 48 |                 sin_port: port.bigEndian,
 49 |                 sin_addr: in_addr(s_addr: in_addr_t(0)),
    |                           `- error: cannot find 'in_addr' in scope
 50 |                 sin_zero:(0, 0, 0, 0, 0, 0, 0, 0))
 51 |             #endif
error: emit-module command failed with exit code 1 (use -v to see invocation)
[59/71] Emitting module SwiftIP
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:8:11: error: cannot find type 'sockaddr' in scope
  6 |
  7 | #if !os(macOS)
  8 | extension sockaddr {
    |           `- error: cannot find type 'sockaddr' in scope
  9 |     var sa_len: Int {
 10 |         switch Int32(sa_family) {
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:8:11: error: cannot find type 'sockaddr' in scope
  6 |
  7 | #if !os(macOS)
  8 | extension sockaddr {
    |           `- error: cannot find type 'sockaddr' in scope
  9 |     var sa_len: Int {
 10 |         switch Int32(sa_family) {
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:67:43: error: cannot find type 'ifaddrs' in scope
 65 |
 66 |         // Get list of all interfaces on the local machine:
 67 |         var ifaddr : UnsafeMutablePointer<ifaddrs>? = nil
    |                                           `- error: cannot find type 'ifaddrs' in scope
 68 |         if getifaddrs(&ifaddr) == 0 {
 69 |
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:68:12: error: cannot find 'getifaddrs' in scope
 66 |         // Get list of all interfaces on the local machine:
 67 |         var ifaddr : UnsafeMutablePointer<ifaddrs>? = nil
 68 |         if getifaddrs(&ifaddr) == 0 {
    |            `- error: cannot find 'getifaddrs' in scope
 69 |
 70 |             // For each interface ...
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:84:30: error: cannot find 'IFF_UP' in scope
 82 |
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
    |                              `- error: cannot find 'IFF_UP' in scope
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
 86 |
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:84:37: error: cannot find 'IFF_RUNNING' in scope
 82 |
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
    |                                     `- error: cannot find 'IFF_RUNNING' in scope
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
 86 |
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:84:49: error: cannot find 'IFF_LOOPBACK' in scope
 82 |
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
    |                                                 `- error: cannot find 'IFF_LOOPBACK' in scope
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
 86 |
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:84:68: error: cannot find 'IFF_UP' in scope
 82 |
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
    |                                                                    `- error: cannot find 'IFF_UP' in scope
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
 86 |
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:84:75: error: cannot find 'IFF_RUNNING' in scope
 82 |
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
    |                                                                           `- error: cannot find 'IFF_RUNNING' in scope
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
 86 |
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:85:67: error: cannot find 'AF_INET' in scope
 83 |                 // Check for running IPv4, IPv6 interfaces. Skip the loopback interface.
 84 |                 if (flags & (IFF_UP|IFF_RUNNING|IFF_LOOPBACK)) == (IFF_UP|IFF_RUNNING) {
 85 |                     if addr.sa_family == UInt8(version == .IPv4 ? AF_INET : AF_INET6) {
    |                                                                   `- error: cannot find 'AF_INET' in scope
 86 |
 87 |                         // Convert interface address to a human readable string:
BUILD FAILURE 6.1 android