The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift-lm, reference 3.32.3 (3b339a), with Swift 6.3 for Wasm on 4 Oct 2026 00:53:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift-lm.git
Reference: 3.32.3
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ml-explore/mlx-swift-lm
 * tag               3.32.3     -> FETCH_HEAD
HEAD is now at 3b339ad adjustments for running tests on NAX/TF32 hardware (#649)
Cloned https://github.com/ml-explore/mlx-swift-lm.git
Revision (git rev-parse @):
3b339ad6e3b3f44c8121ecff5131c7fd55e075e6
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift-lm.git at 3.32.3
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ml-explore/mlx-swift-lm.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images: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/swiftlang/swift-syntax.git
Fetching https://github.com/ml-explore/mlx-swift
[1/17060] Fetching mlx-swift
[4437/97371] Fetching mlx-swift, swift-syntax
Fetched https://github.com/ml-explore/mlx-swift from cache (1.90s)
[41762/80311] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (4.07s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.32.3 (4.39s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-numerics
[1/6658] Fetching swift-numerics
[6526/25684] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics from cache (0.57s)
[2093/19026] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.84s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (2.03s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.18s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.28s)
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.32.3
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
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
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.25s)
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/11] Emitting module ArgumentParserToolInfo
[6/11] Compiling ArgumentParserToolInfo ToolInfo.swift
[7/12] Wrapping AST for ArgumentParserToolInfo for debugging
[9/59] Emitting module ArgumentParser
[10/65] Compiling ArgumentParser Name.swift
[11/65] Compiling ArgumentParser Parsed.swift
[12/65] Compiling ArgumentParser ParsedValues.swift
[13/65] Compiling ArgumentParser ParserError.swift
[14/65] Compiling ArgumentParser SplitArguments.swift
[15/65] Compiling ArgumentParser DumpHelpGenerator.swift
[16/65] Compiling ArgumentParser Mutex.swift
[17/65] Compiling ArgumentParser Platform.swift
[18/65] Compiling ArgumentParser SequenceExtensions.swift
[19/65] Compiling ArgumentParser StringExtensions.swift
[20/65] Compiling ArgumentParser SwiftExtensions.swift
[21/65] Compiling ArgumentParser Tree.swift
[22/65] Compiling ArgumentParser HelpCommand.swift
[23/65] Compiling ArgumentParser HelpGenerator.swift
[24/65] Compiling ArgumentParser MessageInfo.swift
[25/65] Compiling ArgumentParser UsageGenerator.swift
[26/65] Compiling ArgumentParser CollectionExtensions.swift
[27/65] Compiling ArgumentParser Foundation.swift
[28/65] Compiling ArgumentParser ParentCommand.swift
[29/65] Compiling ArgumentParser AsyncParsableCommand.swift
[30/65] Compiling ArgumentParser CommandConfiguration.swift
[31/65] Compiling ArgumentParser CommandGroup.swift
[32/65] Compiling ArgumentParser EnumerableFlag.swift
[33/65] Compiling ArgumentParser ExpressibleByArgument.swift
[34/65] Compiling ArgumentParser ParsableArguments.swift
[35/65] Compiling ArgumentParser ArgumentVisibility.swift
[36/65] Compiling ArgumentParser CompletionKind.swift
[37/65] Compiling ArgumentParser Errors.swift
[38/65] Compiling ArgumentParser Flag.swift
[39/65] Compiling ArgumentParser NameSpecification.swift
[40/65] Compiling ArgumentParser Option.swift
[41/65] Compiling ArgumentParser OptionGroup.swift
[42/65] Compiling ArgumentParser AsyncCompletionsValidator.swift
[43/65] Compiling ArgumentParser CodingKeyValidator.swift
[44/65] Compiling ArgumentParser NonsenseFlagsValidator.swift
[45/65] Compiling ArgumentParser ParsableArgumentsValidation.swift
[46/65] Compiling ArgumentParser PositionalArgumentsValidator.swift
[47/65] Compiling ArgumentParser UniqueNamesValidator.swift
[48/65] Compiling ArgumentParser BashCompletionsGenerator.swift
[49/65] Compiling ArgumentParser CompletionsGenerator.swift
[50/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[51/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[52/65] Compiling ArgumentParser Argument.swift
[53/65] Compiling ArgumentParser ArgumentDiscussion.swift
[54/65] Compiling ArgumentParser ArgumentHelp.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] Emitting module encuda
[67/72] Compiling encuda encuda-compile.swift
[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
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Libraries/MLXFoundationModels/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Libraries/MLXGuidedGeneration/README.md
[1/1] Compiling plugin CudaBuild
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/835] Write sources
[9/835] Compiling _NumericsShims _NumericsShims.c
[10/835] Compiling cLogSupport cLogSupport.c
[11/835] Write sources
[18/835] Compiling recursion_guard.cc
[19/835] Compiling MLXCXGrammar shim.cc
[20/835] Compiling logging.cc
[21/835] Compiling testing.cc
[22/835] Compiling regex_converter.cc
[23/835] Compiling MLXCXGrammar shim.cc
[24/835] Compiling tokenizer_info.cc
[25/835] Compiling grammar_printer.cc
[26/835] Compiling MLXCXGrammar grammar_functor_wrapper.cc
[27/835] Write swift-version-24593BA9C3E375BF.txt
[28/835] Compiling json_schema_converter.cc
In file included from /host/spi-builder-workspace/Libraries/MLXCXGrammar/grammar_functor_wrapper.cc:16:
/host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/cpp/grammar_functor.cc:2244:8: error: no type named 'mutex' in namespace 'std'
 2244 |   std::mutex mutex_;
      |   ~~~~~^
/host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/cpp/grammar_functor.cc:2291:19: error: no member named 'mutex' in namespace 'std'; did you mean 'mutex_'?
 2291 |   std::lock_guard<std::mutex> lock(mutex_);
      |                   ^~~~~~~~~~
      |                   mutex_
/host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/cpp/grammar_functor.cc:2244:14: note: 'mutex_' declared here
 2244 |   std::mutex mutex_;
      |              ^
/host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/cpp/grammar_functor.cc:2321:19: error: no member named 'mutex' in namespace 'std'; did you mean 'mutex_'?
 2321 |   std::lock_guard<std::mutex> lock(mutex_);
      |                   ^~~~~~~~~~
      |                   mutex_
/host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/cpp/grammar_functor.cc:2244:14: note: 'mutex_' declared here
 2244 |   std::mutex mutex_;
      |              ^
/host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/cpp/grammar_functor.cc:2356:19: error: no member named 'mutex' in namespace 'std'; did you mean 'mutex_'?
 2356 |   std::lock_guard<std::mutex> lock(mutex_);
      |                   ^~~~~~~~~~
      |                   mutex_
/host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/cpp/grammar_functor.cc:2244:14: note: 'mutex_' declared here
 2244 |   std::mutex mutex_;
      |              ^
In file included from /host/spi-builder-workspace/Libraries/MLXCXGrammar/grammar_functor_wrapper.cc:16:
In file included from /host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/cpp/grammar_functor.cc:6:
In file included from /host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/cpp/grammar_functor.h:10:
In file included from /host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/include/xgrammar/xgrammar.h:10:
In file included from /host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/include/xgrammar/compiler.h:10:
In file included from /host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/include/xgrammar/grammar.h:10:
In file included from /host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/include/xgrammar/object.h:10:
In file included from /root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/memory:950:
In file included from /root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/inout_ptr.h:16:
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:678:20: error: incompatible pointer types assigning to '__shared_weak_count *' from 'std::__shared_ptr_emplace<mlx_xgrammar::RuleLevelCache::Impl, std::allocator<mlx_xgrammar::RuleLevelCache::Impl>> *'
  678 |     __r.__cntrl_ = __cntrl;
      |                    ^~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:738:27: note: in instantiation of function template specialization 'std::shared_ptr<mlx_xgrammar::RuleLevelCache::Impl>::__create_with_control_block<mlx_xgrammar::RuleLevelCache::Impl, std::__shared_ptr_emplace<mlx_xgrammar::RuleLevelCache::Impl, std::allocator<mlx_xgrammar::RuleLevelCache::Impl>>>' requested here
  738 |   return shared_ptr<_Tp>::__create_with_control_block(
      |                           ^
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_wasm.artifactbundle/swift-6.3.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:744:15: note: in instantiation of function template specialization 'std::allocate_shared<mlx_xgrammar::RuleLevelCache::Impl, std::allocator<mlx_xgrammar::RuleLevelCache::Impl>, unsigned long &, 0>' requested here
  744 |   return std::allocate_shared<_Tp>(allocator<__remove_cv_t<_Tp> >(), std::forward<_Args>(__args)...);
      |               ^
/host/spi-builder-workspace/Libraries/MLXCXGrammar/xgrammar/cpp/grammar_functor.cc:2353:19: note: in instantiation of function template specialization 'std::make_shared<mlx_xgrammar::RuleLevelCache::Impl, unsigned long &, 0>' requested here
 2353 |     : pimpl_(std::make_shared<Impl>(max_cache_memory_size)) {}
      |                   ^
5 errors generated.
[29/835] Compiling MLXCXGrammar grammar_functor_wrapper.cc
[29/835] Compiling fsm_builder.cc
[29/835] Compiling grammar_compiler.cc
[29/835] Compiling grammar.cc
[29/835] Compiling grammar_parser.cc
[29/835] Compiling grammar_matcher.cc
error: cancelled
[29/835] Compiling structural_tag.cc
error: cancelled
error: cancelled
error: cancelled
error: cancelled
error: cancelled
error: cancelled
error: cancelled
error: cancelled
BUILD FAILURE 6.3 wasm