The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PacketCaptureBPF, reference main (4b7ae0), with Swift 6.2 for Linux on 19 Jun 2025 05:49:19 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OperatorFoundation/PacketCaptureBPF.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/OperatorFoundation/PacketCaptureBPF
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4b7ae02 swift-tools-version:5.8 macOS 13
Cloned https://github.com/OperatorFoundation/PacketCaptureBPF.git
Revision (git rev-parse @):
4b7ae02db84a5d9412fba27292b3a577eb6304d0
SUCCESS checkout https://github.com/OperatorFoundation/PacketCaptureBPF.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/OperatorFoundation/PacketCaptureBPF.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/OperatorFoundation/PacketStream.git
[1/45] Fetching packetstream
Fetched https://github.com/OperatorFoundation/PacketStream.git from cache (0.25s)
Fetching https://github.com/OperatorFoundation/Datable.git
[1/399] Fetching datable
Fetched https://github.com/OperatorFoundation/Datable.git from cache (0.26s)
Fetching https://github.com/OperatorFoundation/InternetProtocols.git
[1/467] Fetching internetprotocols
Fetched https://github.com/OperatorFoundation/InternetProtocols.git from cache (0.29s)
Fetching https://github.com/OperatorFoundation/Bits.git
[1/122] Fetching bits
Fetched https://github.com/OperatorFoundation/Bits.git from cache (0.21s)
Fetching https://github.com/OperatorFoundation/SwiftQueue.git
[1/70] Fetching swiftqueue
Fetched https://github.com/OperatorFoundation/SwiftQueue.git from cache (0.17s)
Fetching https://github.com/OperatorFoundation/Net.git
[1/105] Fetching net
Fetched https://github.com/OperatorFoundation/Net.git from cache (0.21s)
Fetching https://github.com/OperatorFoundation/SwiftHexTools.git
[1/96] Fetching swifthextools
Fetched https://github.com/OperatorFoundation/SwiftHexTools.git from cache (0.61s)
Fetching https://github.com/OperatorFoundation/NetworkLinux
[1/199] Fetching networklinux
Fetched https://github.com/OperatorFoundation/NetworkLinux from cache (0.30s)
Fetching https://github.com/OperatorFoundation/BlueSocket.git
[1/2764] Fetching bluesocket
Fetched https://github.com/OperatorFoundation/BlueSocket.git from cache (0.38s)
Fetching https://github.com/apple/swift-argument-parser
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.20s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (1.92s)
Creating working copy for https://github.com/OperatorFoundation/SwiftHexTools.git
Working copy of https://github.com/OperatorFoundation/SwiftHexTools.git resolved at main (3d4b5a9)
Creating working copy for https://github.com/OperatorFoundation/InternetProtocols.git
Working copy of https://github.com/OperatorFoundation/InternetProtocols.git resolved at main (ce88950)
Creating working copy for https://github.com/OperatorFoundation/Datable.git
Working copy of https://github.com/OperatorFoundation/Datable.git resolved at main (1186348)
Creating working copy for https://github.com/OperatorFoundation/PacketStream.git
Working copy of https://github.com/OperatorFoundation/PacketStream.git resolved at main (7916aee)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
Creating working copy for https://github.com/OperatorFoundation/Bits.git
Working copy of https://github.com/OperatorFoundation/Bits.git resolved at main (cc7079e)
Creating working copy for https://github.com/OperatorFoundation/Net.git
Working copy of https://github.com/OperatorFoundation/Net.git resolved at main (e49f54a)
Creating working copy for https://github.com/OperatorFoundation/NetworkLinux
Working copy of https://github.com/OperatorFoundation/NetworkLinux resolved at main (2c563f2)
Creating working copy for https://github.com/OperatorFoundation/SwiftQueue.git
Working copy of https://github.com/OperatorFoundation/SwiftQueue.git resolved at main (3d099bc)
Creating working copy for https://github.com/OperatorFoundation/BlueSocket.git
Working copy of https://github.com/OperatorFoundation/BlueSocket.git resolved at main (5a936a3)
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/46] Emitting module PacketStream
[9/46] Compiling Datable Datable.swift
[10/46] Compiling Datable DatableConfig.swift
[11/46] Compiling Datable Double+MaybeDatable.swift
[12/46] Compiling Datable Double+Stringable.swift
[13/46] Compiling Datable File.swift
[14/50] Compiling Datable MaybeIntable.swift
[15/50] Compiling Datable MaybeNetworkIntable.swift
[16/50] Compiling Datable NetworkDatable.swift
[17/50] Compiling Datable NetworkIntable.swift
[18/50] Compiling Datable Int+MaybeDatable.swift
[19/50] Compiling Datable Int+MaybeIntable.swift
[20/50] Compiling Datable Int+Stringable.swift
[21/50] Compiling Datable Intable.swift
[22/50] Compiling Datable MaybeDatable.swift
[23/50] Compiling Datable String+Arrayable.swift
[24/50] Compiling Datable String+Datable.swift
[25/50] Compiling Datable String+Intable.swift
[26/50] Compiling Datable Stringable.swift
[27/50] Compiling PacketStream PacketStream.swift
[29/51] Compiling SwiftQueue LinkedList.swift
[30/51] Compiling SwiftQueue Queue.swift
[31/51] Emitting module SwiftQueue
[32/51] Compiling Datable Data+ExpressibleByStringLiteral.swift
[33/51] Compiling Datable Data+Floatable.swift
[34/51] Compiling Datable Data+MaybeIntable.swift
[35/51] Compiling Datable Data+MaybeNetworkIntable.swift
[36/52] Compiling Datable Data+Stringable.swift
[37/52] Compiling Datable Float+Floatable.swift
[38/52] Compiling Datable Float+MaybeDatable.swift
[39/52] Compiling Datable Float+MaybeIntable.swift
[40/52] Compiling Datable Floatable.swift
[41/52] Compiling Datable Int+Floatable.swift
[43/52] Emitting module Datable
[44/52] Compiling Datable Arrayable.swift
[45/52] Compiling Datable CSVable.swift
[46/52] Compiling Datable Data+Arrayable.swift
[47/52] Compiling Datable Data+Base64.swift
[48/52] Compiling Datable Data+Datable.swift
[49/52] Compiling Datable StringableArray+CSVable.swift
[50/52] Compiling Datable UInt+Datable.swift
[51/52] Compiling Datable UInt+MaybeNetworkDatable.swift
[52/52] Compiling Datable UInt+Stringable.swift
[54/57] Compiling Bits SimpleBits+MaybeIntable.swift
[55/57] Compiling Bits Bits.swift
[56/57] Emitting module Bits
[57/57] Compiling Bits Bits+MaybeIntable.swift
[59/60] Compiling PacketCaptureBPF CaptureDevice.swift
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:70:16: error: value of type 'ifreq' has no member 'ifr_name'
 68 |         let ifr_name: [Int8] = paddedArray(source: interfaceNameArray, targetSize: 16, padValue: 0)
 69 |
 70 |         if_req.ifr_name = (ifr_name[0], ifr_name[1], ifr_name[2], ifr_name[3], ifr_name[4], ifr_name[5], ifr_name[6], ifr_name[7], ifr_name[8], ifr_name[9], ifr_name[10], ifr_name[11], ifr_name[12], ifr_name[13], ifr_name[14], ifr_name[15])
    |                `- error: value of type 'ifreq' has no member 'ifr_name'
 71 | //        print("* interface name defined")
 72 |
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:87:35: error: cannot find 'Darwin' in scope
 85 |             else
 86 |             {
 87 |                 print("* errno: \(Darwin.errno)")
    |                                   `- error: cannot find 'Darwin' in scope
 88 |                 print("* \(dev)")
 89 |             }
[60/60] Emitting module PacketCaptureBPF
BUILD FAILURE 6.2 linux