Build Information
Failed to build ZIPFoundation, reference development (e9b191
), with Swift 6.2 (beta) for Android on 23 Jun 2025 01:26:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tuist/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/tuist/ZIPFoundation
* branch development -> FETCH_HEAD
* [new branch] development -> origin/development
HEAD is now at e9b1917 Update README.md
Cloned https://github.com/tuist/ZIPFoundation.git
Revision (git rev-parse @):
e9b1917bd4d7d050e0ff4ec157b5d6e253c84385
SUCCESS checkout https://github.com/tuist/ZIPFoundation.git at development
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/tuist/ZIPFoundation.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
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-8C5A4AE7A8CE2BA.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+MemoryFile.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:41:34: error: cannot find 'errno' in scope
39 | let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
40 | guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
41 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
42 | }
43 | defer { fclose(destinationFile) }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[5/24] Compiling ZIPFoundation Archive+Progress.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:41:34: error: cannot find 'errno' in scope
39 | let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
40 | guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
41 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
42 | }
43 | defer { fclose(destinationFile) }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[6/24] Compiling ZIPFoundation Archive+Reading.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:41:34: error: cannot find 'errno' in scope
39 | let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
40 | guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
41 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
42 | }
43 | defer { fclose(destinationFile) }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[7/24] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[8/24] Compiling ZIPFoundation URL+ZIP.swift
[9/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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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 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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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/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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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
[12/24] Compiling ZIPFoundation Entry+Serialization.swift
[13/24] Compiling ZIPFoundation Entry+ZIP64.swift
[14/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:152:92: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
150 | switch osType {
151 | case .unix, .osx:
152 | let mode = mode_t(self.centralDirectoryStructure.externalFileAttributes >> 16) & 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)
153 | switch mode {
154 | case S_IFREG:
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:196:15: error: cannot find 'lchmod' in scope
194 | let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
195 | let modeT = posixPermissions.uint16Value
196 | guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
| `- error: cannot find 'lchmod' in scope
197 | throw POSIXError(errno, path: url.path)
198 | }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:197:30: error: cannot find 'errno' in scope
195 | let modeT = posixPermissions.uint16Value
196 | guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
197 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
198 | }
199 | }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:203:24: error: cannot find 'stat' in scope
201 | func setSymlinkModificationDate(_ modificationDate: Date, ofItemAtURL url: URL) throws {
202 | let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
203 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
204 | guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
205 | throw POSIXError(errno, path: url.path)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:204:15: error: cannot find 'lstat' in scope
202 | let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
203 | var fileStat = stat()
204 | guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
| `- error: cannot find 'lstat' in scope
205 | throw POSIXError(errno, path: url.path)
206 | }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:205:30: error: cannot find 'errno' in scope
203 | var fileStat = stat()
204 | guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
205 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
206 | }
207 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:215:34: error: cannot find 'errno' in scope
213 | try array.withUnsafeBufferPointer {
214 | guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
215 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
216 | }
217 | }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:241:72: error: cannot find 'S_IFMT' in scope
239 | switch osType {
240 | case .unix, .osx:
241 | let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
| `- error: cannot find 'S_IFMT' in scope
242 | let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
243 | return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:253:30: error: cannot find 'S_IFREG' in scope
251 | switch type {
252 | case .file:
253 | typeInt = UInt16(S_IFREG)
| `- error: cannot find 'S_IFREG' in scope
254 | case .directory:
255 | typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:255:30: error: cannot find 'S_IFDIR' in scope
253 | typeInt = UInt16(S_IFREG)
254 | case .directory:
255 | typeInt = UInt16(S_IFDIR)
| `- error: cannot find 'S_IFDIR' in scope
256 | case .symlink:
257 | typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:257:30: error: cannot find 'S_IFLNK' in scope
255 | typeInt = UInt16(S_IFDIR)
256 | case .symlink:
257 | typeInt = UInt16(S_IFLNK)
| `- error: cannot find 'S_IFLNK' in scope
258 | }
259 | var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:267:24: error: cannot find 'stat' in scope
265 | let fileManager = FileManager()
266 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
267 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
268 | lstat(entryFileSystemRepresentation, &fileStat)
269 | let permissions = fileStat.st_mode
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:268:9: error: cannot find 'lstat' in scope
266 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
267 | var fileStat = stat()
268 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
269 | let permissions = fileStat.st_mode
270 | return UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:279:24: error: cannot find 'stat' in scope
277 | }
278 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
279 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
280 | lstat(entryFileSystemRepresentation, &fileStat)
281 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:280:9: error: cannot find 'lstat' in scope
278 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
279 | var fileStat = stat()
280 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
281 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
282 | let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:299:21: error: cannot find 'stat' in scope
297 |
298 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
299 | var stats = stat()
| `- error: cannot find 'stat' in scope
300 | lstat(entryFileSystemRepresentation, &stats)
301 | guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:300:9: error: cannot find 'lstat' in scope
298 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
299 | var stats = stat()
300 | lstat(entryFileSystemRepresentation, &stats)
| `- error: cannot find 'lstat' in scope
301 | guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
302 |
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:313:24: error: cannot find 'stat' in scope
311 | }
312 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
313 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
314 | lstat(entryFileSystemRepresentation, &fileStat)
315 | return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:314:9: error: cannot find 'lstat' in scope
312 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
313 | var fileStat = stat()
314 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
315 | return Entry.EntryType(mode: mode_t(fileStat.st_mode))
316 | }
[15/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:152:92: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
150 | switch osType {
151 | case .unix, .osx:
152 | let mode = mode_t(self.centralDirectoryStructure.externalFileAttributes >> 16) & 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)
153 | switch mode {
154 | case S_IFREG:
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:196:15: error: cannot find 'lchmod' in scope
194 | let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
195 | let modeT = posixPermissions.uint16Value
196 | guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
| `- error: cannot find 'lchmod' in scope
197 | throw POSIXError(errno, path: url.path)
198 | }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:197:30: error: cannot find 'errno' in scope
195 | let modeT = posixPermissions.uint16Value
196 | guard lchmod(fileSystemRepresentation, mode_t(modeT)) == 0 else {
197 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
198 | }
199 | }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:203:24: error: cannot find 'stat' in scope
201 | func setSymlinkModificationDate(_ modificationDate: Date, ofItemAtURL url: URL) throws {
202 | let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
203 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
204 | guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
205 | throw POSIXError(errno, path: url.path)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:204:15: error: cannot find 'lstat' in scope
202 | let fileSystemRepresentation = self.fileSystemRepresentation(withPath: url.path)
203 | var fileStat = stat()
204 | guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
| `- error: cannot find 'lstat' in scope
205 | throw POSIXError(errno, path: url.path)
206 | }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:205:30: error: cannot find 'errno' in scope
203 | var fileStat = stat()
204 | guard lstat(fileSystemRepresentation, &fileStat) == 0 else {
205 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
206 | }
207 |
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:215:34: error: cannot find 'errno' in scope
213 | try array.withUnsafeBufferPointer {
214 | guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
215 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
216 | }
217 | }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:241:72: error: cannot find 'S_IFMT' in scope
239 | switch osType {
240 | case .unix, .osx:
241 | let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
| `- error: cannot find 'S_IFMT' in scope
242 | let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
243 | return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:253:30: error: cannot find 'S_IFREG' in scope
251 | switch type {
252 | case .file:
253 | typeInt = UInt16(S_IFREG)
| `- error: cannot find 'S_IFREG' in scope
254 | case .directory:
255 | typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:255:30: error: cannot find 'S_IFDIR' in scope
253 | typeInt = UInt16(S_IFREG)
254 | case .directory:
255 | typeInt = UInt16(S_IFDIR)
| `- error: cannot find 'S_IFDIR' in scope
256 | case .symlink:
257 | typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:257:30: error: cannot find 'S_IFLNK' in scope
255 | typeInt = UInt16(S_IFDIR)
256 | case .symlink:
257 | typeInt = UInt16(S_IFLNK)
| `- error: cannot find 'S_IFLNK' in scope
258 | }
259 | var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:267:24: error: cannot find 'stat' in scope
265 | let fileManager = FileManager()
266 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
267 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
268 | lstat(entryFileSystemRepresentation, &fileStat)
269 | let permissions = fileStat.st_mode
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:268:9: error: cannot find 'lstat' in scope
266 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
267 | var fileStat = stat()
268 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
269 | let permissions = fileStat.st_mode
270 | return UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:279:24: error: cannot find 'stat' in scope
277 | }
278 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
279 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
280 | lstat(entryFileSystemRepresentation, &fileStat)
281 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:280:9: error: cannot find 'lstat' in scope
278 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
279 | var fileStat = stat()
280 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
281 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
282 | let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:299:21: error: cannot find 'stat' in scope
297 |
298 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
299 | var stats = stat()
| `- error: cannot find 'stat' in scope
300 | lstat(entryFileSystemRepresentation, &stats)
301 | guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:300:9: error: cannot find 'lstat' in scope
298 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
299 | var stats = stat()
300 | lstat(entryFileSystemRepresentation, &stats)
| `- error: cannot find 'lstat' in scope
301 | guard stats.st_size >= 0 else { throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path]) }
302 |
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:313:24: error: cannot find 'stat' in scope
311 | }
312 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
313 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
314 | lstat(entryFileSystemRepresentation, &fileStat)
315 | return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:314:9: error: cannot find 'lstat' in scope
312 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
313 | var fileStat = stat()
314 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
315 | return Entry.EntryType(mode: mode_t(fileStat.st_mode))
316 | }
[16/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 {
[17/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 {
[18/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 {
[19/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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:272:9: error: cannot find 'ftruncate' in scope
270 | _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
271 | fflush(self.archiveFile)
272 | ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
| `- error: cannot find 'ftruncate' in scope
273 | fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
274 | _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[20/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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:272:9: error: cannot find 'ftruncate' in scope
270 | _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
271 | fflush(self.archiveFile)
272 | ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
| `- error: cannot find 'ftruncate' in scope
273 | fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
274 | _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[21/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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:272:9: error: cannot find 'ftruncate' in scope
270 | _ zip64EndOfCentralDirectory: ZIP64EndOfCentralDirectory?) throws {
271 | fflush(self.archiveFile)
272 | ftruncate(fileno(self.archiveFile), off_t(localFileHeaderStart))
| `- error: cannot find 'ftruncate' in scope
273 | fseeko(self.archiveFile, off_t(localFileHeaderStart), SEEK_SET)
274 | _ = try Data.writeLargeChunk(existingCentralDirectory.data, size: existingCentralDirectory.size,
[22/24] Compiling ZIPFoundation Archive+ZIP64.swift
[23/24] Compiling ZIPFoundation Archive.swift
[24/24] Compiling ZIPFoundation Data+Compression.swift
BUILD FAILURE 6.2 android