Build Information
Failed to build ZIPFoundation, reference development (e9b191
), with Swift 6.1 for Android on 30 May 2025 17:09:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/dagronf/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/dagronf/ZIPFoundation
* branch development -> FETCH_HEAD
* [new branch] development -> origin/development
HEAD is now at e9b1917 Update README.md
Cloned https://github.com/dagronf/ZIPFoundation.git
Revision (git rev-parse @):
e9b1917bd4d7d050e0ff4ec157b5d6e253c84385
SUCCESS checkout https://github.com/dagronf/ZIPFoundation.git at development
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/dagronf/ZIPFoundation.git
https://github.com/dagronf/ZIPFoundation.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "ZIPFoundation",
"name" : "ZIPFoundation",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "12.0"
},
{
"name" : "tvos",
"version" : "12.0"
},
{
"name" : "watchos",
"version" : "4.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "ZIPFoundation",
"targets" : [
"ZIPFoundation"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4",
"4.2",
"5"
],
"targets" : [
{
"c99name" : "ZIPFoundationTests",
"module_type" : "SwiftTarget",
"name" : "ZIPFoundationTests",
"path" : "Tests/ZIPFoundationTests",
"sources" : [
"ZIPFoundationArchiveTests+ZIP64.swift",
"ZIPFoundationArchiveTests.swift",
"ZIPFoundationDataSerializationTests.swift",
"ZIPFoundationEntryTests+ZIP64.swift",
"ZIPFoundationEntryTests.swift",
"ZIPFoundationErrorConditionTests+ZIP64.swift",
"ZIPFoundationErrorConditionTests.swift",
"ZIPFoundationFileAttributeTests.swift",
"ZIPFoundationFileManagerTests+ZIP64.swift",
"ZIPFoundationFileManagerTests.swift",
"ZIPFoundationMemoryTests.swift",
"ZIPFoundationPerformanceTests.swift",
"ZIPFoundationProgressTests.swift",
"ZIPFoundationReadingTests+ZIP64.swift",
"ZIPFoundationReadingTests.swift",
"ZIPFoundationTests.swift",
"ZIPFoundationWritingTests+ZIP64.swift",
"ZIPFoundationWritingTests.swift"
],
"target_dependencies" : [
"ZIPFoundation"
],
"type" : "test"
},
{
"c99name" : "ZIPFoundation",
"module_type" : "SwiftTarget",
"name" : "ZIPFoundation",
"path" : "Sources/ZIPFoundation",
"product_memberships" : [
"ZIPFoundation"
],
"sources" : [
"Archive+BackingConfiguration.swift",
"Archive+Deprecated.swift",
"Archive+Helpers.swift",
"Archive+MemoryFile.swift",
"Archive+Progress.swift",
"Archive+Reading.swift",
"Archive+ReadingDeprecated.swift",
"Archive+Writing.swift",
"Archive+WritingDeprecated.swift",
"Archive+ZIP64.swift",
"Archive.swift",
"Data+Compression.swift",
"Data+CompressionDeprecated.swift",
"Data+Serialization.swift",
"Date+ZIP.swift",
"Entry+Serialization.swift",
"Entry+ZIP64.swift",
"Entry.swift",
"FileManager+ZIP.swift",
"FileManager+ZIPDeprecated.swift",
"URL+ZIP.swift"
],
"target_dependencies" : [
"CZLib"
],
"type" : "library"
},
{
"c99name" : "CZLib",
"module_type" : "SystemLibraryTarget",
"name" : "CZLib",
"path" : "Sources/CZLib",
"product_memberships" : [
"ZIPFoundation"
],
"sources" : [
],
"type" : "system-target"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
[3/22] Compiling ZIPFoundation Entry+Serialization.swift
[4/22] Compiling ZIPFoundation Entry+ZIP64.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/24] Emitting module ZIPFoundation
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
| |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
| |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
/host/spi-builder-workspace/Sources/ZIPFoundation/Date+ZIP.swift:77:11: error: cannot find type 'stat' in scope
75 | }
76 |
77 | extension stat {
| `- error: cannot find type 'stat' in scope
78 |
79 | var lastAccessDate: Date {
[6/24] Compiling ZIPFoundation Archive+BackingConfiguration.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
48 | let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
49 | guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
50 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
51 | }
52 | guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:72:34: error: cannot find 'errno' in scope
70 | let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
71 | guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
72 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
73 | }
74 | guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:109:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
107 | zipFileCommentData: Data())
108 | _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
109 | fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
110 | }
111 | fallthrough
[7/24] Compiling ZIPFoundation Archive+Deprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
48 | let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
49 | guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
50 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
51 | }
52 | guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:72:34: error: cannot find 'errno' in scope
70 | let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
71 | guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
72 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
73 | }
74 | guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:109:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
107 | zipFileCommentData: Data())
108 | _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
109 | fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
110 | }
111 | fallthrough
[8/24] Compiling ZIPFoundation Archive+Helpers.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
48 | let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
49 | guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
50 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
51 | }
52 | guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:72:34: error: cannot find 'errno' in scope
70 | let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
71 | guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
72 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
73 | }
74 | guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:109:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
107 | zipFileCommentData: Data())
108 | _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
109 | fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
110 | }
111 | fallthrough
[9/24] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
68 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
69 | guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
70 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
71 | }
72 | defer { fclose(entryFile) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift: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,
[10/24] Compiling ZIPFoundation Archive+Writing.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
68 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
69 | guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
70 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
71 | }
72 | defer { fclose(entryFile) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift: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,
[11/24] Compiling ZIPFoundation Archive+WritingDeprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
68 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
69 | guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
70 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
71 | }
72 | defer { fclose(entryFile) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift: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,
[12/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.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
[13/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.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/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.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/24] Compiling ZIPFoundation Archive+ZIP64.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
| |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
| |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[16/24] Compiling ZIPFoundation Archive.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
| |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
| |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[17/24] Compiling ZIPFoundation Data+Compression.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:146:5: warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
144 |
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
| |- warning: var 'maxUInt32' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxUInt32' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'maxUInt32' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | var maxUInt16 = UInt16.max
148 |
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+ZIP64.swift:147:5: warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
145 | /// Properties that represent the maximum value of each field
146 | var maxUInt32 = UInt32.max
147 | var maxUInt16 = UInt16.max
| |- warning: var 'maxUInt16' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxUInt16' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'maxUInt16' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 |
149 | var maxCompressedSize: UInt32 { maxUInt32 }
[18/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.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: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 | }
[19/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.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: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 | }
[20/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 {
[21/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 {
[22/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 {
[23/24] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[24/24] Compiling ZIPFoundation URL+ZIP.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 74 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddUncompressedEntryProgress.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedDataDescriptorArchive.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractEntryWithZIP64DataDescriptor.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddSymbolicLink.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUpdateArchiveRemoveUncompressedEntryFromMemory.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemWithZIP64DataDescriptor.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testSimpleTraversalAttack.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddUncompressedEntryToMemory.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedFolderEntries.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testAddEntryToArchiveWithZIP64LFHOffset.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemWithPreferredEncoding.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedFolderEntriesFromMemory.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedFolderEntriesFromMemory.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipCompressedZIP64Item.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedDataDescriptorArchive.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testInvalidCompressionMethodErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZipItem.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddUncompressedEntry.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveUncompressedEntry.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testPathDelimiterTraversalAttack.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedEntryCancelation.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddCompressedEntryProgress.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddCompressedEntry.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZIP64ArchiveAddEntryProgress.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddZeroSizeCompressedEntry.txt
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testDetectEntryType.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testSymlinkPermissionsTransferErrorConditions.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveReadErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractInvalidBufferSizeErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZipItemProgress.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddEntryErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testFileModificationDate.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveEntryErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedFolderEntries.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveEntryFromArchiveWithZIP64EOCD.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZipUncompressedZIP64Item.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractEncryptedArchiveErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testSymlinkModificationDateTransferErrorConditions.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddZeroSizeUncompressedEntry.txt
/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/testAddDirectoryToArchiveWithZIP64LFHOffset.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveEntryWithZIP64ExtendedInformation.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testPOSIXPermissions.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractPreferredEncoding.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/testRemoveCompressedEntry.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZIP64ArchiveAddEntryProgress.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemProgress.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveIteratorErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddCompressedEntryToMemory.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddUncompressedEntryProgress.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateArchiveAddEntryErrorConditions.txt
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItemErrorConditions.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCreateZIP64ArchiveAddUncompressedEntry.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testProgressHelpers.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCRC32Check.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCRC32Calculation.data
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedZIP64Entries.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveEntryProgress.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipItem.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testCorruptFileErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testMemoryArchiveErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testEntryIsCompressed.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractErrorConditions.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedEmptyFile.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testUnzipUncompressedZIP64Item.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testRemoveZIP64EntryFromArchiveWithZIP64EOCD.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testArchiveAddCompressedEntryProgress.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractMSDOSArchive.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testZipCompressedZIP64Item.png
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractUncompressedZIP64Entries.zip
/host/spi-builder-workspace/Tests/ZIPFoundationTests/Resources/testExtractCompressedEntryCancelation.zip
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/21] 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 {
[3/23] Compiling ZIPFoundation Archive+ReadingDeprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
68 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
69 | guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
70 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
71 | }
72 | defer { fclose(entryFile) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift: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,
[4/23] Compiling ZIPFoundation Archive+Writing.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
68 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
69 | guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
70 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
71 | }
72 | defer { fclose(entryFile) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift: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,
[5/23] Compiling ZIPFoundation Archive+WritingDeprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift:70:34: error: cannot find 'errno' in scope
68 | let entryFileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: fileURL.path)
69 | guard let entryFile: FILEPointer = fopen(entryFileSystemRepresentation, "rb") else {
70 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
71 | }
72 | defer { fclose(entryFile) }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+Writing.swift: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,
[6/23] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[7/23] Compiling ZIPFoundation URL+ZIP.swift
[8/23] Compiling ZIPFoundation Entry+Serialization.swift
[9/23] Compiling ZIPFoundation Entry+ZIP64.swift
[10/23] 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 {
[11/23] 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 {
[12/23] 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 {
[13/23] 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.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/23] 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.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/23] 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.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/23] Compiling ZIPFoundation Archive+ZIP64.swift
[17/23] Compiling ZIPFoundation Archive.swift
[18/23] Compiling ZIPFoundation Data+Compression.swift
[19/23] Compiling ZIPFoundation Entry.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Entry.swift:29:25: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
27 |
28 | init(mode: mode_t) {
29 | switch mode & S_IFMT {
| |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
| `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
30 | case S_IFDIR:
31 | self = .directory
/host/spi-builder-workspace/Sources/ZIPFoundation/Entry.swift: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.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: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 | }
[20/23] Compiling ZIPFoundation FileManager+ZIP.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Entry.swift:29:25: error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
27 |
28 | init(mode: mode_t) {
29 | switch mode & S_IFMT {
| |- error: binary operator '&' cannot be applied to operands of type 'mode_t' (aka 'UInt32') and 'Int32'
| `- note: overloads for '&' exist with these partially matching parameter lists: (Int32, Int32), (UInt32, UInt32)
30 | case S_IFDIR:
31 | self = .directory
/host/spi-builder-workspace/Sources/ZIPFoundation/Entry.swift: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.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: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 | }
[21/23] Compiling ZIPFoundation Archive+BackingConfiguration.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
48 | let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
49 | guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
50 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
51 | }
52 | guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:72:34: error: cannot find 'errno' in scope
70 | let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
71 | guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
72 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
73 | }
74 | guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:109:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
107 | zipFileCommentData: Data())
108 | _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
109 | fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
110 | }
111 | fallthrough
[22/23] Compiling ZIPFoundation Archive+Deprecated.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
48 | let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
49 | guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
50 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
51 | }
52 | guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:72:34: error: cannot find 'errno' in scope
70 | let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
71 | guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
72 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
73 | }
74 | guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:109:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
107 | zipFileCommentData: Data())
108 | _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
109 | fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
110 | }
111 | fallthrough
[23/23] Compiling ZIPFoundation Archive+Helpers.swift
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:50:34: error: cannot find 'errno' in scope
48 | let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
49 | guard let archiveFile = fopen(fileSystemRepresentation, "rb") else {
50 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
51 | }
52 | guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:72:34: error: cannot find 'errno' in scope
70 | let fileSystemRepresentation = fileManager.fileSystemRepresentation(withPath: url.path)
71 | guard let archiveFile = fopen(fileSystemRepresentation, "rb+") else {
72 | throw POSIXError(errno, path: url.path)
| `- error: cannot find 'errno' in scope
73 | }
74 | guard let (eocdRecord, zip64EOCD) = Archive.scanForEndOfCentralDirectoryRecord(in: archiveFile) else {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/ZIPFoundation/Archive+BackingConfiguration.swift:109:31: error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
107 | zipFileCommentData: Data())
108 | _ = endOfCentralDirectoryRecord.data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
109 | fwrite(buffer.baseAddress, buffer.count, 1, archiveFile) // Errors handled during read
| |- error: value of optional type 'UnsafeRawPointer?' must be unwrapped to a value of type 'UnsafeRawPointer'
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
110 | }
111 | fallthrough
BUILD FAILURE 6.1 android