The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift, reference main (49d73a), with Swift 6.3 for Linux on 18 Apr 2026 14:29:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift.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/ml-explore/mlx-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 49d73ab add missing functions (#387)
Submodule path 'Source/Cmlx/mlx': checked out 'ce45c52505c8158ea48d2a54e8caae05efd86bfe'
Submodule path 'Source/Cmlx/mlx-c': checked out '0726ca922fc902c4c61ef9c27d94132be418e945'
Submodule 'submodules/mlx' (https://github.com/ml-explore/mlx) registered for path 'Source/Cmlx/mlx'
Submodule 'submodules/mlx-c' (https://github.com/ml-explore/mlx-c) registered for path 'Source/Cmlx/mlx-c'
Cloning into '/host/spi-builder-workspace/Source/Cmlx/mlx'...
Cloning into '/host/spi-builder-workspace/Source/Cmlx/mlx-c'...
Cloned https://github.com/ml-explore/mlx-swift.git
Revision (git rev-parse @):
49d73abcbe8f49f44c1e61911997e6b680484216
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ml-explore/mlx-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.14s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.88s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/Example1.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
Building for debugging...
[0/180] Write sources
[14/180] Compiling _NumericsShims _NumericsShims.c
[15/180] Compiling version.cpp
[16/180] Write swift-version-24593BA9C3E375BF.txt
[17/180] Compiling utils.cpp
[18/191] Compiling random.cpp
[19/191] Compiling compile.cpp
[20/191] Compiling scheduler.cpp
[21/191] Compiling no_gguf.cpp
[22/191] Compiling linalg.cpp
[23/191] Compiling transforms.cpp
[25/191] Compiling RealModule RealFunctions.swift
[26/191] Compiling RealModule Real.swift
[27/192] Emitting module RealModule
[28/192] Compiling RealModule AugmentedArithmetic.swift
[29/192] Compiling RealModule Double+Real.swift
[30/192] Compiling RealModule Float80+Real.swift
[31/192] Compiling RealModule AlgebraicField.swift
[32/192] Compiling RealModule ApproximateEquality.swift
[33/192] Compiling RealModule ElementaryFunctions.swift
[34/192] Compiling RealModule Float+Real.swift
[35/192] Compiling RealModule Float16+Real.swift
[36/192] Compiling RealModule RelaxedArithmetic.swift
[38/204] Compiling ComplexModule Complex+Hashable.swift
[39/204] Compiling ComplexModule Complex+IntegerLiteral.swift
[40/204] Compiling ComplexModule Polar.swift
[41/205] Compiling ComplexModule Complex+Numeric.swift
[42/205] Compiling ComplexModule Complex.swift
[43/205] Compiling ComplexModule Complex+StringConvertible.swift
[44/205] Compiling ComplexModule Scale.swift
[44/205] Compiling primitives.cpp
[45/205] Wrapping AST for RealModule for debugging
[47/205] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[48/205] Compiling ComplexModule Complex+AlgebraicField.swift
[49/205] Compiling ComplexModule Complex+Codable.swift
[50/205] Compiling ComplexModule Complex+ElementaryFunctions.swift
[51/205] Emitting module ComplexModule
[53/208] Compiling Numerics Numerics.swift
[54/208] Emitting module Numerics
[55/209] Wrapping AST for ComplexModule for debugging
[56/209] Wrapping AST for Numerics for debugging
[57/209] Compiling load.cpp
[58/209] Compiling graph_utils.cpp
[59/209] Compiling fft.cpp
[60/209] Compiling dtype.cpp
[61/209] Compiling safetensors.cpp
[62/209] Compiling einsum.cpp
[63/209] Compiling dtype_utils.cpp
[64/209] Compiling fast.cpp
[65/209] Compiling no_ring.cpp
[66/209] Compiling utils.cpp
[67/209] Compiling ops.cpp
[68/209] Compiling no_nccl.cpp
[69/209] Compiling no_mpi.cpp
[70/209] Compiling primitives.cpp
[71/209] Compiling no_jaccl.cpp
[72/209] Compiling device.cpp
[73/209] Compiling distributed.cpp
[74/209] Compiling event.cpp
[75/209] Compiling ops.cpp
[76/209] Compiling device_info.cpp
[77/209] Compiling fence.cpp
[78/209] Compiling allocator.cpp
[79/209] Compiling threefry.cpp
[80/209] Compiling no_metal.cpp
[81/209] Compiling eval.cpp
[82/209] Compiling primitives.cpp
[83/209] Compiling no_cuda.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/svd.cpp:6:
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/lapack.h:17:10: fatal error: 'cblas.h' file not found
   17 | #include <cblas.h>
      |          ^~~~~~~~~
1 error generated.
[84/209] Compiling svd.cpp
[84/209] Compiling select.cpp
[84/209] Compiling scan.cpp
[84/209] Compiling softmax.cpp
[84/209] Compiling sort.cpp
[84/209] Compiling unary.cpp
[84/209] Compiling compile.cpp
[84/209] Compiling export.cpp
BUILD FAILURE 6.3 linux