The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344846-2":/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

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.2
Building package at path:  $PWD
https://github.com/ordo-one/malloc-interposer.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344846-2":/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:0563b842faffea9ddc6fe15fbd2051d02dff3ef29dc4b5bfe0a0910a084eee81
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-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-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, \
      |  ^
In file included from /host/spi-builder-workspace/Sources/MallocInterposerC/src/interposer-unix.c:47:
/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;
      |                            ^  ~~
[2/11] Compiling interposer-unix.c
[2/11] Compiling AllocationHookTestSupport AllocationHookTestSupport.c
[2/11] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.2 wasm