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.2 for Android on 27 Nov 2025 12:11:46 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 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.2
Building package at path:  $PWD
https://github.com/weichsel/ZIPFoundation.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c3fe93b3f7c9edfd66b4287786a9b8caf7805f96d7219e301e257b4e0de911bb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-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--6B0C4D200E742BB1.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/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+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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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,
[5/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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,
[6/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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,
[7/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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
[8/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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/24] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[11/24] Compiling ZIPFoundation URL+ZIP.swift
[12/24] Compiling ZIPFoundation Entry+Serialization.swift
[13/24] Compiling ZIPFoundation Entry+ZIP64.swift
[14/24] Compiling ZIPFoundation Archive+ZIP64.swift
[15/24] Compiling ZIPFoundation Archive.swift
[16/24] Compiling ZIPFoundation Data+Compression.swift
[17/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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 |     }
[18/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/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 |     }
[19/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[20/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[21/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.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[22/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 {
[23/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 {
[24/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 {
BUILD FAILURE 6.2 android