Build Information
Failed to build ReadiumZIPFoundation, reference develop (175c38
), with Swift 6.1 for Android on 30 May 2025 12:20:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/readium/ZIPFoundation.git
Reference: develop
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/readium/ZIPFoundation
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at 175c389 3.0.0 (#13)
Cloned https://github.com/readium/ZIPFoundation.git
Revision (git rev-parse @):
175c389832d90cb0e992b2cb9d5d7878eccfe725
SUCCESS checkout https://github.com/readium/ZIPFoundation.git at develop
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/readium/ZIPFoundation.git
https://github.com/readium/ZIPFoundation.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "ReadiumZIPFoundation",
"name" : "ReadiumZIPFoundation",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "4.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "ReadiumZIPFoundation",
"targets" : [
"ReadiumZIPFoundation"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4",
"4.2",
"5"
],
"targets" : [
{
"c99name" : "ReadiumZIPFoundationTests",
"module_type" : "SwiftTarget",
"name" : "ReadiumZIPFoundationTests",
"path" : "Tests",
"sources" : [
"ZIPFoundationTests/ZIPFoundationArchiveTests+ZIP64.swift",
"ZIPFoundationTests/ZIPFoundationArchiveTests.swift",
"ZIPFoundationTests/ZIPFoundationDataSerializationTests.swift",
"ZIPFoundationTests/ZIPFoundationEntryTests+ZIP64.swift",
"ZIPFoundationTests/ZIPFoundationEntryTests.swift",
"ZIPFoundationTests/ZIPFoundationErrorConditionTests+ZIP64.swift",
"ZIPFoundationTests/ZIPFoundationErrorConditionTests.swift",
"ZIPFoundationTests/ZIPFoundationFileAttributeTests.swift",
"ZIPFoundationTests/ZIPFoundationFileManagerTests+ZIP64.swift",
"ZIPFoundationTests/ZIPFoundationFileManagerTests.swift",
"ZIPFoundationTests/ZIPFoundationPerformanceTests.swift",
"ZIPFoundationTests/ZIPFoundationProgressTests.swift",
"ZIPFoundationTests/ZIPFoundationReadingTests+ZIP64.swift",
"ZIPFoundationTests/ZIPFoundationReadingTests.swift",
"ZIPFoundationTests/ZIPFoundationTests.swift",
"ZIPFoundationTests/ZIPFoundationWritingTests+ZIP64.swift",
"ZIPFoundationTests/ZIPFoundationWritingTests.swift"
],
"target_dependencies" : [
"ReadiumZIPFoundation"
],
"type" : "test"
},
{
"c99name" : "ReadiumZIPFoundation",
"module_type" : "SwiftTarget",
"name" : "ReadiumZIPFoundation",
"path" : "Sources/ZIPFoundation",
"product_memberships" : [
"ReadiumZIPFoundation"
],
"sources" : [
"Archive+BackingConfiguration.swift",
"Archive+Helpers.swift",
"Archive+Progress.swift",
"Archive+Reading.swift",
"Archive+Writing.swift",
"Archive+ZIP64.swift",
"Archive.swift",
"Data+Compression.swift",
"Data+Serialization.swift",
"DataSource.swift",
"Date+ZIP.swift",
"Entry+Serialization.swift",
"Entry+ZIP64.swift",
"Entry.swift",
"FileDataSource.swift",
"FileManager+ZIP.swift",
"SharedMutableValue.swift",
"URL+ZIP.swift"
],
"target_dependencies" : [
"CZLib"
],
"type" : "library"
},
{
"c99name" : "CZLib",
"module_type" : "SystemLibraryTarget",
"name" : "CZLib",
"path" : "Sources/CZLib",
"product_memberships" : [
"ReadiumZIPFoundation"
],
"sources" : [
],
"type" : "system-target"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
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/19] Emitting module ReadiumZIPFoundation
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Serialization.swift:22:1: warning: extension declares a conformance of imported type 'OpaquePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
20 | extension FILEPointer: @unchecked @retroactive Sendable {}
21 | #else
22 | extension FILEPointer: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'OpaquePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
23 | #endif
24 |
/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 ReadiumZIPFoundation Archive+BackingConfiguration.swift
[5/21] Compiling ReadiumZIPFoundation Archive+Helpers.swift
[6/21] Compiling ReadiumZIPFoundation Archive+Progress.swift
[7/21] Compiling ReadiumZIPFoundation SharedMutableValue.swift
[8/21] Compiling ReadiumZIPFoundation URL+ZIP.swift
[9/21] Compiling ReadiumZIPFoundation FileDataSource.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/FileDataSource.swift:120:9: error: cannot find 'ftruncate' in scope
118 |
119 | func truncate(to length: UInt64) async throws {
120 | ftruncate(fileno(file), off_t(length))
| `- error: cannot find 'ftruncate' in scope
121 | try checkNoError()
122 | }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileDataSource.swift:144:30: error: cannot find 'errno' in scope
142 | let fsRepr = FileManager.default.fileSystemRepresentation(withPath: path)
143 | guard let file = fopen(fsRepr, mode.rawValue) else {
144 | throw POSIXError(errno, path: path)
| `- error: cannot find 'errno' in scope
145 | }
146 | return file
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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.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: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.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:214:19: error: cannot find 'lutimes' in scope
212 | ]
213 | try array.withUnsafeBufferPointer {
214 | guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
| `- error: cannot find 'lutimes' in scope
215 | throw POSIXError(errno, path: url.path)
216 | }
/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.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:244:72: error: cannot find 'S_IFMT' in scope
242 | switch osType {
243 | case .unix, .osx:
244 | let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
| `- error: cannot find 'S_IFMT' in scope
245 | let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
246 | return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:256:30: error: cannot find 'S_IFREG' in scope
254 | switch type {
255 | case .file:
256 | typeInt = UInt16(S_IFREG)
| `- error: cannot find 'S_IFREG' in scope
257 | case .directory:
258 | typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:258:30: error: cannot find 'S_IFDIR' in scope
256 | typeInt = UInt16(S_IFREG)
257 | case .directory:
258 | typeInt = UInt16(S_IFDIR)
| `- error: cannot find 'S_IFDIR' in scope
259 | case .symlink:
260 | typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:260:30: error: cannot find 'S_IFLNK' in scope
258 | typeInt = UInt16(S_IFDIR)
259 | case .symlink:
260 | typeInt = UInt16(S_IFLNK)
| `- error: cannot find 'S_IFLNK' in scope
261 | }
262 | var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:270:24: error: cannot find 'stat' in scope
268 | let fileManager = FileManager()
269 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
271 | lstat(entryFileSystemRepresentation, &fileStat)
272 | let permissions = fileStat.st_mode
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:271:9: error: cannot find 'lstat' in scope
269 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 | var fileStat = stat()
271 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
272 | let permissions = fileStat.st_mode
273 | return UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:282:24: error: cannot find 'stat' in scope
280 | }
281 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
283 | lstat(entryFileSystemRepresentation, &fileStat)
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:283:9: error: cannot find 'lstat' in scope
281 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 | var fileStat = stat()
283 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
285 | let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:301:24: error: cannot find 'stat' in scope
299 | }
300 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
301 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
302 | lstat(entryFileSystemRepresentation, &fileStat)
303 | guard fileStat.st_size >= 0 else {
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:302:9: error: cannot find 'lstat' in scope
300 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
301 | var fileStat = stat()
302 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
303 | guard fileStat.st_size >= 0 else {
304 | throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path])
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:316:24: error: cannot find 'stat' in scope
314 | }
315 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
317 | lstat(entryFileSystemRepresentation, &fileStat)
318 | return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:317:9: error: cannot find 'lstat' in scope
315 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 | var fileStat = stat()
317 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
318 | return Entry.EntryType(mode: mode_t(fileStat.st_mode))
319 | }
[10/21] Compiling ReadiumZIPFoundation FileManager+ZIP.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/FileDataSource.swift:120:9: error: cannot find 'ftruncate' in scope
118 |
119 | func truncate(to length: UInt64) async throws {
120 | ftruncate(fileno(file), off_t(length))
| `- error: cannot find 'ftruncate' in scope
121 | try checkNoError()
122 | }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileDataSource.swift:144:30: error: cannot find 'errno' in scope
142 | let fsRepr = FileManager.default.fileSystemRepresentation(withPath: path)
143 | guard let file = fopen(fsRepr, mode.rawValue) else {
144 | throw POSIXError(errno, path: path)
| `- error: cannot find 'errno' in scope
145 | }
146 | return file
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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.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: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.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:214:19: error: cannot find 'lutimes' in scope
212 | ]
213 | try array.withUnsafeBufferPointer {
214 | guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
| `- error: cannot find 'lutimes' in scope
215 | throw POSIXError(errno, path: url.path)
216 | }
/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.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:244:72: error: cannot find 'S_IFMT' in scope
242 | switch osType {
243 | case .unix, .osx:
244 | let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
| `- error: cannot find 'S_IFMT' in scope
245 | let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
246 | return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:256:30: error: cannot find 'S_IFREG' in scope
254 | switch type {
255 | case .file:
256 | typeInt = UInt16(S_IFREG)
| `- error: cannot find 'S_IFREG' in scope
257 | case .directory:
258 | typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:258:30: error: cannot find 'S_IFDIR' in scope
256 | typeInt = UInt16(S_IFREG)
257 | case .directory:
258 | typeInt = UInt16(S_IFDIR)
| `- error: cannot find 'S_IFDIR' in scope
259 | case .symlink:
260 | typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:260:30: error: cannot find 'S_IFLNK' in scope
258 | typeInt = UInt16(S_IFDIR)
259 | case .symlink:
260 | typeInt = UInt16(S_IFLNK)
| `- error: cannot find 'S_IFLNK' in scope
261 | }
262 | var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:270:24: error: cannot find 'stat' in scope
268 | let fileManager = FileManager()
269 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
271 | lstat(entryFileSystemRepresentation, &fileStat)
272 | let permissions = fileStat.st_mode
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:271:9: error: cannot find 'lstat' in scope
269 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 | var fileStat = stat()
271 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
272 | let permissions = fileStat.st_mode
273 | return UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:282:24: error: cannot find 'stat' in scope
280 | }
281 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
283 | lstat(entryFileSystemRepresentation, &fileStat)
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:283:9: error: cannot find 'lstat' in scope
281 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 | var fileStat = stat()
283 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
285 | let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:301:24: error: cannot find 'stat' in scope
299 | }
300 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
301 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
302 | lstat(entryFileSystemRepresentation, &fileStat)
303 | guard fileStat.st_size >= 0 else {
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:302:9: error: cannot find 'lstat' in scope
300 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
301 | var fileStat = stat()
302 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
303 | guard fileStat.st_size >= 0 else {
304 | throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path])
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:316:24: error: cannot find 'stat' in scope
314 | }
315 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
317 | lstat(entryFileSystemRepresentation, &fileStat)
318 | return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:317:9: error: cannot find 'lstat' in scope
315 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 | var fileStat = stat()
317 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
318 | return Entry.EntryType(mode: mode_t(fileStat.st_mode))
319 | }
[11/21] Compiling ReadiumZIPFoundation Data+Serialization.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Serialization.swift:22:1: warning: extension declares a conformance of imported type 'OpaquePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
20 | extension FILEPointer: @unchecked @retroactive Sendable {}
21 | #else
22 | extension FILEPointer: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'OpaquePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
23 | #endif
24 |
[12/21] Compiling ReadiumZIPFoundation DataSource.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Serialization.swift:22:1: warning: extension declares a conformance of imported type 'OpaquePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
20 | extension FILEPointer: @unchecked @retroactive Sendable {}
21 | #else
22 | extension FILEPointer: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'OpaquePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
23 | #endif
24 |
[13/21] Compiling ReadiumZIPFoundation 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 {
[14/21] Compiling ReadiumZIPFoundation Entry+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 {
[15/21] Compiling ReadiumZIPFoundation Archive+Reading.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:42:34: error: cannot find 'errno' in scope
40 | let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
41 | guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
42 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
43 | }
44 | 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
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:71:34: error: cannot find 'errno' in scope
69 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
70 | guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
71 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
72 | }
73 | 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
[16/21] Compiling ReadiumZIPFoundation Archive+Writing.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:42:34: error: cannot find 'errno' in scope
40 | let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
41 | guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
42 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
43 | }
44 | 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
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:71:34: error: cannot find 'errno' in scope
69 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
70 | guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
71 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
72 | }
73 | 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
[17/21] Compiling ReadiumZIPFoundation Archive+ZIP64.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:42:34: error: cannot find 'errno' in scope
40 | let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
41 | guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
42 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
43 | }
44 | 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
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:71:34: error: cannot find 'errno' in scope
69 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
70 | guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
71 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
72 | }
73 | 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
[18/21] Compiling ReadiumZIPFoundation Entry+ZIP64.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:159:92: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
157 | switch osType {
158 | case .unix, .osx:
159 | 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)
160 | switch mode {
161 | case S_IFREG:
[19/21] Compiling ReadiumZIPFoundation 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:159:92: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
157 | switch osType {
158 | case .unix, .osx:
159 | 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)
160 | switch mode {
161 | case S_IFREG:
[20/21] Compiling ReadiumZIPFoundation Archive.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Compression.swift:184:51: error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
182 | zipCRC32 = inputChunk.crc32(checksum: zipCRC32)
183 | stream.avail_in = UInt32(inputChunk.count)
184 | try inputChunk.withUnsafeMutableBytes { (rawBufferPointer) in
| `- error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
185 | if let baseAddress = rawBufferPointer.baseAddress {
186 | let pointer = baseAddress.assumingMemoryBound(to: UInt8.self)
:
207 |
208 | outputChunk.count = bufferSize - Int(stream.avail_out)
209 | try await consumer(outputChunk)
| `- note: 'async' inferred from asynchronous operation used here
210 | } while stream.avail_out == 0
211 | }
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Compression.swift:229:46: error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
227 | var chunk = try await provider(position, bufferSize)
228 | position += Int64(chunk.count)
229 | try chunk.withUnsafeMutableBytes { (rawBufferPointer) in
| `- error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
230 | if let baseAddress = rawBufferPointer.baseAddress, rawBufferPointer.count > 0 {
231 | let pointer = baseAddress.assumingMemoryBound(to: UInt8.self)
:
250 | let remainingLength = UInt32(bufferSize) - stream.avail_out
251 | outputData.count = Int(remainingLength)
252 | try await consumer(outputData)
| `- note: 'async' inferred from asynchronous operation used here
253 | if !skipCRC32 { unzipCRC32 = outputData.crc32(checksum: unzipCRC32) }
254 | } while stream.avail_out == 0
[21/21] Compiling ReadiumZIPFoundation Data+Compression.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Compression.swift:184:51: error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
182 | zipCRC32 = inputChunk.crc32(checksum: zipCRC32)
183 | stream.avail_in = UInt32(inputChunk.count)
184 | try inputChunk.withUnsafeMutableBytes { (rawBufferPointer) in
| `- error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
185 | if let baseAddress = rawBufferPointer.baseAddress {
186 | let pointer = baseAddress.assumingMemoryBound(to: UInt8.self)
:
207 |
208 | outputChunk.count = bufferSize - Int(stream.avail_out)
209 | try await consumer(outputChunk)
| `- note: 'async' inferred from asynchronous operation used here
210 | } while stream.avail_out == 0
211 | }
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Compression.swift:229:46: error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
227 | var chunk = try await provider(position, bufferSize)
228 | position += Int64(chunk.count)
229 | try chunk.withUnsafeMutableBytes { (rawBufferPointer) in
| `- error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
230 | if let baseAddress = rawBufferPointer.baseAddress, rawBufferPointer.count > 0 {
231 | let pointer = baseAddress.assumingMemoryBound(to: UInt8.self)
:
250 | let remainingLength = UInt32(bufferSize) - stream.avail_out
251 | outputData.count = Int(remainingLength)
252 | try await consumer(outputData)
| `- note: 'async' inferred from asynchronous operation used here
253 | if !skipCRC32 { unzipCRC32 = outputData.crc32(checksum: unzipCRC32) }
254 | } while stream.avail_out == 0
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': found 72 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractEntryWithZIP64DataDescriptor.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testProgressHelpers.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedDataDescriptorArchive.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedEntryCancelation.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZipItemProgress.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedEntryCancelation.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZipItem.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipUncompressedZIP64Item.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCorruptSymbolicLinkErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateZIP64ArchiveAddUncompressedEntry.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedFolderEntriesFromMemory.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveDataDescriptorCompressedEntry.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipUncontainedSymlink.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZipCompressedZIP64Item.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testAddEntryToArchiveWithZIP64LFHOffset.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemWithZIP64DataDescriptor.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testAddDirectoryToArchiveWithZIP64LFHOffset.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCRC32Check.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedZIP64Entries.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemErrorConditions.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZIP64ArchiveAddEntryProgress.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveEntryWithZIP64ExtendedInformation.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testDetectEntryType.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddEntryErrorConditions.txt
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractMSDOSArchive.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testPathDelimiterTraversalAttack.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveEntryErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testSymlinkModificationDateTransferErrorConditions.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddUncompressedEntryToMemory.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedFolderEntriesFromMemory.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddUncompressedEntryProgress.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testPOSIXPermissions.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testSimpleTraversalAttack.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddZeroSizeUncompressedEntry.txt
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveEntryFromArchiveWithZIP64EOCD.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCorruptFileErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testEntryIsCompressed.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testInvalidCompressionMethodErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveZIP64EntryFromArchiveWithZIP64EOCD.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddCompressedEntryToMemory.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractEncryptedArchiveErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedZIP64Entries.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedDataDescriptorArchive.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testSymlinkPermissionsTransferErrorConditions.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddCompressedEntryProgress.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveEntryProgress.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedFolderEntries.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddCompressedEntry.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedEmptyFile.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCRC32Calculation.data
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveCompressedEntry.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddUncompressedEntry.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddCompressedEntryProgress.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractPreferredEncoding.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemWithPreferredEncoding.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddZeroSizeCompressedEntry.txt
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZIP64ArchiveAddEntryProgress.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddUncompressedEntryProgress.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveUncompressedEntry.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZipUncompressedZIP64Item.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipCompressedZIP64Item.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveIteratorErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUpdateArchiveRemoveUncompressedEntryFromMemory.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddEntryErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddSymbolicLink.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedFolderEntries.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemProgress.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractInvalidBufferSizeErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItem.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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/18] Emitting module ReadiumZIPFoundation
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Serialization.swift:22:1: warning: extension declares a conformance of imported type 'OpaquePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
20 | extension FILEPointer: @unchecked @retroactive Sendable {}
21 | #else
22 | extension FILEPointer: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'OpaquePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
23 | #endif
24 |
/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/20] Compiling ReadiumZIPFoundation SharedMutableValue.swift
[4/20] Compiling ReadiumZIPFoundation URL+ZIP.swift
[5/20] Compiling ReadiumZIPFoundation Entry+ZIP64.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:159:92: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
157 | switch osType {
158 | case .unix, .osx:
159 | 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)
160 | switch mode {
161 | case S_IFREG:
[6/20] Compiling ReadiumZIPFoundation 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:159:92: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
157 | switch osType {
158 | case .unix, .osx:
159 | 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)
160 | switch mode {
161 | case S_IFREG:
[7/20] Compiling ReadiumZIPFoundation Archive.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Compression.swift:184:51: error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
182 | zipCRC32 = inputChunk.crc32(checksum: zipCRC32)
183 | stream.avail_in = UInt32(inputChunk.count)
184 | try inputChunk.withUnsafeMutableBytes { (rawBufferPointer) in
| `- error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
185 | if let baseAddress = rawBufferPointer.baseAddress {
186 | let pointer = baseAddress.assumingMemoryBound(to: UInt8.self)
:
207 |
208 | outputChunk.count = bufferSize - Int(stream.avail_out)
209 | try await consumer(outputChunk)
| `- note: 'async' inferred from asynchronous operation used here
210 | } while stream.avail_out == 0
211 | }
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Compression.swift:229:46: error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
227 | var chunk = try await provider(position, bufferSize)
228 | position += Int64(chunk.count)
229 | try chunk.withUnsafeMutableBytes { (rawBufferPointer) in
| `- error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
230 | if let baseAddress = rawBufferPointer.baseAddress, rawBufferPointer.count > 0 {
231 | let pointer = baseAddress.assumingMemoryBound(to: UInt8.self)
:
250 | let remainingLength = UInt32(bufferSize) - stream.avail_out
251 | outputData.count = Int(remainingLength)
252 | try await consumer(outputData)
| `- note: 'async' inferred from asynchronous operation used here
253 | if !skipCRC32 { unzipCRC32 = outputData.crc32(checksum: unzipCRC32) }
254 | } while stream.avail_out == 0
[8/20] Compiling ReadiumZIPFoundation Data+Compression.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Compression.swift:184:51: error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
182 | zipCRC32 = inputChunk.crc32(checksum: zipCRC32)
183 | stream.avail_in = UInt32(inputChunk.count)
184 | try inputChunk.withUnsafeMutableBytes { (rawBufferPointer) in
| `- error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
185 | if let baseAddress = rawBufferPointer.baseAddress {
186 | let pointer = baseAddress.assumingMemoryBound(to: UInt8.self)
:
207 |
208 | outputChunk.count = bufferSize - Int(stream.avail_out)
209 | try await consumer(outputChunk)
| `- note: 'async' inferred from asynchronous operation used here
210 | } while stream.avail_out == 0
211 | }
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Compression.swift:229:46: error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
227 | var chunk = try await provider(position, bufferSize)
228 | position += Int64(chunk.count)
229 | try chunk.withUnsafeMutableBytes { (rawBufferPointer) in
| `- error: cannot pass function of type '(UnsafeMutableRawBufferPointer) async throws -> ()' to parameter expecting synchronous function type
230 | if let baseAddress = rawBufferPointer.baseAddress, rawBufferPointer.count > 0 {
231 | let pointer = baseAddress.assumingMemoryBound(to: UInt8.self)
:
250 | let remainingLength = UInt32(bufferSize) - stream.avail_out
251 | outputData.count = Int(remainingLength)
252 | try await consumer(outputData)
| `- note: 'async' inferred from asynchronous operation used here
253 | if !skipCRC32 { unzipCRC32 = outputData.crc32(checksum: unzipCRC32) }
254 | } while stream.avail_out == 0
[9/20] Compiling ReadiumZIPFoundation FileDataSource.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/FileDataSource.swift:120:9: error: cannot find 'ftruncate' in scope
118 |
119 | func truncate(to length: UInt64) async throws {
120 | ftruncate(fileno(file), off_t(length))
| `- error: cannot find 'ftruncate' in scope
121 | try checkNoError()
122 | }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileDataSource.swift:144:30: error: cannot find 'errno' in scope
142 | let fsRepr = FileManager.default.fileSystemRepresentation(withPath: path)
143 | guard let file = fopen(fsRepr, mode.rawValue) else {
144 | throw POSIXError(errno, path: path)
| `- error: cannot find 'errno' in scope
145 | }
146 | return file
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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.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: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.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:214:19: error: cannot find 'lutimes' in scope
212 | ]
213 | try array.withUnsafeBufferPointer {
214 | guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
| `- error: cannot find 'lutimes' in scope
215 | throw POSIXError(errno, path: url.path)
216 | }
/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.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:244:72: error: cannot find 'S_IFMT' in scope
242 | switch osType {
243 | case .unix, .osx:
244 | let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
| `- error: cannot find 'S_IFMT' in scope
245 | let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
246 | return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:256:30: error: cannot find 'S_IFREG' in scope
254 | switch type {
255 | case .file:
256 | typeInt = UInt16(S_IFREG)
| `- error: cannot find 'S_IFREG' in scope
257 | case .directory:
258 | typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:258:30: error: cannot find 'S_IFDIR' in scope
256 | typeInt = UInt16(S_IFREG)
257 | case .directory:
258 | typeInt = UInt16(S_IFDIR)
| `- error: cannot find 'S_IFDIR' in scope
259 | case .symlink:
260 | typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:260:30: error: cannot find 'S_IFLNK' in scope
258 | typeInt = UInt16(S_IFDIR)
259 | case .symlink:
260 | typeInt = UInt16(S_IFLNK)
| `- error: cannot find 'S_IFLNK' in scope
261 | }
262 | var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:270:24: error: cannot find 'stat' in scope
268 | let fileManager = FileManager()
269 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
271 | lstat(entryFileSystemRepresentation, &fileStat)
272 | let permissions = fileStat.st_mode
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:271:9: error: cannot find 'lstat' in scope
269 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 | var fileStat = stat()
271 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
272 | let permissions = fileStat.st_mode
273 | return UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:282:24: error: cannot find 'stat' in scope
280 | }
281 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
283 | lstat(entryFileSystemRepresentation, &fileStat)
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:283:9: error: cannot find 'lstat' in scope
281 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 | var fileStat = stat()
283 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
285 | let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:301:24: error: cannot find 'stat' in scope
299 | }
300 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
301 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
302 | lstat(entryFileSystemRepresentation, &fileStat)
303 | guard fileStat.st_size >= 0 else {
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:302:9: error: cannot find 'lstat' in scope
300 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
301 | var fileStat = stat()
302 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
303 | guard fileStat.st_size >= 0 else {
304 | throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path])
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:316:24: error: cannot find 'stat' in scope
314 | }
315 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
317 | lstat(entryFileSystemRepresentation, &fileStat)
318 | return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:317:9: error: cannot find 'lstat' in scope
315 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 | var fileStat = stat()
317 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
318 | return Entry.EntryType(mode: mode_t(fileStat.st_mode))
319 | }
[10/20] Compiling ReadiumZIPFoundation FileManager+ZIP.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/FileDataSource.swift:120:9: error: cannot find 'ftruncate' in scope
118 |
119 | func truncate(to length: UInt64) async throws {
120 | ftruncate(fileno(file), off_t(length))
| `- error: cannot find 'ftruncate' in scope
121 | try checkNoError()
122 | }
/host/spi-builder-workspace/Sources/ZIPFoundation/FileDataSource.swift:144:30: error: cannot find 'errno' in scope
142 | let fsRepr = FileManager.default.fileSystemRepresentation(withPath: path)
143 | guard let file = fopen(fsRepr, mode.rawValue) else {
144 | throw POSIXError(errno, path: path)
| `- error: cannot find 'errno' in scope
145 | }
146 | return file
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/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.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: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.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:214:19: error: cannot find 'lutimes' in scope
212 | ]
213 | try array.withUnsafeBufferPointer {
214 | guard lutimes(fileSystemRepresentation, $0.baseAddress) == 0 else {
| `- error: cannot find 'lutimes' in scope
215 | throw POSIXError(errno, path: url.path)
216 | }
/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.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:244:72: error: cannot find 'S_IFMT' in scope
242 | switch osType {
243 | case .unix, .osx:
244 | let permissions = mode_t(externalFileAttributes >> 16) & (~S_IFMT)
| `- error: cannot find 'S_IFMT' in scope
245 | let defaultPermissions = entryType == .directory ? defaultDirectoryPermissions : defaultFilePermissions
246 | return permissions == 0 ? defaultPermissions : UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:256:30: error: cannot find 'S_IFREG' in scope
254 | switch type {
255 | case .file:
256 | typeInt = UInt16(S_IFREG)
| `- error: cannot find 'S_IFREG' in scope
257 | case .directory:
258 | typeInt = UInt16(S_IFDIR)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:258:30: error: cannot find 'S_IFDIR' in scope
256 | typeInt = UInt16(S_IFREG)
257 | case .directory:
258 | typeInt = UInt16(S_IFDIR)
| `- error: cannot find 'S_IFDIR' in scope
259 | case .symlink:
260 | typeInt = UInt16(S_IFLNK)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:260:30: error: cannot find 'S_IFLNK' in scope
258 | typeInt = UInt16(S_IFDIR)
259 | case .symlink:
260 | typeInt = UInt16(S_IFLNK)
| `- error: cannot find 'S_IFLNK' in scope
261 | }
262 | var externalFileAttributes = UInt32(typeInt|UInt16(permissions))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:270:24: error: cannot find 'stat' in scope
268 | let fileManager = FileManager()
269 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
271 | lstat(entryFileSystemRepresentation, &fileStat)
272 | let permissions = fileStat.st_mode
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:271:9: error: cannot find 'lstat' in scope
269 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: URL.path)
270 | var fileStat = stat()
271 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
272 | let permissions = fileStat.st_mode
273 | return UInt16(permissions)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:282:24: error: cannot find 'stat' in scope
280 | }
281 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
283 | lstat(entryFileSystemRepresentation, &fileStat)
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:283:9: error: cannot find 'lstat' in scope
281 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
282 | var fileStat = stat()
283 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
284 | #if os(macOS) || os(iOS) || os(tvOS) || os(visionOS) || os(watchOS)
285 | let modTimeSpec = fileStat.st_mtimespec
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:301:24: error: cannot find 'stat' in scope
299 | }
300 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
301 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
302 | lstat(entryFileSystemRepresentation, &fileStat)
303 | guard fileStat.st_size >= 0 else {
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:302:9: error: cannot find 'lstat' in scope
300 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
301 | var fileStat = stat()
302 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
303 | guard fileStat.st_size >= 0 else {
304 | throw CocoaError(.fileReadTooLarge, userInfo: [NSFilePathErrorKey: url.path])
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:316:24: error: cannot find 'stat' in scope
314 | }
315 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 | var fileStat = stat()
| `- error: cannot find 'stat' in scope
317 | lstat(entryFileSystemRepresentation, &fileStat)
318 | return Entry.EntryType(mode: mode_t(fileStat.st_mode))
/host/spi-builder-workspace/Sources/ZIPFoundation/FileManager+ZIP.swift:317:9: error: cannot find 'lstat' in scope
315 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
316 | var fileStat = stat()
317 | lstat(entryFileSystemRepresentation, &fileStat)
| `- error: cannot find 'lstat' in scope
318 | return Entry.EntryType(mode: mode_t(fileStat.st_mode))
319 | }
[11/20] Compiling ReadiumZIPFoundation 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 {
[12/20] Compiling ReadiumZIPFoundation Entry+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 {
[13/20] Compiling ReadiumZIPFoundation Archive+Reading.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:42:34: error: cannot find 'errno' in scope
40 | let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
41 | guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
42 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
43 | }
44 | 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
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:71:34: error: cannot find 'errno' in scope
69 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
70 | guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
71 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
72 | }
73 | 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
[14/20] Compiling ReadiumZIPFoundation Archive+Writing.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:42:34: error: cannot find 'errno' in scope
40 | let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
41 | guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
42 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
43 | }
44 | 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
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:71:34: error: cannot find 'errno' in scope
69 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
70 | guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
71 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
72 | }
73 | 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
[15/20] Compiling ReadiumZIPFoundation Archive+ZIP64.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Reading.swift:42:34: error: cannot find 'errno' in scope
40 | let destinationRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
41 | guard let destinationFile: FILEPointer = fopen(destinationRepresentation, "wb+") else {
42 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
43 | }
44 | 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
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:71:34: error: cannot find 'errno' in scope
69 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
70 | guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
71 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
72 | }
73 | 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
[16/20] Compiling ReadiumZIPFoundation Data+Serialization.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Serialization.swift:22:1: warning: extension declares a conformance of imported type 'OpaquePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
20 | extension FILEPointer: @unchecked @retroactive Sendable {}
21 | #else
22 | extension FILEPointer: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'OpaquePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
23 | #endif
24 |
[17/20] Compiling ReadiumZIPFoundation DataSource.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Data+Serialization.swift:22:1: warning: extension declares a conformance of imported type 'OpaquePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
20 | extension FILEPointer: @unchecked @retroactive Sendable {}
21 | #else
22 | extension FILEPointer: @unchecked Sendable {}
| |- warning: extension declares a conformance of imported type 'OpaquePointer' to imported protocol 'Sendable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
23 | #endif
24 |
[18/20] Compiling ReadiumZIPFoundation Archive+BackingConfiguration.swift
[19/20] Compiling ReadiumZIPFoundation Archive+Helpers.swift
[20/20] Compiling ReadiumZIPFoundation Archive+Progress.swift
BUILD FAILURE 6.1 android