The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MLXAudio, reference v69.2.2 (d82ad7), with Swift 6.4 for Android on 25 Sep 2026 01:08:08 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.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/gaelic-ghost/mlx-audio-swift.git
Reference: v69.2.2
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/gaelic-ghost/mlx-audio-swift
 * tag               v69.2.2    -> FETCH_HEAD
HEAD is now at d82ad71 models: expose bounded qwen replay decode
Cloned https://github.com/gaelic-ghost/mlx-audio-swift.git
Revision (git rev-parse @):
d82ad715fd1ffb841c7771deacd158faa8183f0c
SUCCESS checkout https://github.com/gaelic-ghost/mlx-audio-swift.git at v69.2.2
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/gaelic-ghost/mlx-audio-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.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/ml-explore/mlx-swift.git
Fetching https://github.com/huggingface/swift-transformers.git
Fetching https://github.com/huggingface/swift-huggingface.git
Fetching https://github.com/ml-explore/mlx-swift-lm.git
[1/7026] Fetching swift-transformers
[845/9779] Fetching swift-transformers, swift-huggingface
[9780/26720] Fetching swift-transformers, swift-huggingface, mlx-swift
[26721/47898] Fetching swift-transformers, swift-huggingface, mlx-swift, mlx-swift-lm
Fetched https://github.com/huggingface/swift-huggingface.git (2.99s)
Fetched https://github.com/ml-explore/mlx-swift.git (3.00s)
Fetched https://github.com/huggingface/swift-transformers.git (3.00s)
Fetched https://github.com/ml-explore/mlx-swift-lm.git (3.01s)
Computing version for https://github.com/ml-explore/mlx-swift-lm.git
Computed https://github.com/ml-explore/mlx-swift-lm.git at 2.31.3 (3.25s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 1.2.1 (0.24s)
Fetching https://github.com/ibireme/yyjson.git
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-crypto.git
[1/18549] Fetching swift-crypto
[558/19925] Fetching swift-crypto, swift-jinja
[3974/24824] Fetching swift-crypto, swift-jinja, yyjson
[7831/52526] Fetching swift-crypto, swift-jinja, yyjson, swift-collections
Fetched https://github.com/apple/swift-crypto.git (1.52s)
Fetched https://github.com/huggingface/swift-jinja.git (1.61s)
Fetched https://github.com/ibireme/yyjson.git (1.62s)
Fetched https://github.com/apple/swift-collections.git (1.63s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (2.83s)
Computing version for https://github.com/ml-explore/mlx-swift.git
Computed https://github.com/ml-explore/mlx-swift.git at 0.31.6 (0.25s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-numerics
[1/6640] Fetching swift-numerics
[6641/25581] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics (0.85s)
Fetched https://github.com/apple/swift-argument-parser (0.85s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.11.0 (1.04s)
Fetching https://github.com/mattt/EventSource.git
[1/303] Fetching eventsource
Fetched https://github.com/mattt/EventSource.git (0.49s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.65s)
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/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.15s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.0 (0.30s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.17s)
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 (1.02s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (1.28s)
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.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 1.2.1
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-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
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-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/ml-explore/mlx-swift-lm.git
Working copy of https://github.com/ml-explore/mlx-swift-lm.git resolved at 2.31.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/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-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/ml-explore/mlx-swift.git
Working copy of https://github.com/ml-explore/mlx-swift.git resolved at 0.31.6
Building for debugging...
[Computing dependencies]
[Provisioning 4 / 75]
[Pre-planning 1 / 1740]
[Planning 1 / 1740]
[Planning 709 / 1740]
[Planning 896 / 1740]
[Planning 1261 / 1740]
[Planning 1631 / 1740]
[Planning deferred tasks]
[Constructing 28 / 4307]
[Constructing 1158 / 4307]
[Starting]
[7 / 1265]
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'
[280 / 1269] CXKCP
[289 / 1300] InternalCollectionsUtilities
[290 / 1300] RealModule
[293 / 1300] InternalCollectionsUtilities
[304 / 1300] RealModule
[304 / 1300] EventSource
[308 / 1300] EventSource
[313 / 1300] RealModule
[319 / 1300] InternalCollectionsUtilities
[321 / 1300] OrderedCollections
[326 / 1300] EventSource
[329 / 1301] RealModule
[333 / 1301] CryptoBoringWrapper
[334 / 1301] CryptoBoringWrapper
[337 / 1301] CryptoBoringWrapper
[338 / 1301] Crypto
[339 / 1302] ArgumentParserToolInfo
[342 / 1304] CCryptoBoringSSL
[343 / 1305] CCryptoBoringSSL
[346 / 1305] ArgumentParserToolInfo
[351 / 1305] CCryptoBoringSSL
[353 / 1305] CCryptoBoringSSL
[354 / 1305] CCryptoBoringSSL
[355 / 1305] CCryptoBoringSSL
[357 / 1305] CCryptoBoringSSL
[359 / 1306] CryptoBoringWrapper
[361 / 1306] CCryptoBoringSSL
[363 / 1306] CCryptoBoringSSL
[365 / 1306] CCryptoBoringSSL
[367 / 1306] CCryptoBoringSSL
[368 / 1306] CCryptoBoringSSL
[369 / 1306] EventSource
[371 / 1307] CCryptoBoringSSL
[372 / 1307] CCryptoBoringSSL
[373 / 1307] CCryptoBoringSSL
[374 / 1307] CCryptoBoringSSL
[376 / 1307] CCryptoBoringSSL
[378 / 1307] CCryptoBoringSSL
[379 / 1307] CCryptoBoringSSL
[381 / 1307] CCryptoBoringSSL
[382 / 1307] CCryptoBoringSSL
[383 / 1307] CCryptoBoringSSL
[387 / 1307] CCryptoBoringSSL
[392 / 1307] CCryptoBoringSSL
[398 / 1307] CCryptoBoringSSL
[400 / 1307] CCryptoBoringSSL
[401 / 1307] CCryptoBoringSSL
[404 / 1307] CCryptoBoringSSL
[407 / 1307] CCryptoBoringSSL
[408 / 1307] CCryptoBoringSSL
[409 / 1307] CCryptoBoringSSL
[413 / 1307] CCryptoBoringSSL
[416 / 1307] CCryptoBoringSSL
[417 / 1307] CCryptoBoringSSL
[423 / 1307] CCryptoBoringSSL
[424 / 1307] CCryptoBoringSSL
[425 / 1307] CCryptoBoringSSL
[428 / 1307] CCryptoBoringSSL
[431 / 1307] CCryptoBoringSSL
[433 / 1307] CCryptoBoringSSL
[434 / 1307] CCryptoBoringSSL
[438 / 1307] CCryptoBoringSSL
[440 / 1307] CCryptoBoringSSL
[441 / 1307] CCryptoBoringSSL
[444 / 1307] CCryptoBoringSSL
[450 / 1307] CCryptoBoringSSL
[460 / 1307] CCryptoBoringSSL
[475 / 1307] CCryptoBoringSSL
[478 / 1307] CCryptoBoringSSL
[480 / 1307] CCryptoBoringSSL
[483 / 1307] CCryptoBoringSSL
[487 / 1307] CCryptoBoringSSL
[494 / 1307] CCryptoBoringSSL
[496 / 1307] CCryptoBoringSSL
[501 / 1307] CCryptoBoringSSL
[502 / 1307] CCryptoBoringSSL
[505 / 1307] CCryptoBoringSSL
[508 / 1307] CCryptoBoringSSL
[513 / 1307] CCryptoBoringSSL
[515 / 1307] CCryptoBoringSSL
[518 / 1307] CCryptoBoringSSL
[520 / 1307] CCryptoBoringSSL
[521 / 1307] CCryptoBoringSSL
[524 / 1307] CCryptoBoringSSL
[529 / 1307] CCryptoBoringSSL
[535 / 1307] CCryptoBoringSSL
[537 / 1307] CCryptoBoringSSL
[539 / 1307] CCryptoBoringSSL
[540 / 1307] CCryptoBoringSSL
[543 / 1307] CCryptoBoringSSL
[548 / 1307] CCryptoBoringSSL
[549 / 1307] CCryptoBoringSSL
[551 / 1307] CCryptoBoringSSL
[553 / 1307] CCryptoBoringSSL
[558 / 1307] CCryptoBoringSSL
[568 / 1307] CCryptoBoringSSL
[574 / 1307] CCryptoBoringSSL
[579 / 1307] CCryptoBoringSSL
[585 / 1307] CCryptoBoringSSL
[587 / 1307] CCryptoBoringSSL
[589 / 1307] CCryptoBoringSSL
[594 / 1307] CCryptoBoringSSL
[597 / 1307] CCryptoBoringSSL
[601 / 1307] CCryptoBoringSSL
[605 / 1307] CCryptoBoringSSL
[608 / 1307] CCryptoBoringSSL
[611 / 1307] CCryptoBoringSSL
[615 / 1307] CCryptoBoringSSL
[616 / 1307] CCryptoBoringSSL
[619 / 1307] CCryptoBoringSSL
[624 / 1307] CCryptoBoringSSL
[626 / 1307] CCryptoBoringSSL
[631 / 1307] CCryptoBoringSSL
[638 / 1307] CCryptoBoringSSL
[648 / 1307] CCryptoBoringSSL
[650 / 1307] CCryptoBoringSSL
[654 / 1307] CCryptoBoringSSL
[658 / 1307] CCryptoBoringSSL
[661 / 1307] CCryptoBoringSSL
[662 / 1307] CCryptoBoringSSL
[665 / 1307] CCryptoBoringSSL
[667 / 1307] CCryptoBoringSSL
[668 / 1307] CCryptoBoringSSL
[676 / 1307] CCryptoBoringSSL
[683 / 1307] CCryptoBoringSSL
[692 / 1307] CCryptoBoringSSL
[697 / 1307] CCryptoBoringSSL
[698 / 1307] CCryptoBoringSSL
[700 / 1307] CCryptoBoringSSL
[701 / 1307] CCryptoBoringSSL
[702 / 1307] CCryptoBoringSSL
[706 / 1307] CCryptoBoringSSL
[708 / 1307] CCryptoBoringSSL
[711 / 1307] yyjson
[719 / 1307] InternalCollectionsUtilities
[722 / 1308]
[726 / 1328] ComplexModule
[728 / 1337] OrderedCollections
[731 / 1337] OrderedCollections
[734 / 1337] ComplexModule
[739 / 1337] OrderedCollections
[742 / 1337] Crypto
[746 / 1337] Crypto
[756 / 1337] Crypto
[757 / 1338] OrderedCollections
[759 / 1338] OrderedCollections
[761 / 1338] ComplexModule
[762 / 1339] ComplexModule
[762 / 1339] Crypto
[764 / 1339] Numerics
[765 / 1339] Numerics
[772 / 1341] Numerics
[783 / 1354] HuggingFace
[787 / 1364] OrderedCollections
[791 / 1364] Jinja
[794 / 1364] Jinja
[798 / 1364] CCryptoBoringSSL
[799 / 1364] Jinja-product
[800 / 1365] Jinja
[801 / 1365] Jinja-product
[803 / 1365] 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-32 -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
[804 / 1365] HuggingFace
error: Build failed
BUILD FAILURE 6.4 android