The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-png, reference 4.5.1 (8a0bcd), with Swift 6.3 for Wasm on 16 Apr 2026 01:29:09 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tayloraswift/swift-png.git
Reference: 4.5.1
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-png
 * tag               4.5.1      -> FETCH_HEAD
HEAD is now at 8a0bcd4 Merge pull request #93 from tayloraswift/android
Cloned https://github.com/tayloraswift/swift-png.git
Revision (git rev-parse @):
8a0bcd4df5e4b307c804937776a56dd6ecdf6396
SUCCESS checkout https://github.com/tayloraswift/swift-png.git at 4.5.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/tayloraswift/swift-png.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/ordo-one/dollup
Fetching https://github.com/rarestype/h
[1/23] Fetching dollup
[13/1256] Fetching dollup, h
Fetched https://github.com/ordo-one/dollup from cache (0.20s)
Fetched https://github.com/rarestype/h from cache (0.22s)
Computing version for https://github.com/rarestype/h
Computed https://github.com/rarestype/h at 1.0.1 (0.70s)
Computing version for https://github.com/ordo-one/dollup
Computed https://github.com/ordo-one/dollup at 1.0.4 (0.44s)
Creating working copy for https://github.com/rarestype/h
Working copy of https://github.com/rarestype/h resolved at 1.0.1
Creating working copy for https://github.com/ordo-one/dollup
Working copy of https://github.com/ordo-one/dollup resolved at 1.0.4
Downloading binary artifact https://download.rarestype.com/dollup/1.0.4/Linux-x86_64/dollup.artifactbundle.zip
[4098/13109709] Downloading https://download.rarestype.com/dollup/1.0.4/Linux-x86_64/dollup.artifactbundle.zip
Downloaded https://download.rarestype.com/dollup/1.0.4/Linux-x86_64/dollup.artifactbundle.zip (1.58s)
[1/1] Compiling plugin DollupPlugin
Building for debugging...
[1/65] Write sources
[20/65] Write swift-version-24593BA9C3E375BF.txt
[22/67] Compiling BaseDigits BaseDigits.swift
[23/67] Emitting module BaseDigits
[24/68] Wrapping AST for BaseDigits for debugging
[26/73] Compiling Base16 Base16.Values.swift
[27/73] Emitting module Base16
[28/73] Compiling Base16 Base16.LowercaseDigits.swift
[29/73] Compiling Base16 Base16.UppercaseDigits.swift
[30/73] Compiling Base16 Base16.swift
[31/74] Wrapping AST for Base16 for debugging
[33/76] Emitting module CRC
[34/76] Compiling CRC CRC32.swift
[35/77] Wrapping AST for CRC for debugging
[37/130] Emitting module LZ77
[38/137] Compiling LZ77 F14.District.Index.swift
[39/137] Compiling LZ77 F14.District.swift
[40/137] Compiling LZ77 F14.Hash.swift
[41/137] Compiling LZ77 F14.HashTable.swift
[42/137] Compiling LZ77 F14.swift
[43/137] Compiling LZ77 FixedWidthInteger (ext).swift
[44/137] Compiling LZ77 Gzip.Deflator.swift
[45/137] Compiling LZ77 Gzip.Format.Integral.swift
[46/137] Compiling LZ77 LZ77.BlockShape.swift
[47/137] Compiling LZ77 LZ77.BlockState.swift
[48/137] Compiling LZ77 LZ77.BlockType.swift
[49/137] Compiling LZ77 LZ77.DecompressionError.swift
[50/137] Compiling LZ77 LZ77.Inflator.swift
[51/137] Compiling LZ77 LZ77.InflatorBuffers.Stream.swift
[52/137] Compiling LZ77 LZ77.InflatorBuffers.swift
[53/137] Compiling LZ77 LZ77.InflatorIn.swift
[54/137] Compiling LZ77 LZ77.InflatorOut.swift
[55/137] Compiling LZ77 LZ77.InflatorState.swift
[56/137] Compiling LZ77 LZ77.InflatorTables.swift
[57/137] Compiling LZ77 LZ77.StreamHeader.swift
[58/137] Compiling LZ77 LZ77.StreamHeaderError.swift
[59/137] Compiling LZ77 LZ77.Composites.swift
[60/137] Compiling LZ77 LZ77.Reversed.swift
[61/137] Compiling LZ77 LZ77.swift
[62/137] Compiling LZ77 SIMD16 (ext).swift
[63/137] Compiling LZ77 LZ77.Format.swift
[64/137] Compiling LZ77 LZ77.FormatType.swift
[65/137] Compiling LZ77 LZ77.MRC32.swift
[66/137] Compiling LZ77 LZ77.StreamIntegral.swift
[67/137] Compiling LZ77 Gzip.Format.swift
[68/137] Compiling LZ77 Gzip.Inflator.swift
[69/137] Compiling LZ77 Gzip.InflatorState.swift
[70/137] Compiling LZ77 Gzip.StreamHeader.swift
[71/137] Compiling LZ77 Gzip.StreamHeaderError.swift
[72/137] Compiling LZ77 Gzip.swift
[73/137] Compiling LZ77 LZ77.Codeword.swift
[74/137] Compiling LZ77 LZ77.Distance.swift
[75/137] Compiling LZ77 LZ77.Heap.swift
[76/137] Compiling LZ77 LZ77.HuffmanPattern.swift
[77/137] Compiling LZ77 LZ77.HuffmanTree.swift
[78/137] Compiling LZ77 LZ77.Metaword.swift
[79/137] Compiling LZ77 LZ77.RunLiteral.swift
[80/137] Compiling LZ77 LZ77.BlockMetadata.swift
[81/137] Compiling LZ77 LZ77.Decades.swift
[82/137] Compiling LZ77 LZ77.Deflator.swift
[83/137] Compiling LZ77 LZ77.DeflatorBuffers.Stream.swift
[84/137] Compiling LZ77 LZ77.DeflatorBuffers.swift
[85/137] Compiling LZ77 LZ77.DeflatorDicing.Node.swift
[86/137] Compiling LZ77 LZ77.DeflatorDicing.swift
[87/137] Compiling LZ77 LZ77.DeflatorIn.swift
[88/137] Compiling LZ77 LZ77.DeflatorMatches.Depths.swift
[89/137] Compiling LZ77 LZ77.DeflatorMatches.swift
[90/137] Compiling LZ77 LZ77.DeflatorOut.swift
[91/137] Compiling LZ77 LZ77.DeflatorSearch.swift
[92/137] Compiling LZ77 LZ77.DeflatorTables.swift
[93/137] Compiling LZ77 LZ77.DeflatorTerm.Meta.swift
[94/137] Compiling LZ77 LZ77.DeflatorTerm.swift
[95/137] Compiling LZ77 LZ77.DeflatorWindow.Element.swift
[96/137] Compiling LZ77 LZ77.DeflatorWindow.swift
[97/138] Wrapping AST for LZ77 for debugging
[99/182] Compiling PNG PNG.Gamma.swift
[100/182] Compiling PNG PNG.Header.swift
[101/182] Compiling PNG PNG.Histogram.swift
[102/182] Compiling PNG PNG.Palette.swift
[103/182] Compiling PNG PNG.ParsingError.swift
[104/182] Compiling PNG PNG.Percentmille.swift
[105/188] Emitting module PNG
/host/spi-builder-workspace/Sources/PNG/System.swift:22:5: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 20 | #else
 21 | #warning(
 22 |     """
    |     `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 23 |     unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 24 |     """
[106/188] Compiling PNG PNG.DecodingError.swift
[107/188] Compiling PNG PNG.Metadata.swift
[108/188] Compiling PNG PNG.Standard.swift
[109/188] Compiling PNG PNG.Encoder.Pass.swift
[110/188] Compiling PNG PNG.Encoder.swift
[111/188] Compiling PNG PNG.FormattingError.swift
[112/188] Compiling PNG PNG.PhysicalDimensions.swift
[113/188] Compiling PNG PNG.SignificantBits.Case.swift
[114/188] Compiling PNG PNG.SignificantBits.swift
[115/188] Compiling PNG PNG.SuggestedPalette.Entries.swift
[116/188] Compiling PNG PNG.SuggestedPalette.swift
[117/188] Compiling PNG PNG.Text.swift
[118/188] Compiling PNG PNG.TimeModified.swift
/host/spi-builder-workspace/Sources/PNG/System.swift:22:5: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 20 | #else
 21 | #warning(
 22 |     """
    |     `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 23 |     unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 24 |     """
[119/188] Compiling PNG PNG.Transparency.Case.swift
/host/spi-builder-workspace/Sources/PNG/System.swift:22:5: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 20 | #else
 21 | #warning(
 22 |     """
    |     `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 23 |     unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 24 |     """
[120/188] Compiling PNG PNG.Transparency.swift
/host/spi-builder-workspace/Sources/PNG/System.swift:22:5: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 20 | #else
 21 | #warning(
 22 |     """
    |     `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 23 |     unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 24 |     """
[121/188] Compiling PNG System.swift
/host/spi-builder-workspace/Sources/PNG/System.swift:22:5: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 20 | #else
 21 | #warning(
 22 |     """
    |     `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 23 |     unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 24 |     """
[122/188] Compiling PNG UnsafeMutableBufferPointer (ext).swift
/host/spi-builder-workspace/Sources/PNG/System.swift:22:5: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 20 | #else
 21 | #warning(
 22 |     """
    |     `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 23 |     unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 24 |     """
[123/188] Compiling PNG __Entrypoint.swift
/host/spi-builder-workspace/Sources/PNG/System.swift:22:5: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 20 | #else
 21 | #warning(
 22 |     """
    |     `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 23 |     unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 24 |     """
[124/188] Compiling PNG Array (ext).swift
[125/188] Compiling PNG ArraySlice (ext).swift
[126/188] Compiling PNG PNG.Color.swift
[127/188] Compiling PNG PNG.RGBA.swift
[128/188] Compiling PNG PNG.VA.swift
[129/188] Compiling PNG PNG.Context.swift
[130/188] Compiling PNG PNG.Decoder.swift
[131/188] Compiling PNG PNG.BytestreamDestination.swift
[132/188] Compiling PNG PNG.BytestreamSource.swift
[133/188] Compiling PNG PNG.Chunk.swift
[134/188] Compiling PNG PNG.LexingError.swift
[135/188] Compiling PNG PNG.Error.swift
[136/188] Compiling PNG PNG.Image.swift
[137/188] Compiling PNG PNG.Format.Pixel.swift
[138/188] Compiling PNG PNG.Format.swift
[139/188] Compiling PNG PNG.Layout.swift
[140/188] Compiling PNG General.swift
[141/188] Compiling PNG LZ77.DecompressionError (ext).swift
[142/188] Compiling PNG LZ77.DeflateHeaderError (ext).swift
[143/188] Compiling PNG PNG.swift
[144/188] Compiling PNG PNG.Background.Case.swift
[145/188] Compiling PNG PNG.Background.swift
[146/188] Compiling PNG PNG.Chromaticity.swift
[147/188] Compiling PNG PNG.ColorProfile.swift
[148/188] Compiling PNG PNG.ColorRendering.swift
[149/196] Wrapping AST for PNG for debugging
[151/206] Compiling PNGDecompressionBenchmarks Main.swift
/host/spi-builder-workspace/Benchmarks/Decompression/Swift/Main.swift:26:5: warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 24 | #else
 25 | #warning(
 26 |     """
    |     `- warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 27 |     clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 28 |     """
[152/206] Emitting module PNGDecompressionBenchmarks
/host/spi-builder-workspace/Benchmarks/Decompression/Swift/Main.swift:26:5: warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 24 | #else
 25 | #warning(
 26 |     """
    |     `- warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 27 |     clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 28 |     """
[153/206] Compiling StreamingGzip StreamingGzip.swift
/host/spi-builder-workspace/Snippets/LZ77/StreamingGzip.swift:8:5: error: cannot find 'System' in scope
 6 | guard
 7 | let original: [UInt8] = (
 8 |     System.File.Source.open(path: "\(path).gz") {
   |     `- error: cannot find 'System' in scope
 9 |         (source: inout System.File.Source) -> [UInt8]? in
10 |
/host/spi-builder-workspace/Snippets/LZ77/StreamingGzip.swift:9:24: error: cannot find type 'System' in scope
 7 | let original: [UInt8] = (
 8 |     System.File.Source.open(path: "\(path).gz") {
 9 |         (source: inout System.File.Source) -> [UInt8]? in
   |                        `- error: cannot find type 'System' in scope
10 |
11 |         guard let count: Int = source.count else {
/host/spi-builder-workspace/Snippets/LZ77/StreamingGzip.swift:33:16: error: cannot find 'System' in scope
31 |
32 | //  snippet.WRITE
33 | let _: Void? = System.File.Destination.open(path: "\(path).txt.gz") {
   |                `- error: cannot find 'System' in scope
34 |     while let part: [UInt8] = deflator.pull() {
35 |         $0.write(part)
[154/206] Compiling PNGCompressionBenchmarks Main.swift
/host/spi-builder-workspace/Benchmarks/Compression/Swift/Main.swift:26:5: warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 24 | #else
 25 | #warning(
 26 |     """
    |     `- warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 27 |     clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 28 |     """
[155/206] Emitting module PNGCompressionBenchmarks
/host/spi-builder-workspace/Benchmarks/Compression/Swift/Main.swift:26:5: warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 24 | #else
 25 | #warning(
 26 |     """
    |     `- warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 27 |     clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 28 |     """
error: emit-module command failed with exit code 1 (use -v to see invocation)
[156/208] Emitting module StreamingGzip
/host/spi-builder-workspace/Snippets/LZ77/StreamingGzip.swift:8:5: error: cannot find 'System' in scope
 6 | guard
 7 | let original: [UInt8] = (
 8 |     System.File.Source.open(path: "\(path).gz") {
   |     `- error: cannot find 'System' in scope
 9 |         (source: inout System.File.Source) -> [UInt8]? in
10 |
/host/spi-builder-workspace/Snippets/LZ77/StreamingGzip.swift:9:24: error: cannot find type 'System' in scope
 7 | let original: [UInt8] = (
 8 |     System.File.Source.open(path: "\(path).gz") {
 9 |         (source: inout System.File.Source) -> [UInt8]? in
   |                        `- error: cannot find type 'System' in scope
10 |
11 |         guard let count: Int = source.count else {
/host/spi-builder-workspace/Snippets/LZ77/StreamingGzip.swift:33:16: error: cannot find 'System' in scope
31 |
32 | //  snippet.WRITE
33 | let _: Void? = System.File.Destination.open(path: "\(path).txt.gz") {
   |                `- error: cannot find 'System' in scope
34 |     while let part: [UInt8] = deflator.pull() {
35 |         $0.write(part)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[157/209] Emitting module iPhoneOptimized
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:9:39: error: incorrect argument label in call (have 'path:', expected 'stream:')
 7 |
 8 | guard
 9 | var image: PNG.Image = try .decompress(path: "\(path).png") else {
   |                                       `- error: incorrect argument label in call (have 'path:', expected 'stream:')
10 |     fatalError("failed to open file '\(path).png'")
11 | }
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:19:7: error: cannot infer key path type from context; consider explicitly specifying a root type
17 | let rgba: [PNG.RGBA<UInt8>] = image.unpack(
18 |     as: PNG.RGBA<UInt8>.self
19 | ).map(\.straightened)
   |       `- error: cannot infer key path type from context; consider explicitly specifying a root type
20 |
21 | //  snippet.INSPECT_STORAGE
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:31:14: error: generic parameter 'Destination' could not be inferred
29 | )
30 |
31 | try standard.compress(path: "\(path)-rgb8.png")
   |              `- error: generic parameter 'Destination' could not be inferred
32 |
33 | //  snippet.REENCODE_BGR
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:522:17: note: in call to function 'compress(stream:level:hint:)'
 520 |     ///     it to `1`. Likewise, setting it to a value greater than `2147483647`
 521 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 522 |     public func compress<Destination>(
     |                 `- note: in call to function 'compress(stream:level:hint:)'
 523 |         stream: inout Destination,
 524 |         level: Int = 9,
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:31:29: error: extra argument 'path' in call
29 | )
30 |
31 | try standard.compress(path: "\(path)-rgb8.png")
   |                             `- error: extra argument 'path' in call
32 |
33 | //  snippet.REENCODE_BGR
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:31:23: error: missing argument for parameter 'stream' in call
29 | )
30 |
31 | try standard.compress(path: "\(path)-rgb8.png")
   |                       `- error: missing argument for parameter 'stream' in call
32 |
33 | //  snippet.REENCODE_BGR
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:522:17: note: 'compress(stream:level:hint:)' declared here
 520 |     ///     it to `1`. Likewise, setting it to a value greater than `2147483647`
 521 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 522 |     public func compress<Destination>(
     |                 `- note: 'compress(stream:level:hint:)' declared here
 523 |         stream: inout Destination,
 524 |         level: Int = 9,
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:40:26: error: extra argument 'path' in call
38 | )
39 |
40 | try apple.compress(path: "\(path)-bgr8.png")
   |                          `- error: extra argument 'path' in call
41 |
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:40:20: error: missing argument for parameter 'stream' in call
38 | )
39 |
40 | try apple.compress(path: "\(path)-bgr8.png")
   |                    `- error: missing argument for parameter 'stream' in call
41 |
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:522:17: note: 'compress(stream:level:hint:)' declared here
 520 |     ///     it to `1`. Likewise, setting it to a value greater than `2147483647`
 521 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 522 |     public func compress<Destination>(
     |                 `- note: 'compress(stream:level:hint:)' declared here
 523 |         stream: inout Destination,
 524 |         level: Int = 9,
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:40:11: error: generic parameter 'Destination' could not be inferred
38 | )
39 |
40 | try apple.compress(path: "\(path)-bgr8.png")
   |           `- error: generic parameter 'Destination' could not be inferred
41 |
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:522:17: note: in call to function 'compress(stream:level:hint:)'
 520 |     ///     it to `1`. Likewise, setting it to a value greater than `2147483647`
 521 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 522 |     public func compress<Destination>(
     |                 `- note: in call to function 'compress(stream:level:hint:)'
 523 |         stream: inout Destination,
 524 |         level: Int = 9,
[158/209] Compiling iPhoneOptimized iPhoneOptimized.swift
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:9:39: error: incorrect argument label in call (have 'path:', expected 'stream:')
 7 |
 8 | guard
 9 | var image: PNG.Image = try .decompress(path: "\(path).png") else {
   |                                       `- error: incorrect argument label in call (have 'path:', expected 'stream:')
10 |     fatalError("failed to open file '\(path).png'")
11 | }
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:19:7: error: cannot infer key path type from context; consider explicitly specifying a root type
17 | let rgba: [PNG.RGBA<UInt8>] = image.unpack(
18 |     as: PNG.RGBA<UInt8>.self
19 | ).map(\.straightened)
   |       `- error: cannot infer key path type from context; consider explicitly specifying a root type
20 |
21 | //  snippet.INSPECT_STORAGE
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:31:14: error: generic parameter 'Destination' could not be inferred
29 | )
30 |
31 | try standard.compress(path: "\(path)-rgb8.png")
   |              `- error: generic parameter 'Destination' could not be inferred
32 |
33 | //  snippet.REENCODE_BGR
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:522:17: note: in call to function 'compress(stream:level:hint:)'
 520 |     ///     it to `1`. Likewise, setting it to a value greater than `2147483647`
 521 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 522 |     public func compress<Destination>(
     |                 `- note: in call to function 'compress(stream:level:hint:)'
 523 |         stream: inout Destination,
 524 |         level: Int = 9,
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:31:29: error: extra argument 'path' in call
29 | )
30 |
31 | try standard.compress(path: "\(path)-rgb8.png")
   |                             `- error: extra argument 'path' in call
32 |
33 | //  snippet.REENCODE_BGR
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:31:23: error: missing argument for parameter 'stream' in call
29 | )
30 |
31 | try standard.compress(path: "\(path)-rgb8.png")
   |                       `- error: missing argument for parameter 'stream' in call
32 |
33 | //  snippet.REENCODE_BGR
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:522:17: note: 'compress(stream:level:hint:)' declared here
 520 |     ///     it to `1`. Likewise, setting it to a value greater than `2147483647`
 521 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 522 |     public func compress<Destination>(
     |                 `- note: 'compress(stream:level:hint:)' declared here
 523 |         stream: inout Destination,
 524 |         level: Int = 9,
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:40:11: error: generic parameter 'Destination' could not be inferred
38 | )
39 |
40 | try apple.compress(path: "\(path)-bgr8.png")
   |           `- error: generic parameter 'Destination' could not be inferred
41 |
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:522:17: note: in call to function 'compress(stream:level:hint:)'
 520 |     ///     it to `1`. Likewise, setting it to a value greater than `2147483647`
 521 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 522 |     public func compress<Destination>(
     |                 `- note: in call to function 'compress(stream:level:hint:)'
 523 |         stream: inout Destination,
 524 |         level: Int = 9,
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:40:26: error: extra argument 'path' in call
38 | )
39 |
40 | try apple.compress(path: "\(path)-bgr8.png")
   |                          `- error: extra argument 'path' in call
41 |
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:40:20: error: missing argument for parameter 'stream' in call
38 | )
39 |
40 | try apple.compress(path: "\(path)-bgr8.png")
   |                    `- error: missing argument for parameter 'stream' in call
41 |
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:522:17: note: 'compress(stream:level:hint:)' declared here
 520 |     ///     it to `1`. Likewise, setting it to a value greater than `2147483647`
 521 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 522 |     public func compress<Destination>(
     |                 `- note: 'compress(stream:level:hint:)' declared here
 523 |         stream: inout Destination,
 524 |         level: Int = 9,
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:190:33: error: extra argument 'path' in call
188 |     let _: [PNG.RGBA<UInt8>] = snapshot.unpack(as: PNG.RGBA<UInt8>.self)
189 |
190 |     try snapshot.compress(path: "\(path)-\(counter).png")
    |                                 `- error: extra argument 'path' in call
191 |     counter += 1
192 | }
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:190:27: error: missing argument for parameter 'stream' in call
188 |     let _: [PNG.RGBA<UInt8>] = snapshot.unpack(as: PNG.RGBA<UInt8>.self)
189 |
190 |     try snapshot.compress(path: "\(path)-\(counter).png")
    |                           `- error: missing argument for parameter 'stream' in call
191 |     counter += 1
192 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:522:17: note: 'compress(stream:level:hint:)' declared here
 520 |     ///     it to `1`. Likewise, setting it to a value greater than `2147483647`
 521 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 522 |     public func compress<Destination>(
     |                 `- note: 'compress(stream:level:hint:)' declared here
 523 |         stream: inout Destination,
 524 |         level: Int = 9,
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:190:18: error: generic parameter 'Destination' could not be inferred
188 |     let _: [PNG.RGBA<UInt8>] = snapshot.unpack(as: PNG.RGBA<UInt8>.self)
189 |
190 |     try snapshot.compress(path: "\(path)-\(counter).png")
    |                  `- error: generic parameter 'Destination' could not be inferred
191 |     counter += 1
192 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:522:17: note: in call to function 'compress(stream:level:hint:)'
 520 |     ///     it to `1`. Likewise, setting it to a value greater than `2147483647`
 521 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 522 |     public func compress<Destination>(
     |                 `- note: in call to function 'compress(stream:level:hint:)'
 523 |         stream: inout Destination,
 524 |         level: Int = 9,
BUILD FAILURE 6.3 wasm