Build Information
Failed to build SwiftHook, reference main (e7a489
), with Swift 6.2 (beta) for Wasm on 19 Jun 2025 08:15:58 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.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 e7a489e Merge pull request #37 from Lukas1h/patch-1
Cloned https://github.com/p-x9/swift-hook.git
Revision (git rev-parse @):
e7a489e59730800171c5c557183415d697c453db
SUCCESS checkout https://github.com/p-x9/swift-hook.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
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-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/p-x9/fishhook
[1/126] Fetching fishhook
Fetched https://github.com/p-x9/fishhook from cache (0.22s)
Fetching https://github.com/p-x9/Echo
[1/975] Fetching echo
Fetched https://github.com/p-x9/Echo from cache (0.22s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/p-x9/MachOKit-SPM
[1/271] Fetching machokit-spm
[272/2068] Fetching machokit-spm, swift-atomics
Fetched https://github.com/p-x9/MachOKit-SPM from cache (0.43s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.43s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 0.0.3 (0.84s)
Computing version for https://github.com/p-x9/MachOKit-SPM
Computed https://github.com/p-x9/MachOKit-SPM at 0.35.1 (0.34s)
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/MachOKit-SPM
Working copy of https://github.com/p-x9/MachOKit-SPM resolved at 0.35.1
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
Creating working copy for https://github.com/p-x9/fishhook
Working copy of https://github.com/p-x9/fishhook resolved at spm (3b916cd)
Downloading binary artifact https://github.com/p-x9/MachOKit/releases/download/0.35.1/MachOKitC.xcframework.zip
Downloading binary artifact https://github.com/p-x9/MachOKit/releases/download/0.35.1/MachOKit.xcframework.zip
[1369/16882944] Downloading https://github.com/p-x9/MachOKit/releases/download/0.35.1/MachOKit.xcframework.zip
[99379/17173997] Downloading https://github.com/p-x9/MachOKit/releases/download/0.35.1/MachOKit.xcframework.zip, https://github.com/p-x9/MachOKit/releases/download/0.35.1/MachOKitC.xcframework.zip
[14028316/16882944] Downloading https://github.com/p-x9/MachOKit/releases/download/0.35.1/MachOKit.xcframework.zip
Downloaded https://github.com/p-x9/MachOKit/releases/download/0.35.1/MachOKitC.xcframework.zip (0.45s)
Downloaded https://github.com/p-x9/MachOKit/releases/download/0.35.1/MachOKit.xcframework.zip (4.03s)
Building for debugging...
[0/14] Write sources
[4/14] Compiling CEcho ImageInspectionMachO.c
[5/14] Compiling CEcho ImageInspectionELF.c
[6/14] Write sources
[7/14] Compiling CEcho Functions.c
[8/14] Compiling CEcho KnownMetadata.c
In file included from /host/spi-builder-workspace/.build/checkouts/fishhook/fishhook.c:30:
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/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/.build/checkouts/fishhook/fishhook.c:32:10: fatal error: 'mach/mach.h' file not found
32 | #include <mach/mach.h>
| ^~~~~~~~~~~~~
2 errors generated.
[9/14] Compiling fishhookC fishhook.c
[9/14] Compiling CEcho CallAccessor.c
[9/14] Compiling _AtomicsShims.c
[9/14] Compiling CEcho ValueWitnessTable.c
[9/14] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.2 wasm