The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MetalHLO, reference main (cfec83), with Swift 6.0 for Linux on 13 May 2026 20:47:27 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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.0-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/pedronahum/MetalHLO.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/pedronahum/MetalHLO
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at cfec837 Update ResNet18 CIFAR-10 readmes — 5.6x → 8.48x
Cloned https://github.com/pedronahum/MetalHLO.git
Revision (git rev-parse @):
cfec8372a0fb0de822235a0f5976ae072abf5075
SUCCESS checkout https://github.com/pedronahum/MetalHLO.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/pedronahum/MetalHLO.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:6ccbc5e7995f6c524368c1828f9c677d1727c16390a603fc668217aec5f5123a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.0-latest
Fetching https://github.com/ml-explore/mlx-swift
[1/14261] Fetching mlx-swift
Fetched https://github.com/ml-explore/mlx-swift from cache (1.37s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.3 (0.77s)
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.52s)
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
Creating working copy for https://github.com/ml-explore/mlx-swift
Working copy of https://github.com/ml-explore/mlx-swift resolved at 0.31.3
Building for debugging...
[0/205] Write sources
[15/205] Compiling version.cpp
[16/205] Compiling _NumericsShims _NumericsShims.c
[17/205] Write swift-version-24593BA9C3E375BF.txt
[18/205] Compiling utils.cpp
[19/205] Compiling scheduler.cpp
[20/248] Compiling random.cpp
[21/248] Compiling linalg.cpp
[22/248] Compiling primitives.cpp
[23/248] Compiling transforms.cpp
[24/248] Compiling no_gguf.cpp
[26/248] Emitting module RealModule
[27/249] Compiling RealModule Real.swift
[28/249] Compiling RealModule RealFunctions.swift
[29/249] Compiling RealModule Float16+Real.swift
[30/249] Compiling RealModule Float80+Real.swift
[31/249] Compiling HeterogeneousFusion ColumnSplitHelper.swift
[32/249] Compiling HeterogeneousFusion ComputeUnit.swift
[33/249] Compiling HeterogeneousFusion AttentionExecutor.swift
[34/249] Compiling HeterogeneousFusion BenchmarkHarness.swift
[35/249] Compiling HeterogeneousFusion ContentionModel.swift
[36/249] Compiling HeterogeneousFusion ConvolutionCPU.swift
[37/249] Compiling RealModule RelaxedArithmetic.swift
[39/250] Compiling HeterogeneousFusion HeterogeneousError.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[40/250] Compiling HeterogeneousFusion HeterogeneousPartitioningPass.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[41/250] Compiling HeterogeneousFusion LayerNormCPU.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[42/250] Compiling HeterogeneousFusion LayerNormGPU.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[42/254] Compiling safetensors.cpp
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[45/254] Compiling HeterogeneousFusion ConvolutionGPU.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[46/254] Compiling HeterogeneousFusion ConvolutionMPS.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[47/254] Compiling HeterogeneousFusion ElementwiseCPU.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[48/254] Compiling HeterogeneousFusion ElementwiseGPU.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[49/254] Compiling HeterogeneousFusion OptimalSplitter.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[50/254] Compiling HeterogeneousFusion PartitionDescriptor.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[51/254] Compiling HeterogeneousFusion ProfileDatabase.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[52/254] Compiling HeterogeneousFusion ProfitabilityGuard.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[53/254] Compiling HeterogeneousFusion MatmulANE.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[54/254] Compiling HeterogeneousFusion MatmulCPU.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[55/254] Compiling HeterogeneousFusion MatmulGPU.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[56/254] Compiling HeterogeneousFusion OpFusionPass.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
error: emit-module command failed with exit code 1 (use -v to see invocation)
[57/265] Emitting module HeterogeneousFusion
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[58/265] Compiling ComplexModule Complex+Hashable.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[59/265] Compiling ComplexModule Complex+IntegerLiteral.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[60/265] Compiling ComplexModule Complex+AdditiveArithmetic.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[61/265] Compiling ComplexModule Complex+AlgebraicField.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[62/265] Compiling ComplexModule Complex+Codable.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[63/265] Compiling HeterogeneousFusion SequentialScheduler.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[64/265] Compiling HeterogeneousFusion SoftmaxCPU.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[65/265] Compiling HeterogeneousFusion SoftmaxGPU.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[66/265] Compiling HeterogeneousFusion ThroughputCurve.swift
/host/spi-builder-workspace/Sources/HeterogeneousFusion/AttentionExecutor.swift:13:8: error: no such module 'Metal'
 11 | // No cross-unit communication needed — each query position is independent.
 12 |
 13 | import Metal
    |        `- error: no such module 'Metal'
 14 | import MetalPerformanceShaders
 15 | import QuartzCore
[69/266] Compiling ComplexModule Polar.swift
[69/266] Compiling load.cpp
[71/266] Compiling ComplexModule Complex+Numeric.swift
[72/266] Compiling ComplexModule Complex+StringConvertible.swift
[73/266] Compiling ComplexModule Complex.swift
[73/266] Wrapping AST for RealModule for debugging
[75/266] Compiling ComplexModule Scale.swift
[75/266] Compiling graph_utils.cpp
[76/266] Compiling fft.cpp
[81/266] Compiling ComplexModule Complex+ElementaryFunctions.swift
[82/266] Emitting module ComplexModule
[83/267] Compiling fast.cpp
[84/269] Compiling dtype_utils.cpp
[86/269] Compiling Numerics Numerics.swift
[87/269] Emitting module Numerics
[88/270] Wrapping AST for ComplexModule for debugging
[89/270] Compiling utils.cpp
[90/270] Compiling dtype.cpp
[91/270] Wrapping AST for Numerics for debugging
[92/270] Compiling einsum.cpp
[93/270] Compiling no_ring.cpp
[94/270] Compiling no_nccl.cpp
[95/270] Compiling ops.cpp
[96/270] Compiling device.cpp
[97/270] Compiling primitives.cpp
[98/270] Compiling ops.cpp
[99/270] Compiling no_jaccl.cpp
[100/270] Compiling no_mpi.cpp
[101/270] Compiling distributed.cpp
[102/270] Compiling device_info.cpp
[103/270] Compiling eval.cpp
[104/270] Compiling fence.cpp
[105/270] Compiling allocator.cpp
[106/270] Compiling event.cpp
[107/270] Compiling threefry.cpp
[108/270] Compiling primitives.cpp
[109/270] Compiling no_metal.cpp
[110/270] Compiling no_cuda.cpp
[111/270] Compiling compile.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cpu/svd.cpp:6:
/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx/mlx/backend/cpu/lapack.h:17:10: fatal error: 'cblas.h' file not found
   17 | #include <cblas.h>
      |          ^~~~~~~~~
1 error generated.
[112/270] Compiling svd.cpp
[112/270] Compiling select.cpp
[112/270] Compiling scan.cpp
[112/270] Compiling softmax.cpp
[112/270] Compiling sort.cpp
[112/270] Compiling unary.cpp
[112/270] Compiling export.cpp
BUILD FAILURE 6.0 linux