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 jpeg, reference master (97e2e7), with Swift 6.1 for Wasm on 30 May 2025 05:44:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/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.1
Building package at path:  $PWD
https://github.com/stackotter/jpeg.git
https://github.com/stackotter/jpeg.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "jpeg",
  "name" : "jpeg",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "JPEG",
      "targets" : [
        "JPEG"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "unit-test",
      "targets" : [
        "unit-test"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "rotate",
      "targets" : [
        "rotate"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "regression-test",
      "targets" : [
        "regression-test"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "recompress",
      "targets" : [
        "recompress"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "integration-test",
      "targets" : [
        "integration-test"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "in-memory",
      "targets" : [
        "in-memory"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "fuzzer",
      "targets" : [
        "fuzzer"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "encode-basic",
      "targets" : [
        "encode-basic"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "encode-advanced",
      "targets" : [
        "encode-advanced"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "decode-online",
      "targets" : [
        "decode-online"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "decode-basic",
      "targets" : [
        "decode-basic"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "decode-advanced",
      "targets" : [
        "decode-advanced"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "custom-color",
      "targets" : [
        "custom-color"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "comparator",
      "targets" : [
        "comparator"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "swift_languages_versions" : [
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "unit_test",
      "module_type" : "SwiftTarget",
      "name" : "unit-test",
      "path" : "tests/unit",
      "product_memberships" : [
        "unit-test"
      ],
      "sources" : [
        "main.swift",
        "output.swift",
        "result.swift",
        "tests.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "rotate",
      "module_type" : "SwiftTarget",
      "name" : "rotate",
      "path" : "examples/rotate",
      "product_memberships" : [
        "rotate"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "regression_test",
      "module_type" : "SwiftTarget",
      "name" : "regression-test",
      "path" : "tests/regression",
      "product_memberships" : [
        "regression-test"
      ],
      "sources" : [
        "main.swift",
        "output.swift",
        "result.swift",
        "tests.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "recompress",
      "module_type" : "SwiftTarget",
      "name" : "recompress",
      "path" : "examples/recompress",
      "product_memberships" : [
        "recompress"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "integration_test",
      "module_type" : "SwiftTarget",
      "name" : "integration-test",
      "path" : "tests/integration",
      "product_memberships" : [
        "integration-test"
      ],
      "sources" : [
        "main.swift",
        "output.swift",
        "result.swift",
        "tests.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "in_memory",
      "module_type" : "SwiftTarget",
      "name" : "in-memory",
      "path" : "examples/in-memory",
      "product_memberships" : [
        "in-memory"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "fuzzer",
      "module_type" : "SwiftTarget",
      "name" : "fuzzer",
      "path" : "tests/fuzz",
      "product_memberships" : [
        "fuzzer"
      ],
      "sources" : [
        "main.swift",
        "output.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "encode_basic",
      "module_type" : "SwiftTarget",
      "name" : "encode-basic",
      "path" : "examples/encode-basic",
      "product_memberships" : [
        "encode-basic"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "encode_advanced",
      "module_type" : "SwiftTarget",
      "name" : "encode-advanced",
      "path" : "examples/encode-advanced",
      "product_memberships" : [
        "encode-advanced"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "decode_online",
      "module_type" : "SwiftTarget",
      "name" : "decode-online",
      "path" : "examples/decode-online",
      "product_memberships" : [
        "decode-online"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "decode_basic",
      "module_type" : "SwiftTarget",
      "name" : "decode-basic",
      "path" : "examples/decode-basic",
      "product_memberships" : [
        "decode-basic"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "decode_advanced",
      "module_type" : "SwiftTarget",
      "name" : "decode-advanced",
      "path" : "examples/decode-advanced",
      "product_memberships" : [
        "decode-advanced"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "custom_color",
      "module_type" : "SwiftTarget",
      "name" : "custom-color",
      "path" : "examples/custom-color",
      "product_memberships" : [
        "custom-color"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "comparator",
      "module_type" : "SwiftTarget",
      "name" : "comparator",
      "path" : "tests/compare",
      "product_memberships" : [
        "comparator"
      ],
      "sources" : [
        "main.swift",
        "output.swift"
      ],
      "target_dependencies" : [
        "JPEG"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "JPEG",
      "module_type" : "SwiftTarget",
      "name" : "JPEG",
      "path" : "sources/jpeg",
      "product_memberships" : [
        "JPEG",
        "unit-test",
        "rotate",
        "regression-test",
        "recompress",
        "integration-test",
        "in-memory",
        "fuzzer",
        "encode-basic",
        "encode-advanced",
        "decode-online",
        "decode-basic",
        "decode-advanced",
        "custom-color",
        "comparator"
      ],
      "sources" : [
        "common.swift",
        "debug.swift",
        "decode.swift",
        "encode.swift",
        "error.swift",
        "jpeg.swift",
        "metadata.swift",
        "os.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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-4609320-1":/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/59] Write sources
[15/59] Write swift-version-24593BA9C3E375BF.txt
[17/67] Compiling JPEG metadata.swift
[18/68] Compiling JPEG error.swift
/host/spi-builder-workspace/sources/jpeg/error.swift:229: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
227 |         /// - _ : JPEG.Process
228 |         ///     The coding process specified by the frame header.
229 |         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
230 |         /// case JPEG.ParsingError.invalidFrameComponentSamplingFactor(_:_:)
231 |         ///     A component in a frame header had an invalid sampling factor.
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:258: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
256 |         /// - _ : JPEG.Process
257 |         ///     The coding process specified by the frame header.
258 |         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
259 |         /// case JPEG.ParsingError.invalidScanHuffmanACSelector(_:_:)
260 |         ///     A component in a frame header segment used an AC huffman 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:266: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
264 |         /// - _ : JPEG.Process
265 |         ///     The coding process specified by the frame header.
266 |         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
267 |         /// case JPEG.ParsingError.invalidScanComponentCount(_:_:)
268 |         ///     A scan header had more that the maximum allowed number of components
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:587: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
585 |         /// - _ : JPEG.Table.HuffmanDC.Selector
586 |         ///     The table selector.
587 |         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
588 |         /// case JPEG.DecodingError.undefinedScanHuffmanACReference(_:)
589 |         ///     An AC huffman table selector in a scan referenced a 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:593: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
591 |         /// - _ : JPEG.Table.HuffmanAC.Selector
592 |         ///     The table selector.
593 |         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
594 |         /// case JPEG.DecodingError.undefinedScanQuantizationReference(_:)
595 |         ///     A quantization table selector in the first scan for a particular
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:599: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
597 |         /// - _ : JPEG.Table.Quantization.Selector
598 |         ///     The table selector.
599 |         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
600 |         /// case JPEG.DecodingError.invalidScanQuantizationPrecision(_:)
601 |         ///     A quantization table had the wrong precision mode for the image
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 | }
[19/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 |
[20/68] Compiling JPEG jpeg.swift
[21/68] Compiling JPEG encode.swift
[22/68] Compiling JPEG debug.swift
[23/68] Compiling JPEG common.swift
[24/68] Compiling JPEG decode.swift
[25/68] Emitting module JPEG
/host/spi-builder-workspace/sources/jpeg/error.swift:229: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
227 |         /// - _ : JPEG.Process
228 |         ///     The coding process specified by the frame header.
229 |         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
230 |         /// case JPEG.ParsingError.invalidFrameComponentSamplingFactor(_:_:)
231 |         ///     A component in a frame header had an invalid sampling factor.
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:258: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
256 |         /// - _ : JPEG.Process
257 |         ///     The coding process specified by the frame header.
258 |         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
259 |         /// case JPEG.ParsingError.invalidScanHuffmanACSelector(_:_:)
260 |         ///     A component in a frame header segment used an AC huffman 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:266: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
264 |         /// - _ : JPEG.Process
265 |         ///     The coding process specified by the frame header.
266 |         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
267 |         /// case JPEG.ParsingError.invalidScanComponentCount(_:_:)
268 |         ///     A scan header had more that the maximum allowed number of components
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:587: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
585 |         /// - _ : JPEG.Table.HuffmanDC.Selector
586 |         ///     The table selector.
587 |         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
588 |         /// case JPEG.DecodingError.undefinedScanHuffmanACReference(_:)
589 |         ///     An AC huffman table selector in a scan referenced a 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:593: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
591 |         /// - _ : JPEG.Table.HuffmanAC.Selector
592 |         ///     The table selector.
593 |         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
594 |         /// case JPEG.DecodingError.undefinedScanQuantizationReference(_:)
595 |         ///     A quantization table selector in the first scan for a particular
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:599: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
597 |         /// - _ : JPEG.Table.Quantization.Selector
598 |         ///     The table selector.
599 |         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
600 |         /// case JPEG.DecodingError.invalidScanQuantizationPrecision(_:)
601 |         ///     A quantization table had the wrong precision mode for the image
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/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 |
[27/95] Emitting module fuzzer
[28/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)
[29/95] Compiling encode_basic main.swift
/host/spi-builder-workspace/examples/encode-basic/main.swift:5:29: error: cannot find 'System' in scope
 3 | let path:String          = "examples/encode-basic/karlie-milan-sp12-2011",
 4 |     size:(x:Int, y:Int)  = (400, 665)
 5 | guard let rgb:[JPEG.RGB] = (System.File.Source.open(path: "\(path).rgb")
   |                             `- error: cannot find 'System' in scope
 6 | {
 7 |     guard let data:[UInt8] = $0.read(count: 3 * size.x * size.y)
/host/spi-builder-workspace/examples/encode-basic/main.swift:48:10: error: generic parameter 'Color' could not be inferred
46 |     let jfif:JPEG.JFIF = .init(version: .v1_2, density: (1, 1, .centimeters))
47 |     let image:JPEG.Data.Rectangular<JPEG.Common> =
48 |         .pack(size: size, layout: layout, metadata: [.jfif(jfif)], pixels: rgb)
   |          `- error: generic parameter 'Color' could not be inferred
49 |
50 |     for level:Double in [0.0, 0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]
/host/spi-builder-workspace/sources/jpeg/encode.swift:456:10: note: in call to function 'pack(size:layout:metadata:pixels:)'
 454 |     @_specialize(where Color == JPEG.RGB, Format == JPEG.Common)
 455 |     public static
 456 |     func pack<Color>(size:(x:Int, y:Int),
     |          `- note: in call to function 'pack(size:layout:metadata:pixels:)'
 457 |         layout:JPEG.Layout<Format>,
 458 |         metadata:[JPEG.Metadata],
/host/spi-builder-workspace/examples/encode-basic/main.swift:52:19: error: instance method 'compress(stream:quanta:)' requires that 'String' conform to '_JPEGBytestreamDestination'
50 |     for level:Double in [0.0, 0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]
51 |     {
52 |         try image.compress(path: "\(path)-\(factor.name)-\(level).jpg", quanta:
   |                   `- error: instance method 'compress(stream:quanta:)' requires that 'String' conform to '_JPEGBytestreamDestination'
53 |         [
54 |             0: JPEG.CompressionLevel.luminance(  level).quanta,
/host/spi-builder-workspace/sources/jpeg/encode.swift:2031:10: note: where 'Destination' = 'String'
2029 |     /// ## (0:rectangular-save-image)
2030 |     public
2031 |     func compress<Destination>(stream:inout Destination,
     |          `- note: where 'Destination' = 'String'
2032 |         quanta:[JPEG.Table.Quantization.Key: [UInt16]]) throws
2033 |         where Destination:JPEG.Bytestream.Destination
/host/spi-builder-workspace/examples/encode-basic/main.swift:52:27: error: incorrect argument label in call (have 'path:quanta:', expected 'stream:quanta:')
50 |     for level:Double in [0.0, 0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]
51 |     {
52 |         try image.compress(path: "\(path)-\(factor.name)-\(level).jpg", quanta:
   |                           `- error: incorrect argument label in call (have 'path:quanta:', expected 'stream:quanta:')
53 |         [
54 |             0: JPEG.CompressionLevel.luminance(  level).quanta,
error: emit-module command failed with exit code 1 (use -v to see invocation)
[30/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)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/95] Emitting module encode_basic
/host/spi-builder-workspace/examples/encode-basic/main.swift:5:29: error: cannot find 'System' in scope
 3 | let path:String          = "examples/encode-basic/karlie-milan-sp12-2011",
 4 |     size:(x:Int, y:Int)  = (400, 665)
 5 | guard let rgb:[JPEG.RGB] = (System.File.Source.open(path: "\(path).rgb")
   |                             `- error: cannot find 'System' in scope
 6 | {
 7 |     guard let data:[UInt8] = $0.read(count: 3 * size.x * size.y)
/host/spi-builder-workspace/examples/encode-basic/main.swift:48:10: error: generic parameter 'Color' could not be inferred
46 |     let jfif:JPEG.JFIF = .init(version: .v1_2, density: (1, 1, .centimeters))
47 |     let image:JPEG.Data.Rectangular<JPEG.Common> =
48 |         .pack(size: size, layout: layout, metadata: [.jfif(jfif)], pixels: rgb)
   |          `- error: generic parameter 'Color' could not be inferred
49 |
50 |     for level:Double in [0.0, 0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]
/host/spi-builder-workspace/sources/jpeg/encode.swift:456:10: note: in call to function 'pack(size:layout:metadata:pixels:)'
 454 |     @_specialize(where Color == JPEG.RGB, Format == JPEG.Common)
 455 |     public static
 456 |     func pack<Color>(size:(x:Int, y:Int),
     |          `- note: in call to function 'pack(size:layout:metadata:pixels:)'
 457 |         layout:JPEG.Layout<Format>,
 458 |         metadata:[JPEG.Metadata],
/host/spi-builder-workspace/examples/encode-basic/main.swift:52:27: error: incorrect argument label in call (have 'path:quanta:', expected 'stream:quanta:')
50 |     for level:Double in [0.0, 0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]
51 |     {
52 |         try image.compress(path: "\(path)-\(factor.name)-\(level).jpg", quanta:
   |                           `- error: incorrect argument label in call (have 'path:quanta:', expected 'stream:quanta:')
53 |         [
54 |             0: JPEG.CompressionLevel.luminance(  level).quanta,
/host/spi-builder-workspace/examples/encode-basic/main.swift:52:19: error: instance method 'compress(stream:quanta:)' requires that 'String' conform to '_JPEGBytestreamDestination'
50 |     for level:Double in [0.0, 0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]
51 |     {
52 |         try image.compress(path: "\(path)-\(factor.name)-\(level).jpg", quanta:
   |                   `- error: instance method 'compress(stream:quanta:)' requires that 'String' conform to '_JPEGBytestreamDestination'
53 |         [
54 |             0: JPEG.CompressionLevel.luminance(  level).quanta,
/host/spi-builder-workspace/sources/jpeg/encode.swift:2031:10: note: where 'Destination' = 'String'
2029 |     /// ## (0:rectangular-save-image)
2030 |     public
2031 |     func compress<Destination>(stream:inout Destination,
     |          `- note: where 'Destination' = 'String'
2032 |         quanta:[JPEG.Table.Quantization.Key: [UInt16]]) throws
2033 |         where Destination:JPEG.Bytestream.Destination
[32/95] Compiling fuzzer main.swift
/host/spi-builder-workspace/tests/fuzz/main.swift:88:37: error: instance method 'compress(stream:)' requires that 'String' conform to '_JPEGBytestreamDestination'
 86 |         ])
 87 |
 88 |     guard let _:Void = try spectral.compress(path: path)
    |                                     `- error: instance method 'compress(stream:)' requires that 'String' conform to '_JPEGBytestreamDestination'
 89 |     else
 90 |     {
/host/spi-builder-workspace/sources/jpeg/encode.swift:1918:10: note: where 'Destination' = 'String'
1916 |     /// ## (1:spectral-save-image)
1917 |     public
1918 |     func compress<Destination>(stream:inout Destination) throws
     |          `- note: where 'Destination' = 'String'
1919 |         where Destination:JPEG.Bytestream.Destination
1920 |     {
/host/spi-builder-workspace/tests/fuzz/main.swift:88:45: error: incorrect argument label in call (have 'path:', expected 'stream:')
 86 |         ])
 87 |
 88 |     guard let _:Void = try spectral.compress(path: path)
    |                                             `- error: incorrect argument label in call (have 'path:', expected 'stream:')
 89 |     else
 90 |     {
/host/spi-builder-workspace/tests/fuzz/main.swift:121:35: error: extra argument 'path' in call
119 |
120 |         guard let rectangular:JPEG.Data.Rectangular<JPEG.Common> =
121 |             try .decompress(path: path)
    |                                   `- error: extra argument 'path' in call
122 |         else
123 |         {
[33/95] Compiling fuzzer output.swift
[34/95] Compiling rotate main.swift
/host/spi-builder-workspace/examples/rotate/main.swift:93:73: error: incorrect argument label in call (have 'path:', expected 'stream:')
 91 | func rotate(_ rotation:Rotation, input:String, output:String) throws
 92 | {
 93 |     guard var original:JPEG.Data.Spectral<JPEG.Common> = try .decompress(path: input)
    |                                                                         `- error: incorrect argument label in call (have 'path:', expected 'stream:')
 94 |     else
 95 |     {
/host/spi-builder-workspace/examples/rotate/main.swift:146:52: error: type of expression is ambiguous without a type annotation
144 |     }
145 |
146 |     var rotated:JPEG.Data.Spectral<JPEG.Common> = .init(
    |                                                    `- error: type of expression is ambiguous without a type annotation
147 |         size:       size,
148 |         layout:     original.layout,
/host/spi-builder-workspace/examples/rotate/main.swift:191:44: error: incorrect argument label in call (have 'path:', expected 'stream:')
189 |     }
190 |
191 |     guard let _:Void = try rotated.compress(path: output)
    |                                            `- error: incorrect argument label in call (have 'path:', expected 'stream:')
192 |     else
193 |     {
/host/spi-builder-workspace/examples/rotate/main.swift:191:36: error: instance method 'compress(stream:)' requires that 'String' conform to '_JPEGBytestreamDestination'
189 |     }
190 |
191 |     guard let _:Void = try rotated.compress(path: output)
    |                                    `- error: instance method 'compress(stream:)' requires that 'String' conform to '_JPEGBytestreamDestination'
192 |     else
193 |     {
/host/spi-builder-workspace/sources/jpeg/encode.swift:1918:10: note: where 'Destination' = 'String'
1916 |     /// ## (1:spectral-save-image)
1917 |     public
1918 |     func compress<Destination>(stream:inout Destination) throws
     |          `- note: where 'Destination' = 'String'
1919 |         where Destination:JPEG.Bytestream.Destination
1920 |     {
[35/95] Emitting module rotate
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/44] Write swift-version-24593BA9C3E375BF.txt
[2/52] Compiling JPEG common.swift
[3/53] 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 |
[4/53] 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 |
[5/53] Compiling JPEG metadata.swift
[6/53] Compiling JPEG error.swift
[7/53] Compiling JPEG jpeg.swift
[8/53] Compiling JPEG encode.swift
[9/53] Compiling JPEG debug.swift
[10/53] Compiling JPEG decode.swift
[11/59] Wrapping AST for JPEG for debugging
[13/78] Emitting module fuzzer
[14/79] Compiling regression_test result.swift
[15/80] Emitting module integration_test
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/80] 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)
[17/80] 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)
/host/spi-builder-workspace/tests/regression/tests.swift:43:88: error: extra argument 'path' in call
 41 |         do
 42 |         {
 43 |             guard let image:JPEG.Data.Rectangular<JPEG.Common> = try .decompress(path: path)
    |                                                                                        `- error: extra argument 'path' in call
 44 |             else
 45 |             {
[18/80] Compiling integration_test result.swift
/host/spi-builder-workspace/tests/unit/tests.swift:3:1: warning: extension declares a conformance of imported type 'DC' to imported protocol 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'JPEG' introduce this conformance in the future
  1 | @testable import JPEG
  2 |
  3 | extension JPEG.Bitstream.Symbol.DC:ExpressibleByIntegerLiteral
    | |- warning: extension declares a conformance of imported type 'DC' to imported protocol 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'JPEG' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
  4 | {
  5 |     public
BUILD FAILURE 6.1 wasm