Build Information
Failed to build MetalHLO, reference main (cfec83), with Swift 6.2 for macOS (SPM) on 13 May 2026 20:54:01 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build 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 /Users/admin/builder/spi-builder-workspace/.git/
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: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/pedronahum/MetalHLO.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/229] Write sources
[7/229] Write mlx-comparison-entitlement.plist
[9/229] Write sources
[11/229] Write benchmark-runner-entitlement.plist
[11/229] Write sources
[14/229] Write HeterogeneousFusionBenchmark-entitlement.plist
[15/229] Write sources
[17/229] Write GPT2EndToEnd-entitlement.plist
[17/229] Write sources
[19/229] Write DepthAttentionBenchmark-entitlement.plist
[20/229] Compiling _NumericsShims _NumericsShims.c
[21/229] Compiling version.cpp
[22/229] Write swift-version--3CB7CFEC50E0D141.txt
[23/229] Compiling CPJRTApi shim.c
[25/240] Compiling RealModule Real.swift
[26/240] Compiling RealModule Float80+Real.swift
[27/240] Compiling RealModule RealFunctions.swift
[28/241] Compiling RealModule Float16+Real.swift
[29/241] Compiling RealModule Float+Real.swift
[30/241] Compiling RealModule ElementaryFunctions.swift
[31/241] Compiling RealModule AugmentedArithmetic.swift
[32/241] Emitting module RealModule
[33/241] Compiling RealModule AlgebraicField.swift
[34/241] Compiling RealModule ApproximateEquality.swift
[35/241] Compiling RealModule Double+Real.swift
[36/241] Compiling RealModule RelaxedArithmetic.swift
[36/274] Compiling utils.cpp
[37/274] Compiling no_gguf.cpp
[38/274] Compiling scheduler.cpp
[40/285] Compiling ComplexModule Complex+StringConvertible.swift
[41/285] Compiling ComplexModule Complex.swift
[42/285] Compiling ComplexModule Complex+IntegerLiteral.swift
[43/285] Compiling ComplexModule Complex+Hashable.swift
[44/285] Compiling ComplexModule Polar.swift
[45/285] Compiling ComplexModule Complex+Numeric.swift
[46/286] Compiling ComplexModule Scale.swift
[47/286] Compiling ComplexModule Complex+Codable.swift
[48/286] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[49/286] Compiling ComplexModule Complex+AlgebraicField.swift
[50/286] Compiling ComplexModule Complex+ElementaryFunctions.swift
[51/286] Emitting module ComplexModule
[51/286] Compiling linalg.cpp
[52/286] Compiling random.cpp
[54/288] Emitting module Numerics
[55/288] Compiling Numerics Numerics.swift
[55/288] Compiling graph_utils.cpp
[56/288] Compiling load.cpp
[57/288] Compiling safetensors.cpp
[58/288] Compiling primitives.cpp
[59/288] Compiling transforms.cpp
[60/288] Compiling fft.cpp
[61/288] Compiling dtype.cpp
[62/288] Compiling dtype_utils.cpp
[63/288] Compiling utils.cpp
[64/288] Compiling no_ring.cpp
[65/288] Compiling fast.cpp
[66/288] Compiling primitives.cpp
[67/288] Compiling einsum.cpp
[68/288] Compiling ops.cpp
[69/288] Compiling no_nccl.cpp
[70/288] Compiling no_mpi.cpp
[71/288] Compiling no_jaccl.cpp
[72/288] Compiling device.cpp
[73/288] Compiling distributed.cpp
[74/288] Compiling ops.cpp
[75/288] Compiling utils.cpp
[76/288] Compiling unary.cpp
[77/288] Compiling compile.cpp
[78/288] Compiling ternary.cpp
[79/288] Compiling softmax.cpp
[80/288] Compiling sort.cpp
[81/288] Compiling scan.cpp
[82/288] Compiling slicing.cpp
[83/288] Compiling resident.cpp
[85/288] Compiling HeterogeneousFusion ProfileDatabase.swift
[86/288] Compiling HeterogeneousFusion ProfitabilityGuard.swift
[87/288] Compiling HeterogeneousFusion SequentialScheduler.swift
[88/288] Compiling HeterogeneousFusion OpFusionPass.swift
[89/288] Compiling HeterogeneousFusion OptimalSplitter.swift
[90/288] Compiling HeterogeneousFusion PartitionDescriptor.swift
[91/288] Compiling HeterogeneousFusion MatmulANE.swift
[92/288] Compiling HeterogeneousFusion MatmulCPU.swift
[93/288] Compiling HeterogeneousFusion MatmulGPU.swift
[94/291] Compiling HeterogeneousFusion HardwareMonitor.swift
[95/291] Compiling HeterogeneousFusion HardwareProfile.swift
[96/291] Compiling HeterogeneousFusion HeteroGraph.swift
[97/291] Compiling HeterogeneousFusion HeterogeneousError.swift
[98/291] Compiling HeterogeneousFusion HeterogeneousPartitioningPass.swift
[99/291] Compiling HeterogeneousFusion LayerNormCPU.swift
[100/291] Compiling HeterogeneousFusion LayerNormGPU.swift
[101/291] Compiling HeterogeneousFusion ElementwiseCPU.swift
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/EmbeddingCPU.swift:50:13: warning: 'cblas_scopy' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [#DeprecatedDeclaration]
48 | let src = tableShard + localIdx * embeddingDim
49 | let dst = output + pos * embeddingDim
50 | cblas_scopy(ed, src, 1, dst, 1)
| `- warning: 'cblas_scopy' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [#DeprecatedDeclaration]
51 | }
52 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[102/291] Compiling HeterogeneousFusion ElementwiseGPU.swift
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/EmbeddingCPU.swift:50:13: warning: 'cblas_scopy' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [#DeprecatedDeclaration]
48 | let src = tableShard + localIdx * embeddingDim
49 | let dst = output + pos * embeddingDim
50 | cblas_scopy(ed, src, 1, dst, 1)
| `- warning: 'cblas_scopy' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [#DeprecatedDeclaration]
51 | }
52 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[103/291] Compiling HeterogeneousFusion EligibilityAnnotationPass.swift
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/EmbeddingCPU.swift:50:13: warning: 'cblas_scopy' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [#DeprecatedDeclaration]
48 | let src = tableShard + localIdx * embeddingDim
49 | let dst = output + pos * embeddingDim
50 | cblas_scopy(ed, src, 1, dst, 1)
| `- warning: 'cblas_scopy' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [#DeprecatedDeclaration]
51 | }
52 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[104/291] Compiling HeterogeneousFusion EmbeddingCPU.swift
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/EmbeddingCPU.swift:50:13: warning: 'cblas_scopy' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [#DeprecatedDeclaration]
48 | let src = tableShard + localIdx * embeddingDim
49 | let dst = output + pos * embeddingDim
50 | cblas_scopy(ed, src, 1, dst, 1)
| `- warning: 'cblas_scopy' was deprecated in macOS 13.3: An updated CBLAS interface supporting ILP64 is available. Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [#DeprecatedDeclaration]
51 | }
52 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[107/291] Compiling HeterogeneousFusion ConvolutionGPU.swift
[108/291] Compiling HeterogeneousFusion ConvolutionMPS.swift
[109/291] Emitting module HeterogeneousFusion
[110/291] Compiling HeterogeneousFusion EmbeddingGPU.swift
[111/291] Compiling HeterogeneousFusion FusedExecutor.swift
[112/291] Compiling HeterogeneousFusion FusedMatmul.swift
[113/291] Compiling HeterogeneousFusion HardwareCalibration.swift
[114/291] Compiling HeterogeneousFusion AttentionExecutor.swift
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:134:26: error: heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional
132 | /// Best speedup across all fused modes.
133 | public var bestSpeedup: Double {
134 | let candidates = [
| `- error: heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional
135 | twoWaySpeedup,
136 | threeWaySpeedup ?? 0,
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:136:13: warning: expression implicitly coerced from 'Double?' to 'Any'
134 | let candidates = [
135 | twoWaySpeedup,
136 | threeWaySpeedup ?? 0,
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Double?' to 'Any'
137 | optimalTwoWaySpeedup ?? 0,
138 | optimalThreeWaySpeedup ?? 0,
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:140:33: error: cannot convert return expression of type 'Any' to return type 'Double'
138 | optimalThreeWaySpeedup ?? 0,
139 | ]
140 | return candidates.max() ?? 0
| `- error: cannot convert return expression of type 'Any' to return type 'Double'
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:140:27: error: type 'Any' cannot conform to 'Comparable' [#ProtocolTypeNonConformance]
138 | optimalThreeWaySpeedup ?? 0,
139 | ]
140 | return candidates.max() ?? 0
| |- error: type 'Any' cannot conform to 'Comparable' [#ProtocolTypeNonConformance]
| |- note: only concrete types such as structs, enums and classes can conform to protocols
| `- note: required by referencing instance method 'max()' on 'Sequence' where 'Self.Element' = 'Any'
141 | }
142 |
[#ProtocolTypeNonConformance]: <https://docs.swift.org/compiler/documentation/diagnostics/protocol-type-non-conformance>
[115/291] Compiling HeterogeneousFusion BenchmarkHarness.swift
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:134:26: error: heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional
132 | /// Best speedup across all fused modes.
133 | public var bestSpeedup: Double {
134 | let candidates = [
| `- error: heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional
135 | twoWaySpeedup,
136 | threeWaySpeedup ?? 0,
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:136:13: warning: expression implicitly coerced from 'Double?' to 'Any'
134 | let candidates = [
135 | twoWaySpeedup,
136 | threeWaySpeedup ?? 0,
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Double?' to 'Any'
137 | optimalTwoWaySpeedup ?? 0,
138 | optimalThreeWaySpeedup ?? 0,
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:140:33: error: cannot convert return expression of type 'Any' to return type 'Double'
138 | optimalThreeWaySpeedup ?? 0,
139 | ]
140 | return candidates.max() ?? 0
| `- error: cannot convert return expression of type 'Any' to return type 'Double'
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:140:27: error: type 'Any' cannot conform to 'Comparable' [#ProtocolTypeNonConformance]
138 | optimalThreeWaySpeedup ?? 0,
139 | ]
140 | return candidates.max() ?? 0
| |- error: type 'Any' cannot conform to 'Comparable' [#ProtocolTypeNonConformance]
| |- note: only concrete types such as structs, enums and classes can conform to protocols
| `- note: required by referencing instance method 'max()' on 'Sequence' where 'Self.Element' = 'Any'
141 | }
142 |
[#ProtocolTypeNonConformance]: <https://docs.swift.org/compiler/documentation/diagnostics/protocol-type-non-conformance>
[116/291] Compiling HeterogeneousFusion ColumnSplitHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:134:26: error: heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional
132 | /// Best speedup across all fused modes.
133 | public var bestSpeedup: Double {
134 | let candidates = [
| `- error: heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional
135 | twoWaySpeedup,
136 | threeWaySpeedup ?? 0,
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:136:13: warning: expression implicitly coerced from 'Double?' to 'Any'
134 | let candidates = [
135 | twoWaySpeedup,
136 | threeWaySpeedup ?? 0,
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Double?' to 'Any'
137 | optimalTwoWaySpeedup ?? 0,
138 | optimalThreeWaySpeedup ?? 0,
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:140:33: error: cannot convert return expression of type 'Any' to return type 'Double'
138 | optimalThreeWaySpeedup ?? 0,
139 | ]
140 | return candidates.max() ?? 0
| `- error: cannot convert return expression of type 'Any' to return type 'Double'
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:140:27: error: type 'Any' cannot conform to 'Comparable' [#ProtocolTypeNonConformance]
138 | optimalThreeWaySpeedup ?? 0,
139 | ]
140 | return candidates.max() ?? 0
| |- error: type 'Any' cannot conform to 'Comparable' [#ProtocolTypeNonConformance]
| |- note: only concrete types such as structs, enums and classes can conform to protocols
| `- note: required by referencing instance method 'max()' on 'Sequence' where 'Self.Element' = 'Any'
141 | }
142 |
[#ProtocolTypeNonConformance]: <https://docs.swift.org/compiler/documentation/diagnostics/protocol-type-non-conformance>
[117/291] Compiling HeterogeneousFusion ComputeUnit.swift
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:134:26: error: heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional
132 | /// Best speedup across all fused modes.
133 | public var bestSpeedup: Double {
134 | let candidates = [
| `- error: heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional
135 | twoWaySpeedup,
136 | threeWaySpeedup ?? 0,
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:136:13: warning: expression implicitly coerced from 'Double?' to 'Any'
134 | let candidates = [
135 | twoWaySpeedup,
136 | threeWaySpeedup ?? 0,
| | |- note: provide a default value to avoid this warning
| | |- note: force-unwrap the value to avoid this warning
| | `- note: explicitly cast to 'Any' with 'as Any' to silence this warning
| `- warning: expression implicitly coerced from 'Double?' to 'Any'
137 | optimalTwoWaySpeedup ?? 0,
138 | optimalThreeWaySpeedup ?? 0,
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:140:33: error: cannot convert return expression of type 'Any' to return type 'Double'
138 | optimalThreeWaySpeedup ?? 0,
139 | ]
140 | return candidates.max() ?? 0
| `- error: cannot convert return expression of type 'Any' to return type 'Double'
141 | }
142 |
/Users/admin/builder/spi-builder-workspace/Sources/HeterogeneousFusion/BenchmarkHarness.swift:140:27: error: type 'Any' cannot conform to 'Comparable' [#ProtocolTypeNonConformance]
138 | optimalThreeWaySpeedup ?? 0,
139 | ]
140 | return candidates.max() ?? 0
| |- error: type 'Any' cannot conform to 'Comparable' [#ProtocolTypeNonConformance]
| |- note: only concrete types such as structs, enums and classes can conform to protocols
| `- note: required by referencing instance method 'max()' on 'Sequence' where 'Self.Element' = 'Any'
141 | }
142 |
[#ProtocolTypeNonConformance]: <https://docs.swift.org/compiler/documentation/diagnostics/protocol-type-non-conformance>
[117/291] Compiling rope.cpp
[118/291] Compiling scaled_dot_product_attention.cpp
[119/291] Compiling metal.cpp
[121/291] Compiling HeterogeneousFusion SoftmaxCPU.swift
[122/291] Compiling HeterogeneousFusion SoftmaxGPU.swift
[123/291] Compiling HeterogeneousFusion ThroughputCurve.swift
[123/291] Compiling logsumexp.cpp
[123/291] Compiling matmul.cpp
[123/291] Compiling jit_kernels.cpp
[123/291] Compiling indexing.cpp
[123/291] Compiling quantized.cpp
[123/291] Compiling normalization.cpp
[123/291] Compiling reduce.cpp
[123/291] Compiling primitives.cpp
[123/291] Compiling export.cpp
Fetching https://github.com/ml-explore/mlx-swift
[1/14261] Fetching mlx-swift
Fetched https://github.com/ml-explore/mlx-swift from cache (1.72s)
Computing version for https://github.com/ml-explore/mlx-swift
Computed https://github.com/ml-explore/mlx-swift at 0.31.3 (2.37s)
Fetching https://github.com/apple/swift-numerics
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.02s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (1.59s)
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
BUILD FAILURE 6.2 macosSpm