The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftHook, reference 0.5.0 (697dcb), with Swift 6.1 for Wasm on 29 May 2025 06:56:06 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-hook.git
Reference: 0.5.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/p-x9/swift-hook
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at 697dcbd Merge pull request #15 from p-x9/dependabot/swift/github.com/p-x9/machokit-spm-0.15.0
Cloned https://github.com/p-x9/swift-hook.git
Revision (git rev-parse @):
697dcbd6e534235d97c355a1d047b5009a960a0a
SUCCESS checkout https://github.com/p-x9/swift-hook.git at 0.5.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/p-x9/swift-hook.git
https://github.com/p-x9/swift-hook.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "fishhook",
      "requirement" : {
        "branch" : [
          "spm"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/p-x9/fishhook"
    },
    {
      "identity" : "echo",
      "requirement" : {
        "branch" : [
          "swift5.9"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/p-x9/Echo"
    },
    {
      "identity" : "machokit-spm",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.13.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/p-x9/MachOKit-SPM"
    }
  ],
  "manifest_display_name" : "SwiftHook",
  "name" : "SwiftHook",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftHook",
      "targets" : [
        "SwiftHook"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftHookTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftHookTests",
      "path" : "Tests/SwiftHookTests",
      "sources" : [
        "SwiftHookTests.swift",
        "class.swift",
        "functions.swift",
        "struct.swift"
      ],
      "target_dependencies" : [
        "SwiftHook"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftHook",
      "module_type" : "SwiftTarget",
      "name" : "SwiftHook",
      "path" : "Sources/SwiftHook",
      "product_dependencies" : [
        "fishhook",
        "Echo",
        "MachOKit"
      ],
      "product_memberships" : [
        "SwiftHook"
      ],
      "sources" : [
        "CFunctionHooker.swift",
        "Model/HookFunctionInfo.swift",
        "SwiftHook+function.swift",
        "SwiftHook+method.swift",
        "SwiftHook.swift",
        "SwiftHookError.swift",
        "Util/demangle.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/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 finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/p-x9/fishhook
[1/126] Fetching fishhook
Fetched https://github.com/p-x9/fishhook from cache (0.21s)
Fetching https://github.com/p-x9/Echo
[1/975] Fetching echo
Fetched https://github.com/p-x9/Echo from cache (0.26s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/p-x9/MachOKit-SPM
[1/258] Fetching machokit-spm
[259/1968] Fetching machokit-spm, swift-atomics
Fetched https://github.com/p-x9/MachOKit-SPM from cache (0.25s)
[548/1710] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.40s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 0.0.3 (0.92s)
Computing version for https://github.com/p-x9/MachOKit-SPM
Computed https://github.com/p-x9/MachOKit-SPM at 0.33.0 (0.44s)
Fetching https://github.com/p-x9/swift-fileio.git
[1/156] Fetching swift-fileio
Fetched https://github.com/p-x9/swift-fileio.git from cache (0.21s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.9.0 (0.65s)
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/swift-fileio.git
Working copy of https://github.com/p-x9/swift-fileio.git resolved at 0.9.0
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/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.33.0
Downloading binary artifact https://github.com/p-x9/MachOKit/releases/download/0.33.0/MachOKit.xcframework.zip
Downloading binary artifact https://github.com/p-x9/MachOKit/releases/download/0.33.0/MachOKitC.xcframework.zip
[1397/16919311] Downloading https://github.com/p-x9/MachOKit/releases/download/0.33.0/MachOKit.xcframework.zip
[9796/17210104] Downloading https://github.com/p-x9/MachOKit/releases/download/0.33.0/MachOKit.xcframework.zip, https://github.com/p-x9/MachOKit/releases/download/0.33.0/MachOKitC.xcframework.zip
[10695315/16919311] Downloading https://github.com/p-x9/MachOKit/releases/download/0.33.0/MachOKit.xcframework.zip
Downloaded https://github.com/p-x9/MachOKit/releases/download/0.33.0/MachOKitC.xcframework.zip (0.37s)
Downloaded https://github.com/p-x9/MachOKit/releases/download/0.33.0/MachOKit.xcframework.zip (2.60s)
Building for debugging...
[0/15] Write sources
[5/15] Compiling CEcho ValueWitnessTable.c
[5/15] Compiling CEcho KnownMetadata.c
[7/15] Write sources
[8/15] Compiling CEcho ImageInspectionELF.c
In file included from /host/spi-builder-workspace/.build/checkouts/fishhook/fishhook.c:30:
/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/.build/checkouts/fishhook/fishhook.c:32:10: fatal error: 'mach/mach.h' file not found
   32 | #include <mach/mach.h>
      |          ^~~~~~~~~~~~~
2 errors generated.
[9/15] Compiling fishhookC fishhook.c
[9/15] Compiling CEcho CallAccessor.c
[9/15] Compiling CEcho ImageInspectionMachO.c
[9/15] Compiling _AtomicsShims.c
[9/15] Compiling CEcho Functions.c
[9/15] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/6] Compiling CEcho Functions.c
[1/6] Compiling CEcho ImageInspectionMachO.c
[2/6] Compiling CEcho CallAccessor.c
In file included from /host/spi-builder-workspace/.build/checkouts/fishhook/fishhook.c:30:
/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/.build/checkouts/fishhook/fishhook.c:32:10: fatal error: 'mach/mach.h' file not found
   32 | #include <mach/mach.h>
      |          ^~~~~~~~~~~~~
2 errors generated.
[3/6] Compiling fishhookC fishhook.c
[3/6] Compiling _AtomicsShims.c
[3/6] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm