Build Information
Failed to build PrivateFoundationModels, reference v0.11.0 (29e093), with Swift 6.4 for Android on 25 Sep 2026 14:34:14 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/john-rocky/PrivateFoundationModels.git
Reference: v0.11.0
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/john-rocky/PrivateFoundationModels
* tag v0.11.0 -> FETCH_HEAD
HEAD is now at 29e0939 v0.11.0: LoRA / DoRA adapter loading on the MLX backend
Cloned https://github.com/john-rocky/PrivateFoundationModels.git
Revision (git rev-parse @):
29e0939d21ebc11535f7a0b985c6211af5524299
SUCCESS checkout https://github.com/john-rocky/PrivateFoundationModels.git at v0.11.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.4
Building package at path: $PWD
https://github.com/john-rocky/PrivateFoundationModels.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/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/john-rocky/CoreML-LLM
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/huggingface/swift-transformers
Fetching https://github.com/huggingface/swift-huggingface.git
Fetching https://github.com/ml-explore/mlx-swift-lm
[1/7027] Fetching swift-transformers
[493/13359] Fetching swift-transformers, coreml-llm
[13360/16112] Fetching swift-transformers, coreml-llm, swift-huggingface
[16113/96180] Fetching swift-transformers, coreml-llm, swift-huggingface, swift-syntax
[70560/117358] Fetching swift-transformers, coreml-llm, swift-huggingface, swift-syntax, mlx-swift-lm
Fetched https://github.com/ml-explore/mlx-swift-lm (3.01s)
Fetched https://github.com/huggingface/swift-huggingface.git (3.47s)
Fetched https://github.com/huggingface/swift-transformers (3.47s)
Fetched https://github.com/john-rocky/CoreML-LLM (3.47s)
Fetched https://github.com/swiftlang/swift-syntax.git (3.49s)
Computing version for https://github.com/ml-explore/mlx-swift-lm
Computed https://github.com/ml-explore/mlx-swift-lm at 3.31.3 (0.21s)
Fetching https://github.com/ml-explore/mlx-swift
[1/16941] Fetching mlx-swift
Fetched https://github.com/ml-explore/mlx-swift (1.41s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (2.59s)
Computing version for https://github.com/john-rocky/CoreML-LLM
Computed https://github.com/john-rocky/CoreML-LLM at 1.9.0 (0.18s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.6 (0.26s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-numerics
[1/18941] Fetching swift-argument-parser
[18942/25581] Fetching swift-argument-parser, swift-numerics
Fetched https://github.com/apple/swift-numerics (1.16s)
Fetched https://github.com/apple/swift-argument-parser (1.16s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 0.11.0 (1.35s)
Fetching https://github.com/mattt/EventSource.git
Fetching https://github.com/apple/swift-crypto.git
[1/18549] Fetching swift-crypto
[558/18852] Fetching swift-crypto, eventsource
Fetched https://github.com/mattt/EventSource.git (0.52s)
[1299/18549] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git (1.18s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.34s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.5.1 (0.15s)
Computing version for https://github.com/huggingface/swift-transformers
Computed https://github.com/huggingface/swift-transformers at 1.3.4 (0.18s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/ibireme/yyjson.git
[1/1376] Fetching swift-jinja
[1377/29099] Fetching swift-jinja, swift-collections
[3318/33998] Fetching swift-jinja, swift-collections, yyjson
Fetched https://github.com/huggingface/swift-jinja.git (1.28s)
Fetched https://github.com/ibireme/yyjson.git (1.29s)
Fetched https://github.com/apple/swift-collections.git (1.29s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.12.0 (1.47s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.14s)
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.17s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (1.14s)
Fetching https://github.com/apple/swift-asn1.git
[1/1983] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (1.11s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (1.33s)
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/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-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
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/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/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-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.0
Creating working copy for https://github.com/john-rocky/CoreML-LLM
Working copy of https://github.com/john-rocky/CoreML-LLM resolved at 1.9.0
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
Working copy of https://github.com/ml-explore/mlx-swift-lm resolved at 3.31.3
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 2240]
[Planning 1012 / 2240]
[Planning 1918 / 2240]
[Planning deferred tasks]
[Constructing 296 / 5440]
[Starting]
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'
[148 / 1501] PrivateFoundationModelsCoreML
[355 / 1501]
[383 / 1512] RealModule
[387 / 1521] RealModule
[400 / 1530] RealModule
[410 / 1530] InternalCollectionsUtilities
[417 / 1530] RealModule
[421 / 1530] RealModule
[423 / 1531] InternalCollectionsUtilities
[427 / 1532] RealModule
[435 / 1535] SwiftSyntax510
[440 / 1542] CryptoBoringWrapper
[442 / 1549] SwiftSyntax600
[445 / 1549] SwiftSyntax600
[448 / 1549] EventSource
[449 / 1549] CryptoBoringWrapper
[450 / 1549] CryptoBoringWrapper
[451 / 1550] InternalCollectionsUtilities
[454 / 1550] InternalCollectionsUtilities
[457 / 1550] CryptoBoringWrapper
[461 / 1550] EventSource
[471 / 1550]
[477 / 1553] CXKCP
[479 / 1553] CCryptoBoringSSLShims
[479 / 1553] ArgumentParserToolInfo
[483 / 1553] ArgumentParserToolInfo
[488 / 1553] CCryptoBoringSSL
[490 / 1553] CCryptoBoringSSL
[491 / 1553] CCryptoBoringSSL
[494 / 1553] CCryptoBoringSSL
[497 / 1553] CCryptoBoringSSL
[498 / 1553] CCryptoBoringSSL
[499 / 1554] CCryptoBoringSSL
[501 / 1554] CCryptoBoringSSL
[503 / 1554] CCryptoBoringSSL
[505 / 1554] CCryptoBoringSSL
[506 / 1554] CCryptoBoringSSL
[508 / 1554] EventSource
[510 / 1555] CCryptoBoringSSL
[513 / 1555] CCryptoBoringSSL
[514 / 1555] CCryptoBoringSSL
[515 / 1555] CCryptoBoringSSL
[517 / 1555] CCryptoBoringSSL
[519 / 1555] CCryptoBoringSSL
[521 / 1555] CCryptoBoringSSL
[522 / 1555] CCryptoBoringSSL
[523 / 1555] CCryptoBoringSSL
[527 / 1555] CCryptoBoringSSL
[528 / 1555] CCryptoBoringSSL
[533 / 1555] CCryptoBoringSSL
[537 / 1555] CCryptoBoringSSL
[539 / 1555] CCryptoBoringSSL
[540 / 1555] CCryptoBoringSSL
[542 / 1555] CCryptoBoringSSL
[543 / 1555] CCryptoBoringSSL
[545 / 1555] CCryptoBoringSSL
[547 / 1555] CCryptoBoringSSL
[548 / 1555] CCryptoBoringSSL
[550 / 1555] CCryptoBoringSSL
[551 / 1555] CCryptoBoringSSL
[552 / 1555] CCryptoBoringSSL
[553 / 1555] CCryptoBoringSSL
[554 / 1555] CCryptoBoringSSL
[555 / 1555] CCryptoBoringSSL
[557 / 1555] CCryptoBoringSSL
[559 / 1555] CCryptoBoringSSL
[561 / 1555] CCryptoBoringSSL
[564 / 1555] CCryptoBoringSSL
[566 / 1555] CCryptoBoringSSL
[567 / 1555] CCryptoBoringSSL
[569 / 1555] CCryptoBoringSSL
[571 / 1555] CCryptoBoringSSL
[575 / 1555] CCryptoBoringSSL
[577 / 1555] CCryptoBoringSSL
[579 / 1555] CCryptoBoringSSL
[581 / 1555] CCryptoBoringSSL
[583 / 1555] CCryptoBoringSSL
[584 / 1555] CCryptoBoringSSL
[587 / 1555] CCryptoBoringSSL
[588 / 1555] CCryptoBoringSSL
[592 / 1555] CCryptoBoringSSL
[596 / 1555] CCryptoBoringSSL
[605 / 1555] CCryptoBoringSSL
[611 / 1555] CCryptoBoringSSL
[616 / 1555] CCryptoBoringSSL
[618 / 1555] CCryptoBoringSSL
[619 / 1555] CCryptoBoringSSL
[624 / 1555] CCryptoBoringSSL
[625 / 1555] CCryptoBoringSSL
[626 / 1555] CCryptoBoringSSL
[627 / 1555] CCryptoBoringSSL
[628 / 1555] CCryptoBoringSSL
[629 / 1555] CCryptoBoringSSL
[632 / 1555] CCryptoBoringSSL
[634 / 1555] CCryptoBoringSSL
[635 / 1555] CCryptoBoringSSL
[637 / 1555] CCryptoBoringSSL
[638 / 1555] CCryptoBoringSSL
[639 / 1555] CCryptoBoringSSL
[640 / 1555] CCryptoBoringSSL
[642 / 1555] CCryptoBoringSSL
[643 / 1555] CCryptoBoringSSL
[646 / 1555] CCryptoBoringSSL
[648 / 1555] CCryptoBoringSSL
[649 / 1555] CCryptoBoringSSL
[650 / 1555] CCryptoBoringSSL
[653 / 1555] CCryptoBoringSSL
[654 / 1555] CCryptoBoringSSL
[656 / 1555] CCryptoBoringSSL
[658 / 1555] CCryptoBoringSSL
[660 / 1555] CCryptoBoringSSL
[661 / 1555] CCryptoBoringSSL
[662 / 1555] CCryptoBoringSSL
[664 / 1555] CCryptoBoringSSL
[667 / 1555] CCryptoBoringSSL
[671 / 1555] CCryptoBoringSSL
[675 / 1555] CCryptoBoringSSL
[677 / 1555] CCryptoBoringSSL
[678 / 1555] CCryptoBoringSSL
[679 / 1555] CCryptoBoringSSL
[681 / 1555] CCryptoBoringSSL
[684 / 1555] CCryptoBoringSSL
[685 / 1555] CCryptoBoringSSL
[687 / 1555] CCryptoBoringSSL
[688 / 1555] CCryptoBoringSSL
[690 / 1555] CCryptoBoringSSL
[691 / 1555] CCryptoBoringSSL
[692 / 1555] CCryptoBoringSSL
[695 / 1555] CCryptoBoringSSL
[696 / 1555] CCryptoBoringSSL
[697 / 1555] CCryptoBoringSSL
[699 / 1555] CCryptoBoringSSL
[700 / 1555] CCryptoBoringSSL
[702 / 1555] CCryptoBoringSSL
[705 / 1555] CCryptoBoringSSL
[708 / 1555] CCryptoBoringSSL
[711 / 1555] CCryptoBoringSSL
[713 / 1555] CCryptoBoringSSL
[714 / 1555] CCryptoBoringSSL
[717 / 1555] CCryptoBoringSSL
[720 / 1555] CCryptoBoringSSL
[723 / 1555] CCryptoBoringSSL
[724 / 1555] CCryptoBoringSSL
[726 / 1555] CCryptoBoringSSL
[728 / 1555] CCryptoBoringSSL
[729 / 1555] CCryptoBoringSSL
[732 / 1555] CCryptoBoringSSL
[734 / 1555] CCryptoBoringSSL
[735 / 1555] CCryptoBoringSSL
[737 / 1555] CCryptoBoringSSL
[738 / 1555] CCryptoBoringSSL
[740 / 1555] CCryptoBoringSSL
[741 / 1555] CCryptoBoringSSL
[743 / 1555] CCryptoBoringSSL
[744 / 1555] CCryptoBoringSSL
[745 / 1555] CCryptoBoringSSL
[747 / 1555] CCryptoBoringSSL
[748 / 1555] CCryptoBoringSSL
[749 / 1555] CCryptoBoringSSL
[751 / 1555] CCryptoBoringSSL
[753 / 1555] CCryptoBoringSSL
[754 / 1555] CCryptoBoringSSL
[755 / 1555] CCryptoBoringSSL
[756 / 1555] CCryptoBoringSSL
[758 / 1555] CCryptoBoringSSL
[759 / 1555] CCryptoBoringSSL
[762 / 1555] CCryptoBoringSSL
[764 / 1555] CCryptoBoringSSL
[765 / 1555] CCryptoBoringSSL
[767 / 1555] CCryptoBoringSSL
[768 / 1555] CCryptoBoringSSL
[772 / 1555] CCryptoBoringSSL
[774 / 1555] CCryptoBoringSSL
[776 / 1555] CCryptoBoringSSL
[779 / 1555] CCryptoBoringSSL
[783 / 1555] CCryptoBoringSSL
[786 / 1555] CCryptoBoringSSL
[790 / 1555] CCryptoBoringSSL
[792 / 1555] CCryptoBoringSSL
[794 / 1555] CCryptoBoringSSL
[795 / 1555] CCryptoBoringSSL
[797 / 1555] CCryptoBoringSSL
[798 / 1555] CCryptoBoringSSL
[800 / 1555] CCryptoBoringSSL
[801 / 1555] CCryptoBoringSSL
[802 / 1555] CCryptoBoringSSL
[804 / 1555] CCryptoBoringSSL
[805 / 1555] CCryptoBoringSSL
[807 / 1555] CCryptoBoringSSL
[809 / 1555] CCryptoBoringSSL
[810 / 1555] CCryptoBoringSSL
[813 / 1555] CCryptoBoringSSL
[816 / 1555] CCryptoBoringSSL
[817 / 1555] CCryptoBoringSSL
[821 / 1555] CCryptoBoringSSL
[824 / 1555] CCryptoBoringSSL
[828 / 1555] CCryptoBoringSSL
[832 / 1555] CCryptoBoringSSL
[833 / 1555] CCryptoBoringSSL
[836 / 1555] CCryptoBoringSSL
[838 / 1555] CCryptoBoringSSL
[839 / 1555] CCryptoBoringSSL
[841 / 1555] CCryptoBoringSSL
[842 / 1555] CCryptoBoringSSL
[843 / 1555] CCryptoBoringSSL
[845 / 1555] CCryptoBoringSSL
[847 / 1555] CCryptoBoringSSL
[851 / 1555] CCryptoBoringSSL
[855 / 1555] EventSource
[857 / 1555] ArgumentParserToolInfo
[859 / 1557] RealModule
[862 / 1577] OrderedCollections
[862 / 1577] CCryptoBoringSSL
[863 / 1577] Crypto
[867 / 1595] ComplexModule
[867 / 1595] ArgumentParserToolInfo
[869 / 1596] SwiftSyntax
[870 / 1596] ComplexModule
[872 / 1596] ComplexModule
[882 / 1596] SwiftSyntax
[883 / 1596] OrderedCollections
[885 / 1596] OrderedCollections
[890 / 1596] OrderedCollections
[891 / 1596] CCryptoBoringSSL
[892 / 1596] OrderedCollections
[893 / 1596] OrderedCollections
[894 / 1596] OrderedCollections-product
[895 / 1596] OrderedCollections-product
[896 / 1596] OrderedCollections-product
[897 / 1596] Jinja
[898 / 1596] Jinja
[900 / 1596] Crypto
[901 / 1597] OrderedCollections
[902 / 1597] Crypto
[904 / 1597] Crypto-product
[905 / 1597] HuggingFace
[906 / 1597] Crypto
[909 / 1597] SwiftSyntax
[913 / 1597] SwiftSyntax
[914 / 1597] SwiftSyntax-product
[916 / 1597] Numerics
[919 / 1597] ComplexModule
[920 / 1597] CCryptoBoringSSL
[923 / 1598]
[927 / 1600]
[930 / 1618] SwiftParser
[933 / 1618] SwiftDiagnostics
[938 / 1618] SwiftParser
[940 / 1619] SwiftParser
[941 / 1619] SwiftParser
[944 / 1619] SwiftParser
[948 / 1619] SwiftParser
[950 / 1619] SwiftDiagnostics
[951 / 1619] SwiftDiagnostics
[951 / 1619] SwiftOperators
[954 / 1619] SwiftDiagnostics
[955 / 1619] SwiftDiagnostics
[956 / 1619]
[962 / 1638] SwiftBasicFormat
[963 / 1647] Numerics
[966 / 1650] Numerics
[970 / 1650] SwiftBasicFormat
[981 / 1650] Numerics
[985 / 1650] SwiftOperators
[987 / 1650] SwiftOperators
[989 / 1650] SwiftDiagnostics
[991 / 1650] SwiftParserDiagnostics
[995 / 1651] SwiftOperators
[997 / 1651] RealModule
[998 / 1651] Numerics-product
[1001 / 1652] OrderedCollections
[1002 / 1652] OrderedCollections
[1005 / 1652] ArgumentParser
[1005 / 1652] SwiftBasicFormat
[1008 / 1653] ArgumentParser
[1013 / 1654] SwiftParser
[1016 / 1654] SwiftParser
[1017 / 1654] ArgumentParser-product
[1018 / 1654] encuda-product
[1019 / 1654]
[1022 / 1665] Jinja
[1024 / 1674] Jinja
[1025 / 1674] Jinja
[1026 / 1674] Jinja
[1027 / 1674] Jinja
[1028 / 1674] Jinja
[1029 / 1675] Jinja
[1034 / 1675] Jinja
[1035 / 1675] Jinja-product
[1036 / 1675] Jinja-product
[1037 / 1675] Jinja-product
[1039 / 1675] HuggingFace
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:8:12: [1;31merror: [1;39mFileLock is only supported on Darwin and Linux (Glibc) platforms.[0;0m
[0;36m6 |[0;0m import Glibc
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m #error([4;39m"FileLock is only supported on Darwin and Linux (Glibc) platforms."[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mFileLock is only supported on Darwin and Linux (Glibc) platforms.[0;0m
[0;36m9 |[0;0m #endif
[0;36m10 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: [1;31merror: [1;39mtype 'URL' has no member 'cachesDirectory'[0;0m
[0;36m197 |[0;0m environment env: [String: String] = ProcessInfo.processInfo.environment,
[0;36m198 |[0;0m homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
[0;36m199 |[0;0m cachesDirectory: URL = [4;39mURL[0;0m.[4;39mcachesDirectory[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URL' has no member 'cachesDirectory'[0;0m
[0;36m200 |[0;0m ) -> URL {
[0;36m201 |[0;0m #if os(macOS)
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /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 /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/URL+Extensions.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/URLSession+Linux.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/MultipartBuilder.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/TokenProvider.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Value.swift -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 -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/Modules/HuggingFace.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/Modules/HuggingFace.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/HuggingFace-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/HuggingFace-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/HuggingFace-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-android-aarch64/HuggingFace-t.build/Objects-normal/aarch64/Modules/HuggingFace.swiftmodule
[1040 / 1675] 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: [1;31merror: [1;39mFileLock is only supported on Darwin and Linux (Glibc) platforms.[0;0m
[0;36m6 |[0;0m import Glibc
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m #error([4;39m"FileLock is only supported on Darwin and Linux (Glibc) platforms."[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mFileLock is only supported on Darwin and Linux (Glibc) platforms.[0;0m
[0;36m9 |[0;0m #endif
[0;36m10 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:148:28: [1;31merror: [1;39mcannot find 'O_RDWR' in scope[0;0m
[0;36m146 |[0;0m )
[0;36m147 |[0;0m
[0;36m148 |[0;0m var flags: Int32 = [4;39mO_RDWR[0;0m | O_CREAT | O_TRUNC
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'O_RDWR' in scope[0;0m
[0;36m149 |[0;0m #if !os(Windows)
[0;36m150 |[0;0m flags |= O_NOFOLLOW
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:148:37: [1;31merror: [1;39mcannot find 'O_CREAT' in scope[0;0m
[0;36m146 |[0;0m )
[0;36m147 |[0;0m
[0;36m148 |[0;0m var flags: Int32 = O_RDWR | [4;39mO_CREAT[0;0m | O_TRUNC
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'O_CREAT' in scope[0;0m
[0;36m149 |[0;0m #if !os(Windows)
[0;36m150 |[0;0m flags |= O_NOFOLLOW
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:148:47: [1;31merror: [1;39mcannot find 'O_TRUNC' in scope[0;0m
[0;36m146 |[0;0m )
[0;36m147 |[0;0m
[0;36m148 |[0;0m var flags: Int32 = O_RDWR | O_CREAT | [4;39mO_TRUNC[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'O_TRUNC' in scope[0;0m
[0;36m149 |[0;0m #if !os(Windows)
[0;36m150 |[0;0m flags |= O_NOFOLLOW
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:150:22: [1;31merror: [1;39mcannot find 'O_NOFOLLOW' in scope[0;0m
[0;36m148 |[0;0m var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
[0;36m149 |[0;0m #if !os(Windows)
[0;36m150 |[0;0m flags |= [4;39mO_NOFOLLOW[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'O_NOFOLLOW' in scope[0;0m
[0;36m151 |[0;0m #endif
[0;36m152 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:153:18: [1;31merror: [1;39mcannot find 'open' in scope[0;0m
[0;36m151 |[0;0m #endif
[0;36m152 |[0;0m
[0;36m153 |[0;0m let fd = [4;39mopen[0;0m(lockPath.path(percentEncoded: false), flags, mode)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'open' in scope[0;0m
[0;36m154 |[0;0m guard fd >= 0 else {
[0;36m155 |[0;0m throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:155:61: [1;31merror: [1;39mcannot find 'errno' in scope[0;0m
[0;36m153 |[0;0m let fd = open(lockPath.path(percentEncoded: false), flags, mode)
[0;36m154 |[0;0m guard fd >= 0 else {
[0;36m155 |[0;0m throw FileLockError.openFailed(lockPath, errno: [4;39merrno[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'errno' in scope[0;0m
[0;36m156 |[0;0m }
[0;36m157 |[0;0m
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h:58:9: [1;39mnote: [1;39mmacro 'errno' unavailable: structure not supported[0;0m
[0;36m56 |[0;0m * thread.
[0;36m57 |[0;0m */
[0;36m58 |[0;0m #define errno (*__errno())
[0;36m|[0;0m `- [1;39mnote: [1;39mmacro 'errno' unavailable: structure not supported[0;0m
[0;36m59 |[0;0m
[0;36m60 |[0;0m __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:159:13: [1;31merror: [1;39mcannot find 'fchmod' in scope[0;0m
[0;36m157 |[0;0m
[0;36m158 |[0;0m // Apply permissions (may silently fail if not the file owner).
[0;36m159 |[0;0m _ = [4;39mfchmod[0;0m(fd, mode)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'fchmod' in scope[0;0m
[0;36m160 |[0;0m return fd
[0;36m161 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:176:22: [1;31merror: [1;39mcannot find 'flock' in scope[0;0m
[0;36m174 |[0;0m var result: Int32
[0;36m175 |[0;0m repeat {
[0;36m176 |[0;0m result = [4;39mflock[0;0m(fd, LOCK_EX | LOCK_NB)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'flock' in scope[0;0m
[0;36m177 |[0;0m } while result == -1 && errno == EINTR
[0;36m178 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:176:32: [1;31merror: [1;39mcannot find 'LOCK_EX' in scope[0;0m
[0;36m174 |[0;0m var result: Int32
[0;36m175 |[0;0m repeat {
[0;36m176 |[0;0m result = flock(fd, [4;39mLOCK_EX[0;0m | LOCK_NB)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'LOCK_EX' in scope[0;0m
[0;36m177 |[0;0m } while result == -1 && errno == EINTR
[0;36m178 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:176:42: [1;31merror: [1;39mcannot find 'LOCK_NB' in scope[0;0m
[0;36m174 |[0;0m var result: Int32
[0;36m175 |[0;0m repeat {
[0;36m176 |[0;0m result = flock(fd, LOCK_EX | [4;39mLOCK_NB[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'LOCK_NB' in scope[0;0m
[0;36m177 |[0;0m } while result == -1 && errno == EINTR
[0;36m178 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:177:33: [1;31merror: [1;39mcannot find 'errno' in scope[0;0m
[0;36m175 |[0;0m repeat {
[0;36m176 |[0;0m result = flock(fd, LOCK_EX | LOCK_NB)
[0;36m177 |[0;0m } while result == -1 && [4;39merrno[0;0m == EINTR
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'errno' in scope[0;0m
[0;36m178 |[0;0m
[0;36m179 |[0;0m if result == 0 { return .success }
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h:58:9: [1;39mnote: [1;39mmacro 'errno' unavailable: structure not supported[0;0m
[0;36m56 |[0;0m * thread.
[0;36m57 |[0;0m */
[0;36m58 |[0;0m #define errno (*__errno())
[0;36m|[0;0m `- [1;39mnote: [1;39mmacro 'errno' unavailable: structure not supported[0;0m
[0;36m59 |[0;0m
[0;36m60 |[0;0m __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:181:16: [1;31merror: [1;39mcannot find 'errno' in scope[0;0m
[0;36m179 |[0;0m if result == 0 { return .success }
[0;36m180 |[0;0m
[0;36m181 |[0;0m switch [4;39merrno[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'errno' in scope[0;0m
[0;36m182 |[0;0m case ENOSYS: return .notSupported
[0;36m183 |[0;0m case EWOULDBLOCK, EAGAIN: return .wouldBlock
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h:58:9: [1;39mnote: [1;39mmacro 'errno' unavailable: structure not supported[0;0m
[0;36m56 |[0;0m * thread.
[0;36m57 |[0;0m */
[0;36m58 |[0;0m #define errno (*__errno())
[0;36m|[0;0m `- [1;39mnote: [1;39mmacro 'errno' unavailable: structure not supported[0;0m
[0;36m59 |[0;0m
[0;36m60 |[0;0m __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:184:32: [1;31merror: [1;39mcannot find 'errno' in scope[0;0m
[0;36m182 |[0;0m case ENOSYS: return .notSupported
[0;36m183 |[0;0m case EWOULDBLOCK, EAGAIN: return .wouldBlock
[0;36m184 |[0;0m default: return .error([4;39merrno[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'errno' in scope[0;0m
[0;36m185 |[0;0m }
[0;36m186 |[0;0m }
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h:58:9: [1;39mnote: [1;39mmacro 'errno' unavailable: structure not supported[0;0m
[0;36m56 |[0;0m * thread.
[0;36m57 |[0;0m */
[0;36m58 |[0;0m #define errno (*__errno())
[0;36m|[0;0m `- [1;39mnote: [1;39mmacro 'errno' unavailable: structure not supported[0;0m
[0;36m59 |[0;0m
[0;36m60 |[0;0m __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:231:13: [1;31merror: [1;39mcannot find 'close' in scope[0;0m
[0;36m229 |[0;0m }
[0;36m230 |[0;0m } catch {
[0;36m231 |[0;0m [4;39mclose[0;0m(fd)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'close' in scope[0;0m
[0;36m232 |[0;0m throw error
[0;36m233 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:244:13: [1;31merror: [1;39mcannot find 'flock' in scope[0;0m
[0;36m242 |[0;0m private func releaseLock(context: FileLockContext, force: Bool) async {
[0;36m243 |[0;0m if let fd = await context.releaseIfReady(force: force) {
[0;36m244 |[0;0m [4;39mflock[0;0m(fd, LOCK_UN)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'flock' in scope[0;0m
[0;36m245 |[0;0m close(fd)
[0;36m246 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:244:23: [1;31merror: [1;39mcannot find 'LOCK_UN' in scope[0;0m
[0;36m242 |[0;0m private func releaseLock(context: FileLockContext, force: Bool) async {
[0;36m243 |[0;0m if let fd = await context.releaseIfReady(force: force) {
[0;36m244 |[0;0m flock(fd, [4;39mLOCK_UN[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'LOCK_UN' in scope[0;0m
[0;36m245 |[0;0m close(fd)
[0;36m246 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:245:13: [1;31merror: [1;39mcannot find 'close' in scope[0;0m
[0;36m243 |[0;0m if let fd = await context.releaseIfReady(force: force) {
[0;36m244 |[0;0m flock(fd, LOCK_UN)
[0;36m245 |[0;0m [4;39mclose[0;0m(fd)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'close' in scope[0;0m
[0;36m246 |[0;0m }
[0;36m247 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:308:13: [1;31merror: [1;39mcannot find 'flock' in scope[0;0m
[0;36m306 |[0;0m deinit {
[0;36m307 |[0;0m if let fd = fileDescriptor {
[0;36m308 |[0;0m [4;39mflock[0;0m(fd, LOCK_UN)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'flock' in scope[0;0m
[0;36m309 |[0;0m close(fd)
[0;36m310 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:308:23: [1;31merror: [1;39mcannot find 'LOCK_UN' in scope[0;0m
[0;36m306 |[0;0m deinit {
[0;36m307 |[0;0m if let fd = fileDescriptor {
[0;36m308 |[0;0m flock(fd, [4;39mLOCK_UN[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'LOCK_UN' in scope[0;0m
[0;36m309 |[0;0m close(fd)
[0;36m310 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:309:13: [1;31merror: [1;39mcannot find 'close' in scope[0;0m
[0;36m307 |[0;0m if let fd = fileDescriptor {
[0;36m308 |[0;0m flock(fd, LOCK_UN)
[0;36m309 |[0;0m [4;39mclose[0;0m(fd)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'close' in scope[0;0m
[0;36m310 |[0;0m }
[0;36m311 |[0;0m }
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-56 -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