The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-libraries, reference main (378f24), with Swift 6.4 for Android on 23 Sep 2026 05:11:35 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift-examples.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ml-explore/mlx-swift-examples
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 378f244 MLXChatExample: fix VLM image handling on iOS (PhotosPicker, EXIF, empty assistant trim) (#472)
Cloned https://github.com/ml-explore/mlx-swift-examples.git
Revision (git rev-parse @):
378f2449c257788c5067b9f8b086731d76b39b33
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-examples.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/ml-explore/mlx-swift-examples.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/huggingface/swift-transformers
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/ml-explore/mlx-swift
[1/7018] Fetching swift-transformers
[142/8780] Fetching swift-transformers, gzipswift
Fetched https://github.com/1024jp/GzipSwift (0.53s)
[913/7018] Fetching swift-transformers
Fetched https://github.com/huggingface/swift-transformers (0.72s)
[1/16941] Fetching mlx-swift
Fetched https://github.com/ml-explore/mlx-swift (1.27s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 6.0.1 (2.34s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.6 (0.27s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-numerics
[1/6640] Fetching swift-numerics
[400/25558] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics (0.64s)
[9649/18918] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser (0.78s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.3.4 (0.98s)
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/huggingface/swift-huggingface.git
[1/18549] Fetching swift-crypto
[1114/19909] Fetching swift-crypto, swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git (0.62s)
[1856/46235] Fetching swift-crypto, swift-collections
[4537/51134] Fetching swift-crypto, swift-collections, yyjson
[26992/53871] Fetching swift-crypto, swift-collections, yyjson, swift-huggingface
Fetched https://github.com/huggingface/swift-huggingface.git (1.30s)
Fetched https://github.com/ibireme/yyjson.git (1.30s)
Fetched https://github.com/apple/swift-collections.git (1.31s)
Fetched https://github.com/apple/swift-crypto.git (1.31s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (1.50s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.16s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.11.0 (0.23s)
Fetching https://github.com/mattt/EventSource.git
[1/303] Fetching eventsource
Fetched https://github.com/mattt/EventSource.git (0.64s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.80s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.5.1 (0.16s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.0 (0.29s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.18s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (1.15s)
Fetching https://github.com/apple/swift-asn1.git
[1/1983] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.78s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (1.00s)
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.5.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.12.0
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 0.11.0
Creating working copy for https://github.com/huggingface/swift-transformers
Working copy of https://github.com/huggingface/swift-transformers resolved at 1.3.4
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.31.6
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Creating working copy for https://github.com/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 6.0.1
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 1160]
[Planning 865 / 1160]
[Planning deferred tasks]
[Constructing 870 / 3182]
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/arg_reduce.metal' of type 'sourcecode.metal' for architecture 'aarch64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/conv.metal' of type 'sourcecode.metal' for architecture 'aarch64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/gemv.metal' of type 'sourcecode.metal' for architecture 'aarch64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/layer_norm.metal' of type 'sourcecode.metal' for architecture 'aarch64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/random.metal' of type 'sourcecode.metal' for architecture 'aarch64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/rms_norm.metal' of type 'sourcecode.metal' for architecture 'aarch64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/rope.metal' of type 'sourcecode.metal' for architecture 'aarch64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/scaled_dot_product_attention.metal' of type 'sourcecode.metal' for architecture 'aarch64'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/steel_attention.metal' of type 'sourcecode.metal' for architecture 'aarch64'
[54 / 1117] OrderedCollections
[201 / 1120]
[212 / 1141] RealModule
[216 / 1158] CXKCP
[223 / 1158] RealModule
[224 / 1158] InternalCollectionsUtilities
[236 / 1158] RealModule
[236 / 1158] Gzip
[245 / 1158] EventSource
[256 / 1158] InternalCollectionsUtilities
[258 / 1158] InternalCollectionsUtilities
[260 / 1158] OrderedCollections
[265 / 1159] RealModule
[268 / 1159] InternalCollectionsUtilities
[272 / 1159] EventSource-product
[275 / 1159] CryptoBoringWrapper
[277 / 1159] CryptoBoringWrapper
[278 / 1159] Crypto
[281 / 1160] CCryptoBoringSSL
[282 / 1160] CCryptoBoringSSL
[283 / 1160] CCryptoBoringSSL
[284 / 1160] CCryptoBoringSSL
[285 / 1160] CryptoBoringWrapper
[287 / 1160] CCryptoBoringSSL
[288 / 1161] CCryptoBoringSSL
[289 / 1162] CCryptoBoringSSL
[290 / 1162] CCryptoBoringSSL
[292 / 1163] CCryptoBoringSSL
[293 / 1163] CCryptoBoringSSL
[295 / 1163] CCryptoBoringSSL
[296 / 1163] CCryptoBoringSSL
[301 / 1163] CCryptoBoringSSL
[302 / 1163] CCryptoBoringSSL
[304 / 1163] CCryptoBoringSSL
[306 / 1163] CCryptoBoringSSL
[308 / 1164] CCryptoBoringSSL
[310 / 1164] CCryptoBoringSSL
[312 / 1164] CCryptoBoringSSL
[314 / 1164] CCryptoBoringSSL
[317 / 1164] CCryptoBoringSSL
[318 / 1164] CCryptoBoringSSL
[321 / 1164] CCryptoBoringSSL
[322 / 1164] CCryptoBoringSSL
[323 / 1164] CCryptoBoringSSL
[328 / 1164] CCryptoBoringSSL
[333 / 1164] CCryptoBoringSSL
[335 / 1164] CCryptoBoringSSL
[337 / 1164] CCryptoBoringSSL
[339 / 1164] CCryptoBoringSSL
[343 / 1164] CCryptoBoringSSL
[345 / 1164] CCryptoBoringSSL
[347 / 1164] CCryptoBoringSSL
[349 / 1164] CCryptoBoringSSL
[351 / 1164] CCryptoBoringSSL
[352 / 1164] CCryptoBoringSSL
[353 / 1164] CCryptoBoringSSL
[356 / 1164] CCryptoBoringSSL
[360 / 1164] CCryptoBoringSSL
[361 / 1164] CCryptoBoringSSL
[362 / 1164] CCryptoBoringSSL
[363 / 1164] CCryptoBoringSSL
[365 / 1164] CCryptoBoringSSL
[367 / 1164] CCryptoBoringSSL
[368 / 1164] CCryptoBoringSSL
[369 / 1164] CCryptoBoringSSL
[373 / 1164] CCryptoBoringSSL
[374 / 1164] CCryptoBoringSSL
[378 / 1164] CCryptoBoringSSL
[380 / 1164] CCryptoBoringSSL
[383 / 1164] CCryptoBoringSSL
[385 / 1164] CCryptoBoringSSL
[392 / 1164] CCryptoBoringSSL
[397 / 1164] CCryptoBoringSSL
[403 / 1164] CCryptoBoringSSL
[411 / 1164] CCryptoBoringSSL
[412 / 1164] CCryptoBoringSSL
[413 / 1164] CCryptoBoringSSL
[416 / 1164] CCryptoBoringSSL
[419 / 1164] CCryptoBoringSSL
[421 / 1164] CCryptoBoringSSL
[423 / 1164] CCryptoBoringSSL
[430 / 1164] CCryptoBoringSSL
[432 / 1164] CCryptoBoringSSL
[435 / 1164] CCryptoBoringSSL
[436 / 1164] CCryptoBoringSSL
[437 / 1164] CCryptoBoringSSL
[439 / 1164] CCryptoBoringSSL
[442 / 1164] CCryptoBoringSSL
[443 / 1164] CCryptoBoringSSL
[445 / 1164] CCryptoBoringSSL
[448 / 1164] CCryptoBoringSSL
[449 / 1164] CCryptoBoringSSL
[452 / 1164] CCryptoBoringSSL
[454 / 1164] CCryptoBoringSSL
[455 / 1164] CCryptoBoringSSL
[456 / 1164] CCryptoBoringSSL
[458 / 1164] CCryptoBoringSSL
[459 / 1164] CCryptoBoringSSL
[462 / 1164] CCryptoBoringSSL
[465 / 1164] CCryptoBoringSSL
[470 / 1164] CCryptoBoringSSL
[473 / 1164] CCryptoBoringSSL
[475 / 1164] CCryptoBoringSSL
[477 / 1164] CCryptoBoringSSL
[480 / 1164] CCryptoBoringSSL
[481 / 1164] CCryptoBoringSSL
[483 / 1164] CCryptoBoringSSL
[486 / 1164] CCryptoBoringSSL
[488 / 1164] CCryptoBoringSSL
[490 / 1164] CCryptoBoringSSL
[493 / 1164] CCryptoBoringSSL
[495 / 1164] CCryptoBoringSSL
[500 / 1164] CCryptoBoringSSL
[505 / 1164] CCryptoBoringSSL
[509 / 1164] CCryptoBoringSSL
[511 / 1164] CCryptoBoringSSL
[512 / 1164] CCryptoBoringSSL
[514 / 1164] CCryptoBoringSSL
[517 / 1164] CCryptoBoringSSL
[520 / 1164] CCryptoBoringSSL
[523 / 1164] CCryptoBoringSSL
[527 / 1164] CCryptoBoringSSL
[528 / 1164] CCryptoBoringSSL
[531 / 1164] CCryptoBoringSSL
[534 / 1164] CCryptoBoringSSL
[536 / 1164] CCryptoBoringSSL
[537 / 1164] CCryptoBoringSSL
[540 / 1164] CCryptoBoringSSL
[542 / 1164] CCryptoBoringSSL
[544 / 1164] CCryptoBoringSSL
[545 / 1164] CCryptoBoringSSL
[547 / 1164] CCryptoBoringSSL
[549 / 1164] CCryptoBoringSSL
[551 / 1164] CCryptoBoringSSL
[553 / 1164] CCryptoBoringSSL
[555 / 1164] CCryptoBoringSSL
[559 / 1164] CCryptoBoringSSL
[560 / 1164] CCryptoBoringSSL
[561 / 1164] CCryptoBoringSSL
[564 / 1164] CCryptoBoringSSL
[568 / 1164] CCryptoBoringSSL
[572 / 1164] CCryptoBoringSSL
[576 / 1164] CCryptoBoringSSL
[582 / 1164] CCryptoBoringSSL
[583 / 1164] CCryptoBoringSSL
[585 / 1164] CCryptoBoringSSL
[586 / 1164] CCryptoBoringSSL
[587 / 1164] CCryptoBoringSSL
[589 / 1164] CCryptoBoringSSL
[591 / 1164] CCryptoBoringSSL
[593 / 1164] CCryptoBoringSSL
[596 / 1164] CCryptoBoringSSL
[597 / 1164] CCryptoBoringSSL
[600 / 1164] CCryptoBoringSSL
[602 / 1164] CCryptoBoringSSL
[603 / 1164] CCryptoBoringSSL
[604 / 1164] CCryptoBoringSSL
[606 / 1164] CCryptoBoringSSL
[611 / 1164] CCryptoBoringSSL
[614 / 1164] CCryptoBoringSSL
[620 / 1164] CCryptoBoringSSL
[625 / 1164] CCryptoBoringSSL
[629 / 1164] CCryptoBoringSSL
[631 / 1164] CCryptoBoringSSL
[633 / 1164] CCryptoBoringSSL
[635 / 1164] CCryptoBoringSSL
[636 / 1164] CCryptoBoringSSL
[638 / 1164] CCryptoBoringSSL
[640 / 1164] CCryptoBoringSSL
[643 / 1164] CCryptoBoringSSL
[644 / 1164] CCryptoBoringSSL
[645 / 1164] CCryptoBoringSSL
[649 / 1164] InternalCollectionsUtilities
[653 / 1164] ArgumentParserToolInfo
[657 / 1164]
[664 / 1165] CXKCP
[667 / 1167] ComplexModule
[671 / 1185] RealModule
[673 / 1194] Crypto
[674 / 1194] ComplexModule
[677 / 1194] ComplexModule
[682 / 1194] OrderedCollections
[683 / 1194] EventSource
[686 / 1194] Crypto
[687 / 1194] Crypto
[688 / 1194] Crypto
[691 / 1195] Crypto
[696 / 1195] OrderedCollections
[703 / 1195] OrderedCollections-product
[705 / 1195] OrderedCollections-product
[707 / 1195] Numerics
[710 / 1195] ComplexModule
[711 / 1195]
[712 / 1196] Gzip
[714 / 1205] CXKCP
[715 / 1205] ComplexModule
[717 / 1206] Crypto
[720 / 1206] ArgumentParser
[721 / 1206] ArgumentParser
[723 / 1207] Crypto
[725 / 1207] Crypto
[727 / 1207] ArgumentParser
[734 / 1210] Jinja
[736 / 1221] ArgumentParser
[743 / 1221] Numerics
[746 / 1231] Numerics-product
[748 / 1231] Numerics-product
[751 / 1231] Jinja
[753 / 1231] Jinja
[757 / 1231] Jinja
[759 / 1231] Jinja-product
[760 / 1232] Jinja-product
[762 / 1232] HuggingFace
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile FileLock.swift
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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 |
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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 }
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/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
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/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 |     }
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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/.build/checkouts/swift-huggingface/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 |     }
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/AccessRequest.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Billing.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Bucket.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Collection.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/CommaSeparatedList.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Dataset.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Discussion.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/File.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Git.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubCache.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Buckets.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Collections.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Datasets.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Discussions.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Git.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Models.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+OAuth.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Organizations.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Pagination.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Papers.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Repos.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Spaces.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+User.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Model.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/OAuth.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Organization.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Pagination.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Paper.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Repo.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/ResourceGroup.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Space.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Tags.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/User.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/XetDownloadProgress.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/ChatCompletion.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/FeatureExtraction.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/InferenceClient.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/Message.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/Provider.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/SpeechToText.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/TextToImage.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/TextToVideo.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/OAuth/HuggingFaceAuthenticationManager.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/OAuth/OAuthClient.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/OAuth/TokenStorage.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/CacheLocationProvider.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/Data+Extensions.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/JSONDecoder+Extensions.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/URL+Extensions.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/URLSession+Linux.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/MultipartBuilder.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/TokenProvider.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Value.swift -supplementary-output-file-map /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/supplementaryOutputs-40 -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -suppress-warnings -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-plugin-server -user-module-version 0.11.0 -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CXKCPShims/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CXKCP/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSLShims/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/include/module.modulemap -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CXKCPShims/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CXKCP/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSLShims/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name HuggingFace -package-name swift_huggingface -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/HuggingFace_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/URL+Extensions.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/URLSession+Linux.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/FileLock.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/HTTPClient.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/MultipartBuilder.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/TokenProvider.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/Value.o -index-unit-output-path /swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/URL+Extensions.o -index-unit-output-path /swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/URLSession+Linux.o -index-unit-output-path /swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/FileLock.o -index-unit-output-path /swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/HTTPClient.o -index-unit-output-path /swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/MultipartBuilder.o -index-unit-output-path /swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/TokenProvider.o -index-unit-output-path /swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/Value.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android