The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftHook, reference main (50e325), with Swift 6.3 for Wasm on 14 Apr 2026 10:23:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-hook.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/p-x9/swift-hook
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 50e3258 Merge pull request #38 from p-x9/dependabot/swift/github.com/p-x9/machokit-spm-0.36.0
Cloned https://github.com/p-x9/swift-hook.git
Revision (git rev-parse @):
50e32584ccb8da47805764785082c5f4a1d5b76e
SUCCESS checkout https://github.com/p-x9/swift-hook.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/p-x9/swift-hook.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/p-x9/fishhook
[1/126] Fetching fishhook
Fetched https://github.com/p-x9/fishhook from cache (0.31s)
Fetching https://github.com/p-x9/Echo
[1/975] Fetching echo
Fetched https://github.com/p-x9/Echo from cache (0.24s)
Fetching https://github.com/p-x9/MachOKit-SPM
Fetching https://github.com/apple/swift-atomics.git
[1/324] Fetching machokit-spm
[325/2144] Fetching machokit-spm, swift-atomics
Fetched https://github.com/p-x9/MachOKit-SPM from cache (0.47s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.47s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 0.0.3 (1.07s)
Computing version for https://github.com/p-x9/MachOKit-SPM
Computed https://github.com/p-x9/MachOKit-SPM at 0.48.0 (2.05s)
Fetching https://github.com/p-x9/swift-binary-parse-support-bin.git
[1/39] Fetching swift-binary-parse-support-bin
Fetched https://github.com/p-x9/swift-binary-parse-support-bin.git from cache (1.25s)
Computing version for https://github.com/p-x9/swift-binary-parse-support-bin.git
Computed https://github.com/p-x9/swift-binary-parse-support-bin.git at 0.2.1 (1.64s)
Creating working copy for https://github.com/p-x9/MachOKit-SPM
Working copy of https://github.com/p-x9/MachOKit-SPM resolved at 0.48.0
Creating working copy for https://github.com/p-x9/Echo
Working copy of https://github.com/p-x9/Echo resolved at swift5.9 (3382440)
Creating working copy for https://github.com/p-x9/swift-binary-parse-support-bin.git
Working copy of https://github.com/p-x9/swift-binary-parse-support-bin.git resolved at 0.2.1
Creating working copy for https://github.com/p-x9/fishhook
Working copy of https://github.com/p-x9/fishhook resolved at spm (3b916cd)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 0.0.3
Downloading binary artifact https://github.com/p-x9/MachOKit/releases/download/0.48.0/MachOKitC.xcframework.zip
Downloading binary artifact https://github.com/p-x9/MachOKit/releases/download/0.48.0/MachOKit.xcframework.zip
Downloading binary artifact https://github.com/p-x9/swift-binary-parse-support/releases/download/0.2.1/BinaryParseSupport.xcframework.zip
[897/21532391] Downloading https://github.com/p-x9/MachOKit/releases/download/0.48.0/MachOKit.xcframework.zip
[131076/21839710] Downloading https://github.com/p-x9/MachOKit/releases/download/0.48.0/MachOKit.xcframework.zip, https://github.com/p-x9/MachOKit/releases/download/0.48.0/MachOKitC.xcframework.zip
[212170/22772790] Downloading https://github.com/p-x9/MachOKit/releases/download/0.48.0/MachOKit.xcframework.zip, https://github.com/p-x9/MachOKit/releases/download/0.48.0/MachOKitC.xcframework.zip, https://github.com/p-x9/swift-binary-parse-support/releases/download/0.2.1/BinaryParseSupport.xcframework.zip
[13888728/22465471] Downloading https://github.com/p-x9/MachOKit/releases/download/0.48.0/MachOKit.xcframework.zip, https://github.com/p-x9/swift-binary-parse-support/releases/download/0.2.1/BinaryParseSupport.xcframework.zip
Downloaded https://github.com/p-x9/MachOKit/releases/download/0.48.0/MachOKitC.xcframework.zip (0.77s)
Downloaded https://github.com/p-x9/swift-binary-parse-support/releases/download/0.2.1/BinaryParseSupport.xcframework.zip (0.96s)
Downloaded https://github.com/p-x9/MachOKit/releases/download/0.48.0/MachOKit.xcframework.zip (3.97s)
Building for debugging...
[0/15] Write sources
[5/15] Compiling CEcho ValueWitnessTable.c
[5/15] Compiling CEcho CallAccessor.c
[7/15] Compiling CEcho ImageInspectionELF.c
[8/15] Compiling CEcho ImageInspectionMachO.c
[9/15] Compiling CEcho KnownMetadata.c
[10/15] Compiling CEcho Functions.c
In file included from /host/spi-builder-workspace/.build/checkouts/fishhook/fishhook.c:30:
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-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/.build/checkouts/fishhook/fishhook.c:32:10: fatal error: 'mach/mach.h' file not found
   32 | #include <mach/mach.h>
      |          ^~~~~~~~~~~~~
2 errors generated.
[11/15] Compiling fishhookC fishhook.c
[11/15] Compiling _AtomicsShims.c
[11/15] Write sources
[11/15] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.3 wasm