The Swift Package Index logo.Swift Package Index

Build Information

Failed to build malloc-interposer, reference main (f47939), with Swift 6.1 for Wasm on 16 Oct 2026 10:38:13 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ordo-one/malloc-interposer.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/ordo-one/malloc-interposer
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f479398 feat(patch): trigger release
Cloned https://github.com/ordo-one/malloc-interposer.git
Revision (git rev-parse @):
f479398f73b14dbd1d25f4e01fd667171ddc9f18
SUCCESS checkout https://github.com/ordo-one/malloc-interposer.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ordo-one/malloc-interposer.git
https://github.com/ordo-one/malloc-interposer.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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.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:8209621f35c5a12749e7df75bbcb99eccb508d0196da99f6ac3bcf5f4827df31
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/11] Write sources
[1/11] Compiling interposer-darwin.c
In file included from /host/spi-builder-workspace/Tests/InterposerCrashProbe/main.c:42:
/host/spi-builder-workspace/Sources/MallocInterposerC/include/interposer.h:63:16: error: static assertion failed due to requirement 'sizeof(malloc_header_t) == 16': malloc_header_t must be 16 bytes to preserve 16-byte alignment
   63 | _Static_assert(sizeof(malloc_header_t) == 16,
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MallocInterposerC/include/interposer.h:63:40: note: expression evaluates to '12 == 16'
   63 | _Static_assert(sizeof(malloc_header_t) == 16,
      |                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/host/spi-builder-workspace/Sources/MallocInterposerC/include/interposer.h:81:28: warning: shift count >= width of type [-Wshift-count-overflow]
   81 |     return (uint32_t)(addr >> 32) ^ MALLOC_INTERPOSER_MAGIC;
      |                            ^  ~~
1 warning and 1 error generated.
[2/11] Compiling InterposerCrashProbe main.c
In file included from /host/spi-builder-workspace/Sources/MallocInterposerC/src/interposer-unix.c:40:
/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/MallocInterposerC/src/interposer-unix.c:45:10: fatal error: 'pthread.h' file not found
   45 | #include <pthread.h>
      |          ^~~~~~~~~~~
[2/11] Compiling interposer-unix.c
[2/11] Compiling AllocationHookTestSupport AllocationHookTestSupport.c
[2/11] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:8209621f35c5a12749e7df75bbcb99eccb508d0196da99f6ac3bcf5f4827df31
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/9] Compiling AllocationHookTestSupport AllocationHookTestSupport.c
In file included from /host/spi-builder-workspace/Tests/InterposerCrashProbe/main.c:42:
/host/spi-builder-workspace/Sources/MallocInterposerC/include/interposer.h:63:16: error: static assertion failed due to requirement 'sizeof(malloc_header_t) == 16': malloc_header_t must be 16 bytes to preserve 16-byte alignment
   63 | _Static_assert(sizeof(malloc_header_t) == 16,
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MallocInterposerC/include/interposer.h:63:40: note: expression evaluates to '12 == 16'
   63 | _Static_assert(sizeof(malloc_header_t) == 16,
      |                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/host/spi-builder-workspace/Sources/MallocInterposerC/include/interposer.h:81:28: warning: shift count >= width of type [-Wshift-count-overflow]
   81 |     return (uint32_t)(addr >> 32) ^ MALLOC_INTERPOSER_MAGIC;
      |                            ^  ~~
1 warning and 1 error generated.
[1/9] Compiling InterposerCrashProbe main.c
In file included from /host/spi-builder-workspace/Sources/MallocInterposerC/src/interposer-unix.c:40:
/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/MallocInterposerC/src/interposer-unix.c:45:10: fatal error: 'pthread.h' file not found
   45 | #include <pthread.h>
      |          ^~~~~~~~~~~
[1/9] Compiling interposer-unix.c
[1/9] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm