Build Information
Failed to build mlx-swift, reference main (61b9e0), with Swift 6.2 for Linux on 29 Jun 2026 08:39:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DePasqualeOrg/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/DePasqualeOrg/mlx-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 61b9e01 hold evalLock during mlx_save_safetensors etc (#379)
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/DePasqualeOrg/mlx-swift.git
Revision (git rev-parse @):
61b9e011e09a62b489f6bd647958f1555bdf2896
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/DePasqualeOrg/mlx-swift.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/DePasqualeOrg/mlx-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:146297aca0eb7f3e338453cbf4c0aa72424647d7d0d3f35fda2f7ef7698dd3aa
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.2-latest
Fetching https://github.com/apple/swift-numerics
[1/6429] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.55s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.70s)
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/CustomFunctionExample.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.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/CustomFunctionExample.swift
/host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
/host/spi-builder-workspace/Source/Examples/Tutorial.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/CustomFunctionExample.swift
/host/spi-builder-workspace/Source/Examples/Tutorial.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/CustomFunctionExampleSimple.swift
/host/spi-builder-workspace/Source/Examples/Tutorial.swift
/host/spi-builder-workspace/Source/Examples/Example1.swift
Building for debugging...
[0/180] Write swift-version-24593BA9C3E375BF.txt
[1/180] Compiling _NumericsShims _NumericsShims.c
[2/180] Write sources
[4/191] Compiling error.cpp
[4/191] Write sources
[17/191] Compiling version.cpp
[18/191] Compiling utils.cpp
[19/191] Compiling cuda.cpp
[20/191] Compiling compile.cpp
[21/191] Compiling export.cpp
[22/191] Compiling io.cpp
[23/191] Compiling fft.cpp
[24/191] Compiling device.cpp
[26/191] Compiling RealModule Float80+Real.swift
[27/192] Compiling RealModule ElementaryFunctions.swift
[28/192] Compiling RealModule Float+Real.swift
[29/192] Compiling RealModule RelaxedArithmetic.swift
[30/192] Compiling RealModule Float16+Real.swift
[31/192] Compiling RealModule RealFunctions.swift
[32/192] Compiling RealModule Real.swift
[33/192] Compiling RealModule AlgebraicField.swift
[34/192] Compiling RealModule ApproximateEquality.swift
[35/192] Emitting module RealModule
[36/192] Compiling RealModule AugmentedArithmetic.swift
[37/192] Compiling RealModule Double+Real.swift
[39/204] Compiling ComplexModule Complex+Numeric.swift
[40/205] Compiling ComplexModule Complex+StringConvertible.swift
[41/205] Compiling ComplexModule Polar.swift
[42/205] Compiling ComplexModule Complex.swift
[43/205] Compiling ComplexModule Complex+Hashable.swift
[44/205] Compiling ComplexModule Complex+IntegerLiteral.swift
[45/205] Compiling ComplexModule Scale.swift
[46/205] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[47/205] Compiling ComplexModule Complex+AlgebraicField.swift
[48/205] Compiling ComplexModule Complex+Codable.swift
[49/205] Compiling ComplexModule Complex+ElementaryFunctions.swift
[50/205] Emitting module ComplexModule
[51/206] Wrapping AST for RealModule for debugging
[52/208] Compiling scheduler.cpp
[54/208] Emitting module Numerics
[55/208] Compiling Numerics Numerics.swift
[55/209] Wrapping AST for ComplexModule for debugging
[57/209] Compiling random.cpp
[58/209] Wrapping AST for Numerics for debugging
[59/209] Compiling linalg.cpp
[60/209] Compiling no_gguf.cpp
[61/209] Compiling transforms.cpp
[62/209] Compiling load.cpp
[63/209] Compiling graph_utils.cpp
[64/209] Compiling primitives.cpp
[65/209] Compiling fft.cpp
[66/209] Compiling safetensors.cpp
[67/209] Compiling dtype.cpp
[68/209] Compiling dtype_utils.cpp
[69/209] Compiling utils.cpp
[70/209] Compiling no_ring.cpp
[71/209] Compiling fast.cpp
[72/209] Compiling einsum.cpp
[73/209] Compiling no_nccl.cpp
[74/209] Compiling no_mpi.cpp
[75/209] Compiling no_jaccl.cpp
[76/209] Compiling primitives.cpp
[77/209] Compiling device.cpp
[77/209] Compiling ops.cpp
[80/209] Compiling distributed.cpp
[81/209] Compiling device_info.cpp
[82/209] Compiling allocator.cpp
[83/209] Compiling eval.cpp
[84/209] Compiling fence.cpp
[85/209] Compiling event.cpp
[86/209] Compiling threefry.cpp
[87/209] Compiling no_metal.cpp
[88/209] Compiling primitives.cpp
[89/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.
[90/209] Compiling svd.cpp
[90/209] Compiling compile.cpp
[90/209] Compiling sort.cpp
[90/209] Compiling softmax.cpp
[90/209] Compiling scan.cpp
[90/209] Compiling select.cpp
[90/209] Compiling unary.cpp
[90/209] Compiling export.cpp
BUILD FAILURE 6.2 linux