Build Information
Failed to build SwiftPCAP, reference 1.3.1 (7fc1f4
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 01:00:37 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OperatorFoundation/SwiftPCAP.git
Reference: 1.3.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/OperatorFoundation/SwiftPCAP
* tag 1.3.1 -> FETCH_HEAD
HEAD is now at 7fc1f40 Swift 5.3
Cloned https://github.com/OperatorFoundation/SwiftPCAP.git
Revision (git rev-parse @):
7fc1f40ca4638629c9d95e750bb80d782023ad4a
SUCCESS checkout https://github.com/OperatorFoundation/SwiftPCAP.git at 1.3.1
Fetching https://github.com/OperatorFoundation/SwiftHexTools
[1/96] Fetching swifthextools
Fetched https://github.com/OperatorFoundation/SwiftHexTools from cache (0.66s)
Computing version for https://github.com/OperatorFoundation/SwiftHexTools
Computed https://github.com/OperatorFoundation/SwiftHexTools at 1.2.6 (0.68s)
Creating working copy for https://github.com/OperatorFoundation/SwiftHexTools
Working copy of https://github.com/OperatorFoundation/SwiftHexTools resolved at 1.2.6
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftpcap",
"name": "SwiftPCAP",
"url": "https://github.com/OperatorFoundation/SwiftPCAP.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftPCAP",
"dependencies": [
]
}
]
}
Fetching https://github.com/OperatorFoundation/SwiftPCAP.git
[1/178] Fetching swiftpcap
Fetched https://github.com/OperatorFoundation/SwiftPCAP.git from cache (0.68s)
Creating working copy for https://github.com/OperatorFoundation/SwiftPCAP.git
Working copy of https://github.com/OperatorFoundation/SwiftPCAP.git resolved at 1.3.1 (7fc1f40)
warning: '.resolve-product-dependencies': dependency 'swiftpcap' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/OperatorFoundation/SwiftPCAP.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Emitting module SwiftPCAP
/Users/admin/builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/usr/local/opt/libpcap/include/pcap.h' not found
2 | {
3 | //path to libpcap as installed by homebrew. Don't forget to export the path, example: echo 'export PATH="/usr/local/opt/libpcap/bin:$PATH"' >> ~/.zshrc
4 | header "/usr/local/opt/libpcap/include/pcap.h"
| `- error: header '/usr/local/opt/libpcap/include/pcap.h' not found
5 | link "/usr/local/opt/libpcap/lib/libpcap.dylib"
6 | export *
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
3 |
4 | #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
5 | import ClibpcapMacOS
| `- error: could not build Objective-C module 'ClibpcapMacOS'
6 | #elseif os(Linux)
7 | import ClibpcapLinux
[4/6] Compiling SwiftPCAP SwiftPCAPLive.swift
/Users/admin/builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/usr/local/opt/libpcap/include/pcap.h' not found
2 | {
3 | //path to libpcap as installed by homebrew. Don't forget to export the path, example: echo 'export PATH="/usr/local/opt/libpcap/bin:$PATH"' >> ~/.zshrc
4 | header "/usr/local/opt/libpcap/include/pcap.h"
| `- error: header '/usr/local/opt/libpcap/include/pcap.h' not found
5 | link "/usr/local/opt/libpcap/lib/libpcap.dylib"
6 | export *
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
3 |
4 | #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
5 | import ClibpcapMacOS
| `- error: could not build Objective-C module 'ClibpcapMacOS'
6 | #elseif os(Linux)
7 | import ClibpcapLinux
[5/6] Compiling SwiftPCAP SwiftPCAP.swift
/Users/admin/builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/usr/local/opt/libpcap/include/pcap.h' not found
2 | {
3 | //path to libpcap as installed by homebrew. Don't forget to export the path, example: echo 'export PATH="/usr/local/opt/libpcap/bin:$PATH"' >> ~/.zshrc
4 | header "/usr/local/opt/libpcap/include/pcap.h"
| `- error: header '/usr/local/opt/libpcap/include/pcap.h' not found
5 | link "/usr/local/opt/libpcap/lib/libpcap.dylib"
6 | export *
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
3 |
4 | #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
5 | import ClibpcapMacOS
| `- error: could not build Objective-C module 'ClibpcapMacOS'
6 | #elseif os(Linux)
7 | import ClibpcapLinux
[6/6] Compiling SwiftPCAP SwiftPCAPOffline.swift
/Users/admin/builder/spi-builder-workspace/Sources/Clibpcap/module.modulemap:4:12: error: header '/usr/local/opt/libpcap/include/pcap.h' not found
2 | {
3 | //path to libpcap as installed by homebrew. Don't forget to export the path, example: echo 'export PATH="/usr/local/opt/libpcap/bin:$PATH"' >> ~/.zshrc
4 | header "/usr/local/opt/libpcap/include/pcap.h"
| `- error: header '/usr/local/opt/libpcap/include/pcap.h' not found
5 | link "/usr/local/opt/libpcap/lib/libpcap.dylib"
6 | export *
/Users/admin/builder/spi-builder-workspace/Sources/SwiftPCAP/SwiftPCAP.swift:5:12: error: could not build Objective-C module 'ClibpcapMacOS'
3 |
4 | #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
5 | import ClibpcapMacOS
| `- error: could not build Objective-C module 'ClibpcapMacOS'
6 | #elseif os(Linux)
7 | import ClibpcapLinux
BUILD FAILURE 6.0 macosSpm