Build Information
Failed to build swift-huggingface, reference 1.0.0 (c30143), with Swift 6.3 for Android on 12 Oct 2026 18:08:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/huggingface/swift-huggingface.git
Reference: 1.0.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/huggingface/swift-huggingface
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at c30143a Bump version to 1.0.0 (#94)
Cloned https://github.com/huggingface/swift-huggingface.git
Revision (git rev-parse @):
c30143a4616f3fa994ee3ab3e3464f752845c07c
SUCCESS checkout https://github.com/huggingface/swift-huggingface.git at 1.0.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/huggingface/swift-huggingface.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:a57e63703100e13e1ecb61b565870501ccb169d7515bc7af7f0994f211e1b1f6
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Fetching https://github.com/mattt/EventSource.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/mattt/Replay.git
[1/314] Fetching eventsource
[315/18943] Fetching eventsource, swift-crypto
Fetched https://github.com/mattt/EventSource.git from cache (0.38s)
[187/18629] Fetching swift-crypto
[747/19585] Fetching swift-crypto, replay
Fetched https://github.com/mattt/Replay.git from cache (0.51s)
[1491/18629] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.42s)
Computing version for https://github.com/mattt/Replay.git
Computed https://github.com/mattt/Replay.git at 0.6.0 (1.65s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/swift-server/async-http-client.git
[1/19112] Fetching swift-argument-parser
[19113/35591] Fetching swift-argument-parser, async-http-client
Fetched https://github.com/swift-server/async-http-client.git from cache (1.18s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.19s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.5.1 (1.39s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.21s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.36.2 (0.24s)
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-service-context.git
Fetching https://github.com/apple/swift-configuration.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/apple/swift-algorithms.git
[1/1503] Fetching swift-service-context
[17/5431] Fetching swift-service-context, swift-configuration
[388/8298] Fetching swift-service-context, swift-configuration, swift-nio-transport-services
[883/14870] Fetching swift-service-context, swift-configuration, swift-nio-transport-services, swift-distributed-tracing
[4021/21034] Fetching swift-service-context, swift-configuration, swift-nio-transport-services, swift-distributed-tracing, swift-algorithms
[18714/33328] Fetching swift-service-context, swift-configuration, swift-nio-transport-services, swift-distributed-tracing, swift-algorithms, swift-nio-http2
Fetched https://github.com/apple/swift-algorithms.git from cache (0.56s)
Fetched https://github.com/apple/swift-configuration.git from cache (0.56s)
[13524/23236] Fetching swift-service-context, swift-nio-transport-services, swift-distributed-tracing, swift-nio-http2
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (0.56s)
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-nio-extras.git
[7075/16664] Fetching swift-service-context, swift-nio-transport-services, swift-nio-http2
[16665/18553] Fetching swift-service-context, swift-nio-transport-services, swift-nio-http2, swift-atomics
[17119/35433] Fetching swift-service-context, swift-nio-transport-services, swift-nio-http2, swift-atomics, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.99s)
Fetched https://github.com/apple/swift-service-context.git from cache (0.99s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
[13219/37767] Fetching swift-nio-http2, swift-atomics, swift-nio-ssl, swift-nio-extras
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.00s)
[1094/25473] Fetching swift-atomics, swift-nio-ssl, swift-nio-extras
Fetched https://github.com/apple/swift-nio-extras.git from cache (0.65s)
[5772/18769] Fetching swift-atomics, swift-nio-ssl
[9318/27049] Fetching swift-atomics, swift-nio-ssl, swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.52s)
[1/86396] Fetching swift-nio
Fetched https://github.com/apple/swift-atomics.git from cache (1.32s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.33s)
Fetched https://github.com/apple/swift-nio.git from cache (3.74s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (5.72s)
Fetching https://github.com/apple/swift-numerics.git
[1/6743] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.59s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.4.0 (0.83s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.6.0 (0.23s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.21s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.20s)
Computing version for https://github.com/apple/swift-configuration.git
Computed https://github.com/apple/swift-configuration.git at 1.2.2 (1.03s)
Fetching https://github.com/apple/swift-system
Fetching https://github.com/swift-server/swift-service-lifecycle
Fetching https://github.com/apple/swift-collections
[1/2874] Fetching swift-service-lifecycle
[2875/10131] Fetching swift-service-lifecycle, swift-system
[10132/38834] Fetching swift-service-lifecycle, swift-system, swift-collections
Fetched https://github.com/swift-server/swift-service-lifecycle from cache (1.38s)
Fetched https://github.com/apple/swift-system from cache (1.38s)
Fetched https://github.com/apple/swift-collections from cache (1.39s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (1.57s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.104.0 (0.33s)
Computing version for https://github.com/swift-server/swift-service-lifecycle
Computed https://github.com/swift-server/swift-service-lifecycle at 2.12.1 (0.16s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1/6821] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.80s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.16.1 (0.98s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.7 (0.21s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.7.2 (0.33s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.46.0 (0.21s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.5 (0.24s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.8.1 (0.20s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.35.1 (0.43s)
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-asn1.git
[1/1939] Fetching swift-http-types
[60/3192] Fetching swift-http-types, swift-http-structured-headers
[422/5201] Fetching swift-http-types, swift-http-structured-headers, swift-asn1
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.43s)
[3828/3948] Fetching swift-http-types, swift-asn1
[3949/11561] Fetching swift-http-types, swift-asn1, swift-certificates
Fetched https://github.com/apple/swift-asn1.git from cache (0.46s)
[2396/9552] Fetching swift-http-types, swift-certificates
Fetched https://github.com/apple/swift-http-types.git from cache (0.58s)
Fetched https://github.com/apple/swift-certificates.git from cache (0.58s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.75s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.8.0 (0.20s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.25s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.21.0 (0.22s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (0.27s)
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.7
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.35.1
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-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.5
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/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.36.2
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.46.0
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.7.2
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.104.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.8.1
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.21.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.8.0
Creating working copy for https://github.com/apple/swift-configuration.git
Working copy of https://github.com/apple/swift-configuration.git resolved at 1.2.2
Creating working copy for https://github.com/swift-server/swift-service-lifecycle
Working copy of https://github.com/swift-server/swift-service-lifecycle resolved at 2.12.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/mattt/Replay.git
Working copy of https://github.com/mattt/Replay.git resolved at 0.6.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.16.1
[1/1] Compiling plugin ReplayPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/381] Write sources
[7/381] Compiling SimpleFIPS202.c
[8/381] Compiling KeccakHash.c
[9/381] Write sources
[10/381] Compiling CXKCPShims shims.c
[11/381] Compiling KeccakSponge.c
[12/381] Compiling fiat_curve25519_adx_square.S
[13/381] Compiling fiat_p256_adx_mul.S
[14/381] Compiling fiat_curve25519_adx_mul.S
[14/381] Compiling fiat_p256_adx_sqr.S
[16/381] Compiling CCryptoBoringSSLShims shims.c
[17/381] Compiling md5-x86_64-apple.S
[18/381] Compiling md5-x86_64-linux.S
[19/381] Compiling md5-586-apple.S
[20/381] Compiling KeccakP-1600-opt64.c
[21/381] Compiling md5-586-linux.S
[22/381] Compiling chacha20_poly1305_x86_64-apple.S
[23/381] Compiling chacha20_poly1305_x86_64-linux.S
[24/381] Compiling chacha20_poly1305_armv8-win.S
[25/381] Compiling chacha20_poly1305_armv8-apple.S
[26/381] Compiling f_int.cc
[27/381] Compiling chacha20_poly1305_armv8-linux.S
[28/381] Write swift-version-272D24FF697CF451.txt
[29/381] Compiling chacha-x86-linux.S
[30/381] Compiling chacha-x86_64-apple.S
[31/381] Compiling chacha-x86_64-linux.S
[32/386] Compiling err_data.cc
[33/386] Compiling chacha-x86-apple.S
[34/386] Compiling chacha-armv8-win.S
[35/386] Compiling aes128gcmsiv-x86_64-linux.S
[36/386] Compiling chacha-armv4-linux.S
[37/386] Compiling chacha-armv8-apple.S
[38/386] Compiling chacha-armv8-linux.S
[38/386] Compiling aes128gcmsiv-x86_64-apple.S
[40/386] Compiling x86_64-mont5-apple.S
[41/386] Compiling x86_64-mont5-linux.S
[42/386] Compiling x86_64-mont-apple.S
[43/386] Compiling x86_64-mont-linux.S
[44/386] Compiling vpaes-x86_64-linux.S
[45/386] Compiling x86-mont-linux.S
[46/386] Compiling vpaes-x86-linux.S
[47/386] Compiling vpaes-x86_64-apple.S
[48/386] Compiling x86-mont-apple.S
[49/386] Compiling vpaes-x86-apple.S
[50/386] Compiling vpaes-armv7-linux.S
[51/386] Compiling vpaes-armv8-win.S
[52/386] Compiling vpaes-armv8-apple.S
[53/386] Compiling sha512-x86_64-linux.S
[54/386] Compiling sha512-armv8-win.S
[55/386] Compiling sha512-armv8-linux.S
[56/386] Compiling sha512-x86_64-apple.S
[57/386] Compiling sha512-armv4-linux.S
[58/386] Compiling sha512-armv8-apple.S
[58/386] Compiling vpaes-armv8-linux.S
[60/386] Compiling sha256-x86_64-linux.S
[61/386] Compiling sha512-586-linux.S
[62/386] Compiling sha512-586-apple.S
[63/386] Compiling sha256-armv8-win.S
[64/386] Compiling sha256-x86_64-apple.S
[65/386] Compiling sha256-armv8-linux.S
[66/386] Compiling sha256-armv8-apple.S
[67/386] Compiling sha256-586-linux.S
[68/386] Compiling sha256-armv4-linux.S
[69/386] Compiling sha256-586-apple.S
[70/386] Compiling sha1-x86_64-apple.S
[71/386] Compiling sha1-x86_64-linux.S
[72/386] Compiling sha1-armv8-apple.S
[72/386] Compiling sha1-armv8-linux.S
[74/386] Compiling sha1-armv8-win.S
[75/386] Compiling sha1-armv4-large-linux.S
[76/386] Compiling sha1-586-apple.S
[77/386] Compiling rsaz-avx2-linux.S
[78/386] Compiling sha1-586-linux.S
[79/386] Compiling rdrand-x86_64-linux.S
[80/386] Compiling rsaz-avx2-apple.S
[81/386] Compiling rdrand-x86_64-apple.S
[82/386] Compiling p256_beeu-x86_64-asm-linux.S
[83/386] Compiling p256_beeu-x86_64-asm-apple.S
[84/386] Compiling p256_beeu-armv8-asm-win.S
[85/386] Compiling p256_beeu-armv8-asm-linux.S
[86/386] Compiling p256_beeu-armv8-asm-apple.S
[87/386] Compiling p256-x86_64-asm-linux.S
[88/386] Compiling p256-x86_64-asm-apple.S
[89/386] Compiling p256-armv8-asm-win.S
[89/386] Compiling p256-armv8-asm-linux.S
[91/386] Compiling p256-armv8-asm-apple.S
[92/386] Compiling ghashv8-armv8-win.S
[93/386] Compiling ghashv8-armv8-linux.S
[94/386] Compiling ghashv8-armv8-apple.S
[95/386] Compiling ghashv8-armv7-linux.S
[96/386] Compiling ghash-x86_64-linux.S
[97/386] Compiling ghash-x86-apple.S
[98/386] Compiling ghash-ssse3-x86_64-linux.S
[99/386] Compiling ghash-x86_64-apple.S
[100/386] Compiling ghash-x86-linux.S
[101/386] Compiling ghash-ssse3-x86-linux.S
[102/386] Compiling ghash-ssse3-x86_64-apple.S
[103/386] Compiling ghash-neon-armv8-win.S
[104/386] Compiling ghash-ssse3-x86-apple.S
[105/386] Compiling ghash-neon-armv8-linux.S
[106/386] Compiling ghash-neon-armv8-apple.S
[107/386] Compiling ghash-armv4-linux.S
[108/386] Compiling co-586-apple.S
[109/386] Compiling bsaes-armv7-linux.S
[109/386] Compiling co-586-linux.S
[111/386] Compiling bn-armv8-win.S
[112/386] Compiling bn-armv8-linux.S
[113/386] Compiling bn-armv8-apple.S
[114/386] Compiling bn-586-linux.S
[115/386] Compiling armv8-mont-win.S
[115/386] Compiling armv8-mont-apple.S
[117/386] Compiling armv8-mont-linux.S
[118/386] Compiling bn-586-apple.S
[119/386] Compiling aesv8-gcm-armv8-win.S
[120/386] Compiling armv4-mont-linux.S
[121/386] Compiling aesv8-gcm-armv8-apple.S
[122/386] Compiling aesv8-armv8-win.S
[123/386] Compiling aesv8-gcm-armv8-linux.S
[124/386] Compiling aesv8-armv8-linux.S
[125/386] Compiling aesv8-armv8-apple.S
[126/386] Compiling aesv8-armv7-linux.S
[127/386] Compiling aesni-x86_64-linux.S
[128/386] Compiling aesni-x86_64-apple.S
[129/386] Compiling aesni-x86-apple.S
[129/386] Compiling aesni-gcm-x86_64-linux.S
[131/386] Compiling aesni-gcm-x86_64-apple.S
[132/386] Compiling aesni-x86-linux.S
[133/386] Compiling aes-gcm-avx512-x86_64-apple.S
[134/386] Compiling aes-gcm-avx512-x86_64-linux.S
[135/386] Compiling aes-gcm-avx2-x86_64-linux.S
[136/386] Compiling aes-gcm-avx2-x86_64-apple.S
[137/386] Compiling xwing.cc
[138/386] Compiling x_x509a.cc
[138/386] Compiling x_pubkey.cc
[140/386] Compiling x_sig.cc
[141/386] Compiling x_req.cc
[142/386] Compiling x_spki.cc
[143/386] Compiling x_x509.cc
[144/386] Compiling x_name.cc
[145/386] Compiling x_attrib.cc
[146/386] Compiling x_crl.cc
[147/386] Compiling x_exten.cc
[148/386] Compiling x_all.cc
[149/386] Compiling x_algor.cc
[150/386] Compiling x509spki.cc
[151/386] Compiling x509rset.cc
[152/386] Compiling x509name.cc
[153/386] Compiling x509cset.cc
[154/386] Compiling x509_txt.cc
[155/386] Compiling x509_vpm.cc
[156/386] Compiling x509_trs.cc
[157/386] Compiling x509_set.cc
[158/386] Compiling x509_obj.cc
[159/386] Compiling x509_req.cc
[160/386] Compiling x509_vfy.cc
[161/386] Compiling x509_v3.cc
[162/386] Compiling x509_def.cc
[163/386] Compiling x509_ext.cc
[164/386] Compiling x509_cmp.cc
[165/386] Compiling x509_lu.cc
[166/386] Compiling x509_att.cc
[167/386] Compiling x509_d2.cc
[168/386] Compiling v3_prn.cc
[169/386] Compiling x509.cc
[170/386] Compiling v3_ocsp.cc
[171/386] Compiling v3_skey.cc
[173/386] Emitting module EventSource
[173/386] Compiling v3_utl.cc
[175/386] Compiling EventSource AsyncEventsSequence.swift
[176/386] Compiling EventSource EventSource+AsyncHTTPClient.swift
[177/386] Compiling EventSource AsyncSequence+Events.swift
[177/386] Compiling v3_pmaps.cc
[178/386] Compiling v3_purp.cc
[179/386] Compiling v3_pcons.cc
[180/386] Compiling v3_ncons.cc
[181/386] Compiling v3_lib.cc
[182/386] Compiling v3_extku.cc
[183/386] Compiling v3_enum.cc
[184/386] Compiling v3_int.cc
[185/386] Compiling v3_info.cc
[186/386] Compiling v3_ia5.cc
[187/386] Compiling v3_genn.cc
[188/386] Compiling v3_bitst.cc
[189/386] Compiling v3_bcons.cc
[190/386] Compiling v3_cpols.cc
[191/386] Compiling v3_akeya.cc
[192/386] Compiling v3_crld.cc
[193/386] Compiling v3_conf.cc
[194/386] Compiling v3_alt.cc
[195/386] Compiling t_x509a.cc
[196/386] Compiling t_req.cc
[197/386] Compiling v3_akey.cc
[198/386] Compiling name_print.cc
[199/386] Compiling t_crl.cc
[200/386] Compiling t_x509.cc
[201/386] Compiling rsa_pss.cc
[202/386] Compiling i2d_pr.cc
[203/386] Compiling policy.cc
[204/386] Compiling asn1_gen.cc
[205/386] Compiling by_file.cc
[206/386] Compiling algorithm.cc
[207/386] Compiling by_dir.cc
[208/386] Compiling a_sign.cc
[209/386] Compiling pmbtoken.cc
[210/386] Compiling thread_win.cc
[212/386] Compiling EventSource EventSource.swift
[212/387] Compiling a_digest.cc
[213/387] Compiling a_verify.cc
[214/387] Compiling voprf.cc
[216/387] Compiling trust_token.cc
[217/387] Compiling thread_none.cc
[218/387] Compiling siphash.cc
[219/387] Compiling thread_pthread.cc
[220/387] Compiling sha256.cc
[221/387] Compiling rsa_extra.cc
[222/387] Compiling thread.cc
[223/387] Compiling rsa_print.cc
[224/387] Compiling stack.cc
[225/387] Compiling sha512.cc
[226/387] Compiling refcount.cc
[227/387] Compiling sha1.cc
[228/387] Compiling spake2plus.cc
[229/387] Compiling slhdsa.cc
[230/387] Compiling urandom.cc
[231/387] Compiling rand.cc
[232/387] Compiling rsa_crypt.cc
[233/387] Compiling rc4.cc
[234/387] Compiling windows.cc
[235/387] Compiling trusty.cc
[236/387] Compiling getentropy.cc
[237/387] Compiling passive.cc
[238/387] Compiling poly1305_arm_asm.S
[239/387] Compiling poly1305_vec.cc
[240/387] Compiling ios.cc
[241/387] Compiling pool.cc
[242/387] Compiling rsa_asn1.cc
[243/387] Compiling deterministic.cc
[244/387] Compiling forkunsafe.cc
[245/387] Compiling poly1305.cc
[246/387] Compiling fork_detect.cc
[247/387] Compiling pkcs8.cc
[248/387] Compiling poly1305_arm.cc
[249/387] Compiling pkcs7.cc
[250/387] Compiling pkcs8_x509.cc
[251/387] Compiling pkcs7_x509.cc
[252/387] Compiling pem_xaux.cc
[253/387] Compiling p5_pbev2.cc
[254/387] Compiling pem_x509.cc
[255/387] Compiling pem_pk8.cc
[256/387] Compiling pem_info.cc
[257/387] Compiling pem_pkey.cc
[258/387] Compiling pem_lib.cc
[259/387] Compiling mldsa.cc
[260/387] Compiling obj_xref.cc
[261/387] Compiling pem_all.cc
[262/387] Compiling pem_oth.cc
[263/387] Compiling md4.cc
[264/387] Compiling mlkem.cc
[265/387] Compiling poly_rq_mul.S
[266/387] Compiling lhash.cc
[267/387] Compiling fips_shared_support.cc
[268/387] Compiling mem.cc
[269/387] Compiling obj.cc
[270/387] Compiling kyber.cc
[271/387] Compiling md5.cc
[272/387] Compiling ex_data.cc
[273/387] Compiling fuzzer_mode.cc
[274/387] Compiling sign.cc
[275/387] Compiling scrypt.cc
[276/387] Compiling hrss.cc
[277/387] Compiling print.cc
[278/387] Compiling hpke.cc
[279/387] Compiling p_rsa_asn1.cc
[280/387] Compiling pbkdf.cc
[281/387] Compiling p_x25519_asn1.cc
[282/387] Compiling p_hkdf.cc
[283/387] Compiling p_x25519.cc
[284/387] Compiling p_ed25519_asn1.cc
[285/387] Compiling p_ec_asn1.cc
[286/387] Compiling p_ed25519.cc
[287/387] Compiling p_ec.cc
[288/387] Compiling p_rsa.cc
[289/387] Compiling evp_ctx.cc
[290/387] Compiling p_dh_asn1.cc
[291/387] Compiling engine.cc
[292/387] Compiling p_dsa_asn1.cc
[293/387] Compiling p_dh.cc
[294/387] Compiling err.cc
[295/387] Compiling evp.cc
[296/387] Compiling ecdh.cc
[297/387] Compiling ecdsa_p1363.cc
[298/387] Compiling evp_asn1.cc
[299/387] Compiling ecdsa_asn1.cc
[300/387] Compiling hash_to_curve.cc
[301/387] Compiling ec_derive.cc
[302/387] Compiling digest_extra.cc
[303/387] Compiling dsa_asn1.cc
[304/387] Compiling dsa.cc
[305/387] Compiling curve25519_64_adx.cc
[306/387] Compiling x25519-asm-arm.S
[307/387] Compiling ec_asn1.cc
[308/387] Compiling des.cc
[309/387] Compiling crypto.cc
[310/387] Compiling dh_asn1.cc
[311/387] Compiling params.cc
[312/387] Compiling cpu_intel.cc
[313/387] Compiling cpu_arm_freebsd.cc
[314/387] Compiling cpu_aarch64_openbsd.cc
[315/387] Compiling cpu_aarch64_linux.cc
[316/387] Compiling cpu_arm_linux.cc
[317/387] Compiling cpu_aarch64_win.cc
[318/387] Compiling spake25519.cc
[319/387] Compiling cpu_aarch64_sysreg.cc
[320/387] Compiling curve25519.cc
[321/387] Compiling cpu_aarch64_fuchsia.cc
[322/387] Compiling cpu_aarch64_apple.cc
[323/387] Compiling tls_cbc.cc
[324/387] Compiling e_rc2.cc
[325/387] Compiling conf.cc
[326/387] Compiling e_tls.cc
[327/387] Compiling e_null.cc
[328/387] Compiling get_cipher.cc
[329/387] Compiling e_rc4.cc
[330/387] Compiling e_des.cc
[331/387] Compiling e_chacha20poly1305.cc
[332/387] Compiling cms.cc
[333/387] Compiling e_aesgcmsiv.cc
[334/387] Compiling derive_key.cc
[335/387] Compiling e_aeseax.cc
[336/387] Compiling e_aesctrhmac.cc
[337/387] Compiling chacha.cc
[338/387] Compiling unicode.cc
[339/387] Compiling buf.cc
[340/387] Compiling exponentiation.cc
[341/387] Compiling cbb.cc
[342/387] Compiling ber.cc
[343/387] Compiling cbs.cc
[344/387] Compiling sqrt.cc
[345/387] Compiling blake2.cc
[346/387] Compiling bn_asn1.cc
[347/387] Compiling asn1_compat.cc
[348/387] Compiling div.cc
[349/387] Compiling pair.cc
[350/387] Compiling printf.cc
[351/387] Compiling file.cc
[352/387] Compiling convert.cc
[353/387] Compiling bio_mem.cc
[354/387] Compiling hexdump.cc
[355/387] Compiling errno.cc
[356/387] Compiling fd.cc
[357/387] Compiling bio.cc
[358/387] Compiling tasn_enc.cc
[359/387] Compiling tasn_fre.cc
[360/387] Compiling base64.cc
[361/387] Compiling tasn_typ.cc
[362/387] Compiling f_string.cc
[363/387] Compiling asn_pack.cc
[364/387] Compiling asn1_par.cc
[365/387] Compiling tasn_utl.cc
[366/387] Compiling tasn_new.cc
[367/387] Compiling posix_time.cc
[368/387] Compiling a_type.cc
[369/387] Compiling tasn_dec.cc
[370/387] Compiling bcm.cc
[371/387] Compiling a_time.cc
[372/387] Compiling a_octet.cc
[373/387] Compiling asn1_lib.cc
[374/387] Compiling a_utctm.cc
[375/387] Compiling a_object.cc
[376/387] Compiling a_i2d_fp.cc
[377/387] Compiling a_strnid.cc
[378/387] Compiling a_strex.cc
[379/387] Compiling a_mbstr.cc
[380/387] Compiling a_dup.cc
[381/387] Compiling aes.cc
[382/387] Compiling a_int.cc
[383/387] Compiling a_d2i_fp.cc
[384/387] Compiling a_gentm.cc
[385/387] Compiling a_bool.cc
[386/387] Compiling a_bitstr.cc
[388/395] Compiling CryptoBoringWrapper BoringSSLAEAD.swift
[389/395] Compiling CryptoBoringWrapper CryptoKitErrors_boring.swift
[390/395] Compiling CryptoBoringWrapper EllipticCurve.swift
[391/395] Compiling CryptoBoringWrapper EllipticCurvePoint.swift
[392/395] Compiling CryptoBoringWrapper FiniteFieldArithmeticContext.swift
[393/395] Emitting module CryptoBoringWrapper
[394/395] Compiling CryptoBoringWrapper RandomBytes.swift
[395/395] Compiling CryptoBoringWrapper ArbitraryPrecisionInteger.swift
[397/480] Emitting module Crypto
[398/491] Compiling Crypto HPKE-LabeledExtract.swift
[399/491] Compiling Crypto HPKE-Utils.swift
[400/491] Compiling Crypto DHKEM.swift
[401/491] Compiling Crypto HPKE-KEM-Curve25519.swift
[402/491] Compiling Crypto HPKE-NIST-EC-KEMs.swift
[403/491] Compiling Crypto HPKE-KEM.swift
[404/491] Compiling Crypto HPKE-Errors.swift
[405/491] Compiling Crypto HPKE.swift
[406/491] Compiling Crypto HPKE-Context.swift
[407/491] Compiling Crypto HPKE-KeySchedule.swift
[408/491] Compiling Crypto HPKE-Modes.swift
[409/491] Compiling Crypto Insecure.swift
[410/491] Compiling Crypto CryptoKitErrors.swift
[411/491] Compiling Crypto Digest_boring.swift
[412/491] Compiling Crypto Digest.swift
[413/491] Compiling Crypto Digests.swift
[414/491] Compiling Crypto HashFunctions.swift
[415/491] Compiling Crypto HashFunctions_SHA2.swift
[416/491] Compiling Crypto HashFunctions_SHA3.swift
[417/491] Compiling Crypto Digest_xkcp.swift
[418/491] Compiling Crypto HPKE-AEAD.swift
[419/491] Compiling Crypto HPKE-Ciphersuite.swift
[420/491] Compiling Crypto HPKE-KDF.swift
[421/491] Compiling Crypto HPKE-KexKeyDerivation.swift
[422/491] Compiling Crypto HKDF.swift
[423/491] Compiling Crypto AESWrap.swift
[424/491] Compiling Crypto AESWrap_boring.swift
[425/491] Compiling Crypto Ed25519_boring.swift
[426/491] Compiling Crypto NISTCurvesKeys_boring.swift
[427/491] Compiling Crypto X25519Keys_boring.swift
[428/491] Compiling Crypto Curve25519.swift
[429/491] Compiling Crypto Ed25519Keys.swift
[430/491] Compiling Crypto NISTCurvesKeys.swift
[431/491] Compiling Crypto X25519Keys.swift
[432/491] Compiling Crypto SymmetricKeys.swift
[433/491] Compiling Crypto HMAC.swift
[434/491] Compiling Crypto ASN1Null.swift
[435/491] Compiling Crypto ASN1OctetString.swift
[436/491] Compiling Crypto ASN1Strings.swift
[437/491] Compiling Crypto ArraySliceBigint.swift
[438/491] Compiling Crypto GeneralizedTime.swift
[439/491] Compiling Crypto ObjectIdentifier.swift
[440/491] Compiling Crypto ECDSASignature.swift
[441/491] Compiling Crypto PEMDocument.swift
[442/491] Compiling Crypto PKCS8PrivateKey.swift
[443/491] Compiling Crypto SEC1PrivateKey.swift
[444/491] Compiling Crypto SubjectPublicKeyInfo.swift
[445/491] Compiling Crypto CryptoError_boring.swift
[446/491] Compiling Crypto AES-GCM.swift
[447/491] Compiling Crypto AES-GCM_boring.swift
[448/491] Compiling Crypto ChaChaPoly_boring.swift
[449/491] Compiling Crypto ChaChaPoly.swift
[450/491] Compiling Crypto Cipher.swift
[451/491] Compiling Crypto Nonces.swift
[452/491] Compiling Crypto ASN1.swift
[453/491] Compiling Crypto ASN1Any.swift
[454/491] Compiling Crypto ASN1BitString.swift
[455/491] Compiling Crypto ASN1Boolean.swift
[456/491] Compiling Crypto ASN1Identifier.swift
[457/491] Compiling Crypto ASN1Integer.swift
[458/491] Compiling Crypto Signature.swift
[459/491] Compiling Crypto CryptoKitErrors_boring.swift
[460/491] Compiling Crypto Optional+withUnsafeBytes_boring.swift
[461/491] Compiling Crypto RNG_boring.swift
[462/491] Compiling Crypto SafeCompare_boring.swift
[463/491] Compiling Crypto Zeroization_boring.swift
[464/491] Compiling Crypto _CryptoModuleAnchor.swift
[465/491] Compiling Crypto PrettyBytes.swift
[466/491] Compiling Crypto SafeCompare.swift
[467/491] Compiling Crypto SecureBytes.swift
[468/491] Compiling Crypto Zeroization.swift
[469/491] Compiling Crypto MACFunctions.swift
[470/491] Compiling Crypto MessageAuthenticationCode.swift
[471/491] Compiling Crypto AES.swift
[472/491] Compiling Crypto ECDSASignature_boring.swift
[473/491] Compiling Crypto ECDSA_boring.swift
[474/491] Compiling Crypto EdDSA_boring.swift
[475/491] Compiling Crypto MLDSA_boring.swift
[476/491] Compiling Crypto MLDSA_wrapper.swift
[477/491] Compiling Crypto ECDSA.swift
[478/491] Compiling Crypto Ed25519.swift
[479/491] Compiling Crypto MLDSA.swift
[480/491] Compiling Crypto Insecure_HashFunctions.swift
[481/491] Compiling Crypto MLKEM_boring.swift
[482/491] Compiling Crypto MLKEM_wrapper.swift
[483/491] Compiling Crypto XWing_boring.swift
[484/491] Compiling Crypto KEM-Errors.swift
[485/491] Compiling Crypto KEM.swift
[486/491] Compiling Crypto MLKEM.swift
[487/491] Compiling Crypto XWing.swift
[488/491] Compiling Crypto ECDH_boring.swift
[489/491] Compiling Crypto DH.swift
[490/491] Compiling Crypto ECDH.swift
[491/491] Compiling Crypto ANSIx963.swift
[493/542] Compiling HuggingFace XetDownloadProgress.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[494/542] Compiling HuggingFace ChatCompletion.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[495/542] Compiling HuggingFace FeatureExtraction.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[496/542] Compiling HuggingFace InferenceClient.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[497/542] Compiling HuggingFace Message.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[498/542] Compiling HuggingFace Provider.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[499/542] Compiling HuggingFace SpeechToText.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[500/549] Compiling HuggingFace HubClient+Repos.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[501/549] Compiling HuggingFace HubClient+Spaces.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[502/549] Compiling HuggingFace HubClient+User.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[503/549] Compiling HuggingFace HubClient.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[504/549] Compiling HuggingFace Model.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[505/549] Compiling HuggingFace OAuth.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[506/549] Compiling HuggingFace Organization.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[507/549] Compiling HuggingFace Pagination.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[508/549] Compiling HuggingFace Paper.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[509/549] Compiling HuggingFace Repo.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[510/549] Compiling HuggingFace ResourceGroup.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[511/549] Compiling HuggingFace Space.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[512/549] Compiling HuggingFace Tags.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[513/549] Compiling HuggingFace User.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[514/549] Compiling HuggingFace File.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[515/549] Compiling HuggingFace Git.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[516/549] Compiling HuggingFace HubCache.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[517/549] Compiling HuggingFace HubClient+Buckets.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[518/549] Compiling HuggingFace HubClient+Collections.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[519/549] Compiling HuggingFace HubClient+Datasets.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[520/549] Compiling HuggingFace HubClient+Discussions.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[521/549] Compiling HuggingFace URL+Extensions.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[522/549] Compiling HuggingFace URLSession+Linux.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[523/549] Compiling HuggingFace FileLock.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[524/549] Compiling HuggingFace HTTPClient.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[525/549] Compiling HuggingFace MultipartBuilder.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[526/549] Compiling HuggingFace TokenProvider.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
[527/549] Compiling HuggingFace Value.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:28: error: cannot find 'O_RDWR' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_RDWR' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:37: error: cannot find 'O_CREAT' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:47: error: cannot find 'O_TRUNC' in scope
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:148:45: error: cannot convert value of type 'UInt8' to specified type 'Int32'
146 | )
147 |
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot convert value of type 'UInt8' to specified type 'Int32'
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:150:22: error: cannot find 'O_NOFOLLOW' in scope
148 | var flags: Int32 = O_RDWR | O_CREAT | O_TRUNC
149 | #if !os(Windows)
150 | flags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
151 | #endif
152 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:153:18: error: cannot find 'open' in scope
151 | #endif
152 |
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
| `- error: cannot find 'open' in scope
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:155:61: error: cannot find 'errno' in scope
153 | let fd = open(lockPath.path(percentEncoded: false), flags, mode)
154 | guard fd >= 0 else {
155 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
156 | }
157 |
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:159:13: error: cannot find 'fchmod' in scope
157 |
158 | // Apply permissions (may silently fail if not the file owner).
159 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
160 | return fd
161 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:22: error: cannot find 'flock' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:32: error: cannot find 'LOCK_EX' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:176:42: error: cannot find 'LOCK_NB' in scope
174 | var result: Int32
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
177 | } while result == -1 && errno == EINTR
178 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:177:33: error: cannot find 'errno' in scope
175 | repeat {
176 | result = flock(fd, LOCK_EX | LOCK_NB)
177 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
178 |
179 | if result == 0 { return .success }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:181:16: error: cannot find 'errno' in scope
179 | if result == 0 { return .success }
180 |
181 | switch errno {
| `- error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:184:32: error: cannot find 'errno' in scope
182 | case ENOSYS: return .notSupported
183 | case EWOULDBLOCK, EAGAIN: return .wouldBlock
184 | default: return .error(errno)
| `- error: cannot find 'errno' in scope
185 | }
186 | }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:231:13: error: cannot find 'close' in scope
229 | }
230 | } catch {
231 | close(fd)
| `- error: cannot find 'close' in scope
232 | throw error
233 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:13: error: cannot find 'flock' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:244:23: error: cannot find 'LOCK_UN' in scope
242 | private func releaseLock(context: FileLockContext, force: Bool) async {
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
245 | close(fd)
246 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:245:13: error: cannot find 'close' in scope
243 | if let fd = await context.releaseIfReady(force: force) {
244 | flock(fd, LOCK_UN)
245 | close(fd)
| `- error: cannot find 'close' in scope
246 | }
247 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:13: error: cannot find 'flock' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:308:23: error: cannot find 'LOCK_UN' in scope
306 | deinit {
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
309 | close(fd)
310 | }
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:309:13: error: cannot find 'close' in scope
307 | if let fd = fileDescriptor {
308 | flock(fd, LOCK_UN)
309 | close(fd)
| `- error: cannot find 'close' in scope
310 | }
311 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[528/549] Emitting module HuggingFace
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[529/549] Compiling HuggingFace TextToImage.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[530/549] Compiling HuggingFace TextToVideo.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[531/549] Compiling HuggingFace OAuthClient.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[532/549] Compiling HuggingFace TokenStorage.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[533/549] Compiling HuggingFace CacheLocationProvider.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[534/549] Compiling HuggingFace Data+Extensions.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[535/549] Compiling HuggingFace JSONDecoder+Extensions.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Shared/CacheLocationProvider.swift:199:36: error: type 'URL' has no member 'cachesDirectory'
197 | environment env: [String: String] = ProcessInfo.processInfo.environment,
198 | homeDirectory: URL = URL(fileURLWithPath: NSHomeDirectory(), isDirectory: true),
199 | cachesDirectory: URL = URL.cachesDirectory
| `- error: type 'URL' has no member 'cachesDirectory'
200 | ) -> URL {
201 | #if os(macOS)
[536/549] Compiling HuggingFace AccessRequest.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[537/549] Compiling HuggingFace Billing.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[538/549] Compiling HuggingFace Bucket.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[539/549] Compiling HuggingFace Collection.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[540/549] Compiling HuggingFace CommaSeparatedList.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[541/549] Compiling HuggingFace Dataset.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[542/549] Compiling HuggingFace Discussion.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
[543/549] Compiling HuggingFace HubClient+Files.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[544/549] Compiling HuggingFace HubClient+Git.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[545/549] Compiling HuggingFace HubClient+Models.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[546/549] Compiling HuggingFace HubClient+OAuth.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[547/549] Compiling HuggingFace HubClient+Organizations.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[548/549] Compiling HuggingFace HubClient+Pagination.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
[549/549] Compiling HuggingFace HubClient+Papers.swift
/host/spi-builder-workspace/Sources/HuggingFace/Shared/FileLock.swift:8:12: error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
6 | import Glibc
7 | #else
8 | #error("FileLock is only supported on Darwin and Linux (Glibc) platforms.")
| `- error: FileLock is only supported on Darwin and Linux (Glibc) platforms.
9 | #endif
10 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:100:56: error: cannot find 'fnmatch' in scope
98 | ? String(fullPath.dropFirst(prefix.count))
99 | : url.lastPathComponent
100 | guard globs.isEmpty || globs.contains(where: { fnmatch($0, path, 0) == 0 }) else {
| `- error: cannot find 'fnmatch' in scope
101 | return nil
102 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:86:55: error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
84 | let prefix = base.path.hasSuffix("/") ? base.path : base.path + "/"
85 | return enumerator.compactMap { element in
86 | guard let url = element as? URL else { return nil }
| `- error: 'nil' is not compatible with closure result type 'SnapshotFileProgress'
87 | // Cache snapshots are trees of symlinks into the blob store, so resolve
88 | // before asking whether this is a file.
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:774:57: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
772 | )
773 | if !FileManager.default.fileExists(atPath: incompleteBlobPath.path) {
774 | FileManager.default.createFile(atPath: incompleteBlobPath.path, contents: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
775 | }
776 | try appendFileContents(from: tempURL, to: incompleteBlobPath)
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1691:21: error: cannot find 'fnmatch' in scope
1689 | guard !globs.isEmpty else { return true }
1690 | return globs.contains { glob in
1691 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1692 | }
1693 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1727:40: error: cannot infer contextual base in reference to member 'lfs'
1725 | let lfsEntries =
1726 | workItems
1727 | .filter { $0.transport == .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1728 | .sorted {
1729 | if $0.weight == $1.weight {
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1734:62: error: cannot infer contextual base in reference to member 'lfs'
1732 | return $0.weight > $1.weight
1733 | }
1734 | let xetEntries = workItems.filter { $0.transport != .lfs }
| `- error: cannot infer contextual base in reference to member 'lfs'
1735 |
1736 | // Per-file rows (path + child Progress) for the optional per-file
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1742:45: error: cannot infer contextual base in reference to member 'file'
1740 | ? []
1741 | : workItems
1742 | .filter { $0.entry.type == .file }
| `- error: cannot infer contextual base in reference to member 'file'
1743 | .map { ($0.entry.path, $0.entry.size.map(Int64.init), $0.progress) }
1744 | let samplingTask = makeSnapshotProgressSamplingTask(
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1772:21: warning: no 'async' operations occur within 'await' expression
1770 | samplingTask?.cancel()
1771 | if let samplingTask {
1772 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1773 | }
1774 | throw error
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1779:17: warning: no 'async' operations occur within 'await' expression
1777 | samplingTask?.cancel()
1778 | if let samplingTask {
1779 | _ = await samplingTask.result
| `- warning: no 'async' operations occur within 'await' expression
1780 | }
1781 |
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:1982:17: error: cannot find 'fnmatch' in scope
1980 | guard !globs.isEmpty else { return true }
1981 | return globs.contains { glob in
1982 | fnmatch(glob, entry.path, 0) == 0
| `- error: cannot find 'fnmatch' in scope
1983 | }
1984 | }
/host/spi-builder-workspace/Sources/HuggingFace/Hub/HubClient+Files.swift:2178:17: error: cannot find 'fnmatch' in scope
2176 | let relativePath = relativePath(from: fileURL, baseDirectory: snapshotPath)
2177 | let hasMatch = globs.contains { glob in
2178 | fnmatch(glob, relativePath, 0) == 0
| `- error: cannot find 'fnmatch' in scope
2179 | }
2180 | if hasMatch {
BUILD FAILURE 6.3 android