The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftHook with Swift 5.9 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.34.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-hook.git
Reference: 0.5.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-hook
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at 697dcbd Merge pull request #15 from p-x9/dependabot/swift/github.com/p-x9/machokit-spm-0.15.0
Cloned https://github.com/p-x9/swift-hook.git
Revision (git rev-parse @):
697dcbd6e534235d97c355a1d047b5009a960a0a
SUCCESS checkout https://github.com/p-x9/swift-hook.git at 0.5.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $workDir
https://github.com/p-x9/swift-hook.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/p-x9/fishhook
[1/126] Fetching fishhook
Fetched https://github.com/p-x9/fishhook (0.18s)
Fetching https://github.com/p-x9/Echo
[1/975] Fetching echo
Fetched https://github.com/p-x9/Echo (0.21s)
Fetching https://github.com/p-x9/MachOKit-SPM
Fetching https://github.com/apple/swift-atomics.git
[1/123] Fetching machokit-spm
[124/1686] Fetching machokit-spm, swift-atomics
Fetched https://github.com/p-x9/MachOKit-SPM (0.34s)
Fetched https://github.com/apple/swift-atomics.git (0.34s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 0.0.3 (0.35s)
Computing version for https://github.com/p-x9/MachOKit-SPM
Computed https://github.com/p-x9/MachOKit-SPM at 0.15.0 (0.31s)
Creating working copy for https://github.com/p-x9/MachOKit-SPM
Working copy of https://github.com/p-x9/MachOKit-SPM resolved at 0.15.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
Creating working copy for https://github.com/p-x9/fishhook
Working copy of https://github.com/p-x9/fishhook resolved at spm
Downloading binary artifact https://github.com/p-x9/MachOKit/releases/download/0.15.0/MachOKit.xcframework.zip
Downloading binary artifact https://github.com/p-x9/MachOKit/releases/download/0.15.0/MachOKitC.xcframework.zip
[882/9781032] Downloading https://github.com/p-x9/MachOKit/releases/download/0.15.0/MachOKit.xcframework.zip
[9797407/9937162] Downloading https://github.com/p-x9/MachOKit/releases/download/0.15.0/MachOKit.xcframework.zip, https://github.com/p-x9/MachOKit/releases/download/0.15.0/MachOKitC.xcframework.zip
Downloaded https://github.com/p-x9/MachOKit/releases/download/0.15.0/MachOKitC.xcframework.zip (0.41s)
Downloaded https://github.com/p-x9/MachOKit/releases/download/0.15.0/MachOKit.xcframework.zip (1.61s)
Building for debugging...
[0/8] Compiling CEcho ValueWitnessTable.c
[1/8] Compiling CEcho ImageInspectionMachO.c
[2/8] Compiling CEcho KnownMetadata.c
[3/8] Compiling CEcho Functions.c
[4/8] Compiling CEcho CallAccessor.c
/host/spi-builder-workspace/.build/checkouts/fishhook/fishhook.c:32:10: fatal error: 'mach/mach.h' file not found
#include <mach/mach.h>
         ^~~~~~~~~~~~~
1 error generated.
[5/8] Compiling fishhookC fishhook.c
[5/8] Compiling CEcho ImageInspectionELF.c
[5/8] Compiling _AtomicsShims.c
[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
#include <mach/mach.h>
         ^~~~~~~~~~~~~
1 error generated.
[0/3] Compiling fishhookC fishhook.c
[0/3] Compiling CEcho ImageInspectionELF.c
[0/3] Compiling _AtomicsShims.c
BUILD FAILURE 5.9 linux

Build Machine: Linux 1