Build Information
Failed to build swift-dwarf, reference v0.2.0 (ab0e2e), with Swift 6.2 for Wasm on 10 Aug 2026 20:46:45 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 729ceb5fcd9493dc13ee340bc4f0908bd201f85d
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xpablo/swift-dwarf.git
Reference: v0.2.0
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/0xpablo/swift-dwarf
* tag v0.2.0 -> FETCH_HEAD
HEAD is now at ab0e2ea Update libdwarf to 2.3.2
Submodule path 'libdwarf': checked out 'b401a8c31ab5d5804b13714fadede2dcadea9156'
Submodule 'libdwarf' (https://github.com/0xpablo/libdwarf-code.git) registered for path 'libdwarf'
Cloning into '/host/spi-builder-workspace/libdwarf'...
Cloned https://github.com/0xpablo/swift-dwarf.git
Revision (git rev-parse @):
ab0e2eaf3ebdaa378457c36b5157f0c1c7b56fd4
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/0xpablo/swift-dwarf.git at v0.2.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/0xpablo/swift-dwarf.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:70428a4f4110aef5b17a27427e965f31cf3855e8cf1dfdc416ed61c780337965
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Found unhandled resource at /host/spi-builder-workspace/Tests/Fixtures/TestProgram.dSYM
Found unhandled resource at /host/spi-builder-workspace/Tests/Fixtures/SpecTestProgram.dSYM
Found unhandled resource at /host/spi-builder-workspace/Tests/Fixtures/TestProgram.dSYM
Building for debugging...
[0/67] Compiling CLibdwarf dwarf_crc.c
[1/67] Compiling CLibdwarf dwarf_arange.c
[2/67] Write sources
[4/67] Compiling CLibdwarf dwarf_crc32.c
[5/67] Compiling CLibdwarf dwarf_debug_sup.c
[6/67] Compiling CLibdwarf dwarf_find_sigref.c
[7/67] Compiling CLibdwarf dwarf_debuglink.c
In file included from /host/spi-builder-workspace/libdwarf/src/lib/libdwarf/dwarf_alloc.c:41:
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/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/libdwarf/src/lib/libdwarf/dwarf_alloc.c:1201:23: error: call to undeclared function 'munmap'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1201 | int res = munmap(sec->dss_mmap_realarea,
| ^
2 errors generated.
[8/67] Compiling CLibdwarf dwarf_alloc.c
[8/67] Compiling CLibdwarf dwarf_stringsection.c
[8/67] Compiling CLibdwarf dwarf_tied.c
[8/67] Compiling CLibdwarf dwarf_xu_index.c
[8/67] Compiling CLibdwarf dwarf_util.c
[8/67] Compiling CLibdwarf dwarf_debugaddr.c
[8/67] Compiling CLibdwarf dwarf_tsearchhash.c
[8/67] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.2 wasm