The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SwiftHook, reference main (c71604), with Swift 6.1 for Linux on 28 Apr 2025 14:24:28 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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 c71604f Merge pull request #30 from p-x9/dependabot/swift/github.com/p-x9/machokit-spm-0.30.0
Cloned https://github.com/p-x9/swift-hook.git
Revision (git rev-parse @):
c71604f68eff6147bb9c0270facae7e589269ed6
SUCCESS checkout https://github.com/p-x9/swift-hook.git at main
========================================
Build
========================================
Selected platform:         linux
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-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/p-x9/fishhook
[1/126] Fetching fishhook
Fetched https://github.com/p-x9/fishhook from cache (0.26s)
Fetching https://github.com/p-x9/Echo
[1/975] Fetching echo
Fetched https://github.com/p-x9/Echo from cache (0.28s)
Fetching https://github.com/p-x9/MachOKit-SPM
Fetching https://github.com/apple/swift-atomics.git
[1/237] Fetching machokit-spm
[238/1942] Fetching machokit-spm, swift-atomics
Fetched https://github.com/p-x9/MachOKit-SPM from cache (1.30s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.30s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 0.0.3 (1.93s)
Computing version for https://github.com/p-x9/MachOKit-SPM
Computed https://github.com/p-x9/MachOKit-SPM at 0.31.0 (0.51s)
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/MachOKit-SPM
Working copy of https://github.com/p-x9/MachOKit-SPM resolved at 0.31.0
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/Echo
Working copy of https://github.com/p-x9/Echo resolved at swift5.9 (3382440)
Downloading binary artifact https://github.com/p-x9/MachOKit/releases/download/0.31.0/MachOKitC.xcframework.zip
Downloading binary artifact https://github.com/p-x9/MachOKit/releases/download/0.31.0/MachOKit.xcframework.zip
[1369/16424429] Downloading https://github.com/p-x9/MachOKit/releases/download/0.31.0/MachOKit.xcframework.zip
[9656/16708572] Downloading https://github.com/p-x9/MachOKit/releases/download/0.31.0/MachOKit.xcframework.zip, https://github.com/p-x9/MachOKit/releases/download/0.31.0/MachOKitC.xcframework.zip
Downloaded https://github.com/p-x9/MachOKit/releases/download/0.31.0/MachOKitC.xcframework.zip (0.49s)
[1069323/16424429] Downloading https://github.com/p-x9/MachOKit/releases/download/0.31.0/MachOKit.xcframework.zip
Downloaded https://github.com/p-x9/MachOKit/releases/download/0.31.0/MachOKit.xcframework.zip (3.52s)
Building for debugging...
[0/14] Write sources
[4/14] Compiling CEcho ValueWitnessTable.c
[5/14] Compiling CEcho CallAccessor.c
[6/14] Write sources
[7/14] Compiling CEcho ImageInspectionMachO.c
[8/14] Compiling CEcho KnownMetadata.c
[9/14] Compiling CEcho Functions.c
[10/14] Compiling CEcho ImageInspectionELF.c
[11/14] Compiling _AtomicsShims.c
/host/spi-builder-workspace/.build/checkouts/fishhook/fishhook.c:32:10: fatal error: 'mach/mach.h' file not found
   32 | #include <mach/mach.h>
      |          ^~~~~~~~~~~~~
1 error generated.
[12/14] Compiling fishhookC fishhook.c
[12/14] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
/host/spi-builder-workspace/.build/checkouts/fishhook/fishhook.c:32:10: fatal error: 'mach/mach.h' file not found
   32 | #include <mach/mach.h>
      |          ^~~~~~~~~~~~~
1 error generated.
[0/2] Compiling fishhookC fishhook.c
[0/2] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 linux