The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AntiFishHook, reference main (e82d5c), with Swift 6.4 for Linux on 19 Nov 2026 12:02:12 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:linux-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-anti-fishhook.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-anti-fishhook
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at e82d5c9 Merge pull request #42 from p-x9/feature/update-macos-ci-runner
Cloned https://github.com/p-x9/swift-anti-fishhook.git
Revision (git rev-parse @):
e82d5c9ee04c757da3675d960af6de5539bca576
SUCCESS checkout https://github.com/p-x9/swift-anti-fishhook.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/p-x9/swift-anti-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:linux-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:ae77353026da6cfa76cb64e03699dfd34630b0508fc99928ef90ce82e8f715d8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.4-latest
Fetching https://github.com/p-x9/MachOKit.git
Fetching https://github.com/p-x9/swift-fishhook.git
[1/258] Fetching swift-fishhook
[259/8811] Fetching swift-fishhook, machokit
Fetched https://github.com/p-x9/swift-fishhook.git (0.51s)
Fetched https://github.com/p-x9/MachOKit.git (0.51s)
Computing version for https://github.com/p-x9/swift-fishhook.git
Computed https://github.com/p-x9/swift-fishhook.git at 0.6.0 (0.66s)
Computing version for https://github.com/p-x9/MachOKit.git
warning: 'machokit': /Package.swift:145: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
143 | }
144 |
145 | 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
146 |     public static var allCases: [Self] {
147 |         [
Computed https://github.com/p-x9/MachOKit.git at 0.56.2 (0.19s)
Fetching https://github.com/p-x9/swift-binary-parse-support.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/p-x9/swift-fileio-extra.git
Fetching https://github.com/p-x9/ObjectArchiveKit.git
Fetching https://github.com/p-x9/swift-fileio.git
[1/259] Fetching objectarchivekit
[115/980] Fetching objectarchivekit, swift-fileio
[297/1242] Fetching objectarchivekit, swift-fileio, swift-binary-parse-support
[313/1333] Fetching objectarchivekit, swift-fileio, swift-binary-parse-support, swift-fileio-extra
Fetched https://github.com/p-x9/swift-fileio-extra.git (0.34s)
[904/1242] Fetching objectarchivekit, swift-fileio, swift-binary-parse-support
[1243/20190] Fetching objectarchivekit, swift-fileio, swift-binary-parse-support, swift-crypto
Fetched https://github.com/p-x9/swift-fileio.git (1.42s)
Fetched https://github.com/p-x9/swift-binary-parse-support.git (1.42s)
Fetched https://github.com/p-x9/ObjectArchiveKit.git (1.42s)
Fetched https://github.com/apple/swift-crypto.git (1.43s)
Computing version for https://github.com/p-x9/ObjectArchiveKit.git
Computed https://github.com/p-x9/ObjectArchiveKit.git at 0.5.0 (1.61s)
Computing version for https://github.com/p-x9/swift-fileio-extra.git
Computed https://github.com/p-x9/swift-fileio-extra.git at 0.4.0 (0.17s)
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.3.0 (0.14s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.16.1 (0.14s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 5.1.1 (0.95s)
Fetching https://github.com/apple/swift-asn1.git
[1/2077] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.43s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.4 (0.62s)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 5.1.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/MachOKit.git
Working copy of https://github.com/p-x9/MachOKit.git resolved at 0.56.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.4.0
Creating working copy for https://github.com/p-x9/swift-fishhook.git
Working copy of https://github.com/p-x9/swift-fishhook.git resolved at 0.6.0
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.16.1
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.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.4
warning: 'machokit': /host/spi-builder-workspace/.build/checkouts/MachOKit/Package.swift:145: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
143 | }
144 |
145 | 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
146 |     public static var allCases: [Self] {
147 |         [
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 424]
[Planning deferred tasks]
[91 / 527] MachOKitC
[92 / 527] MachOKitC
[104 / 527] FileIO-product
[105 / 527] FileIO-product
[106 / 527] FileIO-product
[113 / 528] CCryptoBoringSSL
[117 / 538] BinaryParseSupport
[127 / 539] CCryptoBoringSSL
[130 / 539] CCryptoBoringSSL
[135 / 539] CCryptoBoringSSL
[141 / 539] CCryptoBoringSSL
[145 / 539] CCryptoBoringSSL
[149 / 539] CCryptoBoringSSL
[152 / 539] CCryptoBoringSSL
[154 / 539] CCryptoBoringSSL
[158 / 539] CCryptoBoringSSL
[171 / 539] CCryptoBoringSSL
[175 / 539] CCryptoBoringSSL
[176 / 539] CCryptoBoringSSL
[181 / 539] CCryptoBoringSSL
[182 / 539] CCryptoBoringSSL
[185 / 539] CCryptoBoringSSL
[188 / 539] CCryptoBoringSSL
[190 / 539] CCryptoBoringSSL
[193 / 539] CCryptoBoringSSL
[198 / 539] CCryptoBoringSSL
[200 / 539] CCryptoBoringSSL
[206 / 539] CCryptoBoringSSL
[212 / 539] CCryptoBoringSSL
[214 / 539] CCryptoBoringSSL
[216 / 539] CCryptoBoringSSL
[229 / 539] CCryptoBoringSSL
[248 / 539] CCryptoBoringSSL
[252 / 539] CCryptoBoringSSL
[259 / 539] CCryptoBoringSSL
[261 / 539] CCryptoBoringSSL
[270 / 539] CCryptoBoringSSL
[273 / 539] CCryptoBoringSSL
[274 / 539] CCryptoBoringSSL
[277 / 539] CCryptoBoringSSL
[279 / 539] CCryptoBoringSSL
[281 / 539] CCryptoBoringSSL
[286 / 539] CCryptoBoringSSL
[288 / 539] CCryptoBoringSSL
[294 / 539] CCryptoBoringSSL
[295 / 539] CCryptoBoringSSL
[301 / 539] CCryptoBoringSSL
[313 / 539] CCryptoBoringSSL
[320 / 539] CCryptoBoringSSL
[323 / 539] CCryptoBoringSSL
[331 / 539] CCryptoBoringSSL
[342 / 539] CCryptoBoringSSL
[350 / 539] CCryptoBoringSSL
[357 / 539] CCryptoBoringSSL
[361 / 539] CCryptoBoringSSL
[365 / 539] CCryptoBoringSSL
[370 / 539] CCryptoBoringSSL
[373 / 539] CCryptoBoringSSL
[380 / 539] CCryptoBoringSSL
[386 / 539] CCryptoBoringSSL
[387 / 539] CCryptoBoringSSL
[392 / 539] CCryptoBoringSSL
[395 / 539] CCryptoBoringSSL
[400 / 539] CCryptoBoringSSL
[406 / 539] CCryptoBoringSSL
[419 / 539] CCryptoBoringSSL
[425 / 539] CCryptoBoringSSL
[428 / 539] CCryptoBoringSSL
[435 / 539] CCryptoBoringSSL
[440 / 539] CCryptoBoringSSL
[447 / 539] CCryptoBoringSSL
[455 / 539] CCryptoBoringSSL
[467 / 539] CCryptoBoringSSL
[470 / 539] CCryptoBoringSSL
[473 / 539] CCryptoBoringSSL
[475 / 539] CCryptoBoringSSL
[480 / 539] CCryptoBoringSSL
[484 / 539] FileIO
[492 / 539] CCryptoBoringSSL
[500 / 541]
[507 / 553] Crypto
[515 / 554] FileIOBinary-product
[516 / 555] FileIOBinary-product
[519 / 555] FileIOBinary
[521 / 555] BinaryParseSupport
[530 / 556] FileIOBinary
[530 / 556] Crypto
[535 / 567] MachOKit
[536 / 567] MachOKit
[537 / 567] MachOKit
[538 / 568] MachOKit
[539 / 568] MachOKit
[542 / 568] MachOKit
[546 / 568] CCryptoBoringSSL
[547 / 568] MachOKit
[552 / 574] FishHook
[554 / 574] FishHook
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/.build/checkouts/swift-fishhook/Sources/FishHook/FishHook.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile FishHook.swift
/host/spi-builder-workspace/.build/checkouts/swift-fishhook/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/.build/checkouts/swift-fishhook/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/.build/checkouts/swift-fishhook/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/.build/checkouts/swift-fishhook/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/.build/checkouts/swift-fishhook/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/.build/checkouts/swift-fishhook/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/.build/checkouts/swift-fishhook/Sources/FishHook/Extension/MachOImage+.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-fishhook/Sources/FishHook/FishHook.swift /host/spi-builder-workspace/.build/checkouts/swift-fishhook/Sources/FishHook/Model/Rebinding.swift /host/spi-builder-workspace/.build/checkouts/swift-fishhook/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 -suppress-warnings -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/CXKCPShims/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CXKCP/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/CXKCPShims/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CXKCP/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 -DDE[559 / 574] FishHook
BUG\=1 -no-auto-bridging-header-chaining -module-name FishHook -package-name swift_fishhook -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