The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FishHook, reference 0.6.0 (7713b9), with Swift 6.4 for Linux on 22 Sep 2026 08:24:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-fishhook.git
Reference: 0.6.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-fishhook
 * tag               0.6.0      -> FETCH_HEAD
HEAD is now at 7713b95 Merge pull request #27 from p-x9/dependabot/swift/github.com/p-x9/machokit-0.33.0
Cloned https://github.com/p-x9/swift-fishhook.git
Revision (git rev-parse @):
7713b953cb9c951f9baed47a61f36e8f2924bab7
SUCCESS checkout https://github.com/p-x9/swift-fishhook.git at 0.6.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/p-x9/swift-fishhook.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/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:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Fetching https://github.com/p-x9/MachOKit.git
[1/7577] Fetching machokit
Fetched https://github.com/p-x9/MachOKit.git (1.01s)
Computing version for https://github.com/p-x9/MachOKit.git
warning: 'machokit': /Package.swift:139:1: warning: extension declares a conformance of imported type 'SwiftSetting' to imported protocol 'CaseIterable'; this will not behave correctly if the owners of 'PackageDescription' introduce this conformance in the future
137 | }
138 |
139 | extension SwiftSetting: CaseIterable {
    | |- warning: extension declares a conformance of imported type 'SwiftSetting' to imported protocol 'CaseIterable'; this will not behave correctly if the owners of 'PackageDescription' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
140 |     public static var allCases: [Self] {
141 |         [
Computed https://github.com/p-x9/MachOKit.git at 0.52.2 (1.26s)
Fetching https://github.com/p-x9/ObjectArchiveKit.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/p-x9/swift-fileio.git
Fetching https://github.com/p-x9/swift-fileio-extra.git
Fetching https://github.com/p-x9/swift-binary-parse-support.git
[1/242] Fetching swift-binary-parse-support
[243/501] Fetching swift-binary-parse-support, objectarchivekit
[502/19050] Fetching swift-binary-parse-support, objectarchivekit, swift-crypto
[503/19705] Fetching swift-binary-parse-support, objectarchivekit, swift-crypto, swift-fileio
Fetched https://github.com/p-x9/swift-fileio.git (0.49s)
[1243/19050] Fetching swift-binary-parse-support, objectarchivekit, swift-crypto
[1244/19136] Fetching swift-binary-parse-support, objectarchivekit, swift-crypto, swift-fileio-extra
Fetched https://github.com/p-x9/swift-binary-parse-support.git (1.14s)
Fetched https://github.com/p-x9/ObjectArchiveKit.git (1.14s)
Fetched https://github.com/p-x9/swift-fileio-extra.git (1.14s)
Fetched https://github.com/apple/swift-crypto.git (1.15s)
Computing version for https://github.com/p-x9/swift-binary-parse-support.git
Computed https://github.com/p-x9/swift-binary-parse-support.git at 0.2.1 (1.31s)
Computing version for https://github.com/p-x9/ObjectArchiveKit.git
Computed https://github.com/p-x9/ObjectArchiveKit.git at 0.5.0 (0.19s)
Computing version for https://github.com/p-x9/swift-fileio-extra.git
Computed https://github.com/p-x9/swift-fileio-extra.git at 0.3.0 (0.19s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.15.1 (0.14s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (1.12s)
Fetching https://github.com/apple/swift-asn1.git
[1/1983] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.46s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (1.57s)
Creating working copy for https://github.com/p-x9/MachOKit.git
Working copy of https://github.com/p-x9/MachOKit.git resolved at 0.52.2
Creating working copy for https://github.com/p-x9/swift-fileio-extra.git
Working copy of https://github.com/p-x9/swift-fileio-extra.git resolved at 0.3.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
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.15.1
Creating working copy for https://github.com/p-x9/ObjectArchiveKit.git
Working copy of https://github.com/p-x9/ObjectArchiveKit.git resolved at 0.5.0
Creating working copy for https://github.com/p-x9/swift-binary-parse-support.git
Working copy of https://github.com/p-x9/swift-binary-parse-support.git resolved at 0.2.1
warning: 'machokit': /host/spi-builder-workspace/.build/checkouts/MachOKit/Package.swift:139:1: warning: extension declares a conformance of imported type 'SwiftSetting' to imported protocol 'CaseIterable'; this will not behave correctly if the owners of 'PackageDescription' introduce this conformance in the future
137 | }
138 |
139 | extension SwiftSetting: CaseIterable {
    | |- warning: extension declares a conformance of imported type 'SwiftSetting' to imported protocol 'CaseIterable'; this will not behave correctly if the owners of 'PackageDescription' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
140 |     public static var allCases: [Self] {
141 |         [
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 335]
[Planning deferred tasks]
[80 / 501] MachOKitC
[81 / 501] CCryptoBoringSSL
[82 / 501] CCryptoBoringSSL
[84 / 501] CCryptoBoringSSL
[86 / 501] CCryptoBoringSSL
[87 / 501] CCryptoBoringSSL
[92 / 501] CCryptoBoringSSL
[94 / 501] CCryptoBoringSSL
[96 / 501] CCryptoBoringSSL
[99 / 501] FileIO
[113 / 501] CCryptoBoringSSL
[114 / 501] CCryptoBoringSSL
[117 / 501] CCryptoBoringSSL
[120 / 501] CCryptoBoringSSL
[123 / 501] CCryptoBoringSSL
[126 / 501] CCryptoBoringSSL
[136 / 501] CCryptoBoringSSL
[138 / 501] CCryptoBoringSSL
[139 / 501] CCryptoBoringSSL
[144 / 501] CCryptoBoringSSL
[146 / 501] CCryptoBoringSSL
[149 / 501] CCryptoBoringSSL
[152 / 501] CCryptoBoringSSL
[154 / 501] CCryptoBoringSSL
[156 / 501] CCryptoBoringSSL
[162 / 501] CCryptoBoringSSL
[163 / 501] CCryptoBoringSSL
[164 / 501] CCryptoBoringSSL
[170 / 501] CCryptoBoringSSL
[175 / 501] CCryptoBoringSSL
[176 / 501] CCryptoBoringSSL
[179 / 501] CCryptoBoringSSL
[180 / 501] CCryptoBoringSSL
[191 / 501] CCryptoBoringSSL
[202 / 501] CCryptoBoringSSL
[216 / 501] CCryptoBoringSSL
[217 / 501] CCryptoBoringSSL
[223 / 501] CCryptoBoringSSL
[225 / 501] CCryptoBoringSSL
[229 / 501] CCryptoBoringSSL
[231 / 501] CCryptoBoringSSL
[234 / 501] CCryptoBoringSSL
[237 / 501] CCryptoBoringSSL
[240 / 501] CCryptoBoringSSL
[245 / 501] CCryptoBoringSSL
[248 / 501] CCryptoBoringSSL
[251 / 501] CCryptoBoringSSL
[254 / 501] CCryptoBoringSSL
[257 / 501] CCryptoBoringSSL
[258 / 501] CCryptoBoringSSL
[264 / 501] CCryptoBoringSSL
[271 / 501] CCryptoBoringSSL
[276 / 501] CCryptoBoringSSL
[281 / 501] CCryptoBoringSSL
[285 / 501] CCryptoBoringSSL
[290 / 501] CCryptoBoringSSL
[298 / 501] CCryptoBoringSSL
[310 / 501] CCryptoBoringSSL
[322 / 501] CCryptoBoringSSL
[328 / 501] CCryptoBoringSSL
[331 / 501] CCryptoBoringSSL
[334 / 501] CCryptoBoringSSL
[337 / 501] CCryptoBoringSSL
[341 / 501] CCryptoBoringSSL
[344 / 501] CCryptoBoringSSL
[348 / 501] CCryptoBoringSSL
[350 / 501] CCryptoBoringSSL
[352 / 501] CCryptoBoringSSL
[355 / 501] CCryptoBoringSSL
[360 / 501] CCryptoBoringSSL
[363 / 501] CCryptoBoringSSL
[367 / 501] CCryptoBoringSSL
[379 / 501] CCryptoBoringSSL
[386 / 501] CCryptoBoringSSL
[390 / 501] CCryptoBoringSSL
[395 / 501] CCryptoBoringSSL
[397 / 501] CCryptoBoringSSL
[400 / 501] CCryptoBoringSSL
[404 / 501] CCryptoBoringSSL
[412 / 501] CCryptoBoringSSL
[421 / 501] CCryptoBoringSSL
[428 / 501] CCryptoBoringSSL
[433 / 501] CCryptoBoringSSL
[435 / 501] CCryptoBoringSSL
[438 / 501] CCryptoBoringSSL
[441 / 501] CCryptoBoringSSL
[442 / 501] CCryptoBoringSSL
[447 / 501] CCryptoBoringSSL
[450 / 501] CCryptoBoringSSL
[453 / 501] FileIO
[459 / 501] CryptoBoringWrapper
[462 / 511] BinaryParseSupport
[465 / 512] CryptoBoringWrapper
[471 / 512] BinaryParseSupport
[482 / 517] FileIOBinary
[487 / 527] CryptoBoringWrapper
[490 / 528] Crypto
[491 / 528] FileIOBinary
[493 / 529] FileIOBinary
[499 / 529] FileIOBinary
[500 / 529] FileIOBinary-product
[510 / 530]
[513 / 530] MachOKit
[517 / 540] MachOKit
[518 / 540] MachOKit
[519 / 540] Crypto
[521 / 540] MachOKit
[522 / 541] MachOKit
[523 / 541] MachOKit
[525 / 541] MachOKit
[531 / 541] MachOKit-product
[535 / 547] FishHook
[538 / 547] FishHook
[538 / 547] MachOKit
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/FishHook/FishHook.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile FishHook.swift
/host/spi-builder-workspace/Sources/FishHook/FishHook.swift:22:13: error: cannot find '_dyld_register_func_for_add_image' in scope
 20 |
 21 |         if rebindingsEntry.count == 1 {
 22 |             _dyld_register_func_for_add_image { ptr, _ in
    |             `- error: cannot find '_dyld_register_func_for_add_image' in scope
 23 |                 guard let ptr else { return }
 24 |                 let machO = MachOImage(ptr: ptr)
/host/spi-builder-workspace/Sources/FishHook/FishHook.swift:28:28: error: cannot find '_dyld_image_count' in scope
 26 |             }
 27 |         } else {
 28 |             for i in 0 ..< _dyld_image_count() {
    |                            `- error: cannot find '_dyld_image_count' in scope
 29 |                 let machO = MachOImage(ptr: _dyld_get_image_header(i))
 30 |                 _rebind_symbols_for_image(machO: machO)
/host/spi-builder-workspace/Sources/FishHook/FishHook.swift:29:45: error: cannot find '_dyld_get_image_header' in scope
 27 |         } else {
 28 |             for i in 0 ..< _dyld_image_count() {
 29 |                 let machO = MachOImage(ptr: _dyld_get_image_header(i))
    |                                             `- error: cannot find '_dyld_get_image_header' in scope
 30 |                 _rebind_symbols_for_image(machO: machO)
 31 |             }
/host/spi-builder-workspace/Sources/FishHook/FishHook.swift:78:27: error: cannot find 'vm_protect' in scope
 76 |                     rebinding.replaced?.pointee = ptr
 77 |                 }
 78 |                 let err = vm_protect(
    |                           `- error: cannot find 'vm_protect' in scope
 79 |                     mach_task_self_,
 80 |                     numericCast(bindings),
/host/spi-builder-workspace/Sources/FishHook/FishHook.swift:79:21: error: cannot find 'mach_task_self_' in scope
 77 |                 }
 78 |                 let err = vm_protect(
 79 |                     mach_task_self_,
    |                     `- error: cannot find 'mach_task_self_' in scope
 80 |                     numericCast(bindings),
 81 |                     numericCast(section.size),
/host/spi-builder-workspace/Sources/FishHook/FishHook.swift:85:27: error: cannot find 'KERN_SUCCESS' in scope
 83 |                     VM_PROT_READ | VM_PROT_WRITE | VM_PROT_COPY
 84 |                 )
 85 |                 if err == KERN_SUCCESS {
    |                           `- error: cannot find 'KERN_SUCCESS' in scope
 86 |                     bindingsPtr
 87 |                         .advanced(by: indirectSymbolIndex).pointee = rebinding.replacement
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/FishHook/Extension/MachOImage+.swift -primary-file /host/spi-builder-workspace/Sources/FishHook/FishHook.swift /host/spi-builder-workspace/Sources/FishHook/Model/Rebinding.swift /host/spi-builder-workspace/Sources/FishHook/Model/RebindingsEntry.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FishHook.build/Debug-linux-x86_64/FishHook-t.build/Objects-normal/x86_64/FishHook.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FishHook.build/Debug-linux-x86_64/FishHook-t.build/Objects-normal/x86_64/FishHook.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FishHook.build/Debug-linux-x86_64/FishHook-t.build/Objects-normal/x86_64/FishHook.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FishHook.build/Debug-linux-x86_64/FishHook-t.build/Objects-normal/x86_64/FishHook.dia -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSLShims/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/MachOKitC.modulemap -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSLShims/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/MachOKit/Sources/MachOKitC/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FishHook.build/Debug-linux-x86_64/FishHook-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FishHook.build/Debug-linux-x86_64/FishHook-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FishHook.build/Debug-linux-x86_64/FishHook-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name FishHook -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/FishHook.build/Debug-linux-x86_64/FishHook-t.build/Objects-normal/x86_64/FishHook_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/FishHook.build/Debug-linux-x86_64/FishHook-t.build/Objects-normal/x86_64/FishHook.o -index-unit-output-path /FishHook.build/Debug-linux-x86_64/FishHook-t.build/Objects-normal/x86_64/FishHook.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 linux