The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SimpleSwiftServer, reference master (7c799e), with Swift 6.2 for Android on 21 Jun 2025 13:09:34 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
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.2
Building package at path:  $PWD
https://github.com/Samasaur1/SimpleSwiftServer.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/Samasaur1/SwiftIP
Fetching https://github.com/httpswift/swifter
Fetching https://github.com/apple/swift-argument-parser.git
[1/295] Fetching swiftip
[296/6345] Fetching swiftip, swifter
Fetched https://github.com/Samasaur1/SwiftIP from cache (0.52s)
[1634/6050] Fetching swifter
[4357/21430] Fetching swifter, swift-argument-parser
Fetched https://github.com/httpswift/swifter from cache (1.42s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.43s)
Computing version for https://github.com/httpswift/swifter
Computed https://github.com/httpswift/swifter at 1.4.5 (4.14s)
Computing version for https://github.com/Samasaur1/SwiftIP
Computed https://github.com/Samasaur1/SwiftIP at 2.2.2 (0.92s)
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.49s)
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/Samasaur1/SwiftIP
Working copy of https://github.com/Samasaur1/SwiftIP resolved at 2.2.2
Creating working copy for https://github.com/httpswift/swifter
Working copy of https://github.com/httpswift/swifter resolved at 1.4.5
Building for debugging...
[0/13] Write sources
[5/13] Write swift-version-8C5A4AE7A8CE2BA.txt
[7/36] Emitting module ArgumentParserToolInfo
[8/36] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/38] Wrapping AST for ArgumentParserToolInfo for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/71] 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 |
[12/75] Compiling ArgumentParser CommandParser.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[13/75] Compiling ArgumentParser InputOrigin.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[14/77] 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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[15/77] 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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[16/77] 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.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[17/77] Compiling ArgumentParser NameSpecification.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/77] Compiling ArgumentParser ArgumentSet.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/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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/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) {
[21/77] 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 |
[22/77] 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 |
[23/77] 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 |
[24/77] 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/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 ?? ""))
[29/77] 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 ?? ""))
[30/77] 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 ?? ""))
BUILD FAILURE 6.2 android