Build Information
Failed to build coreml-stable-diffusion-swift, reference main (d0038c
), with Swift 6.2 (beta) for Wasm on 4 Sep 2025 15:32:48 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftuiux/coreml-stable-diffusion-swift.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/swiftuiux/coreml-stable-diffusion-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d0038cd Update README.md
Cloned https://github.com/swiftuiux/coreml-stable-diffusion-swift.git
Revision (git rev-parse @):
d0038cd87754c05ca4996ef695f10068b8515973
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftuiux/coreml-stable-diffusion-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/swiftuiux/coreml-stable-diffusion-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:3160178686d03086db4c1712d78c1980537bb37521128c64baade7f466b6b4aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package.swift:20:10: warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch') [#DeprecatedDeclaration]
18 | dependencies: [
19 | // Dependencies declare other packages that this package depends on.
20 | .package(url: "https://github.com/apple/ml-stable-diffusion.git", .exactItem("1.1.1")),
| `- warning: 'package(url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch') [#DeprecatedDeclaration]
21 | .package(url: "https://github.com/JohnSundell/Files.git",
22 | from: "4.2.0")
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Fetching https://github.com/JohnSundell/Files.git
Fetching https://github.com/apple/ml-stable-diffusion.git
[1/1248] Fetching files
Fetched https://github.com/JohnSundell/Files.git from cache (0.26s)
[1/2137] Fetching ml-stable-diffusion
Fetched https://github.com/apple/ml-stable-diffusion.git from cache (0.95s)
Computing version for https://github.com/apple/ml-stable-diffusion.git
Computed https://github.com/apple/ml-stable-diffusion.git at 1.1.1 (1.30s)
Fetching https://github.com/apple/swift-argument-parser.git
[1/15692] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.90s)
Computing version for https://github.com/JohnSundell/Files.git
Computed https://github.com/JohnSundell/Files.git at 4.3.0 (1.29s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.6.1 (0.49s)
Creating working copy for https://github.com/JohnSundell/Files.git
Working copy of https://github.com/JohnSundell/Files.git resolved at 4.3.0
Creating working copy for https://github.com/apple/ml-stable-diffusion.git
Working copy of https://github.com/apple/ml-stable-diffusion.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.6.1
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/31] Emitting module StableDiffusion
/host/spi-builder-workspace/.build/checkouts/ml-stable-diffusion/swift/StableDiffusion/pipeline/CGImage+vImage.swift:4:8: error: no such module 'Foundation'
2 | // Copyright (C) 2022 Apple Inc. All Rights Reserved.
3 |
4 | import Foundation
| `- error: no such module 'Foundation'
5 | import Accelerate
6 | import CoreML
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/34] Emitting module Files
/host/spi-builder-workspace/.build/checkouts/Files/Sources/Files.swift:25:8: error: no such module 'Foundation'
23 | */
24 |
25 | import Foundation
| `- error: no such module 'Foundation'
26 |
27 | // MARK: - Locations
[9/34] Compiling Files Files.swift
/host/spi-builder-workspace/.build/checkouts/Files/Sources/Files.swift:25:8: error: no such module 'Foundation'
23 | */
24 |
25 | import Foundation
| `- error: no such module 'Foundation'
26 |
27 | // MARK: - Locations
BUILD FAILURE 6.2 wasm