The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-huggingface, reference 0.9.0 (b72195), with Swift 6.1 for Android on 16 Mar 2026 21:51:36 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

    |                      `- 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 |     }
[716/754] Compiling HuggingFace HTTPClient.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 |     }
[717/754] Compiling HuggingFace MultipartBuilder.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 |     }
[718/754] Compiling HuggingFace TokenProvider.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 |     }
[719/754] 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 |     }
[720/754] 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
[721/754] 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
[722/754] 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
[723/754] 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
[724/754] 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
[725/754] 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
[726/754] 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
[727/754] 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
[728/754] 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
[729/754] 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
[730/754] 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
[731/754] 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
[732/754] 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
[733/754] 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
[734/754] Compiling HuggingFace HubClient+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
[735/754] Compiling HuggingFace HubClient.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
[736/754] Compiling HuggingFace Model.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
[737/754] Compiling HuggingFace 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
[738/754] Compiling HuggingFace Organization.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
[739/754] 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
[740/754] 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
[741/754] 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)
[742/754] 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)
[743/754] 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)
[744/754] 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)
[745/754] 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)
[746/754] Compiling HuggingFace URL+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)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[747/754] 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 |
[748/754] 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)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
[749/754] 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)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
[750/754] 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)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
[751/754] 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)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
[752/754] 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)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
[753/754] 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/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/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
[754/754] 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/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/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:4aaa9704d9ec48004f0d4dbd1faa76d47dfce67570c934d5c9f7c1557cee5c73
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/41] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[3/41] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[4/41] Compiling InternalCollectionsUtilities Span+Extras.swift
[5/60] Compiling Atomics UnsafeAtomic.swift
[6/60] Compiling Atomics UnsafeAtomicLazyReference.swift
[7/60] Compiling InternalCollectionsUtilities _SortedCollection.swift
[8/60] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[9/60] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[12/60] Compiling Atomics ManagedAtomic.swift
[13/60] Compiling Atomics ManagedAtomicLazyReference.swift
[14/62] Compiling Atomics AtomicStorage.swift
[15/62] Compiling Atomics AtomicValue.swift
[16/62] Compiling Atomics AtomicMemoryOrderings.swift
[17/62] Compiling Atomics DoubleWord.swift
[18/62] Compiling NIOConcurrencyHelpers NIOLock.swift
[19/62] Compiling CryptoBoringWrapper RandomBytes.swift
[20/62] Compiling CryptoBoringWrapper CryptoKitErrors_boring.swift
[21/62] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[22/62] Compiling CryptoBoringWrapper FiniteFieldArithmeticContext.swift
[23/62] Compiling CryptoBoringWrapper EllipticCurve.swift
[24/62] Compiling _NIODataStructures Heap.swift
[25/62] Compiling Atomics AtomicInteger.swift
[26/62] Compiling Atomics AtomicOptionalWrappable.swift
[27/62] Compiling Atomics AtomicReference.swift
[28/62] Emitting module _NIODataStructures
[29/62] Compiling CryptoBoringWrapper BoringSSLAEAD.swift
[30/62] Emitting module CryptoBoringWrapper
[31/62] Compiling _NIODataStructures PriorityQueue.swift
[32/62] Compiling _NIODataStructures _TinyArray.swift
[33/63] Compiling NIOConcurrencyHelpers lock.swift
[34/63] Compiling _NIOBase64 Base64.swift
[35/63] Emitting module _NIOBase64
[36/64] Compiling NIOConcurrencyHelpers atomics.swift
[37/64] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[42/64] Compiling Atomics IntegerOperations.swift
[43/64] Compiling Atomics Unmanaged extensions.swift
[44/64] Emitting module InternalCollectionsUtilities
[45/64] Emitting module NIOConcurrencyHelpers
[46/65] Compiling CryptoBoringWrapper ArbitraryPrecisionInteger.swift
[47/65] Compiling CryptoBoringWrapper EllipticCurvePoint.swift
[50/66] Compiling Atomics AtomicBool.swift
[56/66] Compiling Atomics OptionalRawRepresentable.swift
[57/66] Compiling Atomics RawRepresentable.swift
[64/67] Compiling Atomics IntegerConformances.swift
[65/67] Compiling Atomics PointerConformances.swift
[66/67] Compiling Atomics Primitives.native.swift
[67/82] Compiling ContainersPreview Inout.swift
[68/82] Compiling ContainersPreview InputSpan.swift
[69/82] Emitting module ContainersPreview
[70/84] Compiling ContainersPreview Drain.swift
[71/84] Compiling ContainersPreview Producer.swift
[72/84] Compiling ContainersPreview Borrow.swift
[73/84] Compiling ContainersPreview Box.swift
[74/99] Compiling Crypto Insecure_HashFunctions.swift
[75/99] Compiling Crypto MLKEM_boring.swift
[76/101] Compiling Crypto MLKEM_wrapper.swift
[77/101] Compiling Crypto XWing_boring.swift
[78/101] Compiling Crypto KEM-Errors.swift
[79/101] Compiling Crypto KEM.swift
[80/101] Compiling Crypto MLKEM.swift
[81/101] Compiling Crypto XWing.swift
[82/101] Emitting module Atomics
[83/121] Compiling ContainersPreview Shared.swift
[86/208] Compiling DequeModule RigidDeque+Removals.swift
[87/208] Compiling DequeModule RigidDeque+Replacements.swift
[88/208] Compiling DequeModule RigidDeque+Testing.swift
[89/208] Compiling DequeModule RigidDeque.swift
[90/208] Compiling DequeModule UniqueDeque+Append.swift
[91/208] Compiling DequeModule UniqueDeque+Hashable.swift
[92/208] Compiling DequeModule UniqueDeque+Initializers.swift
[93/208] Compiling DequeModule UniqueDeque+Insertions.swift
[94/208] Compiling DequeModule UniqueDeque+Prepend.swift
[95/208] Compiling DequeModule UniqueDeque+Removals.swift
[96/208] Compiling DequeModule UniqueDeque+Consumption.swift
[97/208] Compiling DequeModule UniqueDeque+Container.swift
[98/208] Compiling DequeModule UniqueDeque+Descriptions.swift
[99/208] Compiling DequeModule UniqueDeque+Equatable.swift
[100/208] Compiling DequeModule UniqueDeque+Experimental.swift
[101/208] Compiling DequeModule RigidDeque+Equatable.swift
[102/208] Compiling DequeModule RigidDeque+Experimental.swift
[103/208] Compiling DequeModule RigidDeque+Hashable.swift
[104/208] Compiling DequeModule RigidDeque+Initializers.swift
[105/208] Compiling DequeModule RigidDeque+Insertions.swift
[106/208] Compiling DequeModule RigidDeque+Prepend.swift
[107/213] Compiling DequeModule _DequeBuffer.swift
[108/213] Compiling DequeModule _DequeBufferHeader.swift
[109/213] Compiling DequeModule RigidDeque+Append.swift
[110/213] Compiling DequeModule RigidDeque+Consumption.swift
[111/213] Compiling DequeModule RigidDeque+Container.swift
[112/213] Compiling DequeModule RigidDeque+Descriptions.swift
[113/213] Compiling DequeModule Deque+Codable.swift
[114/213] Compiling DequeModule Deque+Collection.swift
[115/213] Compiling DequeModule Deque+CustomReflectable.swift
[116/213] Compiling DequeModule Deque+Descriptions.swift
[117/213] Compiling DequeModule Deque+Equatable.swift
[118/213] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[119/213] Compiling Crypto CryptoKitErrors.swift
[120/213] Compiling Crypto Digest_boring.swift
[121/213] Compiling Crypto Digest.swift
[122/213] Compiling Crypto Digests.swift
[123/213] Compiling Crypto HashFunctions.swift
[124/213] Compiling Crypto HashFunctions_SHA2.swift
[125/213] Compiling Crypto HashFunctions_SHA3.swift
[126/213] Compiling Crypto Digest_xkcp.swift
[127/213] Compiling Crypto HPKE-AEAD.swift
[128/213] Compiling Crypto HPKE-Ciphersuite.swift
[129/213] Compiling Crypto HPKE-KDF.swift
[130/213] Compiling Crypto HPKE-KexKeyDerivation.swift
[131/224] Compiling DequeModule Deque+Extras.swift
[132/224] Compiling DequeModule Deque+Hashable.swift
[133/224] Compiling DequeModule Deque+Testing.swift
[134/224] Compiling DequeModule Deque._Storage.swift
[135/224] Compiling DequeModule Deque._UnsafeHandle.swift
[136/224] Compiling DequeModule Deque.swift
[137/224] Compiling DequeModule UniqueDeque+Replacements.swift
[138/224] Compiling DequeModule UniqueDeque.swift
[139/224] Compiling DequeModule _DequeSlot.swift
[140/224] Compiling DequeModule _UnsafeDequeHandle.swift
[141/224] Compiling DequeModule _UnsafeDequeSegments.swift
[142/224] Compiling Crypto AES-GCM.swift
[143/224] Compiling Crypto AES-GCM_boring.swift
[144/224] Compiling Crypto ChaChaPoly_boring.swift
[145/224] Compiling Crypto ChaChaPoly.swift
[146/224] Compiling Crypto Cipher.swift
[147/224] Compiling Crypto Nonces.swift
[148/224] Compiling Crypto ASN1.swift
[149/224] Compiling Crypto ASN1Any.swift
[150/224] Compiling Crypto ASN1BitString.swift
[151/224] Compiling Crypto ASN1Boolean.swift
[152/224] Compiling Crypto ASN1Identifier.swift
[153/224] Compiling Crypto ASN1Integer.swift
[154/224] Compiling Crypto HMAC.swift
[155/224] Compiling Crypto MACFunctions.swift
[156/224] Compiling Crypto MessageAuthenticationCode.swift
[157/224] Compiling Crypto AES.swift
[158/224] Compiling Crypto ECDSASignature_boring.swift
[159/224] Compiling Crypto ECDSA_boring.swift
[160/224] Compiling Crypto EdDSA_boring.swift
[161/224] Compiling Crypto MLDSA_boring.swift
[162/224] Compiling Crypto MLDSA_wrapper.swift
[163/224] Compiling Crypto ECDSA.swift
[164/224] Compiling Crypto Ed25519.swift
[173/224] Compiling Crypto NISTCurvesKeys.swift
[174/224] Compiling Crypto X25519Keys.swift
[175/224] Compiling Crypto SymmetricKeys.swift
[176/224] Emitting module Crypto
[177/224] Emitting module DequeModule
[215/228] Compiling Crypto MLDSA.swift
[216/228] Compiling Crypto Signature.swift
[217/228] Compiling Crypto CryptoKitErrors_boring.swift
[218/228] Compiling Crypto Optional+withUnsafeBytes_boring.swift
[219/228] Compiling Crypto RNG_boring.swift
[220/228] Compiling Crypto SafeCompare_boring.swift
[221/228] Compiling Crypto Zeroization_boring.swift
[222/228] Compiling Crypto PrettyBytes.swift
[223/228] Compiling Crypto SafeCompare.swift
[224/228] Compiling Crypto SecureBytes.swift
[225/228] Compiling Crypto Zeroization.swift
[227/290] Compiling NIOCore NIOCoreSendableMetatype.swift
[228/290] Compiling NIOCore NIODecodedAsyncSequence.swift
[229/290] Compiling NIOCore NIOLoopBound.swift
[230/290] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[231/290] Compiling NIOCore NIOScheduledCallback.swift
[232/290] Compiling NIOCore NIOSendable.swift
[233/290] Compiling NIOCore NIOSplitLinesMessageDecoder.swift
[234/290] Compiling NIOCore NIOTransportAccessibleChannelCore.swift
[235/290] Compiling NIOCore RecvByteBufferAllocator.swift
[236/298] Compiling NIOCore IPProtocol.swift
[237/298] Compiling NIOCore IntegerBitPacking.swift
[238/298] Compiling NIOCore IntegerTypes.swift
[239/298] Compiling NIOCore Interfaces.swift
[240/298] Compiling NIOCore Linux.swift
[241/298] Compiling NIOCore MarkedCircularBuffer.swift
[242/298] Compiling NIOCore MulticastChannel.swift
[243/298] Compiling NIOCore NIOAny.swift
[244/298] Compiling NIOCore NIOCloseOnErrorHandler.swift
[245/298] Compiling NIOCore EventLoopFuture+Deprecated.swift
[246/298] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[247/298] Compiling NIOCore EventLoopFuture.swift
[248/298] Compiling NIOCore FileDescriptor.swift
[249/298] Compiling NIOCore FileHandle.swift
[250/298] Compiling NIOCore FileRegion.swift
[251/298] Compiling NIOCore GlobalSingletons.swift
[252/298] Compiling NIOCore IO.swift
[253/298] Compiling NIOCore IOData.swift
[254/298] Compiling NIOCore CircularBuffer.swift
[255/298] Compiling NIOCore Codec.swift
[256/298] Compiling NIOCore ConvenienceOptionSupport.swift
[257/298] Compiling NIOCore DeadChannel.swift
[258/298] Compiling NIOCore DispatchQueue+WithFuture.swift
[259/298] Compiling NIOCore EventLoop+Deprecated.swift
[260/298] Compiling NIOCore EventLoop+SerialExecutor.swift
[261/298] Compiling NIOCore EventLoop.swift
[262/298] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[263/298] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[264/298] Compiling NIOCore BSDSocketAPI.swift
[265/298] Compiling NIOCore ByteBuffer-aux.swift
[266/298] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[267/298] Compiling NIOCore ByteBuffer-conversions.swift
[268/298] Compiling NIOCore ByteBuffer-core.swift
[269/298] Compiling NIOCore ByteBuffer-hex.swift
[270/298] Compiling NIOCore ByteBuffer-int.swift
[271/298] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[272/298] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[273/298] Compiling NIOCore SocketAddresses.swift
[274/298] Compiling NIOCore SocketOptionProvider.swift
[275/298] Compiling NIOCore SystemCallHelpers.swift
[276/298] Compiling NIOCore TimeAmount+Duration.swift
[277/298] Compiling NIOCore TypeAssistedChannelHandler.swift
[278/298] Compiling NIOCore UniversalBootstrapSupport.swift
[279/298] Compiling NIOCore Utilities.swift
[280/298] Compiling NIOCore ByteBuffer-multi-int.swift
[281/298] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[282/298] Compiling NIOCore ByteBuffer-views.swift
[283/298] Compiling NIOCore Channel.swift
[284/298] Compiling NIOCore ChannelHandler.swift
[285/298] Compiling NIOCore ChannelHandlers.swift
[286/298] Compiling NIOCore ChannelInvoker.swift
[287/298] Compiling NIOCore ChannelOption.swift
[288/298] Compiling NIOCore ChannelPipeline.swift
[289/298] Compiling NIOCore AddressedEnvelope.swift
[290/298] Compiling NIOCore AsyncAwaitSupport.swift
[291/298] Compiling NIOCore AsyncChannel.swift
[292/298] Compiling NIOCore AsyncChannelHandler.swift
[293/298] Compiling NIOCore AsyncChannelInboundStream.swift
[294/298] Compiling NIOCore AsyncChannelOutboundWriter.swift
[295/298] Compiling NIOCore NIOAsyncSequenceProducer.swift
[296/298] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[297/298] Compiling NIOCore NIOAsyncWriter.swift
[298/298] Emitting module NIOCore
[300/304] Compiling EventSource EventSource+AsyncHTTPClient.swift
[301/304] Compiling EventSource AsyncEventsSequence.swift
[302/304] Compiling EventSource EventSource.swift
[303/304] Compiling EventSource AsyncSequence+Events.swift
[304/304] Emitting module EventSource
[306/354] Compiling HuggingFace InferenceClient.swift
[307/354] Compiling HuggingFace Message.swift
[308/354] Compiling HuggingFace Provider.swift
[309/354] Compiling HuggingFace SpeechToText.swift
[310/354] Compiling HuggingFace TextToImage.swift
[311/354] Compiling HuggingFace TextToVideo.swift
[312/354] Compiling HuggingFace HuggingFaceAuthenticationManager.swift
[313/354] 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)
[314/354] 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)
[315/354] 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)
[316/354] 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)
[317/354] 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)
[318/354] Compiling HuggingFace URL+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)
[319/360] Compiling HuggingFace AccessRequest.swift
[320/360] Compiling HuggingFace Billing.swift
[321/360] Compiling HuggingFace Collection.swift
[322/360] Compiling HuggingFace CommaSeparatedList.swift
[323/360] Compiling HuggingFace Dataset.swift
[324/360] Compiling HuggingFace Discussion.swift
[325/360] Compiling HuggingFace File.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[326/360] 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 |
[327/360] 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 |     }
[328/360] 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 |     }
[329/360] 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 |     }
[330/360] 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 |     }
[331/360] 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 |     }
[332/360] 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 |     }
[333/360] Compiling HuggingFace HubClient+User.swift
[334/360] Compiling HuggingFace HubClient.swift
[335/360] Compiling HuggingFace Model.swift
[336/360] Compiling HuggingFace OAuth.swift
[337/360] Compiling HuggingFace Organization.swift
[338/360] Compiling HuggingFace Pagination.swift
[339/360] Compiling HuggingFace Paper.swift
[340/360] Compiling HuggingFace HubClient+Models.swift
[341/360] Compiling HuggingFace HubClient+OAuth.swift
[342/360] Compiling HuggingFace HubClient+Organizations.swift
[343/360] Compiling HuggingFace HubClient+Pagination.swift
[344/360] Compiling HuggingFace HubClient+Papers.swift
[345/360] Compiling HuggingFace HubClient+Repos.swift
[346/360] Compiling HuggingFace HubClient+Spaces.swift
[347/360] Compiling HuggingFace Repo.swift
[348/360] Compiling HuggingFace ResourceGroup.swift
[349/360] Compiling HuggingFace Space.swift
[350/360] Compiling HuggingFace Tags.swift
[351/360] Compiling HuggingFace User.swift
[352/360] Compiling HuggingFace ChatCompletion.swift
[353/360] Compiling HuggingFace FeatureExtraction.swift
[354/360] 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)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
[355/360] 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)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
[356/360] 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)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
[357/360] 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)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
[358/360] 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)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
[359/360] Compiling HuggingFace HubClient+Files.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)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
[360/360] Compiling HuggingFace HubClient+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)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:666:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 664 |                                 )
 665 |                                 if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
 666 |                                     FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
     |                                                         `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused
 667 |                                 }
 668 |                                 try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1294:21: error: cannot find 'fnmatch' in scope
1292 |                 guard !globs.isEmpty else { return true }
1293 |                 return globs.contains { glob in
1294 |                     fnmatch(glob, entry.path, 0) == 0
     |                     `- error: cannot find 'fnmatch' in scope
1295 |                 }
1296 |             }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1330:40: error: cannot infer contextual base in reference to member 'lfs'
1328 |         let lfsEntries =
1329 |             workItems
1330 |             .filter { $0.transport == .lfs }
     |                                        `- error: cannot infer contextual base in reference to member 'lfs'
1331 |             .sorted {
1332 |                 if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1337:62: error: cannot infer contextual base in reference to member 'lfs'
1335 |                 return $0.weight > $1.weight
1336 |             }
1337 |         let xetEntries = workItems.filter { $0.transport != .lfs }
     |                                                              `- error: cannot infer contextual base in reference to member 'lfs'
1338 |
1339 |         let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1365:21: warning: no 'async' operations occur within 'await' expression
1363 |             samplingTask?.cancel()
1364 |             if let samplingTask {
1365 |                 _ = await samplingTask.result
     |                     `- warning: no 'async' operations occur within 'await' expression
1366 |             }
1367 |             throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1372:17: warning: no 'async' operations occur within 'await' expression
1370 |         samplingTask?.cancel()
1371 |         if let samplingTask {
1372 |             _ = await samplingTask.result
     |                 `- warning: no 'async' operations occur within 'await' expression
1373 |         }
1374 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1551:17: error: cannot find 'fnmatch' in scope
1549 |             guard !globs.isEmpty else { return true }
1550 |             return globs.contains { glob in
1551 |                 fnmatch(glob, entry.path, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1552 |             }
1553 |         }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1723:17: error: cannot find 'fnmatch' in scope
1721 |             let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
1722 |             let hasMatch = globs.contains { glob in
1723 |                 fnmatch(glob, relativePath, 0) == 0
     |                 `- error: cannot find 'fnmatch' in scope
1724 |             }
1725 |             if hasMatch {
BUILD FAILURE 6.1 android