Build Information
Failed to build jpeg, reference master (97e2e7
), with Swift 6.2 (beta) for Wasm on 22 Jun 2025 22:04:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/stackotter/jpeg.git
Reference: master
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/stackotter/jpeg
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 97e2e75 Update utils scripts to hopefully work on Linux again
Cloned https://github.com/stackotter/jpeg.git
Revision (git rev-parse @):
97e2e757ea7e7421be54f09345abf1019e12b519
SUCCESS checkout https://github.com/stackotter/jpeg.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/stackotter/jpeg.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/tests/fuzz/data': File not found.
Building for debugging...
[0/59] Write sources
[15/59] Write swift-version-24593BA9C3E375BF.txt
[17/67] Compiling JPEG metadata.swift
[18/68] Emitting module JPEG
/host/spi-builder-workspace/sources/jpeg/os.swift:10:14: warning: unsupported or untested platform (please open an issue at https://github.com/kelvin13/jpeg/issues)
8 | import Glibc
9 | #else
10 | #warning("unsupported or untested platform (please open an issue at https://github.com/kelvin13/jpeg/issues)")
| `- warning: unsupported or untested platform (please open an issue at https://github.com/kelvin13/jpeg/issues)
11 | #endif
12 |
[19/68] Compiling JPEG common.swift
[20/68] Compiling JPEG os.swift
/host/spi-builder-workspace/sources/jpeg/os.swift:10:14: warning: unsupported or untested platform (please open an issue at https://github.com/kelvin13/jpeg/issues)
8 | import Glibc
9 | #else
10 | #warning("unsupported or untested platform (please open an issue at https://github.com/kelvin13/jpeg/issues)")
| `- warning: unsupported or untested platform (please open an issue at https://github.com/kelvin13/jpeg/issues)
11 | #endif
12 |
[21/68] Compiling JPEG debug.swift
[22/68] Compiling JPEG error.swift
[23/68] Compiling JPEG jpeg.swift
[24/68] Compiling JPEG encode.swift
[25/68] Compiling JPEG decode.swift
[26/71] Wrapping AST for JPEG for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/95] Emitting module in_memory
/host/spi-builder-workspace/examples/in-memory/main.swift:3:11: error: cannot find type 'System' in scope
1 | import JPEG
2 |
3 | extension System
| `- error: cannot find type 'System' in scope
4 | {
5 | struct Blob
/host/spi-builder-workspace/examples/in-memory/main.swift:12:11: error: cannot find type 'System' in scope
10 | }
11 | }
12 | extension System.Blob:JPEG.Bytestream.Source, JPEG.Bytestream.Destination
| `- error: cannot find type 'System' in scope
13 | {
14 | init(_ data:[UInt8])
/host/spi-builder-workspace/examples/in-memory/main.swift:46:28: error: cannot find 'System' in scope
44 |
45 | let path:String = "examples/in-memory/karlie-2011.jpg"
46 | guard let data:[UInt8] = (System.File.Source.open(path: path)
| `- error: cannot find 'System' in scope
47 | {
48 | (source:inout System.File.Source) -> [UInt8]? in
/host/spi-builder-workspace/examples/in-memory/main.swift:48:19: error: cannot find type 'System' in scope
46 | guard let data:[UInt8] = (System.File.Source.open(path: path)
47 | {
48 | (source:inout System.File.Source) -> [UInt8]? in
| `- error: cannot find type 'System' in scope
49 |
50 | guard let count:Int = source.count
/host/spi-builder-workspace/examples/in-memory/main.swift:62:10: error: cannot find type 'System' in scope
60 | }
61 |
62 | var blob:System.Blob = .init(data)
| `- error: cannot find type 'System' in scope
63 | // read from blob
64 | let spectral:JPEG.Data.Spectral<JPEG.Common> = try .decompress(stream: &blob)
/host/spi-builder-workspace/examples/in-memory/main.swift:67:21: error: cannot find 'System' in scope
65 | let image:JPEG.Data.Rectangular<JPEG.Common> = spectral.idct().interleaved()
66 | let rgb:[JPEG.RGB] = image.unpack(as: JPEG.RGB.self)
67 | guard let _:Void = (System.File.Destination.open(path: "\(path).rgb")
| `- error: cannot find 'System' in scope
68 | {
69 | guard let _:Void = $0.write(rgb.flatMap{ [$0.r, $0.g, $0.b] })
/host/spi-builder-workspace/examples/in-memory/main.swift:83:21: error: cannot find 'System' in scope
81 | blob = .init([])
82 | try spectral.compress(stream: &blob)
83 | guard let _:Void = (System.File.Destination.open(path: "\(path).jpg")
| `- error: cannot find 'System' in scope
84 | {
85 | guard let _:Void = $0.write(blob.data)
[29/95] Compiling in_memory main.swift
/host/spi-builder-workspace/examples/in-memory/main.swift:3:11: error: cannot find type 'System' in scope
1 | import JPEG
2 |
3 | extension System
| `- error: cannot find type 'System' in scope
4 | {
5 | struct Blob
/host/spi-builder-workspace/examples/in-memory/main.swift:12:11: error: cannot find type 'System' in scope
10 | }
11 | }
12 | extension System.Blob:JPEG.Bytestream.Source, JPEG.Bytestream.Destination
| `- error: cannot find type 'System' in scope
13 | {
14 | init(_ data:[UInt8])
/host/spi-builder-workspace/examples/in-memory/main.swift:46:28: error: cannot find 'System' in scope
44 |
45 | let path:String = "examples/in-memory/karlie-2011.jpg"
46 | guard let data:[UInt8] = (System.File.Source.open(path: path)
| `- error: cannot find 'System' in scope
47 | {
48 | (source:inout System.File.Source) -> [UInt8]? in
/host/spi-builder-workspace/examples/in-memory/main.swift:48:19: error: cannot find type 'System' in scope
46 | guard let data:[UInt8] = (System.File.Source.open(path: path)
47 | {
48 | (source:inout System.File.Source) -> [UInt8]? in
| `- error: cannot find type 'System' in scope
49 |
50 | guard let count:Int = source.count
/host/spi-builder-workspace/examples/in-memory/main.swift:62:10: error: cannot find type 'System' in scope
60 | }
61 |
62 | var blob:System.Blob = .init(data)
| `- error: cannot find type 'System' in scope
63 | // read from blob
64 | let spectral:JPEG.Data.Spectral<JPEG.Common> = try .decompress(stream: &blob)
/host/spi-builder-workspace/examples/in-memory/main.swift:67:21: error: cannot find 'System' in scope
65 | let image:JPEG.Data.Rectangular<JPEG.Common> = spectral.idct().interleaved()
66 | let rgb:[JPEG.RGB] = image.unpack(as: JPEG.RGB.self)
67 | guard let _:Void = (System.File.Destination.open(path: "\(path).rgb")
| `- error: cannot find 'System' in scope
68 | {
69 | guard let _:Void = $0.write(rgb.flatMap{ [$0.r, $0.g, $0.b] })
/host/spi-builder-workspace/examples/in-memory/main.swift:83:21: error: cannot find 'System' in scope
81 | blob = .init([])
82 | try spectral.compress(stream: &blob)
83 | guard let _:Void = (System.File.Destination.open(path: "\(path).jpg")
| `- error: cannot find 'System' in scope
84 | {
85 | guard let _:Void = $0.write(blob.data)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[30/95] Emitting module unit_test
/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/95] Emitting module integration_test
/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
[32/95] Compiling integration_test main.swift
/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
[33/95] Compiling unit_test result.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