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 0.11.4 (855fe1), with Swift 6.2 (beta) for Wasm on 21 Jun 2025 18:47:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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: 0.11.4
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
 * tag               0.11.4     -> FETCH_HEAD
HEAD is now at 855fe13 Creating BLStyleConvertible type
Cloned https://github.com/LuizZak/swift-blend2d.git
Revision (git rev-parse @):
855fe139f972fea76afceba23a289846df03ec5d
SUCCESS checkout https://github.com/LuizZak/swift-blend2d.git at 0.11.4
========================================
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-4606859-2":/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.26s)
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/189] Compiling a64assembler.cpp
[1/189] Compiling a64formatter.cpp
[2/189] Compiling armformatter.cpp
[3/189] Compiling a64func.cpp
[4/189] Compiling a64instapi.cpp
[5/189] Compiling a64builder.cpp
[6/189] Compiling a64compiler.cpp
[7/189] Write swift-version-24593BA9C3E375BF.txt
[8/189] Compiling trace.cpp
[9/189] Compiling futex.cpp
[10/189] Compiling uniqueidgenerator.cpp
[11/189] Compiling thread.cpp
[12/189] Compiling threadpool.cpp
[13/189] Compiling unicode.cpp
[14/189] Compiling tables.cpp
[15/189] Compiling scopedallocator.cpp
[16/189] Compiling var.cpp
[17/189] Compiling arenahashmap.cpp
[18/189] Compiling math.cpp
[19/189] Compiling zeroallocator.cpp
[20/189] Compiling arenaallocator.cpp
[21/189] Compiling codeholder.cpp
[22/189] Compiling simdx86_test_ssse3.cpp
[23/189] Compiling string.cpp
[24/189] Compiling simdx86_test_sse2.cpp
[25/189] Compiling simdx86_test_sse4_1.cpp
[26/189] Compiling simdx86_test_avx512.cpp
[27/189] Compiling simdx86_test_sse4_2.cpp
[28/189] Compiling simdx86_test_avx2.cpp
[29/189] Compiling simdx86_test_avx.cpp
[30/189] Compiling simdarm_test_asimd.cpp
[31/189] Compiling workersynchronization.cpp
[32/189] Compiling runtimescope.cpp
[33/189] Compiling runtime.cpp
[34/189] Compiling random.cpp
[35/189] Compiling interpolation_sse2.cpp
[36/189] Compiling renderfetchdata.cpp
[37/189] Compiling workermanager.cpp
[38/189] Compiling rendertargetinfo.cpp
[39/189] Compiling workdata.cpp
[40/189] Compiling interpolation_avx2.cpp
[41/189] Compiling pixelconverter_sse2.cpp
[42/189] Compiling workerproc.cpp
[43/189] Compiling pixelconverter_ssse3.cpp
[44/189] Compiling funcs.cpp
[45/189] Compiling interpolation.cpp
[46/189] Compiling pixelconverter_avx2.cpp
[47/189] Compiling pipeprimitives.cpp
[48/189] Compiling pipepart.cpp
[49/189] Compiling piperuntime.cpp
[50/189] Compiling pipefunction.cpp
[51/189] Compiling pipegenruntime.cpp
[52/189] Compiling pixelconverter.cpp
[53/189] Compiling pipedefs.cpp
[54/189] Compiling pipecomposer.cpp
[55/189] Compiling pipecompiler_test_avx2fma.cpp
[56/189] Compiling pipecompiler_x86.cpp
[57/189] Compiling pipecompiler_test_sse2.cpp
[58/189] Compiling pipecompiler_a64.cpp
[59/189] Compiling fillpart.cpp
[60/189] Compiling fetchutilspixelgather.cpp
[61/189] Compiling fetchpixelptrpart.cpp
[62/189] Compiling fetchsolidpart.cpp
[63/189] Compiling fetchutilspixelaccess.cpp
[64/189] Compiling fetchutilsinlineloops.cpp
[65/189] Compiling fetchgradientpart.cpp
[66/189] Compiling compoppart.cpp
[67/189] Compiling fetchpatternpart.cpp
[68/189] Compiling fetchpart.cpp
[69/189] Compiling pattern.cpp
[70/189] Compiling rastercontext.cpp
[71/189] Compiling otmetrics.cpp
[72/189] Compiling pathstroke.cpp
[73/189] Compiling otname.cpp
[74/189] Compiling otglyfsimddata.cpp
[75/189] Compiling path.cpp
[76/189] Compiling otglyf_sse4_2.cpp
[77/189] Compiling otglyf_avx2.cpp
[78/189] Compiling otkern.cpp
[79/189] Compiling otglyf_asimd.cpp
[80/189] Compiling otglyf.cpp
[81/189] Compiling otface.cpp
[82/189] Compiling otcore.cpp
[83/189] Compiling matrix_sse2.cpp
[84/189] Compiling otcmap.cpp
[85/189] Compiling matrix_avx.cpp
[86/189] Compiling object.cpp
[87/189] Compiling matrix.cpp
[88/189] Compiling imageencoder.cpp
[89/189] Compiling otlayout.cpp
[90/189] Compiling otcff.cpp
[91/189] Compiling imagescale.cpp
[92/189] Compiling imagedecoder.cpp
[93/189] Compiling imagecodec.cpp
[94/189] Compiling image.cpp
[95/189] Compiling format.cpp
[96/189] Compiling geometry.cpp
[97/189] Compiling gradient.cpp
[98/189] Compiling glyphbuffer.cpp
[99/189] Compiling fonttagset.cpp
[100/189] Compiling fonttagdatainfo.cpp
[101/189] Compiling fonttagdataids.cpp
[102/189] Compiling fontvariationsettings.cpp
[103/189] Compiling fontfeaturesettings.cpp
[104/189] Compiling fontmanager.cpp
[105/189] Compiling fontface.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.
[106/189] Compiling filesystem.cpp
[106/189] Compiling font.cpp
[106/189] Compiling fontdata.cpp
[106/189] Compiling deflatedecoder.cpp
[106/189] Compiling deflateencoder.cpp
[106/189] Compiling context.cpp
[106/189] Compiling fixedpiperuntime.cpp
[106/189] Compiling rastercontextops.cpp
BUILD FAILURE 6.2 wasm