Build Information
Failed to build mlx-swift, reference 0.25.4 (b94473
), with Swift 5.10 for Linux on 2 Jun 2025 15:50:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift.git
Reference: 0.25.4
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
* tag 0.25.4 -> FETCH_HEAD
HEAD is now at b94473a partial fix for #237 -- switching Device exhausts many resources (#242)
Submodule path 'Source/Cmlx/mlx': checked out 'eaf709b83e559079e212699bfc9dd2f939d25c9a'
Submodule path 'Source/Cmlx/mlx-c': checked out '9ebe155864eab06d94ba18e01f9cb2666b2975a7'
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 @):
b94473af8c50010edba87a48bbd60c3d7f949852
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift.git at 0.25.4
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
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" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:aa1999fda62728f989ec9f885e6a69f8a206ad63b6efcfc03397a00c96f5855b
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Fetching https://github.com/apple/swift-numerics
[1/5706] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.64s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.3 (1.62s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.3
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/Source/Examples/Example1.swift
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/Source/Examples/Tutorial.swift
Building for debugging...
[0/177] Write sources
[12/177] Compiling _NumericsShims _NumericsShims.c
[13/177] Compiling version.cpp
[14/177] Compiling utils.cpp
[15/177] Compiling device.cpp
[16/177] Compiling compile.cpp
[17/177] Compiling format.cc
[18/177] Write swift-version-24593BA9C3E375BF.txt
[19/177] Compiling closure.cpp
[20/177] Compiling array.cpp
[21/187] Compiling scheduler.cpp
[22/187] Compiling transforms.cpp
[23/187] Compiling random.cpp
[24/187] Compiling no_gguf.cpp
[26/187] Compiling RealModule Real.swift
[27/188] Emitting module RealModule
[28/188] Compiling RealModule AlgebraicField.swift
[29/188] Compiling RealModule ApproximateEquality.swift
[30/188] Compiling RealModule Float16+Real.swift
[31/188] Compiling RealModule Float80+Real.swift
[32/188] Compiling RealModule RealFunctions.swift
[33/188] Compiling RealModule Float+Real.swift
[34/188] Compiling RealModule AugmentedArithmetic.swift
[35/188] Compiling RealModule Double+Real.swift
[36/188] Compiling RealModule ElementaryFunctions.swift
[37/189] Compiling linalg.cpp
[38/194] Compiling primitives.cpp
[40/194] Emitting module ComplexModule
[40/194] Compiling graph_utils.cpp
[41/194] Wrapping AST for RealModule for debugging
[43/194] Compiling ComplexModule ElementaryFunctions.swift
[43/194] Compiling fft.cpp
[44/194] Compiling load.cpp
[45/194] Compiling dtype_utils.cpp
[46/194] Compiling dtype.cpp
[47/194] Compiling no_ring.cpp
[49/194] Compiling ComplexModule Complex.swift
[50/194] Compiling ComplexModule Arithmetic.swift
[51/194] Compiling ComplexModule Differentiable.swift
[52/195] Compiling safetensors.cpp
[53/195] Compiling einsum.cpp
[54/195] Compiling primitives.cpp
[55/197] Compiling no_mpi.cpp
[56/197] Wrapping AST for ComplexModule for debugging
[58/197] Compiling Numerics Numerics.swift
[59/197] Emitting module Numerics
[60/198] Compiling distributed.cpp
[61/198] Compiling device.cpp
[62/198] Wrapping AST for Numerics for debugging
[63/198] Compiling fast.cpp
[64/198] Compiling ops.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/utils.cpp:3:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/utils.h:8:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/Metal.hpp:25:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLAccelerationStructure.hpp:24:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: fatal error: 'objc/runtime.h' file not found
#include <objc/runtime.h>
^~~~~~~~~~~~~~~~
1 error generated.
[66/198] Compiling utils.cpp
[66/198] Compiling compile.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/softmax.cpp:4:
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/copy.h:21:16: error: no template named 'optional' in namespace 'std'
const std::optional<array>& dynamic_i_offset = std::nullopt,
~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/copy.h:21:57: error: no member named 'nullopt' in namespace 'std'
const std::optional<array>& dynamic_i_offset = std::nullopt,
~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/copy.h:22:16: error: no template named 'optional' in namespace 'std'
const std::optional<array>& dynamic_o_offset = std::nullopt);
~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/copy.h:22:57: error: no member named 'nullopt' in namespace 'std'
const std::optional<array>& dynamic_o_offset = std::nullopt);
~~~~~^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/softmax.cpp:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/Metal.hpp:25:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLAccelerationStructure.hpp:24:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: fatal error: 'objc/runtime.h' file not found
#include <objc/runtime.h>
^~~~~~~~~~~~~~~~
[66/198] Compiling softmax.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/sort.cpp:5:
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/copy.h:21:16: error: no template named 'optional' in namespace 'std'
const std::optional<array>& dynamic_i_offset = std::nullopt,
~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/copy.h:21:57: error: no member named 'nullopt' in namespace 'std'
const std::optional<array>& dynamic_i_offset = std::nullopt,
~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/copy.h:22:16: error: no template named 'optional' in namespace 'std'
const std::optional<array>& dynamic_o_offset = std::nullopt);
~~~~~^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/copy.h:22:57: error: no member named 'nullopt' in namespace 'std'
const std::optional<array>& dynamic_o_offset = std::nullopt);
~~~~~^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/sort.cpp:6:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/Metal.hpp:25:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLAccelerationStructure.hpp:24:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: fatal error: 'objc/runtime.h' file not found
#include <objc/runtime.h>
^~~~~~~~~~~~~~~~
[66/198] Compiling sort.cpp
[66/198] Compiling slicing.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/unary.cpp:3:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/Metal.hpp:25:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLAccelerationStructure.hpp:24:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: fatal error: 'objc/runtime.h' file not found
#include <objc/runtime.h>
^~~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/ternary.cpp:4:
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/Metal.hpp:25:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLAccelerationStructure.hpp:24:
In file included from /host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLHeaderBridge.hpp:22:
/host/spi-builder-workspace/Source/Cmlx/metal-cpp/Metal/MTLPrivate.hpp:27:10: fatal error: 'objc/runtime.h' file not found
#include <objc/runtime.h>
^~~~~~~~~~~~~~~~
[66/198] Compiling ternary.cpp
[66/198] Compiling unary.cpp
[66/198] Compiling export.cpp
BUILD FAILURE 5.10 linux