Build Information
Failed to build swift-jpeg, reference 2.0.0 (03ef01
), with Swift 6.1 for Wasm on 29 May 2025 23:16: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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
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.1
Building package at path: $PWD
https://github.com/tayloraswift/swift-jpeg.git
https://github.com/tayloraswift/swift-jpeg.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "swift-jpeg",
"name" : "swift-jpeg",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "JPEG",
"targets" : [
"JPEG"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JPEGSystem",
"targets" : [
"JPEGSystem"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JPEGUnitTests",
"targets" : [
"JPEGUnitTests"
],
"type" : {
"executable" : null
}
},
{
"name" : "JPEGRegressionTests",
"targets" : [
"JPEGRegressionTests"
],
"type" : {
"executable" : null
}
},
{
"name" : "JPEGIntegrationTests",
"targets" : [
"JPEGIntegrationTests"
],
"type" : {
"executable" : null
}
},
{
"name" : "JPEGFuzzer",
"targets" : [
"JPEGFuzzer"
],
"type" : {
"executable" : null
}
},
{
"name" : "JPEGComparator",
"targets" : [
"JPEGComparator"
],
"type" : {
"executable" : null
}
},
{
"name" : "EncodeAdvanced",
"targets" : [
"EncodeAdvanced"
],
"type" : {
"snippet" : null
}
},
{
"name" : "Recompress",
"targets" : [
"Recompress"
],
"type" : {
"snippet" : null
}
},
{
"name" : "DecodeAdvanced",
"targets" : [
"DecodeAdvanced"
],
"type" : {
"snippet" : null
}
},
{
"name" : "CustomColor",
"targets" : [
"CustomColor"
],
"type" : {
"snippet" : null
}
},
{
"name" : "DecodeOnline",
"targets" : [
"DecodeOnline"
],
"type" : {
"snippet" : null
}
},
{
"name" : "DecodeBasic",
"targets" : [
"DecodeBasic"
],
"type" : {
"snippet" : null
}
},
{
"name" : "Rotate",
"targets" : [
"Rotate"
],
"type" : {
"snippet" : null
}
},
{
"name" : "EncodeBasic",
"targets" : [
"EncodeBasic"
],
"type" : {
"snippet" : null
}
},
{
"name" : "InMemory",
"targets" : [
"InMemory"
],
"type" : {
"snippet" : null
}
}
],
"swift_languages_versions" : [
"4.2",
"5"
],
"targets" : [
{
"c99name" : "JPEGUnitTests",
"module_type" : "SwiftTarget",
"name" : "JPEGUnitTests",
"path" : "tests/unit",
"product_memberships" : [
"JPEGUnitTests"
],
"sources" : [
"main.swift",
"result.swift",
"tests.swift"
],
"target_dependencies" : [
"JPEG",
"JPEGInspection",
"JPEGSystem"
],
"type" : "executable"
},
{
"c99name" : "JPEGSystem",
"module_type" : "SwiftTarget",
"name" : "JPEGSystem",
"path" : "Sources/JPEGSystem",
"product_memberships" : [
"JPEGSystem",
"JPEGUnitTests",
"JPEGRegressionTests",
"JPEGIntegrationTests",
"JPEGFuzzer",
"JPEGComparator",
"EncodeAdvanced",
"Recompress",
"DecodeAdvanced",
"CustomColor",
"DecodeOnline",
"DecodeBasic",
"Rotate",
"EncodeBasic",
"InMemory"
],
"sources" : [
"os.swift"
],
"target_dependencies" : [
"JPEG"
],
"type" : "library"
},
{
"c99name" : "JPEGRegressionTests",
"module_type" : "SwiftTarget",
"name" : "JPEGRegressionTests",
"path" : "tests/regression",
"product_memberships" : [
"JPEGRegressionTests"
],
"sources" : [
"main.swift",
"result.swift",
"tests.swift"
],
"target_dependencies" : [
"JPEG",
"JPEGInspection",
"JPEGSystem"
],
"type" : "executable"
},
{
"c99name" : "JPEGIntegrationTests",
"module_type" : "SwiftTarget",
"name" : "JPEGIntegrationTests",
"path" : "tests/integration",
"product_memberships" : [
"JPEGIntegrationTests"
],
"sources" : [
"main.swift",
"result.swift",
"tests.swift"
],
"target_dependencies" : [
"JPEG",
"JPEGInspection",
"JPEGSystem"
],
"type" : "executable"
},
{
"c99name" : "JPEGInspection",
"module_type" : "SwiftTarget",
"name" : "JPEGInspection",
"path" : "Sources/JPEGInspection",
"product_memberships" : [
"JPEGUnitTests",
"JPEGRegressionTests",
"JPEGIntegrationTests",
"JPEGFuzzer",
"JPEGComparator"
],
"sources" : [
"Highlight.swift",
"String (ext).swift"
],
"type" : "library"
},
{
"c99name" : "JPEGFuzzer",
"module_type" : "SwiftTarget",
"name" : "JPEGFuzzer",
"path" : "tests/fuzz",
"product_memberships" : [
"JPEGFuzzer"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"JPEG",
"JPEGInspection",
"JPEGSystem"
],
"type" : "executable"
},
{
"c99name" : "JPEGComparator",
"module_type" : "SwiftTarget",
"name" : "JPEGComparator",
"path" : "tests/compare",
"product_memberships" : [
"JPEGComparator"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"JPEG",
"JPEGInspection",
"JPEGSystem"
],
"type" : "executable"
},
{
"c99name" : "JPEG",
"module_type" : "SwiftTarget",
"name" : "JPEG",
"path" : "Sources/JPEG",
"product_memberships" : [
"JPEG",
"JPEGSystem",
"JPEGUnitTests",
"JPEGRegressionTests",
"JPEGIntegrationTests",
"JPEGFuzzer",
"JPEGComparator",
"EncodeAdvanced",
"Recompress",
"DecodeAdvanced",
"CustomColor",
"DecodeOnline",
"DecodeBasic",
"Rotate",
"EncodeBasic",
"InMemory"
],
"sources" : [
"common.swift",
"debug.swift",
"decode.swift",
"encode.swift",
"error.swift",
"jpeg.swift",
"metadata.swift"
],
"type" : "library"
},
{
"c99name" : "EncodeAdvanced",
"module_type" : "SwiftTarget",
"name" : "EncodeAdvanced",
"path" : "Snippets",
"product_memberships" : [
"EncodeAdvanced"
],
"sources" : [
"EncodeAdvanced.swift"
],
"target_dependencies" : [
"JPEGSystem",
"JPEG"
],
"type" : "snippet"
},
{
"c99name" : "Recompress",
"module_type" : "SwiftTarget",
"name" : "Recompress",
"path" : "Snippets",
"product_memberships" : [
"Recompress"
],
"sources" : [
"Recompress.swift"
],
"target_dependencies" : [
"JPEGSystem",
"JPEG"
],
"type" : "snippet"
},
{
"c99name" : "DecodeAdvanced",
"module_type" : "SwiftTarget",
"name" : "DecodeAdvanced",
"path" : "Snippets",
"product_memberships" : [
"DecodeAdvanced"
],
"sources" : [
"DecodeAdvanced.swift"
],
"target_dependencies" : [
"JPEGSystem",
"JPEG"
],
"type" : "snippet"
},
{
"c99name" : "CustomColor",
"module_type" : "SwiftTarget",
"name" : "CustomColor",
"path" : "Snippets",
"product_memberships" : [
"CustomColor"
],
"sources" : [
"CustomColor.swift"
],
"target_dependencies" : [
"JPEGSystem",
"JPEG"
],
"type" : "snippet"
},
{
"c99name" : "DecodeOnline",
"module_type" : "SwiftTarget",
"name" : "DecodeOnline",
"path" : "Snippets",
"product_memberships" : [
"DecodeOnline"
],
"sources" : [
"DecodeOnline.swift"
],
"target_dependencies" : [
"JPEGSystem",
"JPEG"
],
"type" : "snippet"
},
{
"c99name" : "DecodeBasic",
"module_type" : "SwiftTarget",
"name" : "DecodeBasic",
"path" : "Snippets",
"product_memberships" : [
"DecodeBasic"
],
"sources" : [
"DecodeBasic.swift"
],
"target_dependencies" : [
"JPEGSystem",
"JPEG"
],
"type" : "snippet"
},
{
"c99name" : "Rotate",
"module_type" : "SwiftTarget",
"name" : "Rotate",
"path" : "Snippets",
"product_memberships" : [
"Rotate"
],
"sources" : [
"Rotate.swift"
],
"target_dependencies" : [
"JPEGSystem",
"JPEG"
],
"type" : "snippet"
},
{
"c99name" : "EncodeBasic",
"module_type" : "SwiftTarget",
"name" : "EncodeBasic",
"path" : "Snippets",
"product_memberships" : [
"EncodeBasic"
],
"sources" : [
"EncodeBasic.swift"
],
"target_dependencies" : [
"JPEGSystem",
"JPEG"
],
"type" : "snippet"
},
{
"c99name" : "InMemory",
"module_type" : "SwiftTarget",
"name" : "InMemory",
"path" : "Snippets",
"product_memberships" : [
"InMemory"
],
"sources" : [
"InMemory.swift"
],
"target_dependencies" : [
"JPEGSystem",
"JPEG"
],
"type" : "snippet"
}
],
"tools_version" : "5.10"
}
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/tests/fuzz/data': File not found.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-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 JPEG
/host/spi-builder-workspace/Sources/JPEG/error.swift:206:14: warning: associated value 'invalidFrameQuantizationSelector' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JPEG.Table.Quantization.Selector' (aka 'WritableKeyPath<(Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>), Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>>'); this is an error in the Swift 6 language mode
204 | /// - Parameter process:
205 | /// The coding process specified by the frame header.
206 | case invalidFrameQuantizationSelector(JPEG.Table.Quantization.Selector, Process)
| `- warning: associated value 'invalidFrameQuantizationSelector' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JPEG.Table.Quantization.Selector' (aka 'WritableKeyPath<(Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>), Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>>'); this is an error in the Swift 6 language mode
207 | /// A component in a frame header had an invalid sampling factor.
208 | ///
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/host/spi-builder-workspace/Sources/JPEG/error.swift:237:14: warning: associated value 'invalidScanHuffmanDCSelector' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JPEG.Table.HuffmanDC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>>'); this is an error in the Swift 6 language mode
235 | /// - Parameter process:
236 | /// The coding process specified by the frame header.
237 | case invalidScanHuffmanDCSelector(JPEG.Table.HuffmanDC.Selector, Process)
| `- warning: associated value 'invalidScanHuffmanDCSelector' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JPEG.Table.HuffmanDC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>>'); this is an error in the Swift 6 language mode
238 | /// A component in a frame header segment used an AC huffman table
239 | /// selector which is well-formed but unavailable given the frame header coding process.
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/host/spi-builder-workspace/Sources/JPEG/error.swift:246:14: warning: associated value 'invalidScanHuffmanACSelector' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JPEG.Table.HuffmanAC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>>'); this is an error in the Swift 6 language mode
244 | /// - Parameter process:
245 | /// The coding process specified by the frame header.
246 | case invalidScanHuffmanACSelector(JPEG.Table.HuffmanAC.Selector, Process)
| `- warning: associated value 'invalidScanHuffmanACSelector' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JPEG.Table.HuffmanAC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>>'); this is an error in the Swift 6 language mode
247 | /// A scan header had more that the maximum allowed number of components
248 | /// given the image coding process.
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/host/spi-builder-workspace/Sources/JPEG/error.swift:564:14: warning: associated value 'undefinedScanHuffmanDCReference' of 'Sendable'-conforming enum 'DecodingError' has non-sendable type 'JPEG.Table.HuffmanDC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>>'); this is an error in the Swift 6 language mode
562 | /// - Parameter _:
563 | /// The table selector.
564 | case undefinedScanHuffmanDCReference(Table.HuffmanDC.Selector)
| `- warning: associated value 'undefinedScanHuffmanDCReference' of 'Sendable'-conforming enum 'DecodingError' has non-sendable type 'JPEG.Table.HuffmanDC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>>'); this is an error in the Swift 6 language mode
565 | /// An AC huffman table selector in a scan referenced a table
566 | /// slot with no bound table.
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/host/spi-builder-workspace/Sources/JPEG/error.swift:570:14: warning: associated value 'undefinedScanHuffmanACReference' of 'Sendable'-conforming enum 'DecodingError' has non-sendable type 'JPEG.Table.HuffmanAC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>>'); this is an error in the Swift 6 language mode
568 | /// - Parameter _:
569 | /// The table selector.
570 | case undefinedScanHuffmanACReference(Table.HuffmanAC.Selector)
| `- warning: associated value 'undefinedScanHuffmanACReference' of 'Sendable'-conforming enum 'DecodingError' has non-sendable type 'JPEG.Table.HuffmanAC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>>'); this is an error in the Swift 6 language mode
571 | /// A quantization table selector in the first scan for a particular
572 | /// component referenced a table slot with no bound table.
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/host/spi-builder-workspace/Sources/JPEG/error.swift:576:14: warning: associated value 'undefinedScanQuantizationReference' of 'Sendable'-conforming enum 'DecodingError' has non-sendable type 'JPEG.Table.Quantization.Selector' (aka 'WritableKeyPath<(Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>), Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>>'); this is an error in the Swift 6 language mode
574 | /// - Parameter _:
575 | /// The table selector.
576 | case undefinedScanQuantizationReference(Table.Quantization.Selector)
| `- warning: associated value 'undefinedScanQuantizationReference' of 'Sendable'-conforming enum 'DecodingError' has non-sendable type 'JPEG.Table.Quantization.Selector' (aka 'WritableKeyPath<(Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>), Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>>'); this is an error in the Swift 6 language mode
577 | /// A quantization table had the wrong precision mode for the image
578 | /// color format.
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
[21/74] Compiling JPEG common.swift
[22/74] Compiling JPEGInspection Highlight.swift
[23/74] Emitting module JPEGInspection
[25/75] Compiling JPEG metadata.swift
[25/75] Wrapping AST for JPEGInspection for debugging
[27/75] Compiling JPEG error.swift
/host/spi-builder-workspace/Sources/JPEG/error.swift:206:14: warning: associated value 'invalidFrameQuantizationSelector' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JPEG.Table.Quantization.Selector' (aka 'WritableKeyPath<(Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>), Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>>'); this is an error in the Swift 6 language mode
204 | /// - Parameter process:
205 | /// The coding process specified by the frame header.
206 | case invalidFrameQuantizationSelector(JPEG.Table.Quantization.Selector, Process)
| `- warning: associated value 'invalidFrameQuantizationSelector' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JPEG.Table.Quantization.Selector' (aka 'WritableKeyPath<(Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>), Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>>'); this is an error in the Swift 6 language mode
207 | /// A component in a frame header had an invalid sampling factor.
208 | ///
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/host/spi-builder-workspace/Sources/JPEG/error.swift:237:14: warning: associated value 'invalidScanHuffmanDCSelector' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JPEG.Table.HuffmanDC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>>'); this is an error in the Swift 6 language mode
235 | /// - Parameter process:
236 | /// The coding process specified by the frame header.
237 | case invalidScanHuffmanDCSelector(JPEG.Table.HuffmanDC.Selector, Process)
| `- warning: associated value 'invalidScanHuffmanDCSelector' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JPEG.Table.HuffmanDC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>>'); this is an error in the Swift 6 language mode
238 | /// A component in a frame header segment used an AC huffman table
239 | /// selector which is well-formed but unavailable given the frame header coding process.
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/host/spi-builder-workspace/Sources/JPEG/error.swift:246:14: warning: associated value 'invalidScanHuffmanACSelector' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JPEG.Table.HuffmanAC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>>'); this is an error in the Swift 6 language mode
244 | /// - Parameter process:
245 | /// The coding process specified by the frame header.
246 | case invalidScanHuffmanACSelector(JPEG.Table.HuffmanAC.Selector, Process)
| `- warning: associated value 'invalidScanHuffmanACSelector' of 'Sendable'-conforming enum 'ParsingError' has non-sendable type 'JPEG.Table.HuffmanAC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>>'); this is an error in the Swift 6 language mode
247 | /// A scan header had more that the maximum allowed number of components
248 | /// given the image coding process.
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/host/spi-builder-workspace/Sources/JPEG/error.swift:564:14: warning: associated value 'undefinedScanHuffmanDCReference' of 'Sendable'-conforming enum 'DecodingError' has non-sendable type 'JPEG.Table.HuffmanDC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>>'); this is an error in the Swift 6 language mode
562 | /// - Parameter _:
563 | /// The table selector.
564 | case undefinedScanHuffmanDCReference(Table.HuffmanDC.Selector)
| `- warning: associated value 'undefinedScanHuffmanDCReference' of 'Sendable'-conforming enum 'DecodingError' has non-sendable type 'JPEG.Table.HuffmanDC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.DC>>>'); this is an error in the Swift 6 language mode
565 | /// An AC huffman table selector in a scan referenced a table
566 | /// slot with no bound table.
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/host/spi-builder-workspace/Sources/JPEG/error.swift:570:14: warning: associated value 'undefinedScanHuffmanACReference' of 'Sendable'-conforming enum 'DecodingError' has non-sendable type 'JPEG.Table.HuffmanAC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>>'); this is an error in the Swift 6 language mode
568 | /// - Parameter _:
569 | /// The table selector.
570 | case undefinedScanHuffmanACReference(Table.HuffmanAC.Selector)
| `- warning: associated value 'undefinedScanHuffmanACReference' of 'Sendable'-conforming enum 'DecodingError' has non-sendable type 'JPEG.Table.HuffmanAC.Selector' (aka 'WritableKeyPath<(Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>, Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>), Optional<JPEG.Table.Huffman<JPEG.Bitstream.Symbol.AC>>>'); this is an error in the Swift 6 language mode
571 | /// A quantization table selector in the first scan for a particular
572 | /// component referenced a table slot with no bound table.
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/host/spi-builder-workspace/Sources/JPEG/error.swift:576:14: warning: associated value 'undefinedScanQuantizationReference' of 'Sendable'-conforming enum 'DecodingError' has non-sendable type 'JPEG.Table.Quantization.Selector' (aka 'WritableKeyPath<(Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>), Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>>'); this is an error in the Swift 6 language mode
574 | /// - Parameter _:
575 | /// The table selector.
576 | case undefinedScanQuantizationReference(Table.Quantization.Selector)
| `- warning: associated value 'undefinedScanQuantizationReference' of 'Sendable'-conforming enum 'DecodingError' has non-sendable type 'JPEG.Table.Quantization.Selector' (aka 'WritableKeyPath<(Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>, Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>), Optional<(q: Int, qi: JPEG.Table.Quantization.Key)>>'); this is an error in the Swift 6 language mode
577 | /// A quantization table had the wrong precision mode for the image
578 | /// color format.
Swift.WritableKeyPath:1:14: note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
1 | public class WritableKeyPath<Root, Value> : KeyPath<Root, Value> {
| `- note: generic class 'WritableKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
[28/75] Compiling JPEG jpeg.swift
[29/75] Compiling JPEG encode.swift
[30/75] Compiling JPEG debug.swift
[31/75] Compiling JPEG decode.swift
[32/76] Wrapping AST for JPEG for debugging
[34/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 |
[35/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 |
[37/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)
[38/101] Compiling JPEGFuzzer main.swift
/host/spi-builder-workspace/tests/fuzz/main.swift:90:37: error: instance method 'compress(stream:)' requires that 'String' conform to 'JPEG.Bytestream.Destination'
88 | ])
89 |
90 | guard let _:Void = try spectral.compress(path: path)
| `- error: instance method 'compress(stream:)' requires that 'String' conform to 'JPEG.Bytestream.Destination'
91 | else
92 | {
/host/spi-builder-workspace/Sources/JPEG/encode.swift:1907:10: note: where 'Destination' = 'String'
1905 | /// A destination bytestream.
1906 | public
1907 | func compress<Destination>(stream:inout Destination) throws
| `- note: where 'Destination' = 'String'
1908 | where Destination:JPEG.Bytestream.Destination
1909 | {
/host/spi-builder-workspace/tests/fuzz/main.swift:90:45: error: incorrect argument label in call (have 'path:', expected 'stream:')
88 | ])
89 |
90 | guard let _:Void = try spectral.compress(path: path)
| `- error: incorrect argument label in call (have 'path:', expected 'stream:')
91 | else
92 | {
/host/spi-builder-workspace/tests/fuzz/main.swift:123:35: error: extra argument 'path' in call
121 |
122 | guard let rectangular:JPEG.Data.Rectangular<JPEG.Common> =
123 | try .decompress(path: path)
| `- error: extra argument 'path' in call
124 | else
125 | {
[39/101] Emitting module JPEGFuzzer
error: emit-module command failed with exit code 1 (use -v to see invocation)
[40/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)
[41/101] Emitting module Rotate
[42/101] Emitting module JPEGComparator
/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 | {
/host/spi-builder-workspace/tests/compare/main.swift:16:40: error: cannot find 'System' in scope
14 |
15 | let output:[JPEG.YCbCr] = rectangular.unpack(as: JPEG.YCbCr.self)
16 | guard let expected:[JPEG.YCbCr] = (System.File.Source.open(path: reference)
| `- error: cannot find 'System' in scope
17 | {
18 | guard let data:[UInt8] = $0.read(count: 3 * output.count)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/tests/fuzz/data': File not found.
[0/1] Planning build
Building for debugging...
[0/46] Write swift-version-24593BA9C3E375BF.txt
[2/57] Compiling JPEGInspection String (ext).swift
[3/57] Compiling JPEG common.swift
[4/57] Emitting module JPEGInspection
[5/57] Compiling JPEGInspection Highlight.swift
[7/57] Emitting module JPEG
[8/57] Compiling JPEG error.swift
[9/57] Compiling JPEG jpeg.swift
[10/57] Compiling JPEG metadata.swift
[11/57] Compiling JPEG encode.swift
[12/57] Compiling JPEG debug.swift
[13/57] Compiling JPEG decode.swift
[14/58] Wrapping AST for JPEG for debugging
[16/60] 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 |
[17/60] 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 |
[18/61] Wrapping AST for JPEGSystem for debugging
[20/83] 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)
[21/83] 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)
[22/83] Emitting module JPEGFuzzer
[23/83] Compiling JPEGFuzzer main.swift
/host/spi-builder-workspace/tests/fuzz/main.swift:90:45: error: incorrect argument label in call (have 'path:', expected 'stream:')
88 | ])
89 |
90 | guard let _:Void = try spectral.compress(path: path)
| `- error: incorrect argument label in call (have 'path:', expected 'stream:')
91 | else
92 | {
/host/spi-builder-workspace/tests/fuzz/main.swift:90:37: error: instance method 'compress(stream:)' requires that 'String' conform to 'JPEG.Bytestream.Destination'
88 | ])
89 |
90 | guard let _:Void = try spectral.compress(path: path)
| `- error: instance method 'compress(stream:)' requires that 'String' conform to 'JPEG.Bytestream.Destination'
91 | else
92 | {
/host/spi-builder-workspace/Sources/JPEG/encode.swift:1907:10: note: where 'Destination' = 'String'
1905 | /// A destination bytestream.
1906 | public
1907 | func compress<Destination>(stream:inout Destination) throws
| `- note: where 'Destination' = 'String'
1908 | where Destination:JPEG.Bytestream.Destination
1909 | {
/host/spi-builder-workspace/tests/fuzz/main.swift:123:35: error: extra argument 'path' in call
121 |
122 | guard let rectangular:JPEG.Data.Rectangular<JPEG.Common> =
123 | try .decompress(path: path)
| `- error: extra argument 'path' in call
124 | else
125 | {
[24/83] Emitting module Rotate
[25/83] Emitting module JPEGComparator
/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 | {
/host/spi-builder-workspace/tests/compare/main.swift:16:40: error: cannot find 'System' in scope
14 |
15 | let output:[JPEG.YCbCr] = rectangular.unpack(as: JPEG.YCbCr.self)
16 | guard let expected:[JPEG.YCbCr] = (System.File.Source.open(path: reference)
| `- error: cannot find 'System' in scope
17 | {
18 | guard let data:[UInt8] = $0.read(count: 3 * output.count)
BUILD FAILURE 6.1 wasm