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 SwiftBlend2D, reference master (21650f), with Swift 6.2 (beta) for Wasm on 21 Jun 2025 18:48:42 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/LuizZak/swift-blend2d.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/LuizZak/swift-blend2d
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 21650fe Fixing retroactive conformance warnings under Swift 6.0
Cloned https://github.com/LuizZak/swift-blend2d.git
Revision (git rev-parse @):
21650fe3e039af95b1e4a9d1102c5c73c05a20cd
SUCCESS checkout https://github.com/LuizZak/swift-blend2d.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/LuizZak/swift-blend2d.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/LuizZak/swift-libpng.git
[1/76] Fetching swift-libpng
Fetched https://github.com/LuizZak/swift-libpng.git from cache (0.35s)
Creating working copy for https://github.com/LuizZak/swift-libpng.git
Working copy of https://github.com/LuizZak/swift-libpng.git resolved at master (c059e4a)
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Tests/SwiftBlend2DTests/SnapshotFailures': File not found.
warning: you may be able to install libpng using your system-packager:
    apt-get install libpng-dev
warning: you may be able to install libpng using your system-packager:
    apt-get install libpng-dev
Building for debugging...
[0/192] Compiling a64assembler.cpp
[1/192] Compiling a64builder.cpp
[2/192] Compiling a64formatter.cpp
[3/192] Compiling a64emithelper.cpp
[4/192] Compiling a64func.cpp
[5/192] Compiling a64compiler.cpp
[6/192] Write swift-version-24593BA9C3E375BF.txt
[7/192] Compiling uniqueidgenerator.cpp
[8/192] Compiling futex.cpp
[9/192] Compiling thread.cpp
[10/192] Compiling trace.cpp
[11/192] Compiling tables.cpp
[12/192] Compiling threadpool.cpp
[13/192] Compiling unicode.cpp
[14/192] Compiling scopedallocator.cpp
[15/192] Compiling arenaallocator.cpp
[16/192] Compiling zeroallocator.cpp
[17/192] Compiling arenahashmap.cpp
[18/192] Compiling math.cpp
[19/192] Compiling var.cpp
[20/192] Compiling simdx86_test_ssse3.cpp
[21/192] Compiling simdx86_test_sse4_1.cpp
[22/192] Compiling simdx86_test_sse4_2.cpp
[23/192] Compiling simdx86_test_sse2.cpp
[24/192] Compiling simdx86_test_avx512.cpp
[25/192] Compiling simdx86_test_avx2.cpp
[26/192] Compiling simdx86_test_avx.cpp
[27/192] Compiling runtimescope.cpp
[28/192] Compiling simdarm_test_asimd.cpp
[29/192] Compiling string.cpp
[30/192] Compiling workersynchronization.cpp
[31/192] Compiling runtime.cpp
[32/192] Compiling random.cpp
[33/192] Compiling renderfetchdata.cpp
[34/192] Compiling interpolation_sse2.cpp
[35/192] Compiling workdata.cpp
[36/192] Compiling rendertargetinfo.cpp
[37/192] Compiling workermanager.cpp
[38/192] Compiling interpolation_avx2.cpp
[39/192] Compiling funcs.cpp
[40/192] Compiling interpolation.cpp
[41/192] Compiling pixelconverter_ssse3.cpp
[42/192] Compiling pixelconverter_sse2.cpp
[43/192] Compiling pixelconverter_avx2.cpp
[44/192] Compiling workerproc.cpp
[45/192] Compiling pipeprimitives.cpp
[46/192] Compiling pipedefs.cpp
[47/192] Compiling pipepart.cpp
[48/192] Compiling piperuntime.cpp
[49/192] Compiling pipegenruntime.cpp
[50/192] Compiling pipefunction.cpp
[51/192] Compiling pixelconverter.cpp
[52/192] Compiling pipecomposer.cpp
[53/192] Compiling pipecompiler_x86.cpp
[54/192] Compiling pipecompiler_test_avx2fma.cpp
[55/192] Compiling pipecompiler_test_sse2.cpp
[56/192] Compiling pipecompiler_a64.cpp
[57/192] Compiling fillpart.cpp
[58/192] Compiling fetchutilspixelaccess.cpp
[59/192] Compiling fetchutilsinlineloops.cpp
[60/192] Compiling fetchutilspixelgather.cpp
[61/192] Compiling fetchutilscoverage.cpp
[62/192] Compiling fetchsolidpart.cpp
[63/192] Compiling fetchpatternpart.cpp
[64/192] Compiling fetchgradientpart.cpp
[65/192] Compiling fetchpixelptrpart.cpp
[66/192] Compiling fetchpart.cpp
[67/192] Compiling compoppart.cpp
[68/192] Compiling rastercontext.cpp
[69/192] Compiling pattern.cpp
[70/192] Compiling otname.cpp
[71/192] Compiling otglyfsimddata.cpp
[72/192] Compiling pathstroke.cpp
[73/192] Compiling otmetrics.cpp
[74/192] Compiling otglyf_sse4_2.cpp
[75/192] Compiling otglyf_avx2.cpp
[76/192] Compiling path.cpp
[77/192] Compiling otglyf_asimd.cpp
[78/192] Compiling otkern.cpp
[79/192] Compiling otcmap.cpp
[80/192] Compiling otface.cpp
[81/192] Compiling otglyf.cpp
[82/192] Compiling matrix_sse2.cpp
[83/192] Compiling otcore.cpp
[84/192] Compiling matrix_avx.cpp
[85/192] Compiling matrix.cpp
[86/192] Compiling imagescale.cpp
[87/192] Compiling object.cpp
[88/192] Compiling otcff.cpp
[89/192] Compiling imageencoder.cpp
[90/192] Compiling imagedecoder.cpp
[91/192] Compiling otlayout.cpp
[92/192] Compiling image.cpp
[93/192] Compiling imagecodec.cpp
[94/192] Compiling format.cpp
[95/192] Compiling geometry.cpp
[96/192] Compiling glyphbuffer.cpp
[97/192] Compiling gradient.cpp
[98/192] Compiling fonttagdatainfo.cpp
[99/192] Compiling fonttagset.cpp
[100/192] Compiling fonttagdataids.cpp
[101/192] Compiling fontvariationsettings.cpp
[102/192] Compiling fontmanager.cpp
In file included from /host/spi-builder-workspace/Sources/blend2d/blend2d/filesystem.cpp:18:
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
    2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
      |  ^
/host/spi-builder-workspace/Sources/blend2d/blend2d/filesystem.cpp:954:18: error: use of undeclared identifier 'PROT_READ'
  954 |   int mmapProt = PROT_READ;
      |                  ^
/host/spi-builder-workspace/Sources/blend2d/blend2d/filesystem.cpp:955:19: error: use of undeclared identifier 'MAP_SHARED'
  955 |   int mmapFlags = MAP_SHARED;
      |                   ^
/host/spi-builder-workspace/Sources/blend2d/blend2d/filesystem.cpp:958:16: error: use of undeclared identifier 'mmap'
  958 |   void* data = mmap(nullptr, size, mmapProt, mmapFlags, int(file.handle), 0);
      |                ^
/host/spi-builder-workspace/Sources/blend2d/blend2d/filesystem.cpp:976:21: error: use of undeclared identifier 'munmap'
  976 |   int unmapStatus = munmap(_data, _size);
      |                     ^
5 errors generated.
[103/192] Compiling filesystem.cpp
[103/192] Compiling fontdata.cpp
[103/192] Compiling context.cpp
[103/192] Compiling fontfeaturesettings.cpp
[103/192] Compiling font.cpp
[103/192] Compiling rastercontextops.cpp
[103/192] Compiling fontface.cpp
[103/192] Compiling fixedpiperuntime.cpp
BUILD FAILURE 6.2 wasm