Build Information
Failed to build FishHook, reference main (1368e1), with Swift 6.4 for Linux on 22 Sep 2026 08:24:57 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-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>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-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-fishhook
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 1368e13 Merge pull request #42 from p-x9/dependabot/swift/github.com/p-x9/machokit-0.48.0
Cloned https://github.com/p-x9/swift-fishhook.git
Revision (git rev-parse @):
1368e13b367b591db0cb33a5f0a2abc53b5f1410
SUCCESS checkout https://github.com/p-x9/swift-fishhook.git at main
========================================
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-53886769-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.08s)
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.31s)
Fetching https://github.com/p-x9/swift-binary-parse-support.git
Fetching https://github.com/p-x9/swift-fileio-extra.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/p-x9/ObjectArchiveKit.git
Fetching https://github.com/p-x9/swift-fileio.git
[1/18549] Fetching swift-crypto
[2/18635] Fetching swift-crypto, swift-fileio-extra
[273/18877] Fetching swift-crypto, swift-fileio-extra, swift-binary-parse-support
[886/19532] Fetching swift-crypto, swift-fileio-extra, swift-binary-parse-support, swift-fileio
Fetched https://github.com/p-x9/swift-fileio.git (0.51s)
[1627/18877] Fetching swift-crypto, swift-fileio-extra, swift-binary-parse-support
[2184/19136] Fetching swift-crypto, swift-fileio-extra, swift-binary-parse-support, objectarchivekit
Fetched https://github.com/p-x9/ObjectArchiveKit.git (0.55s)
[2369/18877] Fetching swift-crypto, swift-fileio-extra, swift-binary-parse-support
Fetched https://github.com/p-x9/swift-fileio-extra.git (1.19s)
Fetched https://github.com/p-x9/swift-binary-parse-support.git (1.19s)
Fetched https://github.com/apple/swift-crypto.git (1.20s)
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.36s)
Computing version for https://github.com/p-x9/ObjectArchiveKit.git
Computed https://github.com/p-x9/ObjectArchiveKit.git at 0.5.0 (0.18s)
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.25s)
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.45s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (1.54s)
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/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.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/swift-binary-parse-support.git
Working copy of https://github.com/p-x9/swift-binary-parse-support.git resolved at 0.2.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/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
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]
[75 / 511] BinaryParseSupport
[76 / 511] MachOKitC
[77 / 511] CCryptoBoringSSL
[79 / 511] CCryptoBoringSSL
[82 / 511] CCryptoBoringSSL
[83 / 511] CCryptoBoringSSL
[84 / 511] CCryptoBoringSSL
[88 / 511] CCryptoBoringSSL
[94 / 511] CCryptoBoringSSL
[95 / 511] CCryptoBoringSSL
[97 / 511] CCryptoBoringSSL
[100 / 511] FileIO
[115 / 511] CCryptoBoringSSL
[118 / 511] CCryptoBoringSSL
[120 / 511] CCryptoBoringSSL
[121 / 511] CCryptoBoringSSL
[125 / 511] CCryptoBoringSSL
[126 / 511] CCryptoBoringSSL
[128 / 511] CCryptoBoringSSL
[130 / 511] CCryptoBoringSSL
[135 / 511] CCryptoBoringSSL
[142 / 511] CCryptoBoringSSL
[143 / 511] CCryptoBoringSSL
[144 / 511] CCryptoBoringSSL
[146 / 511] CCryptoBoringSSL
[150 / 511] CCryptoBoringSSL
[151 / 511] CCryptoBoringSSL
[153 / 511] CCryptoBoringSSL
[156 / 511] CCryptoBoringSSL
[157 / 511] CCryptoBoringSSL
[158 / 511] CCryptoBoringSSL
[160 / 511] CCryptoBoringSSL
[162 / 511] CCryptoBoringSSL
[163 / 511] CCryptoBoringSSL
[167 / 511] CCryptoBoringSSL
[169 / 511] CCryptoBoringSSL
[174 / 511] CCryptoBoringSSL
[175 / 511] CCryptoBoringSSL
[180 / 511] CCryptoBoringSSL
[184 / 511] CCryptoBoringSSL
[187 / 511] CCryptoBoringSSL
[193 / 511] CCryptoBoringSSL
[199 / 511] CCryptoBoringSSL
[207 / 511] CCryptoBoringSSL
[217 / 511] CCryptoBoringSSL
[221 / 511] CCryptoBoringSSL
[222 / 511] CCryptoBoringSSL
[227 / 511] CCryptoBoringSSL
[230 / 511] CCryptoBoringSSL
[235 / 511] CCryptoBoringSSL
[239 / 511] CCryptoBoringSSL
[242 / 511] CCryptoBoringSSL
[245 / 511] CCryptoBoringSSL
[246 / 511] CCryptoBoringSSL
[250 / 511] CCryptoBoringSSL
[255 / 511] CCryptoBoringSSL
[256 / 511] CCryptoBoringSSL
[258 / 511] CCryptoBoringSSL
[260 / 511] CCryptoBoringSSL
[264 / 511] CCryptoBoringSSL
[268 / 511] CCryptoBoringSSL
[269 / 511] CCryptoBoringSSL
[272 / 511] CCryptoBoringSSL
[277 / 511] CCryptoBoringSSL
[280 / 511] CCryptoBoringSSL
[284 / 511] CCryptoBoringSSL
[288 / 511] CCryptoBoringSSL
[289 / 511] CCryptoBoringSSL
[292 / 511] CCryptoBoringSSL
[293 / 511] CCryptoBoringSSL
[294 / 511] CCryptoBoringSSL
[297 / 511] CCryptoBoringSSL
[306 / 511] CCryptoBoringSSL
[313 / 511] CCryptoBoringSSL
[317 / 511] CCryptoBoringSSL
[320 / 511] CCryptoBoringSSL
[329 / 511] CCryptoBoringSSL
[331 / 511] CCryptoBoringSSL
[336 / 511] CCryptoBoringSSL
[341 / 511] CCryptoBoringSSL
[342 / 511] CCryptoBoringSSL
[345 / 511] CCryptoBoringSSL
[348 / 511] CCryptoBoringSSL
[350 / 511] CCryptoBoringSSL
[356 / 511] CCryptoBoringSSL
[358 / 511] CCryptoBoringSSL
[362 / 511] CCryptoBoringSSL
[364 / 511] CCryptoBoringSSL
[368 / 511] CCryptoBoringSSL
[372 / 511] CCryptoBoringSSL
[381 / 511] CCryptoBoringSSL
[391 / 511] CCryptoBoringSSL
[392 / 511] CCryptoBoringSSL
[397 / 511] CCryptoBoringSSL
[402 / 511] CCryptoBoringSSL
[405 / 511] CCryptoBoringSSL
[407 / 511] CCryptoBoringSSL
[410 / 511] CCryptoBoringSSL
[412 / 511] CCryptoBoringSSL
[423 / 511] CCryptoBoringSSL
[431 / 511] CCryptoBoringSSL
[439 / 511] CCryptoBoringSSL
[440 / 511] CCryptoBoringSSL
[442 / 511] CCryptoBoringSSL
[443 / 511] CCryptoBoringSSL
[445 / 511] CCryptoBoringSSL
[450 / 511] CCryptoBoringSSL
[452 / 511] CCryptoBoringSSL
[455 / 511] FileIO
[457 / 511] FileIO-product
[460 / 511] CryptoBoringWrapper
[461 / 511] CryptoBoringWrapper
[468 / 512] FileIO
[471 / 512] FileIO
[474 / 512] BinaryParseSupport-product
[483 / 518] FileIOBinary
[485 / 527] FileIO
[489 / 527] Crypto
[492 / 528] FileIOBinary
[497 / 529] FileIOBinary
[498 / 529] Crypto
[506 / 529] CCryptoBoringSSL
[510 / 530]
[513 / 530] Crypto
[518 / 540] MachOKit
[519 / 540] MachOKit
[522 / 541] MachOKit
[525 / 541] MachOKit
[531 / 541] MachOKit-product
[535 / 547] FishHook
[538 / 547] FishHook
[542 / 547] FishHook
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: [1;31merror: [1;39mcannot find '_dyld_register_func_for_add_image' in scope[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m if rebindingsEntry.count == 1 {
[0;36m22 |[0;0m [4;39m_dyld_register_func_for_add_image[0;0m { ptr, _ in
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find '_dyld_register_func_for_add_image' in scope[0;0m
[0;36m23 |[0;0m guard let ptr else { return }
[0;36m24 |[0;0m let machO = MachOImage(ptr: ptr)
/host/spi-builder-workspace/Sources/FishHook/FishHook.swift:28:28: [1;31merror: [1;39mcannot find '_dyld_image_count' in scope[0;0m
[0;36m26 |[0;0m }
[0;36m27 |[0;0m } else {
[0;36m28 |[0;0m for i in 0 ..< [4;39m_dyld_image_count[0;0m() {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find '_dyld_image_count' in scope[0;0m
[0;36m29 |[0;0m let machO = MachOImage(ptr: _dyld_get_image_header(i))
[0;36m30 |[0;0m _rebind_symbols_for_image(machO: machO)
/host/spi-builder-workspace/Sources/FishHook/FishHook.swift:29:45: [1;31merror: [1;39mcannot find '_dyld_get_image_header' in scope[0;0m
[0;36m27 |[0;0m } else {
[0;36m28 |[0;0m for i in 0 ..< _dyld_image_count() {
[0;36m29 |[0;0m let machO = MachOImage(ptr: [4;39m_dyld_get_image_header[0;0m(i))
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find '_dyld_get_image_header' in scope[0;0m
[0;36m30 |[0;0m _rebind_symbols_for_image(machO: machO)
[0;36m31 |[0;0m }
/host/spi-builder-workspace/Sources/FishHook/FishHook.swift:78:27: [1;31merror: [1;39mcannot find 'vm_protect' in scope[0;0m
[0;36m76 |[0;0m rebinding.replaced?.pointee = ptr
[0;36m77 |[0;0m }
[0;36m78 |[0;0m let err = [4;39mvm_protect[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'vm_protect' in scope[0;0m
[0;36m79 |[0;0m mach_task_self_,
[0;36m80 |[0;0m numericCast(bindings),
/host/spi-builder-workspace/Sources/FishHook/FishHook.swift:79:21: [1;31merror: [1;39mcannot find 'mach_task_self_' in scope[0;0m
[0;36m77 |[0;0m }
[0;36m78 |[0;0m let err = vm_protect(
[0;36m79 |[0;0m [4;39mmach_task_self_[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'mach_task_self_' in scope[0;0m
[0;36m80 |[0;0m numericCast(bindings),
[0;36m81 |[0;0m numericCast(section.size),
/host/spi-builder-workspace/Sources/FishHook/FishHook.swift:85:27: [1;31merror: [1;39mcannot find 'KERN_SUCCESS' in scope[0;0m
[0;36m83 |[0;0m VM_PROT_READ | VM_PROT_WRITE | VM_PROT_COPY
[0;36m84 |[0;0m )
[0;36m85 |[0;0m if err == [4;39mKERN_SUCCESS[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'KERN_SUCCESS' in scope[0;0m
[0;36m86 |[0;0m bindingsPtr
[0;36m87 |[0;0m .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