Build Information
Failed to build AntiFishHook, reference 0.8.0 (364326), with Swift 6.4 for Linux on 24 Sep 2026 15:03:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-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-anti-fishhook.git
Reference: 0.8.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-anti-fishhook
* tag 0.8.0 -> FETCH_HEAD
HEAD is now at 3643267 Merge pull request #37 from p-x9/feature/improve-reexport-handling
Cloned https://github.com/p-x9/swift-anti-fishhook.git
Revision (git rev-parse @):
3643267d8324cae6b05a2f37b0806541378f4e03
SUCCESS checkout https://github.com/p-x9/swift-anti-fishhook.git at 0.8.0
========================================
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-54344847-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/swift-fishhook.git
Fetching https://github.com/p-x9/MachOKit.git
[1/7626] Fetching machokit
[5645/7877] Fetching machokit, swift-fishhook
Fetched https://github.com/p-x9/swift-fishhook.git (0.53s)
Fetched https://github.com/p-x9/MachOKit.git (0.54s)
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.70s)
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 (0.21s)
Fetching https://github.com/p-x9/swift-fileio-extra.git
Fetching https://github.com/p-x9/swift-fileio.git
Fetching https://github.com/p-x9/swift-binary-parse-support.git
Fetching https://github.com/p-x9/ObjectArchiveKit.git
Fetching https://github.com/apple/swift-crypto.git
[1/86] Fetching swift-fileio-extra
[23/18635] Fetching swift-fileio-extra, swift-crypto
[644/18894] Fetching swift-fileio-extra, swift-crypto, objectarchivekit
[10363/19549] Fetching swift-fileio-extra, swift-crypto, objectarchivekit, swift-fileio
[12417/19791] Fetching swift-fileio-extra, swift-crypto, objectarchivekit, swift-fileio, swift-binary-parse-support
Fetched https://github.com/p-x9/swift-fileio-extra.git (1.03s)
Fetched https://github.com/p-x9/ObjectArchiveKit.git (1.18s)
Fetched https://github.com/p-x9/swift-binary-parse-support.git (1.18s)
Fetched https://github.com/p-x9/swift-fileio.git (1.18s)
Fetched https://github.com/apple/swift-crypto.git (1.19s)
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.35s)
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.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.15s)
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 (1.11s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (2.20s)
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/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/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
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/MachOKit.git
Working copy of https://github.com/p-x9/MachOKit.git resolved at 0.52.2
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-extra.git
Working copy of https://github.com/p-x9/swift-fileio-extra.git resolved at 0.3.0
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 / 365]
[Planning deferred tasks]
[81 / 514] MachOKitC
[83 / 514] CCryptoBoringSSL
[84 / 514] CCryptoBoringSSL
[85 / 514] CCryptoBoringSSL
[88 / 514] CCryptoBoringSSL
[90 / 514] CCryptoBoringSSL
[99 / 514] CCryptoBoringSSL
[100 / 514] CCryptoBoringSSL
[101 / 514] CCryptoBoringSSL
[109 / 514] FileIO
[118 / 514] CCryptoBoringSSL
[120 / 514] CCryptoBoringSSL
[123 / 514] CCryptoBoringSSL
[127 / 514] CCryptoBoringSSL
[131 / 514] CCryptoBoringSSL
[137 / 514] CCryptoBoringSSL
[141 / 514] CCryptoBoringSSL
[142 / 514] CCryptoBoringSSL
[143 / 514] CCryptoBoringSSL
[145 / 514] CCryptoBoringSSL
[147 / 514] CCryptoBoringSSL
[151 / 514] CCryptoBoringSSL
[152 / 514] CCryptoBoringSSL
[153 / 514] CCryptoBoringSSL
[157 / 514] CCryptoBoringSSL
[158 / 514] CCryptoBoringSSL
[160 / 514] CCryptoBoringSSL
[161 / 514] CCryptoBoringSSL
[167 / 514] CCryptoBoringSSL
[168 / 514] CCryptoBoringSSL
[174 / 514] CCryptoBoringSSL
[179 / 514] CCryptoBoringSSL
[181 / 514] CCryptoBoringSSL
[184 / 514] CCryptoBoringSSL
[185 / 514] CCryptoBoringSSL
[193 / 514] CCryptoBoringSSL
[207 / 514] CCryptoBoringSSL
[220 / 514] CCryptoBoringSSL
[224 / 514] CCryptoBoringSSL
[228 / 514] CCryptoBoringSSL
[230 / 514] CCryptoBoringSSL
[235 / 514] CCryptoBoringSSL
[237 / 514] CCryptoBoringSSL
[240 / 514] CCryptoBoringSSL
[241 / 514] CCryptoBoringSSL
[244 / 514] CCryptoBoringSSL
[249 / 514] CCryptoBoringSSL
[252 / 514] CCryptoBoringSSL
[254 / 514] CCryptoBoringSSL
[259 / 514] CCryptoBoringSSL
[261 / 514] CCryptoBoringSSL
[263 / 514] CCryptoBoringSSL
[267 / 514] CCryptoBoringSSL
[274 / 514] CCryptoBoringSSL
[278 / 514] CCryptoBoringSSL
[281 / 514] CCryptoBoringSSL
[285 / 514] CCryptoBoringSSL
[290 / 514] CCryptoBoringSSL
[296 / 514] CCryptoBoringSSL
[302 / 514] CCryptoBoringSSL
[313 / 514] CCryptoBoringSSL
[315 / 514] CCryptoBoringSSL
[329 / 514] CCryptoBoringSSL
[335 / 514] CCryptoBoringSSL
[339 / 514] CCryptoBoringSSL
[341 / 514] CCryptoBoringSSL
[342 / 514] CCryptoBoringSSL
[346 / 514] CCryptoBoringSSL
[349 / 514] CCryptoBoringSSL
[354 / 514] CCryptoBoringSSL
[355 / 514] CCryptoBoringSSL
[359 / 514] CCryptoBoringSSL
[362 / 514] CCryptoBoringSSL
[366 / 514] CCryptoBoringSSL
[368 / 514] CCryptoBoringSSL
[374 / 514] CCryptoBoringSSL
[385 / 514] CCryptoBoringSSL
[392 / 514] CCryptoBoringSSL
[395 / 514] CCryptoBoringSSL
[400 / 514] CCryptoBoringSSL
[404 / 514] CCryptoBoringSSL
[407 / 514] CCryptoBoringSSL
[409 / 514] CCryptoBoringSSL
[420 / 514] CCryptoBoringSSL
[427 / 514] CCryptoBoringSSL
[436 / 514] CCryptoBoringSSL
[438 / 514] CCryptoBoringSSL
[440 / 514] CCryptoBoringSSL
[441 / 514] CCryptoBoringSSL
[444 / 514] CCryptoBoringSSL
[449 / 514] CCryptoBoringSSL
[453 / 514] CCryptoBoringSSL
[456 / 514] FileIO-product
[458 / 514] CCryptoBoringSSL
[460 / 514] CryptoBoringWrapper
[463 / 514] CryptoBoringWrapper
[465 / 514] Crypto
[475 / 535] Crypto
[477 / 535] Crypto
[478 / 536] CryptoBoringWrapper
[483 / 536] BinaryParseSupport
[488 / 536] Crypto
[489 / 536] Crypto
[496 / 536] CCryptoBoringSSL
[497 / 536] Crypto-product
[498 / 536] Crypto
[503 / 540] Crypto
[505 / 540]
[507 / 540] BinaryParseSupport
[516 / 542] Crypto
[523 / 553] MachOKit
[524 / 553] MachOKit
[525 / 554] MachOKit
[528 / 554] MachOKit
[537 / 554] MachOKit-product
[541 / 560] FishHook
[545 / 560] 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: [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/.build/checkouts/swift-fishhook/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/.build/checkouts/swift-fishhook/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/.build/checkouts/swift-fishhook/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/.build/checkouts/swift-fishhook/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/.build/checkouts/swift-fishhook/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/.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/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 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