The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MetalHLO, reference main (cfec83), with Swift 6.2 for Linux on 13 May 2026 20:48:44 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.2-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.2
Building package at path:  $PWD
https://github.com/pedronahum/MetalHLO.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:0ddb100795e64f71518020a73ad8441aeb43832ede7f1202ae7f8de93664f90d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-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.36s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.3 (1.89s)
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (0.53s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.20s)
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
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Building for debugging...
[0/205] Write sources
[15/205] Compiling _NumericsShims _NumericsShims.c
[16/205] Compiling version.cpp
[17/205] Write swift-version-24593BA9C3E375BF.txt
[18/205] Compiling utils.cpp
[19/216] Compiling scheduler.cpp
[20/248] Compiling random.cpp
[21/248] Compiling linalg.cpp
[22/248] Compiling transforms.cpp
[24/248] Compiling RealModule Float16+Real.swift
[25/249] Compiling RealModule RelaxedArithmetic.swift
[26/249] Compiling RealModule Real.swift
[27/249] Compiling RealModule RealFunctions.swift
[28/249] Compiling HeterogeneousFusion ColumnSplitHelper.swift
[29/249] Compiling HeterogeneousFusion ComputeUnit.swift
[30/249] Compiling HeterogeneousFusion ContentionModel.swift
[31/249] Compiling HeterogeneousFusion ConvolutionCPU.swift
[32/249] Emitting module RealModule
[33/249] Compiling HeterogeneousFusion AttentionExecutor.swift
[34/249] Compiling HeterogeneousFusion BenchmarkHarness.swift
[35/249] Compiling RealModule Float80+Real.swift
[37/261] Compiling ComplexModule Complex+StringConvertible.swift
[38/262] Compiling ComplexModule Polar.swift
[39/262] Compiling ComplexModule Complex+Hashable.swift
[40/262] Compiling ComplexModule Complex+IntegerLiteral.swift
[41/262] Compiling ComplexModule Complex+Numeric.swift
[42/262] Compiling ComplexModule Complex.swift
[43/262] Compiling ComplexModule Scale.swift
[43/262] Compiling no_gguf.cpp
[44/262] Wrapping AST for RealModule for debugging
[46/262] Emitting module ComplexModule
[47/262] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[48/262] Compiling ComplexModule Complex+AlgebraicField.swift
[49/262] Compiling ComplexModule Complex+Codable.swift
[50/262] Compiling ComplexModule Complex+ElementaryFunctions.swift
[51/263] Compiling primitives.cpp
[53/265] Compiling Numerics Numerics.swift
[54/265] Emitting module Numerics
[55/266] Wrapping AST for Numerics for debugging
[56/266] Compiling safetensors.cpp
[57/266] Wrapping AST for ComplexModule for debugging
[59/266] 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
[60/266] 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
[61/266] 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
[62/266] 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
[63/266] 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
[64/266] 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
[65/266] 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
[66/266] 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
/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
[68/270] 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
[69/270] 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
[70/270] 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
[71/270] 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
[72/270] Compiling HeterogeneousFusion EligibilityAnnotationPass.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
[73/270] Compiling HeterogeneousFusion EmbeddingCPU.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
[74/270] Compiling HeterogeneousFusion EmbeddingGPU.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
[75/270] Compiling HeterogeneousFusion FusedExecutor.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
[76/270] Compiling HeterogeneousFusion FusedMatmul.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
[77/270] 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
[78/270] 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
[79/270] 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
[80/270] 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
[80/270] Compiling graph_utils.cpp
[81/270] Compiling load.cpp
error: emit-module command failed with exit code 1 (use -v to see invocation)
[83/270] 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
/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
/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
/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
/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
/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
[88/270] Compiling dtype_utils.cpp
[89/270] Compiling dtype.cpp
[90/270] Compiling fft.cpp
[91/270] Compiling einsum.cpp
[92/270] Compiling ops.cpp
[93/270] Compiling fast.cpp
[94/270] Compiling utils.cpp
[95/270] Compiling no_ring.cpp
[96/270] Compiling no_nccl.cpp
[97/270] Compiling no_jaccl.cpp
[98/270] Compiling no_mpi.cpp
[99/270] Compiling device.cpp
[100/270] Compiling primitives.cpp
[101/270] Compiling ops.cpp
[102/270] Compiling distributed.cpp
[103/270] Compiling device_info.cpp
[104/270] Compiling fence.cpp
[105/270] Compiling event.cpp
[106/270] Compiling eval.cpp
[107/270] Compiling allocator.cpp
[108/270] Compiling threefry.cpp
[109/270] Compiling primitives.cpp
[110/270] Compiling no_metal.cpp
[111/270] Compiling no_cuda.cpp
[112/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.
[113/270] Compiling svd.cpp
[113/270] Compiling softmax.cpp
[113/270] Compiling unary.cpp
[113/270] Compiling select.cpp
[113/270] Compiling scan.cpp
[113/270] Compiling sort.cpp
[114/270] 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
[115/270] 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
[116/270] 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
[117/270] 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
[117/270] Compiling export.cpp
BUILD FAILURE 6.2 linux