Build Information
Failed to build FileSystem, reference 0.10.8 (7aed62
), with Swift 6.1 for Android on 17 Jun 2025 01:47:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/tuist/FileSystem.git
Reference: 0.10.8
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/tuist/FileSystem
* tag 0.10.8 -> FETCH_HEAD
HEAD is now at 7aed628 [Release] FileSystem 0.10.8
Cloned https://github.com/tuist/FileSystem.git
Revision (git rev-parse @):
7aed628044e2e0595aec876cadb694aacab13a16
SUCCESS checkout https://github.com/tuist/FileSystem.git at 0.10.8
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/tuist/FileSystem.git
https://github.com/tuist/FileSystem.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "path",
"requirement" : {
"range" : [
{
"lower_bound" : "0.3.8",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/tuist/Path"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.83.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.6.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log"
},
{
"identity" : "zipfoundation",
"requirement" : {
"range" : [
{
"lower_bound" : "0.9.20",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/tuist/ZIPFoundation"
}
],
"manifest_display_name" : "FileSystem",
"name" : "FileSystem",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "FileSystem",
"targets" : [
"FileSystem"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "FileSystemTesting",
"targets" : [
"FileSystemTesting"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "Glob",
"targets" : [
"Glob"
],
"type" : {
"library" : [
"static"
]
}
}
],
"targets" : [
{
"c99name" : "GlobTests",
"module_type" : "SwiftTarget",
"name" : "GlobTests",
"path" : "Tests/GlobTests",
"sources" : [
"PatternTests.swift",
"TestHelpers/XCTAssertMatches.swift",
"TestHelpers/XCTExpectFailure.swift"
],
"target_dependencies" : [
"Glob"
],
"type" : "test"
},
{
"c99name" : "Glob",
"module_type" : "SwiftTarget",
"name" : "Glob",
"path" : "Sources/Glob",
"product_memberships" : [
"FileSystem",
"FileSystemTesting",
"Glob"
],
"sources" : [
"GlobSearch.swift",
"InvalidPattern.swift",
"Pattern+Match.swift",
"Pattern+Options.swift",
"Pattern+Parser.swift",
"Pattern.swift",
"Unicode.GeneralCategory+Helpers.swift"
],
"type" : "library"
},
{
"c99name" : "FileSystemTests",
"module_type" : "SwiftTarget",
"name" : "FileSystemTests",
"path" : "Tests/FileSystemTests",
"sources" : [
"FileSystemTests.swift"
],
"target_dependencies" : [
"FileSystem"
],
"type" : "test"
},
{
"c99name" : "FileSystemTestingTests",
"module_type" : "SwiftTarget",
"name" : "FileSystemTestingTests",
"path" : "Tests/FileSystemTestingTests",
"sources" : [
"FileSystemTestingTraitTests.swift"
],
"target_dependencies" : [
"FileSystem",
"FileSystemTesting"
],
"type" : "test"
},
{
"c99name" : "FileSystemTesting",
"module_type" : "SwiftTarget",
"name" : "FileSystemTesting",
"path" : "Sources/FileSystemTesting",
"product_memberships" : [
"FileSystemTesting"
],
"sources" : [
"FileSystemTestingTrait.swift"
],
"target_dependencies" : [
"FileSystem"
],
"type" : "library"
},
{
"c99name" : "FileSystem",
"module_type" : "SwiftTarget",
"name" : "FileSystem",
"path" : "Sources/FileSystem",
"product_dependencies" : [
"_NIOFileSystem",
"Path",
"Logging",
"ZIPFoundation"
],
"product_memberships" : [
"FileSystem",
"FileSystemTesting"
],
"sources" : [
"AsyncSequence+Extras.swift",
"FileSystem.swift"
],
"target_dependencies" : [
"Glob"
],
"type" : "library"
}
],
"tools_version" : "5.8.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/tuist/ZIPFoundation
Fetching https://github.com/apple/swift-log
Fetching https://github.com/tuist/Path
Fetching https://github.com/apple/swift-nio
[4/354] Fetching path
[83/5229] Fetching path, zipfoundation
[989/9065] Fetching path, zipfoundation, swift-log
[9066/85388] Fetching path, zipfoundation, swift-log, swift-nio
Fetched https://github.com/tuist/ZIPFoundation from cache (0.77s)
[8770/80513] Fetching path, swift-log, swift-nio
Fetched https://github.com/tuist/Path from cache (8.15s)
Fetched https://github.com/apple/swift-log from cache (8.16s)
Fetched https://github.com/apple/swift-nio from cache (8.29s)
Computing version for https://github.com/tuist/ZIPFoundation
Computed https://github.com/tuist/ZIPFoundation at 0.9.20 (9.38s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.3 (0.96s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.83.0 (6.46s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/1797] Fetching swift-atomics
[451/6225] Fetching swift-atomics, swift-system
[6226/22831] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.68s)
[8746/21034] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.79s)
Fetched https://github.com/apple/swift-collections.git from cache (1.84s)
Computing version for https://github.com/tuist/Path
Computed https://github.com/tuist/Path at 0.3.8 (2.76s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.75s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.62s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.83s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/tuist/ZIPFoundation
Working copy of https://github.com/tuist/ZIPFoundation resolved at 0.9.20
Creating working copy for https://github.com/tuist/Path
Working copy of https://github.com/tuist/Path resolved at 0.3.8
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.83.0
warning: 'zipfoundation': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
Building for debugging...
[0/51] Write sources
[16/51] Compiling _AtomicsShims.c
[17/51] Compiling CNIOWindows shim.c
[18/51] Compiling CNIOWindows WSAStartup.c
[19/51] Compiling CNIODarwin shim.c
[19/51] Write sources
[21/51] Compiling CNIOWASI CNIOWASI.c
[21/51] Compiling CNIOLinux liburing_shims.c
[23/51] Compiling CSystem shims.c
[24/51] Compiling CNIOLinux shim.c
[25/51] Write swift-version-24593BA9C3E375BF.txt
[27/112] Emitting module _NIOBase64
[28/112] Emitting module _NIODataStructures
[29/112] Emitting module SystemPackage
[29/115] Compiling c-atomics.c
[30/115] Compiling c-nioatomics.c
[32/115] Compiling SystemPackage Util+StringArray.swift
[33/115] Compiling SystemPackage Util.swift
[34/115] Compiling SystemPackage UtilConsumers.swift
[35/115] Compiling _NIODataStructures _TinyArray.swift
[36/115] Compiling _NIOBase64 Base64.swift
[37/116] Compiling _NIODataStructures PriorityQueue.swift
[38/116] Compiling Path Path.swift
[39/116] Emitting module Path
error: emit-module command failed with exit code 1 (use -v to see invocation)
[40/117] Emitting module ZIPFoundation
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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 {
[41/117] Compiling SystemPackage MachPort.swift
[42/117] Compiling SystemPackage PlatformString.swift
[43/117] Compiling SystemPackage SystemString.swift
[44/133] Compiling _NIODataStructures Heap.swift
[47/144] Wrapping AST for _NIOBase64 for debugging
[49/148] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[49/149] Wrapping AST for _NIODataStructures for debugging
[51/167] Compiling Atomics IntegerConformances.swift
[52/167] Compiling Atomics PointerConformances.swift
[53/167] Compiling Atomics Primitives.native.swift
[54/167] Compiling Atomics AtomicMemoryOrderings.swift
[54/167] Wrapping AST for Path for debugging
[56/167] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[57/167] Compiling Atomics OptionalRawRepresentable.swift
[58/167] Compiling Atomics RawRepresentable.swift
[59/167] Compiling Atomics UnsafeAtomic.swift
[60/167] Compiling Atomics UnsafeAtomicLazyReference.swift
[61/169] Compiling Atomics ManagedAtomic.swift
[62/169] Compiling Atomics ManagedAtomicLazyReference.swift
[63/169] Compiling NIOConcurrencyHelpers NIOLock.swift
[64/169] Compiling Atomics AtomicStorage.swift
[65/169] Compiling Atomics AtomicValue.swift
[67/169] Compiling Atomics DoubleWord.swift
[68/169] Emitting module InternalCollectionsUtilities
[69/169] Compiling Atomics AtomicOptionalWrappable.swift
[70/169] Compiling Atomics AtomicReference.swift
[73/169] Compiling Atomics AtomicBool.swift
[74/169] Compiling Atomics AtomicInteger.swift
[75/170] Compiling NIOConcurrencyHelpers lock.swift
[76/170] Emitting module NIOConcurrencyHelpers
[77/170] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[78/170] Compiling Atomics IntegerOperations.swift
[79/170] Compiling Atomics Unmanaged extensions.swift
[81/170] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[82/170] Compiling NIOConcurrencyHelpers atomics.swift
[86/171] Wrapping AST for InternalCollectionsUtilities for debugging
[87/171] Wrapping AST for NIOConcurrencyHelpers for debugging
[89/186] Compiling DequeModule _DequeBuffer.swift
[90/186] Compiling DequeModule _DequeBufferHeader.swift
[91/188] Compiling DequeModule Deque+Testing.swift
[92/188] Compiling DequeModule Deque._Storage.swift
[93/188] Compiling DequeModule Deque+Equatable.swift
[94/188] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[95/188] Compiling DequeModule Deque+Extras.swift
[96/188] Compiling DequeModule Deque+Hashable.swift
[97/188] Compiling DequeModule Deque+CustomReflectable.swift
[98/188] Compiling DequeModule Deque+Descriptions.swift
[99/188] Compiling DequeModule _DequeSlot.swift
[100/188] Compiling DequeModule _UnsafeWrappedBuffer.swift
[101/188] Compiling DequeModule Deque._UnsafeHandle.swift
[102/188] Compiling DequeModule Deque.swift
[103/188] Compiling DequeModule Deque+Codable.swift
[104/188] Compiling DequeModule Deque+Collection.swift
[105/188] Compiling Glob Unicode.GeneralCategory+Helpers.swift
[106/188] Emitting module Glob
[107/188] Emitting module DequeModule
[108/189] Emitting module Logging
[109/189] Compiling Logging Locks.swift
[110/189] Compiling Glob Pattern+Parser.swift
[111/189] Compiling Logging MetadataProvider.swift
[121/189] Compiling Logging Logging.swift
[122/189] Compiling Logging LogHandler.swift
[134/190] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[135/190] Compiling ZIPFoundation URL+ZIP.swift
[136/190] Compiling SystemPackage RawBuffer.swift
[137/190] Compiling SystemPackage Syscalls.swift
[138/190] Compiling SystemPackage WindowsSyscallAdapters.swift
[139/191] Wrapping AST for DequeModule for debugging
[148/191] Emitting module Atomics
[148/191] Wrapping AST for Logging for debugging
[149/192] Wrapping AST for SystemPackage for debugging
[152/192] Compiling Glob Pattern.swift
[152/192] Wrapping AST for Atomics for debugging
[154/192] Compiling Glob InvalidPattern.swift
[155/211] Compiling Glob Pattern+Match.swift
[156/211] Compiling Glob Pattern+Options.swift
[157/252] Compiling NIOCore DeadChannel.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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
[158/252] Compiling NIOCore DispatchQueue+WithFuture.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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
[159/252] Compiling NIOCore EventLoop+Deprecated.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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
[160/252] Compiling Glob GlobSearch.swift
[161/253] Compiling NIOCore ByteBuffer-aux.swift
[162/253] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[163/253] Compiling NIOCore CircularBuffer.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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
[164/253] Compiling NIOCore Codec.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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
[165/253] Compiling NIOCore ConvenienceOptionSupport.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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
[166/253] Compiling NIOCore EventLoop+SerialExecutor.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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,
[167/253] Compiling NIOCore EventLoop.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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,
[168/253] Compiling NIOCore AddressedEnvelope.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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,
[169/253] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[170/253] Compiling NIOCore NIOAsyncWriter.swift
[171/253] Compiling NIOCore AsyncAwaitSupport.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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 {
[172/253] Compiling NIOCore AsyncChannel.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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 {
[173/253] Compiling NIOCore AsyncChannelHandler.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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 {
[174/253] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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 | }
[175/253] Compiling NIOCore BSDSocketAPI.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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 | }
[176/253] Compiling NIOCore AsyncChannelInboundStream.swift
[177/253] Compiling NIOCore AsyncChannelOutboundWriter.swift
[178/253] Compiling NIOCore NIOAsyncSequenceProducer.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'zipfoundation': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
[0/1] Planning build
Building for debugging...
[0/24] Write swift-version-24593BA9C3E375BF.txt
[2/103] Compiling Logging MetadataProvider.swift
[3/103] Compiling SystemPackage FilePathTempPosix.swift
[4/103] Compiling SystemPackage FilePathTempWindows.swift
[5/103] Compiling SystemPackage FilePathWindows.swift
[6/103] Compiling SystemPackage FilePermissions.swift
[7/104] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[8/104] Compiling SystemPackage FilePathString.swift
[9/104] Compiling SystemPackage FilePathSyntax.swift
[10/104] Compiling SystemPackage FilePathTemp.swift
[11/104] Compiling SystemPackage Backcompat.swift
[13/106] Compiling SystemPackage FilePathParsing.swift
[14/106] Compiling SystemPackage FilePathComponentView.swift
[15/106] Compiling SystemPackage FilePathComponents.swift
[16/106] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[17/106] Emitting module _NIOBase64
[18/106] Compiling _NIOBase64 Base64.swift
[19/107] Emitting module Logging
[20/107] Compiling Logging Locks.swift
[21/107] Compiling SystemPackage Errno.swift
[22/107] Compiling SystemPackage ErrnoWindows.swift
[23/107] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[24/107] Compiling NIOConcurrencyHelpers NIOLock.swift
[25/107] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[26/107] Compiling NIOConcurrencyHelpers atomics.swift
[27/107] Compiling NIOConcurrencyHelpers lock.swift
[29/107] Emitting module _NIODataStructures
[32/106] Compiling _NIODataStructures Heap.swift
[33/106] Compiling _NIODataStructures PriorityQueue.swift
[34/106] Compiling _NIODataStructures _TinyArray.swift
[35/106] Emitting module NIOConcurrencyHelpers
[39/108] Compiling Atomics IntegerOperations.swift
[40/108] Compiling Atomics Unmanaged extensions.swift
[43/108] Emitting module InternalCollectionsUtilities
[44/114] Emitting module Path
[45/115] Compiling Path Path.swift
[49/117] Compiling SystemPackage Exports.swift
[50/124] Compiling ZIPFoundation Archive+Reading.swift
[51/124] Compiling ZIPFoundation Archive+BackingConfiguration.swift
[52/125] Compiling ZIPFoundation Archive+Deprecated.swift
[53/125] Compiling ZIPFoundation Archive+Helpers.swift
[54/131] Compiling SystemPackage Mocking.swift
[55/131] Compiling SystemPackage RawBuffer.swift
[56/131] Compiling SystemPackage Syscalls.swift
[57/131] Compiling SystemPackage WindowsSyscallAdapters.swift
[58/131] Compiling SystemPackage MachPort.swift
[59/131] Compiling SystemPackage PlatformString.swift
[60/131] Compiling SystemPackage SystemString.swift
[63/131] Emitting module SystemPackage
[64/133] Compiling Logging LogHandler.swift
[65/133] Compiling Logging Logging.swift
[66/137] Compiling ZIPFoundation Archive+WritingDeprecated.swift
[67/137] Compiling ZIPFoundation Data+CompressionDeprecated.swift
[68/137] Compiling ZIPFoundation Data+Serialization.swift
[69/137] Compiling ZIPFoundation Date+ZIP.swift
[69/139] Wrapping AST for InternalCollectionsUtilities for debugging
[72/154] Compiling Glob InvalidPattern.swift
[73/154] Compiling Glob Unicode.GeneralCategory+Helpers.swift
[74/154] Compiling DequeModule Deque+Extras.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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,
[75/154] Compiling DequeModule Deque+Hashable.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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,
[76/154] Compiling DequeModule Deque+Testing.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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,
[77/156] Compiling DequeModule Deque+Descriptions.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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
[78/156] Compiling DequeModule Deque+Equatable.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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
[79/156] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[80/156] Emitting module ZIPFoundation
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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 {
[81/156] Compiling DequeModule Deque+Codable.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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
[82/156] Compiling DequeModule Deque+Collection.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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
[83/156] Compiling DequeModule Deque+CustomReflectable.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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
[84/156] Compiling DequeModule _DequeBuffer.swift
[85/156] Compiling DequeModule _DequeBufferHeader.swift
[86/156] Compiling ZIPFoundation Data+Compression.swift
[87/156] Compiling ZIPFoundation Entry+Serialization.swift
[87/156] Wrapping AST for Logging for debugging
[91/158] Compiling Glob Pattern.swift
[102/158] Compiling SystemPackage Util+StringArray.swift
[103/158] Compiling SystemPackage Util.swift
[104/158] Compiling SystemPackage UtilConsumers.swift
[109/159] Compiling ZIPFoundation FileManager+ZIPDeprecated.swift
[110/159] Compiling ZIPFoundation URL+ZIP.swift
[111/159] Compiling ZIPFoundation Entry.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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 | }
[112/159] Compiling ZIPFoundation FileManager+ZIP.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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/.build/checkouts/ZIPFoundation/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 | }
[114/159] Compiling Glob Pattern+Options.swift
[115/159] Compiling Glob Pattern+Parser.swift
[116/159] Emitting module Glob
[117/159] Compiling Glob GlobSearch.swift
[118/159] Compiling DequeModule _DequeSlot.swift
[119/159] Compiling DequeModule _UnsafeWrappedBuffer.swift
[120/159] Compiling Glob Pattern+Match.swift
[128/160] Compiling ZIPFoundation Entry+ZIP64.swift
[129/160] Compiling DequeModule Deque._Storage.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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 {
[130/160] Compiling DequeModule Deque._UnsafeHandle.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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 {
[131/160] Compiling DequeModule Deque.swift
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/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 {
[132/160] Wrapping AST for SystemPackage for debugging
[140/160] Emitting module DequeModule
[141/161] Emitting module Atomics
[141/162] Wrapping AST for Glob for debugging
[142/162] Write Objects.LinkFileList
[143/162] Archiving libGlob.a
[149/162] Wrapping AST for DequeModule for debugging
[150/162] Wrapping AST for Atomics for debugging
BUILD FAILURE 6.1 android