The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SkiaKit, reference 0.0.1 (533cd1), with Swift 6.4 for Wasm on 19 Sep 2026 16:53:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/UnGast/SkiaKit.git
Reference: 0.0.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/UnGast/SkiaKit
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at 533cd14 Create release.yml
Cloned https://github.com/UnGast/SkiaKit.git
Revision (git rev-parse @):
533cd148843b2a540579bd499c0c03706c8b63e9
SUCCESS checkout https://github.com/UnGast/SkiaKit.git at 0.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/UnGast/SkiaKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Pre-planning 1 / 125]
[36 / 47] SkiaKit
/host/spi-builder-workspace/Sources/SkiaKit/Surface.swift:107:13: warning: variable 'nativeCInfo' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
105 |     public static func makeRenderTarget(context: GrContext, budgeted: Bool, cinfo: ImageInfo) -> Surface {
106 |         //return ToSurface(SkSurface::MakeRenderTarget(AsGrContext(context), (SkBudgeted)budgeted, AsImageInfo(cinfo), sampleCount, (GrSurfaceOrigin)origin, AsSurfaceProps(props), shouldCreateWithMips).release());
107 |         var nativeCInfo = cinfo.toNative()
    |             `- warning: variable 'nativeCInfo' was never mutated; consider changing to 'let' constant [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated\VariableNeverMutated]8;;\]
108 |         return withUnsafePointer(to: nativeCInfo) {
109 |             Surface(handle: sk_surface_new_render_target(context.handle, budgeted, $0, 0, TOP_LEFT_GR_SURFACE_ORIGIN, nil, false))
[#VariableNeverMutated]: <https://docs.swift.org/compiler/documentation/diagnostics/variable-never-mutated>
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/Sources/CSkia/include/CSkia.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/SkiaKit/Shader.swift:102:19: warning: initialization of 'UnsafePointer<sk_matrix_t>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
100 |         if let l = localMatrix {
101 |             native = l.toNative()
102 |             ptr = UnsafePointer<sk_matrix_t> (&native)
    |                   |                           |- note: implicit argument conversion from 'sk_matrix_t' to 'UnsafePointer<sk_matrix_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                           `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafePointer<sk_matrix_t>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
103 |         }
104 |
/host/spi-builder-workspace/Sources/SkiaKit/Shader.swift:134:19: warning: initialization of 'UnsafePointer<sk_matrix_t>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
132 |         if let l = localMatrix {
133 |             native = l.toNative()
134 |             ptr = UnsafePointer<sk_matrix_t> (&native)
    |                   |                           |- note: implicit argument conversion from 'sk_matrix_t' to 'UnsafePointer<sk_matrix_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                           `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafePointer<sk_matrix_t>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
135 |         }
136 |
/host/spi-builder-workspace/Sources/SkiaKit/Shader.swift:167:19: warning: initialization of 'UnsafePointer<sk_matrix_t>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
165 |         if let l = localMatrix {
166 |             native = l.toNative()
167 |             ptr = UnsafePointer<sk_matrix_t> (&native)
    |                   |                           |- note: implicit argument conversion from 'sk_matrix_t' to 'UnsafePointer<sk_matrix_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                           `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafePointer<sk_matrix_t>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
168 |         }
169 |
/host/spi-builder-workspace/Sources/SkiaKit/Shader.swift:201:19: warning: initialization of 'UnsafePointer<sk_matrix_t>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
199 |         if let l = localMatrix {
200 |             native = l.toNative()
201 |             ptr = UnsafePointer<sk_matrix_t> (&native)
    |                   |                           |- note: implicit argument conversion from 'sk_matrix_t' to 'UnsafePointer<sk_matrix_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                           `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafePointer<sk_matrix_t>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
202 |         }
203 |
/host/spi-builder-workspace/Sources/SkiaKit/Shader.swift:233:19: warning: initialization of 'UnsafePointer<sk_isize_t>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
231 |         if let t = tileSize {
232 |             n = t
233 |             ptr = UnsafePointer<sk_isize_t>(&n)
    |                   |                         |- note: implicit argument conversion from 'sk_isize_t' to 'UnsafePointer<sk_isize_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                         `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafePointer<sk_isize_t>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
234 |         }
235 |         return Shader (handle: sk_shader_new_perlin_noise_fractal_noise(baseFrequencyX, baseFrequencyY, numOctaves, seed, ptr))
/host/spi-builder-workspace/Sources/SkiaKit/Shader.swift:251:19: warning: initialization of 'UnsafePointer<sk_isize_t>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
249 |         if let t = tileSize {
250 |             n = t
251 |             ptr = UnsafePointer<sk_isize_t>(&n)
    |                   |                         |- note: implicit argument conversion from 'sk_isize_t' to 'UnsafePointer<sk_isize_t>' produces a pointer valid only for the duration of the call to 'init(_:)'
    |                   |                         `- note: use 'withUnsafePointer' in order to explicitly convert argument to pointer valid for a defined scope
    |                   `- warning: initialization of 'UnsafePointer<sk_isize_t>' results in a dangling pointer [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
252 |         }
253 |         return Shader (handle: sk_shader_new_perlin_noise_turbulence(baseFrequencyX, baseFrequencyY, numOctaves, seed, ptr))
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
/host/spi-builder-workspace/Samples/Gallery/main.swift:17:8: warning: result of call to 'encode(dest:src:encoder:quality:)' is unused [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
15 | let stream = SKFileWStream(path: "test.png")!
16 |
17 | Pixmap.encode(dest: stream, src: bitmap, encoder: .png, quality: 100)
   |        `- warning: result of call to 'encode(dest:src:encoder:quality:)' is unused [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
[46 / 51] Samples-product
/host/spi-builder-workspace/Samples/Gallery/main.swift:17:8: warning: result of call to 'encode(dest:src:encoder:quality:)' is unused [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
15 | let stream = SKFileWStream(path: "test.png")!
16 |
17 | Pixmap.encode(dest: stream, src: bitmap, encoder: .png, quality: 100)
   |        `- warning: result of call to 'encode(dest:src:encoder:quality:)' is unused [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/no-usage\NoUsage]8;;\]
[#NoUsage]: <https://docs.swift.org/compiler/documentation/diagnostics/no-usage>
[53 / 53] Samples-product
error: link command failed with exit code 1 (use -v to see invocation)
/host/spi-builder-workspace/Package.swift: Samples-product: clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
/host/spi-builder-workspace/Package.swift: Samples-product: wasm-ld: error: unable to find library -lskia
/host/spi-builder-workspace/Package.swift: Samples-product: wasm-ld: error: unable to find library -lfreetype
/host/spi-builder-workspace/Package.swift: Samples-product: wasm-ld: error: unable to find library -lfontconfig
/host/spi-builder-workspace/Package.swift: Samples-product: wasm-ld: error: unable to find library -lz
/host/spi-builder-workspace/Package.swift: Samples-product: clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: Ld /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/Samples.wasm normal failed with a nonzero exit code. Command line:     cd /host/spi-builder-workspace
    /usr/bin/swiftc -target wasm32-unknown-wasip1 -emit-executable -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -Xclang-linker -resource-dir -Xclang-linker /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -L/host/spi-builder-workspace/.build/out/Intermediates.noindex/EagerLinkingTBDs/Debug-webassembly-wasm32 -L/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 @/host/spi-builder-workspace/.build/out/Intermediates.noindex/SkiaKit.build/Debug-webassembly-wasm32/Samples-p.build/Objects-normal/wasm32/Samples.LinkFileList -Xlinker --gc-sections -Xclang-linker -rdynamic -L/usr/lib/swift -lstdc++ -static-stdlib -lskia -lfreetype -lfontconfig -lz -lstdc++ @/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/CSkia.objlib/args.resp @/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/SkiaKit.objlib/args.resp -o /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/Samples.wasm
error: Build failed
BUILD FAILURE 6.4 wasm