Build Information
Failed to build swift-huggingface, reference 1.0.0 (c30143), with Swift 6.1 for Android on 12 Oct 2026 18:08:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[506/549] Compiling HuggingFace Value.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[507/549] Compiling HuggingFace Pagination.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[508/549] Compiling HuggingFace Paper.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[509/549] Compiling HuggingFace Repo.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[510/549] Compiling HuggingFace ResourceGroup.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[511/549] Compiling HuggingFace Space.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[512/549] Compiling HuggingFace Tags.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[513/549] Compiling HuggingFace User.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[514/549] Compiling HuggingFace File.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[515/549] Compiling HuggingFace Git.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[516/549] Compiling HuggingFace HubCache.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[517/549] Compiling HuggingFace HubClient+Buckets.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[518/549] Compiling HuggingFace HubClient+Collections.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[519/549] Compiling HuggingFace HubClient+Datasets.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[520/549] Compiling HuggingFace HubClient+Discussions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[521/549] Emitting module HuggingFace
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[522/549] Compiling HuggingFace AccessRequest.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[523/549] Compiling HuggingFace Billing.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[524/549] Compiling HuggingFace Bucket.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[525/549] Compiling HuggingFace Collection.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[526/549] Compiling HuggingFace CommaSeparatedList.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[527/549] Compiling HuggingFace Dataset.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[528/549] Compiling HuggingFace Discussion.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[529/549] Compiling HuggingFace XetDownloadProgress.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[530/549] Compiling HuggingFace ChatCompletion.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[531/549] Compiling HuggingFace FeatureExtraction.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[532/549] Compiling HuggingFace InferenceClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[533/549] Compiling HuggingFace Message.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[534/549] Compiling HuggingFace Provider.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[535/549] Compiling HuggingFace SpeechToText.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[536/549] Compiling HuggingFace TextToImage.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[537/549] Compiling HuggingFace TextToVideo.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[538/549] Compiling HuggingFace OAuthClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[539/549] Compiling HuggingFace TokenStorage.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[540/549] Compiling HuggingFace CacheLocationProvider.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[541/549] Compiling HuggingFace Data+Extensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[542/549] Compiling HuggingFace JSONDecoder+Extensions.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[543/549] Compiling HuggingFace HubClient+Files.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[544/549] Compiling HuggingFace HubClient+Git.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[545/549] Compiling HuggingFace HubClient+Models.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[546/549] Compiling HuggingFace HubClient+OAuth.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[547/549] Compiling HuggingFace HubClient+Organizations.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[548/549] Compiling HuggingFace HubClient+Pagination.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[549/549] Compiling HuggingFace HubClient+Papers.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:396310cef4466ceb116ed5462b0b92d4deb353c0dad749b406b7fd226f6db9af
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin ReplayPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/17] Compiling EventSource EventSource+AsyncHTTPClient.swift
[6/17] Compiling EventSource AsyncSequence+Events.swift
[7/17] Compiling CryptoBoringWrapper RandomBytes.swift
[8/17] Compiling CryptoBoringWrapper BoringSSLAEAD.swift
[9/17] Emitting module EventSource
[10/17] Compiling CryptoBoringWrapper CryptoKitErrors_boring.swift
[11/17] Compiling CryptoBoringWrapper FiniteFieldArithmeticContext.swift
[12/17] Emitting module CryptoBoringWrapper
[13/17] Compiling CryptoBoringWrapper ArbitraryPrecisionInteger.swift
[14/17] Compiling CryptoBoringWrapper EllipticCurve.swift
[15/17] Compiling CryptoBoringWrapper EllipticCurvePoint.swift
[17/51] Compiling EventSource AsyncEventsSequence.swift
[18/52] Compiling EventSource EventSource.swift
[20/103] Compiling Crypto HPKE-LabeledExtract.swift
[21/103] Compiling Crypto HPKE-Utils.swift
[22/103] Compiling Crypto DHKEM.swift
[23/103] Compiling Crypto HPKE-KEM-Curve25519.swift
[24/103] Compiling Crypto HPKE-NIST-EC-KEMs.swift
[25/103] Compiling Crypto HPKE-KEM.swift
[26/103] Compiling Crypto HPKE-Errors.swift
[27/103] Compiling Crypto HPKE.swift
[28/103] Compiling Crypto HPKE-Context.swift
[29/103] Compiling Crypto HPKE-KeySchedule.swift
[30/103] Compiling Crypto HPKE-Modes.swift
[31/103] Compiling Crypto Insecure.swift
[32/103] Compiling Crypto HKDF.swift
[33/103] Compiling Crypto AESWrap.swift
[34/103] Compiling Crypto AESWrap_boring.swift
[35/103] Compiling Crypto Ed25519_boring.swift
[36/103] Compiling Crypto NISTCurvesKeys_boring.swift
[37/103] Compiling Crypto X25519Keys_boring.swift
[38/103] Compiling Crypto Curve25519.swift
[39/103] Compiling Crypto Ed25519Keys.swift
[40/103] Compiling Crypto NISTCurvesKeys.swift
[41/103] Compiling Crypto X25519Keys.swift
[42/103] Compiling Crypto SymmetricKeys.swift
[43/103] Compiling Crypto HMAC.swift
[44/114] Compiling Crypto ASN1Null.swift
[45/114] Compiling Crypto ASN1OctetString.swift
[46/114] Compiling Crypto ASN1Strings.swift
[47/114] Compiling Crypto ArraySliceBigint.swift
[48/114] Compiling Crypto GeneralizedTime.swift
[49/114] Compiling Crypto ObjectIdentifier.swift
[50/114] Compiling Crypto ECDSASignature.swift
[51/114] Compiling Crypto PEMDocument.swift
[52/114] Compiling Crypto PKCS8PrivateKey.swift
[53/114] Compiling Crypto SEC1PrivateKey.swift
[54/114] Compiling Crypto SubjectPublicKeyInfo.swift
[55/114] Compiling Crypto CryptoError_boring.swift
[56/114] Compiling Crypto MACFunctions.swift
[57/114] Compiling Crypto MessageAuthenticationCode.swift
[58/114] Compiling Crypto AES.swift
[59/114] Compiling Crypto ECDSASignature_boring.swift
[60/114] Compiling Crypto ECDSA_boring.swift
[61/114] Compiling Crypto EdDSA_boring.swift
[62/114] Compiling Crypto MLDSA_boring.swift
[63/114] Compiling Crypto MLDSA_wrapper.swift
[64/114] Compiling Crypto ECDSA.swift
[65/114] Compiling Crypto Ed25519.swift
[66/114] Compiling Crypto MLDSA.swift
[67/114] Compiling Crypto CryptoKitErrors.swift
[68/114] Compiling Crypto Digest_boring.swift
[69/114] Compiling Crypto Digest.swift
[70/114] Compiling Crypto Digests.swift
[71/114] Compiling Crypto HashFunctions.swift
[72/114] Compiling Crypto HashFunctions_SHA2.swift
[73/114] Compiling Crypto HashFunctions_SHA3.swift
[74/114] Compiling Crypto Digest_xkcp.swift
[75/114] Compiling Crypto HPKE-AEAD.swift
[76/114] Compiling Crypto HPKE-Ciphersuite.swift
[77/114] Compiling Crypto HPKE-KDF.swift
[78/114] Compiling Crypto HPKE-KexKeyDerivation.swift
[79/114] Compiling Crypto Insecure_HashFunctions.swift
[80/114] Compiling Crypto MLKEM_boring.swift
[81/114] Compiling Crypto MLKEM_wrapper.swift
[82/114] Compiling Crypto XWing_boring.swift
[83/114] Compiling Crypto KEM-Errors.swift
[84/114] Compiling Crypto KEM.swift
[85/114] Compiling Crypto MLKEM.swift
[86/114] Compiling Crypto XWing.swift
[87/114] Compiling Crypto ECDH_boring.swift
[88/114] Compiling Crypto DH.swift
[89/114] Compiling Crypto ECDH.swift
[90/114] Compiling Crypto ANSIx963.swift
[91/114] Compiling Crypto AES-GCM.swift
[92/114] Compiling Crypto AES-GCM_boring.swift
[93/114] Compiling Crypto ChaChaPoly_boring.swift
[94/114] Compiling Crypto ChaChaPoly.swift
[95/114] Compiling Crypto Cipher.swift
[96/114] Compiling Crypto Nonces.swift
[97/114] Compiling Crypto ASN1.swift
[98/114] Compiling Crypto ASN1Any.swift
[99/114] Compiling Crypto ASN1BitString.swift
[100/114] Compiling Crypto ASN1Boolean.swift
[101/114] Compiling Crypto ASN1Identifier.swift
[102/114] Compiling Crypto ASN1Integer.swift
[103/114] Emitting module Crypto
[104/114] Compiling Crypto Signature.swift
[105/114] Compiling Crypto CryptoKitErrors_boring.swift
[106/114] Compiling Crypto Optional+withUnsafeBytes_boring.swift
[107/114] Compiling Crypto RNG_boring.swift
[108/114] Compiling Crypto SafeCompare_boring.swift
[109/114] Compiling Crypto Zeroization_boring.swift
[110/114] Compiling Crypto _CryptoModuleAnchor.swift
[111/114] Compiling Crypto PrettyBytes.swift
[112/114] Compiling Crypto SafeCompare.swift
[113/114] Compiling Crypto SecureBytes.swift
[114/114] Compiling Crypto Zeroization.swift
[116/165] Compiling HuggingFace HubClient+Repos.swift
[117/165] Compiling HuggingFace HubClient+Spaces.swift
[118/165] Compiling HuggingFace HubClient+User.swift
[119/165] Compiling HuggingFace HubClient.swift
[120/165] Compiling HuggingFace Model.swift
[121/165] Compiling HuggingFace OAuth.swift
[122/165] Compiling HuggingFace Organization.swift
[123/172] Compiling HuggingFace AccessRequest.swift
[124/172] Compiling HuggingFace Billing.swift
[125/172] Compiling HuggingFace Bucket.swift
[126/172] Compiling HuggingFace Collection.swift
[127/172] Compiling HuggingFace CommaSeparatedList.swift
[128/172] Compiling HuggingFace Dataset.swift
[129/172] Compiling HuggingFace Discussion.swift
[130/172] Compiling HuggingFace URL+Extensions.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[131/172] Compiling HuggingFace URLSession+Linux.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[132/172] Compiling HuggingFace FileLock.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[133/172] Compiling HuggingFace HTTPClient.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[134/172] Compiling HuggingFace MultipartBuilder.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[135/172] Compiling HuggingFace TokenProvider.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[136/172] Compiling HuggingFace Value.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[137/172] Compiling HuggingFace TextToImage.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[138/172] Compiling HuggingFace TextToVideo.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[139/172] Compiling HuggingFace OAuthClient.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[140/172] Compiling HuggingFace TokenStorage.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[141/172] Compiling HuggingFace CacheLocationProvider.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[142/172] Compiling HuggingFace Data+Extensions.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[143/172] Compiling HuggingFace JSONDecoder+Extensions.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[144/172] Emitting module HuggingFace
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[145/172] Compiling HuggingFace Pagination.swift
[146/172] Compiling HuggingFace Paper.swift
[147/172] Compiling HuggingFace Repo.swift
[148/172] Compiling HuggingFace ResourceGroup.swift
[149/172] Compiling HuggingFace Space.swift
[150/172] Compiling HuggingFace Tags.swift
[151/172] Compiling HuggingFace User.swift
[152/172] Compiling HuggingFace XetDownloadProgress.swift
[153/172] Compiling HuggingFace ChatCompletion.swift
[154/172] Compiling HuggingFace FeatureExtraction.swift
[155/172] Compiling HuggingFace InferenceClient.swift
[156/172] Compiling HuggingFace Message.swift
[157/172] Compiling HuggingFace Provider.swift
[158/172] Compiling HuggingFace SpeechToText.swift
[159/172] Compiling HuggingFace HubClient+Files.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[160/172] Compiling HuggingFace HubClient+Git.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[161/172] Compiling HuggingFace HubClient+Models.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[162/172] Compiling HuggingFace HubClient+OAuth.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[163/172] Compiling HuggingFace HubClient+Organizations.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[164/172] Compiling HuggingFace HubClient+Pagination.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[165/172] Compiling HuggingFace HubClient+Papers.swift
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[166/172] Compiling HuggingFace File.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[167/172] Compiling HuggingFace Git.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[168/172] Compiling HuggingFace HubCache.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[169/172] Compiling HuggingFace HubClient+Buckets.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[170/172] Compiling HuggingFace HubClient+Collections.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[171/172] Compiling HuggingFace HubClient+Datasets.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[172/172] Compiling HuggingFace HubClient+Discussions.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
BUILD FAILURE 6.1 android