The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftSDF, reference main (61ca97), with Swift 6.1 for Wasm on 28 Jun 2026 17:47:42 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ZeroOneZeroR/SwiftSDF.git
Reference: main
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/ZeroOneZeroR/SwiftSDF
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 61ca97e Update README.md
Cloned https://github.com/ZeroOneZeroR/SwiftSDF.git
Revision (git rev-parse @):
61ca97ea3629c07ec3dc028b143bf0ce077d5939
SUCCESS checkout https://github.com/ZeroOneZeroR/SwiftSDF.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ZeroOneZeroR/SwiftSDF.git
https://github.com/ZeroOneZeroR/SwiftSDF.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/112] Compiling DistanceMapping.cpp
[1/112] Compiling EdgeHolder.cpp
[2/112] Write sources
[3/112] Compiling convergent-curve-ordering.cpp
[4/112] Write swift-version-24593BA9C3E375BF.txt
[5/112] Compiling SkOSFile_win.cpp
In file included from /host/spi-builder-workspace/Sources/SDFFoundation/SDFGenerator.mm:8:
/host/spi-builder-workspace/Sources/SDFFoundation/SDFGenerator.h:11:9: fatal error: 'Foundation/Foundation.h' file not found
   11 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[6/112] Compiling SDFFoundation SDFGenerator.mm
In file included from /host/spi-builder-workspace/Sources/SDFCore/skia-pathops/src/ports/SkOSFile_posix.cpp:18:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/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/SDFCore/skia-pathops/src/ports/SkOSFile_posix.cpp:81:5: error: use of undeclared identifier 'munmap'
   81 |     munmap(const_cast<void*>(addr), length);
      |     ^
/host/spi-builder-workspace/Sources/SDFCore/skia-pathops/src/ports/SkOSFile_posix.cpp:97:42: error: use of undeclared identifier 'PROT_READ'
   97 |     void* addr = mmap(nullptr, fileSize, PROT_READ, MAP_PRIVATE, fd, 0);
      |                                          ^
/host/spi-builder-workspace/Sources/SDFCore/skia-pathops/src/ports/SkOSFile_posix.cpp:97:53: error: use of undeclared identifier 'MAP_PRIVATE'
   97 |     void* addr = mmap(nullptr, fileSize, PROT_READ, MAP_PRIVATE, fd, 0);
      |                                                     ^
/host/spi-builder-workspace/Sources/SDFCore/skia-pathops/src/ports/SkOSFile_posix.cpp:98:9: error: use of undeclared identifier 'MAP_FAILED'
   98 |     if (MAP_FAILED == addr) {
      |         ^
[6/112] Compiling SkOSFile_posix.cpp
[6/112] Compiling SkOSFile_stdio.cpp
[6/112] Compiling SDFCore SDFShapeAnalyzer.cpp
[6/112] Compiling Contour.cpp
[6/112] Compiling Shape.cpp
[6/112] Compiling MSDFErrorCorrection.cpp
[6/112] Compiling contour-combiners.cpp
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/107] Compiling SkDebug_stdio.cpp
[1/107] Write swift-version-24593BA9C3E375BF.txt
/host/spi-builder-workspace/Sources/SDFCore/skia-pathops/src/ports/SkMemory_malloc.cpp:17:10: fatal error: 'malloc/malloc.h' file not found
   17 | #include <malloc/malloc.h>
      |          ^~~~~~~~~~~~~~~~~
1 error generated.
[2/107] Compiling SkMemory_malloc.cpp
[2/107] Compiling SkPathOpsTypes.cpp
[2/107] Compiling SkReduceOrder.cpp
[2/107] Compiling SkOSFile_stdio.cpp
In file included from /host/spi-builder-workspace/Sources/SDFFoundation/SDFGenerator.mm:8:
/host/spi-builder-workspace/Sources/SDFFoundation/SDFGenerator.h:11:9: fatal error: 'Foundation/Foundation.h' file not found
   11 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[2/107] Compiling SDFFoundation SDFGenerator.mm
[2/107] Compiling SkPathOpsWinding.cpp
[2/107] Compiling SkPathWriter.cpp
[2/107] Compiling SkOSFile_posix.cpp
BUILD FAILURE 6.1 wasm