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 swift-jpeg, reference 2.0.0 (03ef01), with Swift 6.2 (beta) for Wasm on 22 Jun 2025 12:29:58 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/tayloraswift/swift-jpeg.git
Reference: 2.0.0
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/tayloraswift/swift-jpeg
 * tag               2.0.0      -> FETCH_HEAD
HEAD is now at 03ef017 Create FUNDING.yml
Cloned https://github.com/tayloraswift/swift-jpeg.git
Revision (git rev-parse @):
03ef017433c9d268d2b40985f9ef4320007f95c0
SUCCESS checkout https://github.com/tayloraswift/swift-jpeg.git at 2.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/tayloraswift/swift-jpeg.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/tests/fuzz/data': File not found.
Building for debugging...
[0/63] Write sources
[17/63] Write swift-version-24593BA9C3E375BF.txt
[19/74] Compiling JPEGInspection String (ext).swift
[20/74] Emitting module JPEGInspection
[21/74] Compiling JPEGInspection Highlight.swift
[22/75] Wrapping AST for JPEGInspection for debugging
[24/75] Compiling JPEG error.swift
[25/75] Compiling JPEG metadata.swift
[26/75] Compiling JPEG jpeg.swift
[27/75] Compiling JPEG encode.swift
[28/75] Compiling JPEG debug.swift
[29/75] Emitting module JPEG
[30/75] Compiling JPEG common.swift
[31/75] Compiling JPEG decode.swift
[32/76] Wrapping AST for JPEG for debugging
[34/78] Emitting module JPEGSystem
/host/spi-builder-workspace/Sources/JPEGSystem/os.swift:12:14: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-jpeg/issues)
 10 |     import Glibc
 11 | #else
 12 |     #warning("unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-jpeg/issues)")
    |              `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-jpeg/issues)
 13 | #endif
 14 |
[35/78] Compiling JPEGSystem os.swift
/host/spi-builder-workspace/Sources/JPEGSystem/os.swift:12:14: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-jpeg/issues)
 10 |     import Glibc
 11 | #else
 12 |     #warning("unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-jpeg/issues)")
    |              `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-jpeg/issues)
 13 | #endif
 14 |
[36/84] Wrapping AST for JPEGSystem for debugging
[38/101] Compiling InMemory InMemory.swift
/host/spi-builder-workspace/Snippets/InMemory.swift:4:11: error: cannot find type 'System' in scope
 2 | import JPEGSystem
 3 |
 4 | extension System
   |           `- error: cannot find type 'System' in scope
 5 | {
 6 |     struct Blob
/host/spi-builder-workspace/Snippets/InMemory.swift:13:11: error: cannot find type 'System' in scope
11 |     }
12 | }
13 | extension System.Blob:JPEG.Bytestream.Source, JPEG.Bytestream.Destination
   |           `- error: cannot find type 'System' in scope
14 | {
15 |     init(_ data:[UInt8])
/host/spi-builder-workspace/Snippets/InMemory.swift:47:28: error: cannot find 'System' in scope
45 |
46 | let path:String         = "examples/in-memory/karlie-2011.jpg"
47 | guard let data:[UInt8]  = (System.File.Source.open(path: path)
   |                            `- error: cannot find 'System' in scope
48 | {
49 |     (source:inout System.File.Source) -> [UInt8]? in
/host/spi-builder-workspace/Snippets/InMemory.swift:49:19: error: cannot find type 'System' in scope
47 | guard let data:[UInt8]  = (System.File.Source.open(path: path)
48 | {
49 |     (source:inout System.File.Source) -> [UInt8]? in
   |                   `- error: cannot find type 'System' in scope
50 |
51 |     guard let count:Int = source.count
/host/spi-builder-workspace/Snippets/InMemory.swift:63:10: error: cannot find type 'System' in scope
61 | }
62 |
63 | var blob:System.Blob = .init(data)
   |          `- error: cannot find type 'System' in scope
64 | // read from blob
65 | let spectral:JPEG.Data.Spectral<JPEG.Common>    = try .decompress(stream: &blob)
/host/spi-builder-workspace/Snippets/InMemory.swift:68:21: error: cannot find 'System' in scope
66 | let image:JPEG.Data.Rectangular<JPEG.Common>    = spectral.idct().interleaved()
67 | let rgb:[JPEG.RGB]                              = image.unpack(as: JPEG.RGB.self)
68 | guard let _:Void = (System.File.Destination.open(path: "\(path).rgb")
   |                     `- error: cannot find 'System' in scope
69 | {
70 |     guard let _:Void = $0.write(rgb.flatMap{ [$0.r, $0.g, $0.b] })
/host/spi-builder-workspace/Snippets/InMemory.swift:84:21: error: cannot find 'System' in scope
82 | blob = .init([])
83 | try spectral.compress(stream: &blob)
84 | guard let _:Void = (System.File.Destination.open(path: "\(path).jpg")
   |                     `- error: cannot find 'System' in scope
85 | {
86 |     guard let _:Void = $0.write(blob.data)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[39/101] Emitting module JPEGRegressionTests
/host/spi-builder-workspace/tests/regression/main.swift:1:13: error: no such module 'Foundation'
 1 | import func Foundation.exit
   |             `- error: no such module 'Foundation'
 2 |
 3 | var failed = false
error: emit-module command failed with exit code 1 (use -v to see invocation)
[40/101] Emitting module JPEGIntegrationTests
/host/spi-builder-workspace/tests/integration/main.swift:1:13: error: no such module 'Foundation'
 1 | import func Foundation.exit
   |             `- error: no such module 'Foundation'
 2 |
 3 | var failed = false
error: emit-module command failed with exit code 1 (use -v to see invocation)
[41/101] Emitting module Rotate
[42/101] Emitting module InMemory
/host/spi-builder-workspace/Snippets/InMemory.swift:4:11: error: cannot find type 'System' in scope
 2 | import JPEGSystem
 3 |
 4 | extension System
   |           `- error: cannot find type 'System' in scope
 5 | {
 6 |     struct Blob
/host/spi-builder-workspace/Snippets/InMemory.swift:13:11: error: cannot find type 'System' in scope
11 |     }
12 | }
13 | extension System.Blob:JPEG.Bytestream.Source, JPEG.Bytestream.Destination
   |           `- error: cannot find type 'System' in scope
14 | {
15 |     init(_ data:[UInt8])
/host/spi-builder-workspace/Snippets/InMemory.swift:47:28: error: cannot find 'System' in scope
45 |
46 | let path:String         = "examples/in-memory/karlie-2011.jpg"
47 | guard let data:[UInt8]  = (System.File.Source.open(path: path)
   |                            `- error: cannot find 'System' in scope
48 | {
49 |     (source:inout System.File.Source) -> [UInt8]? in
/host/spi-builder-workspace/Snippets/InMemory.swift:49:19: error: cannot find type 'System' in scope
47 | guard let data:[UInt8]  = (System.File.Source.open(path: path)
48 | {
49 |     (source:inout System.File.Source) -> [UInt8]? in
   |                   `- error: cannot find type 'System' in scope
50 |
51 |     guard let count:Int = source.count
/host/spi-builder-workspace/Snippets/InMemory.swift:63:10: error: cannot find type 'System' in scope
61 | }
62 |
63 | var blob:System.Blob = .init(data)
   |          `- error: cannot find type 'System' in scope
64 | // read from blob
65 | let spectral:JPEG.Data.Spectral<JPEG.Common>    = try .decompress(stream: &blob)
/host/spi-builder-workspace/Snippets/InMemory.swift:68:21: error: cannot find 'System' in scope
66 | let image:JPEG.Data.Rectangular<JPEG.Common>    = spectral.idct().interleaved()
67 | let rgb:[JPEG.RGB]                              = image.unpack(as: JPEG.RGB.self)
68 | guard let _:Void = (System.File.Destination.open(path: "\(path).rgb")
   |                     `- error: cannot find 'System' in scope
69 | {
70 |     guard let _:Void = $0.write(rgb.flatMap{ [$0.r, $0.g, $0.b] })
/host/spi-builder-workspace/Snippets/InMemory.swift:84:21: error: cannot find 'System' in scope
82 | blob = .init([])
83 | try spectral.compress(stream: &blob)
84 | guard let _:Void = (System.File.Destination.open(path: "\(path).jpg")
   |                     `- error: cannot find 'System' in scope
85 | {
86 |     guard let _:Void = $0.write(blob.data)
/host/spi-builder-workspace/tests/compare/main.swift:9:31: error: extra argument 'path' in call
  7 | {
  8 |     guard let rectangular:JPEG.Data.Rectangular<JPEG.Common> =
  9 |         try .decompress(path: jpeg)
    |                               `- error: extra argument 'path' in call
 10 |     else
 11 |     {
[43/101] Compiling JPEGUnitTests main.swift
/host/spi-builder-workspace/tests/unit/main.swift:1:13: error: no such module 'Foundation'
 1 | import func Foundation.exit
   |             `- error: no such module 'Foundation'
 2 |
 3 | var failed = false
BUILD FAILURE 6.2 wasm