The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-png, reference master (d444d9), with Swift 6.2 (beta) for Wasm on 22 Jun 2025 22:00:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tayloraswift/swift-png.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/tayloraswift/swift-png
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d444d98 Merge pull request #85 from tayloraswift/adopt-swift-testing
Cloned https://github.com/tayloraswift/swift-png.git
Revision (git rev-parse @):
d444d98aa32f022bf4a8e74b5a697c7ee856a6ad
SUCCESS checkout https://github.com/tayloraswift/swift-png.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/tayloraswift/swift-png.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/tayloraswift/swift-hash
[9/868] Fetching swift-hash
Fetched https://github.com/tayloraswift/swift-hash from cache (0.37s)
Computing version for https://github.com/tayloraswift/swift-hash
Computed https://github.com/tayloraswift/swift-hash at 0.7.1 (1.33s)
Creating working copy for https://github.com/tayloraswift/swift-hash
Working copy of https://github.com/tayloraswift/swift-hash resolved at 0.7.1
Building for debugging...
[0/64] Write sources
[19/64] Write swift-version-24593BA9C3E375BF.txt
[21/66] Emitting module BaseDigits
[22/66] Compiling BaseDigits BaseDigits.swift
[23/67] Wrapping AST for BaseDigits for debugging
[25/72] Compiling Base16 Base16.Values.swift
[26/72] Compiling Base16 Base16.LowercaseDigits.swift
[27/72] Compiling Base16 Base16.UppercaseDigits.swift
[28/72] Compiling Base16 Base16.swift
[29/72] Emitting module Base16
[30/74] Wrapping AST for Base16 for debugging
[32/75] Emitting module CRC
[33/75] Compiling CRC CRC32.swift
[34/76] Wrapping AST for CRC for debugging
[36/129] Compiling LZ77 LZ77.BlockShape.swift
[37/129] Compiling LZ77 LZ77.BlockState.swift
[38/129] Compiling LZ77 LZ77.BlockType.swift
[39/129] Compiling LZ77 LZ77.DecompressionError.swift
[40/129] Compiling LZ77 LZ77.Inflator.swift
[41/129] Compiling LZ77 LZ77.InflatorBuffers.Stream.swift
[42/129] Compiling LZ77 LZ77.InflatorBuffers.swift
[43/136] Compiling LZ77 F14.District.Index.swift
[44/136] Compiling LZ77 F14.District.swift
[45/136] Compiling LZ77 F14.Hash.swift
[46/136] Compiling LZ77 F14.HashTable.swift
[47/136] Compiling LZ77 F14.swift
[48/136] Compiling LZ77 FixedWidthInteger (ext).swift
[49/136] Compiling LZ77 Gzip.Deflator.swift
[50/136] Compiling LZ77 Gzip.Format.Integral.swift
[51/136] Compiling LZ77 LZ77.InflatorIn.swift
[52/136] Compiling LZ77 LZ77.InflatorOut.swift
[53/136] Compiling LZ77 LZ77.InflatorState.swift
[54/136] Compiling LZ77 LZ77.InflatorTables.swift
[55/136] Compiling LZ77 LZ77.StreamHeader.swift
[56/136] Compiling LZ77 LZ77.StreamHeaderError.swift
[57/136] Compiling LZ77 LZ77.Composites.swift
[58/136] Compiling LZ77 LZ77.Reversed.swift
[59/136] Compiling LZ77 LZ77.swift
[60/136] Compiling LZ77 SIMD16 (ext).swift
[61/136] Compiling LZ77 LZ77.Format.swift
[62/136] Compiling LZ77 LZ77.FormatType.swift
[63/136] Compiling LZ77 LZ77.MRC32.swift
[64/136] Compiling LZ77 LZ77.StreamIntegral.swift
[65/136] Compiling LZ77 LZ77.Distance.swift
[66/136] Compiling LZ77 LZ77.Heap.swift
[67/136] Compiling LZ77 LZ77.HuffmanPattern.swift
[68/136] Compiling LZ77 LZ77.HuffmanTree.swift
[69/136] Compiling LZ77 LZ77.Metaword.swift
[70/136] Compiling LZ77 LZ77.RunLiteral.swift
[71/136] Compiling LZ77 LZ77.BlockMetadata.swift
[72/136] Compiling LZ77 Gzip.Format.swift
[73/136] Compiling LZ77 Gzip.Inflator.swift
[74/136] Compiling LZ77 Gzip.InflatorState.swift
[75/136] Compiling LZ77 Gzip.StreamHeader.swift
[76/136] Compiling LZ77 Gzip.StreamHeaderError.swift
[77/136] Compiling LZ77 Gzip.swift
[78/136] Compiling LZ77 LZ77.Codeword.swift
[79/136] Compiling LZ77 LZ77.Decades.swift
[80/136] Compiling LZ77 LZ77.Deflator.swift
[81/136] Compiling LZ77 LZ77.DeflatorBuffers.Stream.swift
[82/136] Compiling LZ77 LZ77.DeflatorBuffers.swift
[83/136] Compiling LZ77 LZ77.DeflatorDicing.Node.swift
[84/136] Compiling LZ77 LZ77.DeflatorDicing.swift
[85/136] Compiling LZ77 LZ77.DeflatorIn.swift
[86/136] Compiling LZ77 LZ77.DeflatorMatches.Depths.swift
[87/136] Emitting module LZ77
[88/136] Compiling LZ77 LZ77.DeflatorMatches.swift
[89/136] Compiling LZ77 LZ77.DeflatorOut.swift
[90/136] Compiling LZ77 LZ77.DeflatorSearch.swift
[91/136] Compiling LZ77 LZ77.DeflatorTables.swift
[92/136] Compiling LZ77 LZ77.DeflatorTerm.Meta.swift
[93/136] Compiling LZ77 LZ77.DeflatorTerm.swift
[94/136] Compiling LZ77 LZ77.DeflatorWindow.Element.swift
[95/136] Compiling LZ77 LZ77.DeflatorWindow.swift
[96/137] Wrapping AST for LZ77 for debugging
[98/181] Compiling PNG PNG.Format.Pixel.swift
[99/181] Compiling PNG PNG.Format.swift
[100/181] Compiling PNG PNG.Layout.swift
[101/181] Compiling PNG General.swift
[102/181] Compiling PNG LZ77.DecompressionError (ext).swift
[103/181] Compiling PNG LZ77.DeflateHeaderError (ext).swift
[104/187] Compiling PNG PNG.DecodingError.swift
[105/187] Compiling PNG PNG.Metadata.swift
[106/187] Compiling PNG PNG.Standard.swift
[107/187] Compiling PNG PNG.Encoder.Pass.swift
[108/187] Compiling PNG PNG.Encoder.swift
[109/187] Compiling PNG PNG.FormattingError.swift
[110/187] Compiling PNG PNG.PhysicalDimensions.swift
[111/187] Compiling PNG PNG.SignificantBits.Case.swift
[112/187] Compiling PNG PNG.SignificantBits.swift
[113/187] Compiling PNG PNG.SuggestedPalette.Entries.swift
[114/187] Compiling PNG PNG.SuggestedPalette.swift
[115/187] Compiling PNG PNG.Text.swift
[116/187] Compiling PNG PNG.Gamma.swift
[117/187] Compiling PNG PNG.Header.swift
[118/187] Compiling PNG PNG.Histogram.swift
[119/187] Compiling PNG PNG.Palette.swift
[120/187] Compiling PNG PNG.ParsingError.swift
[121/187] Compiling PNG PNG.Percentmille.swift
[122/187] Emitting module PNG
/host/spi-builder-workspace/Sources/PNG/System.swift:17:14: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 15 |     import ucrt
 16 | #else
 17 |     #warning("unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)")
    |              `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 18 | #endif
 19 |
[123/187] Compiling PNG Array (ext).swift
[124/187] Compiling PNG ArraySlice (ext).swift
[125/187] Compiling PNG PNG.Color.swift
[126/187] Compiling PNG PNG.RGBA.swift
[127/187] Compiling PNG PNG.VA.swift
[128/187] Compiling PNG PNG.Context.swift
[129/187] Compiling PNG PNG.Decoder.swift
[130/187] Compiling PNG PNG.TimeModified.swift
/host/spi-builder-workspace/Sources/PNG/System.swift:17:14: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 15 |     import ucrt
 16 | #else
 17 |     #warning("unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)")
    |              `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 18 | #endif
 19 |
[131/187] Compiling PNG PNG.Transparency.Case.swift
/host/spi-builder-workspace/Sources/PNG/System.swift:17:14: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 15 |     import ucrt
 16 | #else
 17 |     #warning("unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)")
    |              `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 18 | #endif
 19 |
[132/187] Compiling PNG PNG.Transparency.swift
/host/spi-builder-workspace/Sources/PNG/System.swift:17:14: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 15 |     import ucrt
 16 | #else
 17 |     #warning("unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)")
    |              `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 18 | #endif
 19 |
[133/187] Compiling PNG System.swift
/host/spi-builder-workspace/Sources/PNG/System.swift:17:14: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 15 |     import ucrt
 16 | #else
 17 |     #warning("unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)")
    |              `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 18 | #endif
 19 |
[134/187] Compiling PNG UnsafeMutableBufferPointer (ext).swift
/host/spi-builder-workspace/Sources/PNG/System.swift:17:14: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 15 |     import ucrt
 16 | #else
 17 |     #warning("unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)")
    |              `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 18 | #endif
 19 |
[135/187] Compiling PNG __Entrypoint.swift
/host/spi-builder-workspace/Sources/PNG/System.swift:17:14: warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 15 |     import ucrt
 16 | #else
 17 |     #warning("unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)")
    |              `- warning: unsupported or untested platform (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 18 | #endif
 19 |
[136/187] Compiling PNG PNG.BytestreamDestination.swift
[137/187] Compiling PNG PNG.BytestreamSource.swift
[138/187] Compiling PNG PNG.Chunk.swift
[139/187] Compiling PNG PNG.LexingError.swift
[140/187] Compiling PNG PNG.Error.swift
[141/187] Compiling PNG PNG.Image.swift
[142/187] Compiling PNG PNG.swift
[143/187] Compiling PNG PNG.Background.Case.swift
[144/187] Compiling PNG PNG.Background.swift
[145/187] Compiling PNG PNG.Chromaticity.swift
[146/187] Compiling PNG PNG.ColorProfile.swift
[147/187] Compiling PNG PNG.ColorRendering.swift
[149/206] Compiling PNGDecompressionBenchmarks Main.swift
/host/spi-builder-workspace/Benchmarks/Decompression/Swift/Main.swift:27:14: warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 25 |
 26 | #else
 27 |     #warning("clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)")
    |              `- warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 28 | #endif
 29 |
[150/206] Emitting module PNGDecompressionBenchmarks
/host/spi-builder-workspace/Benchmarks/Decompression/Swift/Main.swift:27:14: warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 25 |
 26 | #else
 27 |     #warning("clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)")
    |              `- warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 28 | #endif
 29 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[152/207] Emitting module iPhoneOptimized
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:9:38: error: incorrect argument label in call (have 'path:', expected 'stream:')
 7 |
 8 | guard
 9 | var image:PNG.Image = try .decompress(path: "\(path).png")
   |                                      `- error: incorrect argument label in call (have 'path:', expected 'stream:')
10 | else
11 | {
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:20:35: error: cannot infer key path type from context; consider explicitly specifying a root type
18 | //  snippet.STRAIGHTEN
19 | let rgba:[PNG.RGBA<UInt8>] = image.unpack(
20 |     as: PNG.RGBA<UInt8>.self).map(\.straightened)
   |                                   `- error: cannot infer key path type from context; consider explicitly specifying a root type
21 |
22 | //  snippet.INSPECT_STORAGE
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:31:14: error: generic parameter 'Destination' could not be inferred
29 |     layout: .init(format: .rgb8(palette: [], fill: nil, key: nil)))
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:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:31:29: error: extra argument 'path' in call
29 |     layout: .init(format: .rgb8(palette: [], fill: nil, key: nil)))
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 |     layout: .init(format: .rgb8(palette: [], fill: nil, key: nil)))
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:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:39:26: error: extra argument 'path' in call
37 |     layout: .init(format: .bgr8(palette: [], fill: nil, key: nil)))
38 |
39 | try apple.compress(path: "\(path)-bgr8.png")
   |                          `- error: extra argument 'path' in call
40 |
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:39:20: error: missing argument for parameter 'stream' in call
37 |     layout: .init(format: .bgr8(palette: [], fill: nil, key: nil)))
38 |
39 | try apple.compress(path: "\(path)-bgr8.png")
   |                    `- error: missing argument for parameter 'stream' in call
40 |
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:39:11: error: generic parameter 'Destination' could not be inferred
37 |     layout: .init(format: .bgr8(palette: [], fill: nil, key: nil)))
38 |
39 | try apple.compress(path: "\(path)-bgr8.png")
   |           `- error: generic parameter 'Destination' could not be inferred
40 |
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
[153/207] Compiling iPhoneOptimized iPhoneOptimized.swift
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:9:38: error: incorrect argument label in call (have 'path:', expected 'stream:')
 7 |
 8 | guard
 9 | var image:PNG.Image = try .decompress(path: "\(path).png")
   |                                      `- error: incorrect argument label in call (have 'path:', expected 'stream:')
10 | else
11 | {
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:20:35: error: cannot infer key path type from context; consider explicitly specifying a root type
18 | //  snippet.STRAIGHTEN
19 | let rgba:[PNG.RGBA<UInt8>] = image.unpack(
20 |     as: PNG.RGBA<UInt8>.self).map(\.straightened)
   |                                   `- error: cannot infer key path type from context; consider explicitly specifying a root type
21 |
22 | //  snippet.INSPECT_STORAGE
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:31:29: error: extra argument 'path' in call
29 |     layout: .init(format: .rgb8(palette: [], fill: nil, key: nil)))
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 |     layout: .init(format: .rgb8(palette: [], fill: nil, key: nil)))
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:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:31:14: error: generic parameter 'Destination' could not be inferred
29 |     layout: .init(format: .rgb8(palette: [], fill: nil, key: nil)))
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:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:39:26: error: extra argument 'path' in call
37 |     layout: .init(format: .bgr8(palette: [], fill: nil, key: nil)))
38 |
39 | try apple.compress(path: "\(path)-bgr8.png")
   |                          `- error: extra argument 'path' in call
40 |
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:39:20: error: missing argument for parameter 'stream' in call
37 |     layout: .init(format: .bgr8(palette: [], fill: nil, key: nil)))
38 |
39 | try apple.compress(path: "\(path)-bgr8.png")
   |                    `- error: missing argument for parameter 'stream' in call
40 |
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/iPhoneOptimized.swift:39:11: error: generic parameter 'Destination' could not be inferred
37 |     layout: .init(format: .bgr8(palette: [], fill: nil, key: nil)))
38 |
39 | try apple.compress(path: "\(path)-bgr8.png")
   |           `- error: generic parameter 'Destination' could not be inferred
40 |
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
[154/207] Compiling PNGCompressionBenchmarks Main.swift
/host/spi-builder-workspace/Benchmarks/Compression/Swift/Main.swift:27:14: warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 25 |
 26 | #else
 27 |     #warning("clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)")
    |              `- warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 28 | #endif
 29 |
[155/207] Emitting module PNGCompressionBenchmarks
/host/spi-builder-workspace/Benchmarks/Compression/Swift/Main.swift:27:14: warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 25 |
 26 | #else
 27 |     #warning("clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)")
    |              `- warning: clock() function not imported for this platform, internal benchmarks not built (please open an issue at https://github.com/tayloraswift/swift-png/issues)
 28 | #endif
 29 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[157/208] Emitting module StreamingGzip
/host/spi-builder-workspace/Snippets/LZ77/StreamingGzip.swift:7:25: error: cannot find 'System' in scope
 5 |
 6 | guard
 7 | let original:[UInt8] = (System.File.Source.open(path: "\(path).gz")
   |                         `- error: cannot find 'System' in scope
 8 | {
 9 |     (source:inout System.File.Source) -> [UInt8]? in
/host/spi-builder-workspace/Snippets/LZ77/StreamingGzip.swift:9:19: error: cannot find type 'System' in scope
 7 | let original:[UInt8] = (System.File.Source.open(path: "\(path).gz")
 8 | {
 9 |     (source:inout System.File.Source) -> [UInt8]? in
   |                   `- error: cannot find type 'System' in scope
10 |
11 |     guard let count:Int = source.count
/host/spi-builder-workspace/Snippets/LZ77/StreamingGzip.swift:36:15: error: cannot find 'System' in scope
34 |
35 | //  snippet.WRITE
36 | let _:Void? = System.File.Destination.open(path: "\(path).txt.gz")
   |               `- error: cannot find 'System' in scope
37 | {
38 |     while let part:[UInt8] = deflator.pull()
[158/208] Compiling StreamingGzip StreamingGzip.swift
/host/spi-builder-workspace/Snippets/LZ77/StreamingGzip.swift:7:25: error: cannot find 'System' in scope
 5 |
 6 | guard
 7 | let original:[UInt8] = (System.File.Source.open(path: "\(path).gz")
   |                         `- error: cannot find 'System' in scope
 8 | {
 9 |     (source:inout System.File.Source) -> [UInt8]? in
/host/spi-builder-workspace/Snippets/LZ77/StreamingGzip.swift:9:19: error: cannot find type 'System' in scope
 7 | let original:[UInt8] = (System.File.Source.open(path: "\(path).gz")
 8 | {
 9 |     (source:inout System.File.Source) -> [UInt8]? in
   |                   `- error: cannot find type 'System' in scope
10 |
11 |     guard let count:Int = source.count
/host/spi-builder-workspace/Snippets/LZ77/StreamingGzip.swift:36:15: error: cannot find 'System' in scope
34 |
35 | //  snippet.WRITE
36 | let _:Void? = System.File.Destination.open(path: "\(path).txt.gz")
   |               `- error: cannot find 'System' in scope
37 | {
38 |     while let part:[UInt8] = deflator.pull()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[159/210] Emitting module OnlineDecoding
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:228:33: error: extra argument 'path' in call
226 |     let _:[PNG.RGBA<UInt8>] = snapshot.unpack(as: PNG.RGBA<UInt8>.self)
227 |
228 |     try snapshot.compress(path: "\(path)-\(counter).png")
    |                                 `- error: extra argument 'path' in call
229 |     counter += 1
230 | }
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:228:27: error: missing argument for parameter 'stream' in call
226 |     let _:[PNG.RGBA<UInt8>] = snapshot.unpack(as: PNG.RGBA<UInt8>.self)
227 |
228 |     try snapshot.compress(path: "\(path)-\(counter).png")
    |                           `- error: missing argument for parameter 'stream' in call
229 |     counter += 1
230 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:228:18: error: generic parameter 'Destination' could not be inferred
226 |     let _:[PNG.RGBA<UInt8>] = snapshot.unpack(as: PNG.RGBA<UInt8>.self)
227 |
228 |     try snapshot.compress(path: "\(path)-\(counter).png")
    |                  `- error: generic parameter 'Destination' could not be inferred
229 |     counter += 1
230 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:236:32: error: extra argument 'path' in call
234 | let progressive:PNG.Image = image.bindStorage(to: layout)
235 |
236 | try progressive.compress(path: "\(path)-progressive.png", hint: 1 << 12)
    |                                `- error: extra argument 'path' in call
237 |
238 | //  snippet.PROGRESSIVE
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:236:26: error: missing argument for parameter 'stream' in call
234 | let progressive:PNG.Image = image.bindStorage(to: layout)
235 |
236 | try progressive.compress(path: "\(path)-progressive.png", hint: 1 << 12)
    |                          `- error: missing argument for parameter 'stream' in call
237 |
238 | //  snippet.PROGRESSIVE
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:236:17: error: generic parameter 'Destination' could not be inferred
234 | let progressive:PNG.Image = image.bindStorage(to: layout)
235 |
236 | try progressive.compress(path: "\(path)-progressive.png", hint: 1 << 12)
    |                 `- error: generic parameter 'Destination' could not be inferred
237 |
238 | //  snippet.PROGRESSIVE
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:245:18: error: generic parameter 'Destination' could not be inferred
243 |     (snapshot:PNG.Image) in
244 |
245 |     try snapshot.compress(path: "\(path)-progressive-\(counter).png")
    |                  `- error: generic parameter 'Destination' could not be inferred
246 |     counter += 1
247 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:245:33: error: extra argument 'path' in call
243 |     (snapshot:PNG.Image) in
244 |
245 |     try snapshot.compress(path: "\(path)-progressive-\(counter).png")
    |                                 `- error: extra argument 'path' in call
246 |     counter += 1
247 | }
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:245:27: error: missing argument for parameter 'stream' in call
243 |     (snapshot:PNG.Image) in
244 |
245 |     try snapshot.compress(path: "\(path)-progressive-\(counter).png")
    |                           `- error: missing argument for parameter 'stream' in call
246 |     counter += 1
247 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:257:33: error: extra argument 'path' in call
255 |     (snapshot:PNG.Image) in
256 |
257 |     try snapshot.compress(path: "\(path)-progressive-overdrawn-\(counter).png")
    |                                 `- error: extra argument 'path' in call
258 |     counter += 1
259 | }
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:257:27: error: missing argument for parameter 'stream' in call
255 |     (snapshot:PNG.Image) in
256 |
257 |     try snapshot.compress(path: "\(path)-progressive-overdrawn-\(counter).png")
    |                           `- error: missing argument for parameter 'stream' in call
258 |     counter += 1
259 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:257:18: error: generic parameter 'Destination' could not be inferred
255 |     (snapshot:PNG.Image) in
256 |
257 |     try snapshot.compress(path: "\(path)-progressive-overdrawn-\(counter).png")
    |                  `- error: generic parameter 'Destination' could not be inferred
258 |     counter += 1
259 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
[160/210] Compiling OnlineDecoding OnlineDecoding.swift
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:228:33: error: extra argument 'path' in call
226 |     let _:[PNG.RGBA<UInt8>] = snapshot.unpack(as: PNG.RGBA<UInt8>.self)
227 |
228 |     try snapshot.compress(path: "\(path)-\(counter).png")
    |                                 `- error: extra argument 'path' in call
229 |     counter += 1
230 | }
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:228:27: error: missing argument for parameter 'stream' in call
226 |     let _:[PNG.RGBA<UInt8>] = snapshot.unpack(as: PNG.RGBA<UInt8>.self)
227 |
228 |     try snapshot.compress(path: "\(path)-\(counter).png")
    |                           `- error: missing argument for parameter 'stream' in call
229 |     counter += 1
230 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:228:18: error: generic parameter 'Destination' could not be inferred
226 |     let _:[PNG.RGBA<UInt8>] = snapshot.unpack(as: PNG.RGBA<UInt8>.self)
227 |
228 |     try snapshot.compress(path: "\(path)-\(counter).png")
    |                  `- error: generic parameter 'Destination' could not be inferred
229 |     counter += 1
230 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:236:17: error: generic parameter 'Destination' could not be inferred
234 | let progressive:PNG.Image = image.bindStorage(to: layout)
235 |
236 | try progressive.compress(path: "\(path)-progressive.png", hint: 1 << 12)
    |                 `- error: generic parameter 'Destination' could not be inferred
237 |
238 | //  snippet.PROGRESSIVE
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:236:32: error: extra argument 'path' in call
234 | let progressive:PNG.Image = image.bindStorage(to: layout)
235 |
236 | try progressive.compress(path: "\(path)-progressive.png", hint: 1 << 12)
    |                                `- error: extra argument 'path' in call
237 |
238 | //  snippet.PROGRESSIVE
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:236:26: error: missing argument for parameter 'stream' in call
234 | let progressive:PNG.Image = image.bindStorage(to: layout)
235 |
236 | try progressive.compress(path: "\(path)-progressive.png", hint: 1 << 12)
    |                          `- error: missing argument for parameter 'stream' in call
237 |
238 | //  snippet.PROGRESSIVE
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:245:18: error: generic parameter 'Destination' could not be inferred
243 |     (snapshot:PNG.Image) in
244 |
245 |     try snapshot.compress(path: "\(path)-progressive-\(counter).png")
    |                  `- error: generic parameter 'Destination' could not be inferred
246 |     counter += 1
247 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:245:33: error: extra argument 'path' in call
243 |     (snapshot:PNG.Image) in
244 |
245 |     try snapshot.compress(path: "\(path)-progressive-\(counter).png")
    |                                 `- error: extra argument 'path' in call
246 |     counter += 1
247 | }
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:245:27: error: missing argument for parameter 'stream' in call
243 |     (snapshot:PNG.Image) in
244 |
245 |     try snapshot.compress(path: "\(path)-progressive-\(counter).png")
    |                           `- error: missing argument for parameter 'stream' in call
246 |     counter += 1
247 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:257:33: error: extra argument 'path' in call
255 |     (snapshot:PNG.Image) in
256 |
257 |     try snapshot.compress(path: "\(path)-progressive-overdrawn-\(counter).png")
    |                                 `- error: extra argument 'path' in call
258 |     counter += 1
259 | }
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:257:27: error: missing argument for parameter 'stream' in call
255 |     (snapshot:PNG.Image) in
256 |
257 |     try snapshot.compress(path: "\(path)-progressive-overdrawn-\(counter).png")
    |                           `- error: missing argument for parameter 'stream' in call
258 |     counter += 1
259 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:257:18: error: generic parameter 'Destination' could not be inferred
255 |     (snapshot:PNG.Image) in
256 |
257 |     try snapshot.compress(path: "\(path)-progressive-overdrawn-\(counter).png")
    |                  `- error: generic parameter 'Destination' could not be inferred
258 |     counter += 1
259 | }
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:56:36: error: cannot find 'System' in scope
 54 |     init(path:String)
 55 |     {
 56 |         guard let data:[UInt8]  = (System.File.Source.open(path: path)
    |                                    `- error: cannot find 'System' in scope
 57 |         {
 58 |             (source:inout System.File.Source) -> [UInt8]? in
/host/spi-builder-workspace/Snippets/PNG/OnlineDecoding.swift:58:27: error: cannot find type 'System' in scope
 56 |         guard let data:[UInt8]  = (System.File.Source.open(path: path)
 57 |         {
 58 |             (source:inout System.File.Source) -> [UInt8]? in
    |                           `- error: cannot find type 'System' in scope
 59 |
 60 |             guard let count:Int = source.count
[161/210] Compiling ImagesInMemory ImagesInMemory.swift
/host/spi-builder-workspace/Snippets/PNG/ImagesInMemory.swift:13:11: error: cannot find type 'System' in scope
 11 | //  snippet.show
 12 |
 13 | extension System
    |           `- error: cannot find type 'System' in scope
 14 | {
 15 |     struct Blob
/host/spi-builder-workspace/Snippets/PNG/ImagesInMemory.swift:24:11: error: cannot find type 'System' in scope
 22 |
 23 | //  snippet.BLOB_CONFORMANCE
 24 | extension System.Blob:PNG.BytestreamSource, PNG.BytestreamDestination
    |           `- error: cannot find type 'System' in scope
 25 | {
 26 |     init(_ data:[UInt8])
/host/spi-builder-workspace/Snippets/PNG/ImagesInMemory.swift:59:21: error: cannot find 'System' in scope
 57 | //  snippet.BLOB_BOOTSTRAP
 58 | guard
 59 | let data:[UInt8] = (System.File.Source.open(path: "\(path).png")
    |                     `- error: cannot find 'System' in scope
 60 | {
 61 |     (source:inout System.File.Source) -> [UInt8]? in
/host/spi-builder-workspace/Snippets/PNG/ImagesInMemory.swift:61:19: error: cannot find type 'System' in scope
 59 | let data:[UInt8] = (System.File.Source.open(path: "\(path).png")
 60 | {
 61 |     (source:inout System.File.Source) -> [UInt8]? in
    |                   `- error: cannot find type 'System' in scope
 62 |
 63 |     guard let count:Int = source.count
/host/spi-builder-workspace/Snippets/PNG/ImagesInMemory.swift:75:10: error: cannot find type 'System' in scope
 73 | }
 74 |
 75 | var blob:System.Blob = .init(data)
    |          `- error: cannot find type 'System' in scope
 76 | //  snippet.READ
 77 | let image:PNG.Image = try .decompress(stream: &blob)
/host/spi-builder-workspace/Snippets/PNG/ImagesInMemory.swift:82:15: error: cannot find 'System' in scope
 80 | //  snippet.end
 81 | guard
 82 | let _:Void = (System.File.Destination.open(path: "\(path).png.rgba")
    |               `- error: cannot find 'System' in scope
 83 | {
 84 |     guard let _:Void = $0.write(rgba.flatMap{ [$0.r, $0.g, $0.b, $0.a] })
/host/spi-builder-workspace/Snippets/PNG/ImagesInMemory.swift:101:15: error: cannot find 'System' in scope
 99 | //  snippet.SAVE
100 | guard
101 | let _:Void = (System.File.Destination.open(path: "\(path).png.png")
    |               `- error: cannot find 'System' in scope
102 | {
103 |     guard let _:Void = $0.write(blob.data)
/host/spi-builder-workspace/Snippets/PNG/ImagesInMemory.swift:13:11: error: cannot find type 'System' in scope
 11 | //  snippet.show
 12 |
 13 | extension System
    |           `- error: cannot find type 'System' in scope
 14 | {
 15 |     struct Blob
/host/spi-builder-workspace/Snippets/PNG/ImagesInMemory.swift:24:11: error: cannot find type 'System' in scope
 22 |
 23 | //  snippet.BLOB_CONFORMANCE
 24 | extension System.Blob:PNG.BytestreamSource, PNG.BytestreamDestination
    |           `- error: cannot find type 'System' in scope
 25 | {
 26 |     init(_ data:[UInt8])
/host/spi-builder-workspace/Snippets/PNG/ImagesInMemory.swift:59:21: error: cannot find 'System' in scope
 57 | //  snippet.BLOB_BOOTSTRAP
 58 | guard
 59 | let data:[UInt8] = (System.File.Source.open(path: "\(path).png")
    |                     `- error: cannot find 'System' in scope
 60 | {
 61 |     (source:inout System.File.Source) -> [UInt8]? in
/host/spi-builder-workspace/Snippets/PNG/ImagesInMemory.swift:61:19: error: cannot find type 'System' in scope
 59 | let data:[UInt8] = (System.File.Source.open(path: "\(path).png")
 60 | {
 61 |     (source:inout System.File.Source) -> [UInt8]? in
    |                   `- error: cannot find type 'System' in scope
 62 |
 63 |     guard let count:Int = source.count
/host/spi-builder-workspace/Snippets/PNG/ImagesInMemory.swift:75:10: error: cannot find type 'System' in scope
 73 | }
 74 |
 75 | var blob:System.Blob = .init(data)
    |          `- error: cannot find type 'System' in scope
 76 | //  snippet.READ
 77 | let image:PNG.Image = try .decompress(stream: &blob)
[162/210] Emitting module StreamingZlib
error: emit-module command failed with exit code 1 (use -v to see invocation)
[163/210] Emitting module Indexing
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:9:38: error: incorrect argument label in call (have 'path:', expected 'stream:')
  7 |
  8 | guard
  9 | let image:PNG.Image = try .decompress(path: "\(path).png")
    |                                      `- error: incorrect argument label in call (have 'path:', expected 'stream:')
 10 | else
 11 | {
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:86:34: error: extra argument 'path' in call
 84 | let visualization:PNG.Image = .init(packing: swatch, size: (256, 16),
 85 |     layout: .init(format: .rgb8(palette: [], fill: nil, key: nil)))
 86 | try visualization.compress(path: "\(path)-gradient.png")
    |                                  `- error: extra argument 'path' in call
 87 |
 88 | //  snippet.PACK_EXAMPLE
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:86:28: error: missing argument for parameter 'stream' in call
 84 | let visualization:PNG.Image = .init(packing: swatch, size: (256, 16),
 85 |     layout: .init(format: .rgb8(palette: [], fill: nil, key: nil)))
 86 | try visualization.compress(path: "\(path)-gradient.png")
    |                            `- error: missing argument for parameter 'stream' in call
 87 |
 88 | //  snippet.PACK_EXAMPLE
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:86:19: error: generic parameter 'Destination' could not be inferred
 84 | let visualization:PNG.Image = .init(packing: swatch, size: (256, 16),
 85 |     layout: .init(format: .rgb8(palette: [], fill: nil, key: nil)))
 86 | try visualization.compress(path: "\(path)-gradient.png")
    |                   `- error: generic parameter 'Destination' could not be inferred
 87 |
 88 | //  snippet.PACK_EXAMPLE
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:96:13: error: generic parameter 'Destination' could not be inferred
 94 | }
 95 | //  snippet.COMPRESS_EXAMPLE
 96 | try indexed.compress(path: "\(path)-indexed.png")
    |             `- error: generic parameter 'Destination' could not be inferred
 97 | //  snippet.UNPACK_EXAMPLE
 98 | let indices:[UInt8] = indexed.unpack(as: UInt8.self)
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:96:28: error: extra argument 'path' in call
 94 | }
 95 | //  snippet.COMPRESS_EXAMPLE
 96 | try indexed.compress(path: "\(path)-indexed.png")
    |                            `- error: extra argument 'path' in call
 97 | //  snippet.UNPACK_EXAMPLE
 98 | let indices:[UInt8] = indexed.unpack(as: UInt8.self)
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:96:22: error: missing argument for parameter 'stream' in call
 94 | }
 95 | //  snippet.COMPRESS_EXAMPLE
 96 | try indexed.compress(path: "\(path)-indexed.png")
    |                      `- error: missing argument for parameter 'stream' in call
 97 | //  snippet.UNPACK_EXAMPLE
 98 | let indices:[UInt8] = indexed.unpack(as: UInt8.self)
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:9:38: error: incorrect argument label in call (have 'path:', expected 'stream:')
  7 |
  8 | guard
  9 | let image:PNG.Image = try .decompress(path: "\(path).png")
    |                                      `- error: incorrect argument label in call (have 'path:', expected 'stream:')
 10 | else
 11 | {
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:86:34: error: extra argument 'path' in call
 84 | let visualization:PNG.Image = .init(packing: swatch, size: (256, 16),
 85 |     layout: .init(format: .rgb8(palette: [], fill: nil, key: nil)))
 86 | try visualization.compress(path: "\(path)-gradient.png")
    |                                  `- error: extra argument 'path' in call
 87 |
 88 | //  snippet.PACK_EXAMPLE
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:86:28: error: missing argument for parameter 'stream' in call
 84 | let visualization:PNG.Image = .init(packing: swatch, size: (256, 16),
 85 |     layout: .init(format: .rgb8(palette: [], fill: nil, key: nil)))
 86 | try visualization.compress(path: "\(path)-gradient.png")
    |                            `- error: missing argument for parameter 'stream' in call
 87 |
 88 | //  snippet.PACK_EXAMPLE
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: 'compress(stream:level:hint:)' declared here
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: 'compress(stream:level:hint:)' declared here
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:86:19: error: generic parameter 'Destination' could not be inferred
 84 | let visualization:PNG.Image = .init(packing: swatch, size: (256, 16),
 85 |     layout: .init(format: .rgb8(palette: [], fill: nil, key: nil)))
 86 | try visualization.compress(path: "\(path)-gradient.png")
    |                   `- error: generic parameter 'Destination' could not be inferred
 87 |
 88 | //  snippet.PACK_EXAMPLE
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:96:13: error: generic parameter 'Destination' could not be inferred
 94 | }
 95 | //  snippet.COMPRESS_EXAMPLE
 96 | try indexed.compress(path: "\(path)-indexed.png")
    |             `- error: generic parameter 'Destination' could not be inferred
 97 | //  snippet.UNPACK_EXAMPLE
 98 | let indices:[UInt8] = indexed.unpack(as: UInt8.self)
/host/spi-builder-workspace/Sources/PNG/PNG.Image.swift:576:10: note: in call to function 'compress(stream:level:hint:)'
 574 |     ///     (2<sup>31</sup> – 1) is the same as setting it to `2147483647`.
 575 |     public
 576 |     func compress<Destination>(stream:inout Destination, level:Int = 9, hint:Int = 1 << 15)
     |          `- note: in call to function 'compress(stream:level:hint:)'
 577 |         throws
 578 |         where Destination:PNG.BytestreamDestination
/host/spi-builder-workspace/Snippets/PNG/Indexing.swift:96:28: error: extra argument 'path' in call
 94 | }
 95 | //  snippet.COMPRESS_EXAMPLE
 96 | try indexed.compress(path: "\(path)-indexed.png")
    |                            `- error: extra argument 'path' in call
 97 | //  snippet.UNPACK_EXAMPLE
 98 | let indices:[UInt8] = indexed.unpack(as: UInt8.self)
BUILD FAILURE 6.2 wasm