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 ZIPFoundation, reference development (3f21a9), with Swift 6.1 for Android on 27 Nov 2025 12:11:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/weichsel/ZIPFoundation.git
Reference: development
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/weichsel/ZIPFoundation
 * branch            development -> FETCH_HEAD
 * [new branch]      development -> origin/development
HEAD is now at 3f21a90 Merge pull request #337 from TechSmith/performanceImprovements
Cloned https://github.com/weichsel/ZIPFoundation.git
Revision (git rev-parse @):
3f21a902cddf25b48dc70d6d3881de265dca02f6
SUCCESS checkout https://github.com/weichsel/ZIPFoundation.git at development
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/weichsel/ZIPFoundation.git
https://github.com/weichsel/ZIPFoundation.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ZIPFoundation",
  "name" : "ZIPFoundation",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "ZIPFoundation",
      "targets" : [
        "ZIPFoundation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4",
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "ZIPFoundationTests",
      "module_type" : "SwiftTarget",
      "name" : "ZIPFoundationTests",
      "path" : "Tests/ZIPFoundationTests",
      "sources" : [
        "ZIPFoundationArchiveTests+ZIP64.swift",
        "ZIPFoundationArchiveTests.swift",
        "ZIPFoundationDataSerializationTests.swift",
        "ZIPFoundationEntryTests+ZIP64.swift",
        "ZIPFoundationEntryTests.swift",
        "ZIPFoundationErrorConditionTests+ZIP64.swift",
        "ZIPFoundationErrorConditionTests.swift",
        "ZIPFoundationFileAttributeTests.swift",
        "ZIPFoundationFileManagerTests+ZIP64.swift",
        "ZIPFoundationFileManagerTests.swift",
        "ZIPFoundationMemoryTests.swift",
        "ZIPFoundationPerformanceTests.swift",
        "ZIPFoundationProgressTests.swift",
        "ZIPFoundationReadingTests+ZIP64.swift",
        "ZIPFoundationReadingTests.swift",
        "ZIPFoundationTests.swift",
        "ZIPFoundationWritingTests+ZIP64.swift",
        "ZIPFoundationWritingTests.swift"
      ],
      "target_dependencies" : [
        "ZIPFoundation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ZIPFoundation",
      "module_type" : "SwiftTarget",
      "name" : "ZIPFoundation",
      "path" : "Sources/ZIPFoundation",
      "product_memberships" : [
        "ZIPFoundation"
      ],
      "sources" : [
        "Archive+BackingConfiguration.swift",
        "Archive+Deprecated.swift",
        "Archive+Helpers.swift",
        "Archive+MemoryFile.swift",
        "Archive+Progress.swift",
        "Archive+Reading.swift",
        "Archive+ReadingDeprecated.swift",
        "Archive+Writing.swift",
        "Archive+WritingDeprecated.swift",
        "Archive+ZIP64.swift",
        "Archive.swift",
        "Data+Compression.swift",
        "Data+CompressionDeprecated.swift",
        "Data+Serialization.swift",
        "Date+ZIP.swift",
        "Entry+Serialization.swift",
        "Entry+ZIP64.swift",
        "Entry.swift",
        "FileManager+ZIP.swift",
        "FileManager+ZIPDeprecated.swift",
        "URL+ZIP.swift"
      ],
      "target_dependencies" : [
        "CZLib"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CZLib",
      "module_type" : "SystemLibraryTarget",
      "name" : "CZLib",
      "path" : "Sources/CZLib",
      "product_memberships" : [
        "ZIPFoundation"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:91d018f1076d6a900d71818287e1b2618039c67008f0564a121787f87e1ae735
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/22] Emitting module ZIPFoundation
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
    |     |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
    |     |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
/host/spi-builder-workspace/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[4/24] Compiling ZIPFoundation Archive+ZIP64.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
    |     |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
    |     |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[5/24] Compiling ZIPFoundation Archive.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
    |     |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
    |     |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[6/24] Compiling ZIPFoundation Data+Compression.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
    |     |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
    |     |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[7/24] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[8/24] Compiling ZIPFoundation URL+ZIP.swift
[9/24] Compiling ZIPFoundation Entry.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Entry.swift:29:25: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
 27 |
 28 |         init(mode: mode_t) {
 29 |             switch mode & S_IFMT {
    |                         |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                         `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
 30 |             case S_IFDIR:
 31 |                 self = .directory
/host/spi-builder-workspace/Sources/ZIPFoundation/Entry.swift:150:42: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
148 |             // Use truncatingIfNeeded for safer conversion across platforms
149 |             let modeValue = UInt16(truncatingIfNeeded: self.centralDirectoryStructure.externalFileAttributes >> 16)
150 |             let mode = mode_t(modeValue) & S_IFMT
    |                                          |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                                          `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
151 |             switch mode {
152 |             case S_IFREG:
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:200:15: error: cannot find 'lchmod' in scope
198 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
199 |         let modeT = posixPermissions.uint16Value
200 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
    |               `- error: cannot find 'lchmod' in scope
201 |             throw POSIXError(errno, path: url.path)
202 |         }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:201:30: error: cannot find 'errno' in scope
199 |         let modeT = posixPermissions.uint16Value
200 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
201 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
202 |         }
203 |     }
/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/Sources/ZIPFoundation/FileManager+ZIP.swift:207:24: error: cannot find 'stat' in scope
205 |     func setSymlinkModificationDate(_ modificationDate: Date, ofItemAtURL url: URL) throws {
206 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
207 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
208 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
209 |             throw POSIXError(errno, path: url.path)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:208:15: error: cannot find 'lstat' in scope
206 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
207 |         var fileStat = stat()
208 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
    |               `- error: cannot find 'lstat' in scope
209 |             throw POSIXError(errno, path: url.path)
210 |         }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:209:30: error: cannot find 'errno' in scope
207 |         var fileStat = stat()
208 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
209 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
210 |         }
211 |
/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/Sources/ZIPFoundation/FileManager+ZIP.swift:218:19: error: cannot find 'lutimes' in scope
216 |         ]
217 |         try array.withUnsafeBufferPointer {
218 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
    |                   `- error: cannot find 'lutimes' in scope
219 |                 throw POSIXError(errno, path: url.path)
220 |             }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:219:34: error: cannot find 'errno' in scope
217 |         try array.withUnsafeBufferPointer {
218 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
219 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
220 |             }
221 |         }
/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/Sources/ZIPFoundation/FileManager+ZIP.swift:245:72: error: cannot find 'S_IFMT' in scope
243 |         switch osType {
244 |         case .unix, .osx:
245 |             let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
    |                                                                        `- error: cannot find 'S_IFMT' in scope
246 |             let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
247 |             return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:257:30: error: cannot find 'S_IFREG' in scope
255 |         switch type {
256 |         case .file:
257 |             typeInt = UInt16(S_IFREG)
    |                              `- error: cannot find 'S_IFREG' in scope
258 |         case .directory:
259 |             typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:259:30: error: cannot find 'S_IFDIR' in scope
257 |             typeInt = UInt16(S_IFREG)
258 |         case .directory:
259 |             typeInt = UInt16(S_IFDIR)
    |                              `- error: cannot find 'S_IFDIR' in scope
260 |         case .symlink:
261 |             typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:261:30: error: cannot find 'S_IFLNK' in scope
259 |             typeInt = UInt16(S_IFDIR)
260 |         case .symlink:
261 |             typeInt = UInt16(S_IFLNK)
    |                              `- error: cannot find 'S_IFLNK' in scope
262 |         }
263 |         var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:271:24: error: cannot find 'stat' in scope
269 |         let fileManager = FileManager()
270 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
271 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
272 |         lstat(entryFileSystemRepresentation, &fileStat)
273 |         let permissions = fileStat.st_mode
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:272:9: error: cannot find 'lstat' in scope
270 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
271 |         var fileStat = stat()
272 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
273 |         let permissions = fileStat.st_mode
274 |         return UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:283:24: error: cannot find 'stat' in scope
281 |         }
282 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
283 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
284 |         lstat(entryFileSystemRepresentation, &fileStat)
285 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:284:9: error: cannot find 'lstat' in scope
282 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
283 |         var fileStat = stat()
284 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
285 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
286 |         let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:303:21: error: cannot find 'stat' in scope
301 |
302 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
303 |         var stats = stat()
    |                     `- error: cannot find 'stat' in scope
304 |         lstat(entryFileSystemRepresentation, &stats)
305 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:304:9: error: cannot find 'lstat' in scope
302 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
303 |         var stats = stat()
304 |         lstat(entryFileSystemRepresentation, &stats)
    |         `- error: cannot find 'lstat' in scope
305 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
306 |
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:317:24: error: cannot find 'stat' in scope
315 |         }
316 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
317 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
318 |         lstat(entryFileSystemRepresentation, &fileStat)
319 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:318:9: error: cannot find 'lstat' in scope
316 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
317 |         var fileStat = stat()
318 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
319 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
320 |     }
[10/24] Compiling ZIPFoundation FileManager+ZIP.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Entry.swift:29:25: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
 27 |
 28 |         init(mode: mode_t) {
 29 |             switch mode & S_IFMT {
    |                         |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                         `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
 30 |             case S_IFDIR:
 31 |                 self = .directory
/host/spi-builder-workspace/Sources/ZIPFoundation/Entry.swift:150:42: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
148 |             // Use truncatingIfNeeded for safer conversion across platforms
149 |             let modeValue = UInt16(truncatingIfNeeded: self.centralDirectoryStructure.externalFileAttributes >> 16)
150 |             let mode = mode_t(modeValue) & S_IFMT
    |                                          |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                                          `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
151 |             switch mode {
152 |             case S_IFREG:
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:200:15: error: cannot find 'lchmod' in scope
198 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
199 |         let modeT = posixPermissions.uint16Value
200 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
    |               `- error: cannot find 'lchmod' in scope
201 |             throw POSIXError(errno, path: url.path)
202 |         }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:201:30: error: cannot find 'errno' in scope
199 |         let modeT = posixPermissions.uint16Value
200 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
201 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
202 |         }
203 |     }
/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/Sources/ZIPFoundation/FileManager+ZIP.swift:207:24: error: cannot find 'stat' in scope
205 |     func setSymlinkModificationDate(_ modificationDate: Date, ofItemAtURL url: URL) throws {
206 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
207 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
208 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
209 |             throw POSIXError(errno, path: url.path)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:208:15: error: cannot find 'lstat' in scope
206 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
207 |         var fileStat = stat()
208 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
    |               `- error: cannot find 'lstat' in scope
209 |             throw POSIXError(errno, path: url.path)
210 |         }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:209:30: error: cannot find 'errno' in scope
207 |         var fileStat = stat()
208 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
209 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
210 |         }
211 |
/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/Sources/ZIPFoundation/FileManager+ZIP.swift:218:19: error: cannot find 'lutimes' in scope
216 |         ]
217 |         try array.withUnsafeBufferPointer {
218 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
    |                   `- error: cannot find 'lutimes' in scope
219 |                 throw POSIXError(errno, path: url.path)
220 |             }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:219:34: error: cannot find 'errno' in scope
217 |         try array.withUnsafeBufferPointer {
218 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
219 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
220 |             }
221 |         }
/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/Sources/ZIPFoundation/FileManager+ZIP.swift:245:72: error: cannot find 'S_IFMT' in scope
243 |         switch osType {
244 |         case .unix, .osx:
245 |             let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
    |                                                                        `- error: cannot find 'S_IFMT' in scope
246 |             let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
247 |             return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:257:30: error: cannot find 'S_IFREG' in scope
255 |         switch type {
256 |         case .file:
257 |             typeInt = UInt16(S_IFREG)
    |                              `- error: cannot find 'S_IFREG' in scope
258 |         case .directory:
259 |             typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:259:30: error: cannot find 'S_IFDIR' in scope
257 |             typeInt = UInt16(S_IFREG)
258 |         case .directory:
259 |             typeInt = UInt16(S_IFDIR)
    |                              `- error: cannot find 'S_IFDIR' in scope
260 |         case .symlink:
261 |             typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:261:30: error: cannot find 'S_IFLNK' in scope
259 |             typeInt = UInt16(S_IFDIR)
260 |         case .symlink:
261 |             typeInt = UInt16(S_IFLNK)
    |                              `- error: cannot find 'S_IFLNK' in scope
262 |         }
263 |         var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:271:24: error: cannot find 'stat' in scope
269 |         let fileManager = FileManager()
270 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
271 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
272 |         lstat(entryFileSystemRepresentation, &fileStat)
273 |         let permissions = fileStat.st_mode
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:272:9: error: cannot find 'lstat' in scope
270 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
271 |         var fileStat = stat()
272 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
273 |         let permissions = fileStat.st_mode
274 |         return UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:283:24: error: cannot find 'stat' in scope
281 |         }
282 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
283 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
284 |         lstat(entryFileSystemRepresentation, &fileStat)
285 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:284:9: error: cannot find 'lstat' in scope
282 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
283 |         var fileStat = stat()
284 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
285 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
286 |         let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:303:21: error: cannot find 'stat' in scope
301 |
302 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
303 |         var stats = stat()
    |                     `- error: cannot find 'stat' in scope
304 |         lstat(entryFileSystemRepresentation, &stats)
305 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:304:9: error: cannot find 'lstat' in scope
302 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
303 |         var stats = stat()
304 |         lstat(entryFileSystemRepresentation, &stats)
    |         `- error: cannot find 'lstat' in scope
305 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
306 |
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:317:24: error: cannot find 'stat' in scope
315 |         }
316 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
317 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
318 |         lstat(entryFileSystemRepresentation, &fileStat)
319 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:318:9: error: cannot find 'lstat' in scope
316 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
317 |         var fileStat = stat()
318 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
319 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
320 |     }
[11/24] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
 68 |             let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
 69 |             guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
 70 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 71 |             }
 72 |             defer { fclose(entryFile) }
/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/Sources/ZIPFoundation/Archive+Writing.swift:283:9: error: cannot find 'ftruncate' in scope
281 |                   _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
282 |         fflush(self.archiveFile)
283 |         ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
    |         `- error: cannot find 'ftruncate' in scope
284 |         fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
285 |         _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[12/24] Compiling ZIPFoundation Archive+Writing.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
 68 |             let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
 69 |             guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
 70 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 71 |             }
 72 |             defer { fclose(entryFile) }
/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/Sources/ZIPFoundation/Archive+Writing.swift:283:9: error: cannot find 'ftruncate' in scope
281 |                   _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
282 |         fflush(self.archiveFile)
283 |         ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
    |         `- error: cannot find 'ftruncate' in scope
284 |         fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
285 |         _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[13/24] Compiling ZIPFoundation Archive+WritingDeprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
 68 |             let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
 69 |             guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
 70 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 71 |             }
 72 |             defer { fclose(entryFile) }
/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/Sources/ZIPFoundation/Archive+Writing.swift:283:9: error: cannot find 'ftruncate' in scope
281 |                   _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
282 |         fflush(self.archiveFile)
283 |         ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
    |         `- error: cannot find 'ftruncate' in scope
284 |         fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
285 |         _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[14/24] Compiling ZIPFoundation Entry+Serialization.swift
[15/24] Compiling ZIPFoundation Entry+ZIP64.swift
[16/24] Compiling ZIPFoundation Archive+MemoryFile.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:43:34: error: cannot find 'errno' in scope
 41 |             let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 42 |             guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
 43 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 44 |             }
 45 |             defer { fclose(destinationFile) }
/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/24] Compiling ZIPFoundation Archive+Progress.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:43:34: error: cannot find 'errno' in scope
 41 |             let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 42 |             guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
 43 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 44 |             }
 45 |             defer { fclose(destinationFile) }
/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
[18/24] Compiling ZIPFoundation Archive+Reading.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:43:34: error: cannot find 'errno' in scope
 41 |             let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 42 |             guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
 43 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 44 |             }
 45 |             defer { fclose(destinationFile) }
/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
[19/24] Compiling ZIPFoundation Data+CompressionDeprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[20/24] Compiling ZIPFoundation Data+Serialization.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[21/24] Compiling ZIPFoundation Date+ZIP.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[22/24] Compiling ZIPFoundation Archive+BackingConfiguration.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
 48 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 49 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
 50 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 51 |             }
 52 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:72:34: error: cannot find 'errno' in scope
 70 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 71 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
 72 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 73 |             }
 74 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:109:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
107 |                                                                           zipFileCommentData: Data())
108 |             _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
109 |                 fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
    |                               |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
    |                               |- 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'
110 |             }
111 |             fallthrough
[23/24] Compiling ZIPFoundation Archive+Deprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
 48 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 49 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
 50 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 51 |             }
 52 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:72:34: error: cannot find 'errno' in scope
 70 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 71 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
 72 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 73 |             }
 74 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:109:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
107 |                                                                           zipFileCommentData: Data())
108 |             _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
109 |                 fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
    |                               |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
    |                               |- 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'
110 |             }
111 |             fallthrough
[24/24] Compiling ZIPFoundation Archive+Helpers.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
 48 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 49 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
 50 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 51 |             }
 52 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:72:34: error: cannot find 'errno' in scope
 70 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 71 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
 72 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 73 |             }
 74 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:109:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
107 |                                                                           zipFileCommentData: Data())
108 |             _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
109 |                 fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
    |                               |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
    |                               |- 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'
110 |             }
111 |             fallthrough
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:91d018f1076d6a900d71818287e1b2618039c67008f0564a121787f87e1ae735
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': found 77 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testMemoryArchiveErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddEntryErrorConditions.txt
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveEntryErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedEntryCancelation.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveZIP64EntryFromArchiveWithZIP64EOCD.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemWithPreferredEncoding.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testAddEntryToArchiveWithZIP64LFHOffset.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddCompressedEntryProgress.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddUncompressedEntryToMemory.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemErrorConditions.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddEntryErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateZIP64ArchiveAddUncompressedEntry.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractEncryptedArchiveErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveIteratorErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractPreferredEncoding.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testEntryIsCompressed.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemProgress.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemWithZIP64DataDescriptor.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipUncompressedZIP64Item.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractMSDOSArchive.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCorruptFileErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testDetectEntryType.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCorruptSymbolicLinkErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedZIP64Entries.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipCompressedSymlink.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipCompressedZIP64Item.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipUncontainedSymlink.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZIP64ArchiveAddEntryProgress.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZipItemProgress.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveEntryProgress.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testAddDirectoryToArchiveWithZIP64LFHOffset.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveEntryFromArchiveWithZIP64EOCD.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddZeroSizeUncompressedEntry.txt
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCRC32Check.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testSimpleTraversalAttack.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testPathDelimiterTraversalAttack.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveUncompressedEntry.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testInvalidSymlinkCompressionMethodErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZipCompressedZIP64Item.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedEmptyFile.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveEntryWithZIP64ExtendedInformation.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddCompressedEntryToMemory.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractInvalidBufferSizeErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testSymlinkPermissionsTransferErrorConditions.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipSymlink.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddZeroSizeCompressedEntry.txt
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedFolderEntries.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveReadErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveDataDescriptorCompressedEntry.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedFolderEntries.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedFolderEntriesFromMemory.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddUncompressedEntryProgress.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testPOSIXPermissions.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedDataDescriptorArchive.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddCompressedEntry.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedZIP64Entries.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZipItem.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedFolderEntriesFromMemory.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveCompressedEntry.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCRC32Calculation.data
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddUncompressedEntryProgress.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddUncompressedEntry.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedDataDescriptorArchive.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItem.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZipUncompressedZIP64Item.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractEntryWithZIP64DataDescriptor.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddSymbolicLink.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUpdateArchiveRemoveUncompressedEntryFromMemory.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testInvalidCompressionMethodErrorConditions.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddCompressedEntryProgress.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testSymlinkModificationDateTransferErrorConditions.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZIP64ArchiveAddEntryProgress.png
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testProgressHelpers.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedEntryCancelation.zip
    /host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testFileModificationDate.png
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/21] Compiling ZIPFoundation Data+CompressionDeprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[3/21] Compiling ZIPFoundation Data+Serialization.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[4/21] Compiling ZIPFoundation Date+ZIP.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[5/23] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[6/23] Compiling ZIPFoundation URL+ZIP.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/23] Emitting module ZIPFoundation
/host/spi-builder-workspace/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
   |           `- error: cannot find type 'stat' in scope
78 |
79 |     var lastAccessDate: Date {
[8/23] Compiling ZIPFoundation Archive+BackingConfiguration.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
 48 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 49 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
 50 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 51 |             }
 52 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:72:34: error: cannot find 'errno' in scope
 70 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 71 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
 72 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 73 |             }
 74 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:109:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
107 |                                                                           zipFileCommentData: Data())
108 |             _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
109 |                 fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
    |                               |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
    |                               |- 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'
110 |             }
111 |             fallthrough
[9/23] Compiling ZIPFoundation Archive+Deprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
 48 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 49 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
 50 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 51 |             }
 52 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:72:34: error: cannot find 'errno' in scope
 70 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 71 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
 72 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 73 |             }
 74 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:109:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
107 |                                                                           zipFileCommentData: Data())
108 |             _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
109 |                 fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
    |                               |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
    |                               |- 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'
110 |             }
111 |             fallthrough
[10/23] Compiling ZIPFoundation Archive+Helpers.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
 48 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 49 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
 50 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 51 |             }
 52 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:72:34: error: cannot find 'errno' in scope
 70 |             let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 71 |             guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
 72 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 73 |             }
 74 |             guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/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/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:109:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
107 |                                                                           zipFileCommentData: Data())
108 |             _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
109 |                 fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
    |                               |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
    |                               |- 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'
110 |             }
111 |             fallthrough
[11/23] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
 68 |             let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
 69 |             guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
 70 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 71 |             }
 72 |             defer { fclose(entryFile) }
/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/Sources/ZIPFoundation/Archive+Writing.swift:283:9: error: cannot find 'ftruncate' in scope
281 |                   _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
282 |         fflush(self.archiveFile)
283 |         ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
    |         `- error: cannot find 'ftruncate' in scope
284 |         fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
285 |         _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[12/23] Compiling ZIPFoundation Archive+Writing.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
 68 |             let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
 69 |             guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
 70 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 71 |             }
 72 |             defer { fclose(entryFile) }
/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/Sources/ZIPFoundation/Archive+Writing.swift:283:9: error: cannot find 'ftruncate' in scope
281 |                   _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
282 |         fflush(self.archiveFile)
283 |         ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
    |         `- error: cannot find 'ftruncate' in scope
284 |         fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
285 |         _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[13/23] Compiling ZIPFoundation Archive+WritingDeprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
 68 |             let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
 69 |             guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
 70 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 71 |             }
 72 |             defer { fclose(entryFile) }
/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/Sources/ZIPFoundation/Archive+Writing.swift:283:9: error: cannot find 'ftruncate' in scope
281 |                   _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
282 |         fflush(self.archiveFile)
283 |         ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
    |         `- error: cannot find 'ftruncate' in scope
284 |         fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
285 |         _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[14/23] Compiling ZIPFoundation Entry.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Entry.swift:29:25: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
 27 |
 28 |         init(mode: mode_t) {
 29 |             switch mode & S_IFMT {
    |                         |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                         `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
 30 |             case S_IFDIR:
 31 |                 self = .directory
/host/spi-builder-workspace/Sources/ZIPFoundation/Entry.swift:150:42: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
148 |             // Use truncatingIfNeeded for safer conversion across platforms
149 |             let modeValue = UInt16(truncatingIfNeeded: self.centralDirectoryStructure.externalFileAttributes >> 16)
150 |             let mode = mode_t(modeValue) & S_IFMT
    |                                          |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                                          `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
151 |             switch mode {
152 |             case S_IFREG:
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:200:15: error: cannot find 'lchmod' in scope
198 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
199 |         let modeT = posixPermissions.uint16Value
200 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
    |               `- error: cannot find 'lchmod' in scope
201 |             throw POSIXError(errno, path: url.path)
202 |         }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:201:30: error: cannot find 'errno' in scope
199 |         let modeT = posixPermissions.uint16Value
200 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
201 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
202 |         }
203 |     }
/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/Sources/ZIPFoundation/FileManager+ZIP.swift:207:24: error: cannot find 'stat' in scope
205 |     func setSymlinkModificationDate(_ modificationDate: Date, ofItemAtURL url: URL) throws {
206 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
207 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
208 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
209 |             throw POSIXError(errno, path: url.path)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:208:15: error: cannot find 'lstat' in scope
206 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
207 |         var fileStat = stat()
208 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
    |               `- error: cannot find 'lstat' in scope
209 |             throw POSIXError(errno, path: url.path)
210 |         }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:209:30: error: cannot find 'errno' in scope
207 |         var fileStat = stat()
208 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
209 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
210 |         }
211 |
/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/Sources/ZIPFoundation/FileManager+ZIP.swift:218:19: error: cannot find 'lutimes' in scope
216 |         ]
217 |         try array.withUnsafeBufferPointer {
218 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
    |                   `- error: cannot find 'lutimes' in scope
219 |                 throw POSIXError(errno, path: url.path)
220 |             }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:219:34: error: cannot find 'errno' in scope
217 |         try array.withUnsafeBufferPointer {
218 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
219 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
220 |             }
221 |         }
/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/Sources/ZIPFoundation/FileManager+ZIP.swift:245:72: error: cannot find 'S_IFMT' in scope
243 |         switch osType {
244 |         case .unix, .osx:
245 |             let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
    |                                                                        `- error: cannot find 'S_IFMT' in scope
246 |             let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
247 |             return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:257:30: error: cannot find 'S_IFREG' in scope
255 |         switch type {
256 |         case .file:
257 |             typeInt = UInt16(S_IFREG)
    |                              `- error: cannot find 'S_IFREG' in scope
258 |         case .directory:
259 |             typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:259:30: error: cannot find 'S_IFDIR' in scope
257 |             typeInt = UInt16(S_IFREG)
258 |         case .directory:
259 |             typeInt = UInt16(S_IFDIR)
    |                              `- error: cannot find 'S_IFDIR' in scope
260 |         case .symlink:
261 |             typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:261:30: error: cannot find 'S_IFLNK' in scope
259 |             typeInt = UInt16(S_IFDIR)
260 |         case .symlink:
261 |             typeInt = UInt16(S_IFLNK)
    |                              `- error: cannot find 'S_IFLNK' in scope
262 |         }
263 |         var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:271:24: error: cannot find 'stat' in scope
269 |         let fileManager = FileManager()
270 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
271 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
272 |         lstat(entryFileSystemRepresentation, &fileStat)
273 |         let permissions = fileStat.st_mode
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:272:9: error: cannot find 'lstat' in scope
270 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
271 |         var fileStat = stat()
272 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
273 |         let permissions = fileStat.st_mode
274 |         return UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:283:24: error: cannot find 'stat' in scope
281 |         }
282 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
283 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
284 |         lstat(entryFileSystemRepresentation, &fileStat)
285 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:284:9: error: cannot find 'lstat' in scope
282 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
283 |         var fileStat = stat()
284 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
285 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
286 |         let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:303:21: error: cannot find 'stat' in scope
301 |
302 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
303 |         var stats = stat()
    |                     `- error: cannot find 'stat' in scope
304 |         lstat(entryFileSystemRepresentation, &stats)
305 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:304:9: error: cannot find 'lstat' in scope
302 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
303 |         var stats = stat()
304 |         lstat(entryFileSystemRepresentation, &stats)
    |         `- error: cannot find 'lstat' in scope
305 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
306 |
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:317:24: error: cannot find 'stat' in scope
315 |         }
316 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
317 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
318 |         lstat(entryFileSystemRepresentation, &fileStat)
319 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:318:9: error: cannot find 'lstat' in scope
316 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
317 |         var fileStat = stat()
318 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
319 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
320 |     }
[15/23] Compiling ZIPFoundation FileManager+ZIP.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Entry.swift:29:25: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
 27 |
 28 |         init(mode: mode_t) {
 29 |             switch mode & S_IFMT {
    |                         |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                         `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
 30 |             case S_IFDIR:
 31 |                 self = .directory
/host/spi-builder-workspace/Sources/ZIPFoundation/Entry.swift:150:42: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
148 |             // Use truncatingIfNeeded for safer conversion across platforms
149 |             let modeValue = UInt16(truncatingIfNeeded: self.centralDirectoryStructure.externalFileAttributes >> 16)
150 |             let mode = mode_t(modeValue) & S_IFMT
    |                                          |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
    |                                          `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
151 |             switch mode {
152 |             case S_IFREG:
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:200:15: error: cannot find 'lchmod' in scope
198 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
199 |         let modeT = posixPermissions.uint16Value
200 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
    |               `- error: cannot find 'lchmod' in scope
201 |             throw POSIXError(errno, path: url.path)
202 |         }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:201:30: error: cannot find 'errno' in scope
199 |         let modeT = posixPermissions.uint16Value
200 |         guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
201 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
202 |         }
203 |     }
/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/Sources/ZIPFoundation/FileManager+ZIP.swift:207:24: error: cannot find 'stat' in scope
205 |     func setSymlinkModificationDate(_ modificationDate: Date, ofItemAtURL url: URL) throws {
206 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
207 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
208 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
209 |             throw POSIXError(errno, path: url.path)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:208:15: error: cannot find 'lstat' in scope
206 |         let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
207 |         var fileStat = stat()
208 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
    |               `- error: cannot find 'lstat' in scope
209 |             throw POSIXError(errno, path: url.path)
210 |         }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:209:30: error: cannot find 'errno' in scope
207 |         var fileStat = stat()
208 |         guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
209 |             throw POSIXError(errno, path: url.path)
    |                              `- error: cannot find 'errno' in scope
210 |         }
211 |
/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/Sources/ZIPFoundation/FileManager+ZIP.swift:218:19: error: cannot find 'lutimes' in scope
216 |         ]
217 |         try array.withUnsafeBufferPointer {
218 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
    |                   `- error: cannot find 'lutimes' in scope
219 |                 throw POSIXError(errno, path: url.path)
220 |             }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:219:34: error: cannot find 'errno' in scope
217 |         try array.withUnsafeBufferPointer {
218 |             guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
219 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
220 |             }
221 |         }
/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/Sources/ZIPFoundation/FileManager+ZIP.swift:245:72: error: cannot find 'S_IFMT' in scope
243 |         switch osType {
244 |         case .unix, .osx:
245 |             let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
    |                                                                        `- error: cannot find 'S_IFMT' in scope
246 |             let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
247 |             return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:257:30: error: cannot find 'S_IFREG' in scope
255 |         switch type {
256 |         case .file:
257 |             typeInt = UInt16(S_IFREG)
    |                              `- error: cannot find 'S_IFREG' in scope
258 |         case .directory:
259 |             typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:259:30: error: cannot find 'S_IFDIR' in scope
257 |             typeInt = UInt16(S_IFREG)
258 |         case .directory:
259 |             typeInt = UInt16(S_IFDIR)
    |                              `- error: cannot find 'S_IFDIR' in scope
260 |         case .symlink:
261 |             typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:261:30: error: cannot find 'S_IFLNK' in scope
259 |             typeInt = UInt16(S_IFDIR)
260 |         case .symlink:
261 |             typeInt = UInt16(S_IFLNK)
    |                              `- error: cannot find 'S_IFLNK' in scope
262 |         }
263 |         var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:271:24: error: cannot find 'stat' in scope
269 |         let fileManager = FileManager()
270 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
271 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
272 |         lstat(entryFileSystemRepresentation, &fileStat)
273 |         let permissions = fileStat.st_mode
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:272:9: error: cannot find 'lstat' in scope
270 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
271 |         var fileStat = stat()
272 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
273 |         let permissions = fileStat.st_mode
274 |         return UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:283:24: error: cannot find 'stat' in scope
281 |         }
282 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
283 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
284 |         lstat(entryFileSystemRepresentation, &fileStat)
285 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:284:9: error: cannot find 'lstat' in scope
282 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
283 |         var fileStat = stat()
284 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
285 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
286 |         let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:303:21: error: cannot find 'stat' in scope
301 |
302 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
303 |         var stats = stat()
    |                     `- error: cannot find 'stat' in scope
304 |         lstat(entryFileSystemRepresentation, &stats)
305 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:304:9: error: cannot find 'lstat' in scope
302 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
303 |         var stats = stat()
304 |         lstat(entryFileSystemRepresentation, &stats)
    |         `- error: cannot find 'lstat' in scope
305 |         guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
306 |
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:317:24: error: cannot find 'stat' in scope
315 |         }
316 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
317 |         var fileStat = stat()
    |                        `- error: cannot find 'stat' in scope
318 |         lstat(entryFileSystemRepresentation, &fileStat)
319 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:318:9: error: cannot find 'lstat' in scope
316 |         let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
317 |         var fileStat = stat()
318 |         lstat(entryFileSystemRepresentation, &fileStat)
    |         `- error: cannot find 'lstat' in scope
319 |         return Entry.EntryType(mode: mode_t(fileStat.st_mode))
320 |     }
[16/23] Compiling ZIPFoundation Archive+MemoryFile.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:43:34: error: cannot find 'errno' in scope
 41 |             let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 42 |             guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
 43 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 44 |             }
 45 |             defer { fclose(destinationFile) }
/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/23] Compiling ZIPFoundation Archive+Progress.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:43:34: error: cannot find 'errno' in scope
 41 |             let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 42 |             guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
 43 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 44 |             }
 45 |             defer { fclose(destinationFile) }
/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
[18/23] Compiling ZIPFoundation Archive+Reading.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:43:34: error: cannot find 'errno' in scope
 41 |             let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
 42 |             guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
 43 |                 throw POSIXError(errno, path: url.path)
    |                                  `- error: cannot find 'errno' in scope
 44 |             }
 45 |             defer { fclose(destinationFile) }
/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
[19/23] Compiling ZIPFoundation Entry+Serialization.swift
[20/23] Compiling ZIPFoundation Entry+ZIP64.swift
[21/23] Compiling ZIPFoundation Archive+ZIP64.swift
[22/23] Compiling ZIPFoundation Archive.swift
[23/23] Compiling ZIPFoundation Data+Compression.swift
BUILD FAILURE 6.1 android