Build Information
Failed to build swift-index, reference main (8a8abc), with Swift 6.3 for Wasm on 29 Sep 2026 17:13:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexey1312/swift-index.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/alexey1312/swift-index
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 8a8abc5 fix: stop MLX embedding stalls and crashes on Ctrl-C
Cloned https://github.com/alexey1312/swift-index.git
Revision (git rev-parse @):
8a8abc542afbacf629f0ca596099021844cad90d
SUCCESS checkout https://github.com/alexey1312/swift-index.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/alexey1312/swift-index.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:253aad7f5b11d25cf9eaef34120b94cd8a325782929c57fb304a7711494a3f9a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/mattt/swift-yyjson.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/tuist/Noora.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-log.git
[1/8165] Fetching swift-log
[573/8721] Fetching swift-log, swift-yyjson
[8722/27293] Fetching swift-log, swift-yyjson, swift-crypto
[9280/46984] Fetching swift-log, swift-yyjson, swift-crypto, noora
[13337/74786] Fetching swift-log, swift-yyjson, swift-crypto, noora, swift-collections
[59052/160992] Fetching swift-log, swift-yyjson, swift-crypto, noora, swift-collections, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (3.45s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetched https://github.com/apple/swift-crypto.git from cache (3.47s)
Fetching https://github.com/unum-cloud/usearch.git
Fetched https://github.com/mattt/swift-yyjson.git from cache (3.48s)
Fetching https://github.com/toon-format/toon-swift.git
Fetched https://github.com/apple/swift-collections.git from cache (3.50s)
Fetching https://github.com/mattt/swift-toml.git
Fetched https://github.com/apple/swift-nio.git from cache (3.53s)
Fetching https://github.com/huggingface/swift-transformers.git
Fetched https://github.com/tuist/Noora.git from cache (3.54s)
Fetching https://github.com/ml-explore/mlx-swift.git
[1/970] Fetching toon-swift
[971/8026] Fetching toon-swift, swift-transformers
Fetched https://github.com/toon-format/toon-swift.git from cache (0.50s)
Fetching https://github.com/tree-sitter/swift-tree-sitter.git
[71/7056] Fetching swift-transformers
[848/7387] Fetching swift-transformers, swift-toml
Fetched https://github.com/mattt/swift-toml.git from cache (0.57s)
Fetching https://github.com/swiftlang/swift-syntax.git
[918/7056] Fetching swift-transformers
[2189/26004] Fetching swift-transformers, swift-argument-parser
[2190/44517] Fetching swift-transformers, swift-argument-parser, usearch
Fetched https://github.com/huggingface/swift-transformers.git from cache (0.73s)
[29432/37461] Fetching swift-argument-parser, usearch
Fetching https://github.com/groue/GRDB.swift.git
[37462/54447] Fetching swift-argument-parser, usearch, mlx-swift
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.95s)
[19193/35499] Fetching usearch, mlx-swift
Fetching https://github.com/jkrukowski/swift-embeddings.git
[21062/37251] Fetching usearch, mlx-swift, swift-tree-sitter
Fetched https://github.com/unum-cloud/usearch.git from cache (1.05s)
[10415/18738] Fetching mlx-swift, swift-tree-sitter
Fetching https://github.com/ml-explore/mlx-swift-lm.git
Fetched https://github.com/tree-sitter/swift-tree-sitter.git from cache (0.54s)
[11551/16986] Fetching mlx-swift
Fetched https://github.com/ml-explore/mlx-swift.git from cache (1.24s)
[1/834] Fetching swift-embeddings
[827/114891] Fetching swift-embeddings, grdb.swift
Fetched https://github.com/jkrukowski/swift-embeddings.git from cache (0.52s)
[1141/114057] Fetching grdb.swift
[11407/194139] Fetching grdb.swift, swift-syntax
[113160/215607] Fetching grdb.swift, swift-syntax, mlx-swift-lm
Fetched https://github.com/ml-explore/mlx-swift-lm.git from cache (2.87s)
[126846/194139] Fetching grdb.swift, swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (3.41s)
[47904/114057] Fetching grdb.swift
Fetched https://github.com/groue/GRDB.swift.git from cache (7.71s)
Computing version for https://github.com/mattt/swift-yyjson.git
Computed https://github.com/mattt/swift-yyjson.git at 0.6.0 (12.14s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (0.93s)
Fetching https://github.com/apple/swift-asn1.git
[1/1986] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.45s)
Computing version for https://github.com/mattt/swift-toml.git
Computed https://github.com/mattt/swift-toml.git at 2.0.0 (0.60s)
Computing version for https://github.com/unum-cloud/usearch.git
Computed https://github.com/unum-cloud/usearch.git at 2.26.2 (0.15s)
Fetching https://github.com/ashvardanian/NumKong
[1/32120] Fetching numkong
Fetched https://github.com/ashvardanian/NumKong from cache (3.73s)
Computing version for https://github.com/groue/GRDB.swift.git
Computed https://github.com/groue/GRDB.swift.git at 7.11.1 (3.95s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 1.1.6 (0.16s)
Fetching https://github.com/huggingface/swift-jinja.git
[1/1376] Fetching swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git from cache (0.57s)
Computing version for https://github.com/ml-explore/mlx-swift-lm.git
Computed https://github.com/ml-explore/mlx-swift-lm.git at 3.31.4 (0.76s)
Computing version for https://github.com/ml-explore/mlx-swift.git
Computed https://github.com/ml-explore/mlx-swift.git at 0.31.6 (0.21s)
Fetching https://github.com/apple/swift-numerics
[1/6651] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.12s)
Computing version for https://github.com/tree-sitter/swift-tree-sitter.git
Computed https://github.com/tree-sitter/swift-tree-sitter.git at 0.25.0 (1.73s)
Fetching https://github.com/tree-sitter/tree-sitter
[1/72508] Fetching tree-sitter
Fetched https://github.com/tree-sitter/tree-sitter from cache (3.13s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (4.42s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.103.0 (0.28s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1885] Fetching swift-atomics
[1886/8871] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.67s)
Fetched https://github.com/apple/swift-system.git from cache (0.67s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (0.84s)
Computing version for https://github.com/toon-format/toon-swift.git
Computed https://github.com/toon-format/toon-swift.git at 0.5.0 (0.13s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.1 (0.23s)
Computing version for https://github.com/tuist/Noora.git
Computed https://github.com/tuist/Noora.git at 0.57.1 (0.16s)
Fetching https://github.com/onevcat/Rainbow
Fetching https://github.com/tuist/path
[1/1514] Fetching rainbow
[1515/1932] Fetching rainbow, path
Fetched https://github.com/tuist/path from cache (0.65s)
Fetched https://github.com/onevcat/Rainbow from cache (0.65s)
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.82s)
Computing version for https://github.com/tuist/path
Computed https://github.com/tuist/path at 0.3.8 (0.17s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 4.2.2 (0.88s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.17s)
Computing version for https://github.com/jkrukowski/swift-embeddings.git
Computed https://github.com/jkrukowski/swift-embeddings.git at 0.0.26 (0.17s)
Fetching https://github.com/jkrukowski/swift-sentencepiece
Fetching https://github.com/jkrukowski/swift-safetensors.git
[1/263] Fetching swift-safetensors
[264/353] Fetching swift-safetensors, swift-sentencepiece
Fetched https://github.com/jkrukowski/swift-safetensors.git from cache (0.64s)
Fetched https://github.com/jkrukowski/swift-sentencepiece from cache (0.64s)
Computing version for https://github.com/jkrukowski/swift-sentencepiece
Computed https://github.com/jkrukowski/swift-sentencepiece at 0.0.6 (0.85s)
Computing version for https://github.com/jkrukowski/swift-safetensors.git
Computed https://github.com/jkrukowski/swift-safetensors.git at 0.1.1 (0.17s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.15s)
Computing version for https://github.com/ashvardanian/NumKong
Computed https://github.com/ashvardanian/NumKong at 7.8.3 (0.22s)
Computing version for https://github.com/tree-sitter/tree-sitter
Computed https://github.com/tree-sitter/tree-sitter at 0.25.10 (0.19s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.19s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.18s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 2.5.1 (0.14s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/unum-cloud/usearch.git
Working copy of https://github.com/unum-cloud/usearch.git resolved at 2.26.2
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/tuist/Noora.git
Working copy of https://github.com/tuist/Noora.git resolved at 0.57.1
Creating working copy for https://github.com/mattt/swift-yyjson.git
Working copy of https://github.com/mattt/swift-yyjson.git resolved at 0.6.0
Creating working copy for https://github.com/ashvardanian/NumKong
Working copy of https://github.com/ashvardanian/NumKong resolved at 7.8.3
Creating working copy for https://github.com/tree-sitter/swift-tree-sitter.git
Working copy of https://github.com/tree-sitter/swift-tree-sitter.git resolved at 0.25.0
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 2.5.1
Creating working copy for https://github.com/groue/GRDB.swift.git
Working copy of https://github.com/groue/GRDB.swift.git resolved at 7.11.1
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/jkrukowski/swift-embeddings.git
Working copy of https://github.com/jkrukowski/swift-embeddings.git resolved at 0.0.26
Creating working copy for https://github.com/jkrukowski/swift-sentencepiece
Working copy of https://github.com/jkrukowski/swift-sentencepiece resolved at 0.0.6
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 603.0.2
Creating working copy for https://github.com/ml-explore/mlx-swift-lm.git
Working copy of https://github.com/ml-explore/mlx-swift-lm.git resolved at 3.31.4
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 1.1.6
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.103.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.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-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/ml-explore/mlx-swift.git
Working copy of https://github.com/ml-explore/mlx-swift.git resolved at 0.31.6
Creating working copy for https://github.com/tuist/path
Working copy of https://github.com/tuist/path resolved at 0.3.8
Creating working copy for https://github.com/toon-format/toon-swift.git
Working copy of https://github.com/toon-format/toon-swift.git resolved at 0.5.0
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 4.2.2
Creating working copy for https://github.com/tree-sitter/tree-sitter
Working copy of https://github.com/tree-sitter/tree-sitter resolved at 0.25.10
Creating working copy for https://github.com/mattt/swift-toml.git
Working copy of https://github.com/mattt/swift-toml.git resolved at 2.0.0
Creating working copy for https://github.com/jkrukowski/swift-safetensors.git
Working copy of https://github.com/jkrukowski/swift-safetensors.git resolved at 0.1.1
Downloading binary artifact https://github.com/jkrukowski/swift-sentencepiece/releases/download/0.0.5/sentencepiece.xcframework.zip
[830/40026617] Downloading https://github.com/jkrukowski/swift-sentencepiece/releases/download/0.0.5/sentencepiece.xcframework.zip
Downloaded https://github.com/jkrukowski/swift-sentencepiece/releases/download/0.0.5/sentencepiece.xcframework.zip (2.99s)
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/603.0.2/swift-6.3.2-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/603.0.2/swift-6.3.2-RELEASE-ubuntu_jammy_x86_64-MacroSupport.tar.gz (0.30s)
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/11] Compiling ArgumentParserToolInfo ToolInfo.swift
[6/11] Emitting module ArgumentParserToolInfo
[7/12] Wrapping AST for ArgumentParserToolInfo for debugging
[9/59] Emitting module ArgumentParser
[10/65] Compiling ArgumentParser ParentCommand.swift
[11/65] Compiling ArgumentParser AsyncParsableCommand.swift
[12/65] Compiling ArgumentParser CommandConfiguration.swift
[13/65] Compiling ArgumentParser CommandGroup.swift
[14/65] Compiling ArgumentParser EnumerableFlag.swift
[15/65] Compiling ArgumentParser ExpressibleByArgument.swift
[16/65] Compiling ArgumentParser ParsableArguments.swift
[17/65] Compiling ArgumentParser Name.swift
[18/65] Compiling ArgumentParser Parsed.swift
[19/65] Compiling ArgumentParser ParsedValues.swift
[20/65] Compiling ArgumentParser ParserError.swift
[21/65] Compiling ArgumentParser SplitArguments.swift
[22/65] Compiling ArgumentParser DumpHelpGenerator.swift
[23/65] Compiling ArgumentParser BashCompletionsGenerator.swift
[24/65] Compiling ArgumentParser CompletionsGenerator.swift
[25/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[26/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[27/65] Compiling ArgumentParser Argument.swift
[28/65] Compiling ArgumentParser ArgumentDiscussion.swift
[29/65] Compiling ArgumentParser ArgumentHelp.swift
[30/65] Compiling ArgumentParser ArgumentVisibility.swift
[31/65] Compiling ArgumentParser CompletionKind.swift
[32/65] Compiling ArgumentParser Errors.swift
[33/65] Compiling ArgumentParser Flag.swift
[34/65] Compiling ArgumentParser NameSpecification.swift
[35/65] Compiling ArgumentParser Option.swift
[36/65] Compiling ArgumentParser OptionGroup.swift
[37/65] Compiling ArgumentParser AsyncCompletionsValidator.swift
[38/65] Compiling ArgumentParser CodingKeyValidator.swift
[39/65] Compiling ArgumentParser NonsenseFlagsValidator.swift
[40/65] Compiling ArgumentParser ParsableArgumentsValidation.swift
[41/65] Compiling ArgumentParser PositionalArgumentsValidator.swift
[42/65] Compiling ArgumentParser UniqueNamesValidator.swift
[43/65] Compiling ArgumentParser Mutex.swift
[44/65] Compiling ArgumentParser Platform.swift
[45/65] Compiling ArgumentParser SequenceExtensions.swift
[46/65] Compiling ArgumentParser StringExtensions.swift
[47/65] Compiling ArgumentParser SwiftExtensions.swift
[48/65] Compiling ArgumentParser Tree.swift
[49/65] Compiling ArgumentParser HelpCommand.swift
[50/65] Compiling ArgumentParser HelpGenerator.swift
[51/65] Compiling ArgumentParser MessageInfo.swift
[52/65] Compiling ArgumentParser UsageGenerator.swift
[53/65] Compiling ArgumentParser CollectionExtensions.swift
[54/65] Compiling ArgumentParser Foundation.swift
[55/65] Compiling ArgumentParser ParsableCommand.swift
[56/65] Compiling ArgumentParser ArgumentDecoder.swift
[57/65] Compiling ArgumentParser ArgumentDefinition.swift
[58/65] Compiling ArgumentParser ArgumentSet.swift
[59/65] Compiling ArgumentParser CommandParser.swift
[60/65] Compiling ArgumentParser InputKey.swift
[61/65] Compiling ArgumentParser InputOrigin.swift
[62/66] Wrapping AST for ArgumentParser for debugging
[64/72] Compiling encuda encuda.swift
[65/72] Compiling encuda encuda-utils.swift
[66/72] Compiling encuda encuda-compile.swift
[67/72] Emitting module encuda
[68/72] Compiling encuda encuda-error.swift
[69/72] Compiling encuda encuda-link.swift
[70/73] Wrapping AST for encuda for debugging
[71/73] Write Objects.LinkFileList
[72/73] Linking encuda-tool
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
[3/3] Compiling plugin CudaBuild
Building for debugging...
[3/915] Write sources
[9/915] Copying t5_tokenizer_config.json
[9/915] Copying gpt2_tokenizer_config.json
[11/915] Write sources
[17/915] Compiling stdlib.c
[18/915] Compiling _NumericsShims _NumericsShims.c
[19/915] Compiling _AtomicsShims.c
[20/915] Compiling _SwiftSyntaxCShims PlatformMutex.c
[21/915] Compiling wasm_store.c
[22/915] Compiling tree.c
[23/915] Write swift-version-24593BA9C3E375BF.txt
[24/915] Compiling tree_cursor.c
[25/915] Compiling subtree.c
[26/915] Compiling stack.c
[27/919] Compiling lexer.c
[28/922] Compiling node.c
[29/930] Compiling language.c
[30/930] Compiling parser.c
[31/930] Compiling alloc.c
[32/930] Write sources
[33/930] Compiling query.c
[34/930] Compiling get_changed_ranges.c
[35/930] Write sources
[36/930] Wrapping AST for ArgumentParserToolInfo for debugging
[38/953] Emitting module SwiftSyntax603
[38/953] Write sources
[40/953] Emitting module _NIODataStructures
In file included from /host/spi-builder-workspace/.build/checkouts/usearch/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index_dense.hpp:8:
In file included from /host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:85:
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
| ^
In file included from /host/spi-builder-workspace/.build/checkouts/usearch/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index_dense.hpp:8:
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:788:18: error: no member named 'this_thread' in namespace 'std'
788 | std::this_thread::yield();
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:1678:61: error: no member named 'thread' in namespace 'std'
1678 | : index_limits_t(n, (std::max<std::size_t>)(1, std::thread::hardware_concurrency())) {}
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:2106:63: error: use of undeclared identifier 'PROT_READ'
2106 | byte_t* file = (byte_t*)mmap(NULL, file_stat.st_size, PROT_READ, MAP_SHARED, descriptor, 0);
| ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:2106:74: error: use of undeclared identifier 'MAP_SHARED'
2106 | byte_t* file = (byte_t*)mmap(NULL, file_stat.st_size, PROT_READ, MAP_SHARED, descriptor, 0);
| ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:2107:21: error: use of undeclared identifier 'MAP_FAILED'
2107 | if (file == MAP_FAILED) {
| ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:2131:9: error: use of undeclared identifier 'munmap'
2131 | munmap(ptr_, length_);
| ^~~~~~
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:2554:10: error: no type named 'mutex' in namespace 'std'
2554 | std::mutex global_mutex_{};
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:3215:31: error: no member named 'mutex' in namespace 'std'
3215 | std::unique_lock<std::mutex> new_level_lock(global_mutex_);
| ^~~~~
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:3362:35: error: no member named 'mutex' in namespace 'std'
3362 | std::unique_lock<std::mutex> new_level_lock(global_mutex_);
| ^~~~~
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:4927:10: error: no type named 'mutex' in namespace 'std'
4927 | std::mutex free_men_mutex{};
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:4970:39: error: no member named 'mutex' in namespace 'std'
4970 | std::unique_lock<std::mutex> pop_lock(free_men_mutex);
| ^~~~~
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:5026:43: error: no member named 'mutex' in namespace 'std'
5026 | std::unique_lock<std::mutex> push_lock(free_men_mutex);
| ^~~~~
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index.hpp:5029:43: error: no member named 'mutex' in namespace 'std'
5029 | std::unique_lock<std::mutex> push_lock(free_men_mutex);
| ^~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/usearch/c/lib.cpp:3:
In file included from /host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index_dense.hpp:12:
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index_plugins.hpp:1355:14: error: no type named 'thread' in namespace 'std'
1355 | std::thread native_;
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index_plugins.hpp:1375:63: error: no member named 'thread' in namespace 'std'
1375 | : threads_count_(threads_count ? threads_count : std::thread::hardware_concurrency()) {}
| ~~~~~^
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index_plugins.hpp:1628:48: error: use of undeclared identifier 'PROT_WRITE'
1628 | auto* result = mmap(NULL, count_bytes, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
| ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index_plugins.hpp:1628:61: error: use of undeclared identifier 'PROT_READ'
1628 | auto* result = mmap(NULL, count_bytes, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
| ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/usearch/include/usearch/index_plugins.hpp:1628:72: error: use of undeclared identifier 'MAP_PRIVATE'
1628 | auto* result = mmap(NULL, count_bytes, PROT_WRITE | PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
| ^~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[40/955] Compiling USearchC lib.cpp
[41/955] Emitting module SwiftSyntax602
BUILD FAILURE 6.3 wasm