The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build metal-tools, reference 1.3.5 (e24169), with Swift 6.2 (beta) for Wasm on 23 Jun 2025 01:49:05 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/computer-graphics-tools/metal-tools.git
Reference: 1.3.5
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/computer-graphics-tools/metal-tools
 * tag               1.3.5      -> FETCH_HEAD
HEAD is now at e241697 remove simd tools dependency
Cloned https://github.com/computer-graphics-tools/metal-tools.git
Revision (git rev-parse @):
e2416976e87b1e73f3ac601305b45cd8c6ff3977
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/computer-graphics-tools/metal-tools.git at 1.3.5
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/computer-graphics-tools/metal-tools.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
[0/40] Write sources
[2/40] Copying BitonicSort.metal
[2/40] Copying RectangleRender.metal
[3/40] Copying TextRender.metal
[3/40] Copying SimpleGeometryRender.metal
[6/40] Copying MaskRenderer.metal
[6/40] Copying PointsRenderer.metal
[7/40] Copying LinesRenderer.metal
[9/40] Copying Common.metal
[10/40] Copying YCbCrToRGBA.metal
[11/40] Copying TextureWeightedMix.metal
[12/40] Copying TextureResize.metal
[13/40] Copying TextureMultiplyAdd.metal
[14/40] Copying TextureMix.metal
[15/40] Copying TextureMin.metal
[16/40] Copying TextureMean.metal
[17/40] Copying TextureMax.metal
[18/40] Copying TextureMaskedMix.metal
[19/40] Copying TextureMask.metal
[20/40] Copying TextureInterpolation.metal
[21/40] Copying TextureDivideByConstant.metal
[22/40] Write sources
[23/40] Copying TextureDifferenceHighlight.metal
[24/40] Copying TextureCopy.metal
[25/40] Copying TextureAffineCrop.metal
[26/40] Copying TextureAddConstant.metal
[27/40] Copying StdMeanNormalization.metal
[28/40] Copying RGBAToYCbCr.metal
[29/40] Copying QuantizeDistanceField.metal
[30/40] Copying MaskGuidedBlur.metal
[31/40] Copying LookUpTable.metal
[32/40] Copying IntegralImage.metal
[33/40] Copying EuclideanDistance.metal
[34/40] Write sources
[35/40] Copying Shared
[35/40] Copying HelveticaNeue.mtlfontatlas
[37/40] Compiling MetalComputeToolsSharedTypes MetalComputeToolsSharedTypes.c
[38/40] Compiling MetalRenderingToolsSharedTypes MetalRenderingToolsSharedTypes.c
[39/40] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[41/101] Emitting module MetalComputeToolsTestsResources
/host/spi-builder-workspace/Tests/MetalComputeToolsTestsResources/Extensions/Foundation/Bundle+TestsResources.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | public extension Bundle {
[42/101] Compiling MetalComputeToolsTestsResources Bundle+TestsResources.swift
/host/spi-builder-workspace/Tests/MetalComputeToolsTestsResources/Extensions/Foundation/Bundle+TestsResources.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | public extension Bundle {
[43/101] Compiling MetalComputeToolsTestsResources resource_bundle_accessor.swift
/host/spi-builder-workspace/Tests/MetalComputeToolsTestsResources/Extensions/Foundation/Bundle+TestsResources.swift:1:8: error: no such module 'Foundation'
1 | import Foundation
  |        `- error: no such module 'Foundation'
2 |
3 | public extension Bundle {
[44/101] Compiling MetalTools MTLDevice+Features.swift
/host/spi-builder-workspace/Sources/MetalTools/CodableContainer/MTLTextureCodableContainer.swift:1:8: error: no such module 'Metal'
  1 | import Metal
    |        `- error: no such module 'Metal'
  2 |
  3 | /// A container class that allows encoding and decoding of Metal textures.
[45/101] Compiling MetalTools MTLDevice+IsDiscrete.swift
/host/spi-builder-workspace/Sources/MetalTools/CodableContainer/MTLTextureCodableContainer.swift:1:8: error: no such module 'Metal'
  1 | import Metal
    |        `- error: no such module 'Metal'
  2 |
  3 | /// A container class that allows encoding and decoding of Metal textures.
[46/101] Compiling MetalTools MTLDevice+MTLTexture.swift
/host/spi-builder-workspace/Sources/MetalTools/CodableContainer/MTLTextureCodableContainer.swift:1:8: error: no such module 'Metal'
  1 | import Metal
    |        `- error: no such module 'Metal'
  2 |
  3 | /// A container class that allows encoding and decoding of Metal textures.
[47/101] Compiling MetalTools MTLFunctionConstantValues+SetValue.swift
/host/spi-builder-workspace/Sources/MetalTools/CodableContainer/MTLTextureCodableContainer.swift:1:8: error: no such module 'Metal'
  1 | import Metal
    |        `- error: no such module 'Metal'
  2 |
  3 | /// A container class that allows encoding and decoding of Metal textures.
[48/101] Compiling MetalTools MTLHeap+Convenience.swift
/host/spi-builder-workspace/Sources/MetalTools/CodableContainer/MTLTextureCodableContainer.swift:1:8: error: no such module 'Metal'
  1 | import Metal
    |        `- error: no such module 'Metal'
  2 |
  3 | /// A container class that allows encoding and decoding of Metal textures.
[49/101] Compiling MetalTools MTLLibrary+PipelineState.swift
/host/spi-builder-workspace/Sources/MetalTools/CodableContainer/MTLTextureCodableContainer.swift:1:8: error: no such module 'Metal'
  1 | import Metal
    |        `- error: no such module 'Metal'
  2 |
  3 | /// A container class that allows encoding and decoding of Metal textures.
[50/101] Compiling MetalTools MTLOrigin+Clamp.swift
/host/spi-builder-workspace/Sources/MetalTools/CodableContainer/MTLTextureCodableContainer.swift:1:8: error: no such module 'Metal'
  1 | import Metal
    |        `- error: no such module 'Metal'
  2 |
  3 | /// A container class that allows encoding and decoding of Metal textures.
[51/101] Compiling MetalTools MTLOrigin+Codable.swift
/host/spi-builder-workspace/Sources/MetalTools/CodableContainer/MTLTextureCodableContainer.swift:1:8: error: no such module 'Metal'
  1 | import Metal
    |        `- error: no such module 'Metal'
  2 |
  3 | /// A container class that allows encoding and decoding of Metal textures.
BUILD FAILURE 6.2 wasm