The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build PacketCaptureBPF with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OperatorFoundation/PacketCaptureBPF.git
Reference: 0.2.10
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
 * tag               0.2.10     -> FETCH_HEAD
HEAD is now at aaa6c50 Update CaptureDevice.swift
Cloned https://github.com/OperatorFoundation/PacketCaptureBPF.git
Revision (git rev-parse @):
aaa6c509569cb11904e35dd682bb581b9b2f8083
SUCCESS checkout https://github.com/OperatorFoundation/PacketCaptureBPF.git at 0.2.10
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/OperatorFoundation/PacketCaptureBPF.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/OperatorFoundation/PacketStream.git
Fetching https://github.com/OperatorFoundation/Bits.git
Fetching https://github.com/OperatorFoundation/Datable.git
Fetching https://github.com/OperatorFoundation/InternetProtocols.git
Fetching https://github.com/OperatorFoundation/SwiftQueue.git
[1/45] Fetching packetstream
[46/115] Fetching packetstream, swiftqueue
[116/231] Fetching packetstream, swiftqueue, bits
[232/630] Fetching packetstream, swiftqueue, bits, datable
[631/1070] Fetching packetstream, swiftqueue, bits, datable, internetprotocols
Fetched https://github.com/OperatorFoundation/PacketStream.git from cache (0.30s)
Fetched https://github.com/OperatorFoundation/Datable.git from cache (0.30s)
[472/626] Fetching swiftqueue, bits, internetprotocols
Fetched https://github.com/OperatorFoundation/Bits.git from cache (0.39s)
Fetched https://github.com/OperatorFoundation/SwiftQueue.git from cache (0.39s)
Fetched https://github.com/OperatorFoundation/InternetProtocols.git from cache (0.39s)
Computing version for https://github.com/OperatorFoundation/Bits.git
Computed https://github.com/OperatorFoundation/Bits.git at 2.0.1 (0.44s)
Computing version for https://github.com/OperatorFoundation/PacketStream.git
Computed https://github.com/OperatorFoundation/PacketStream.git at 0.2.1 (0.43s)
Computing version for https://github.com/OperatorFoundation/SwiftQueue.git
Computed https://github.com/OperatorFoundation/SwiftQueue.git at 0.1.2 (0.46s)
Computing version for https://github.com/OperatorFoundation/InternetProtocols.git
Computed https://github.com/OperatorFoundation/InternetProtocols.git at 2.2.1 (0.45s)
Computing version for https://github.com/OperatorFoundation/Datable.git
Computed https://github.com/OperatorFoundation/Datable.git at 3.1.5 (0.45s)
Creating working copy for https://github.com/OperatorFoundation/Datable.git
Working copy of https://github.com/OperatorFoundation/Datable.git resolved at 3.1.5
Creating working copy for https://github.com/OperatorFoundation/PacketStream.git
Working copy of https://github.com/OperatorFoundation/PacketStream.git resolved at 0.2.1
Creating working copy for https://github.com/OperatorFoundation/Bits.git
Working copy of https://github.com/OperatorFoundation/Bits.git resolved at 2.0.1
Creating working copy for https://github.com/OperatorFoundation/SwiftQueue.git
Working copy of https://github.com/OperatorFoundation/SwiftQueue.git resolved at 0.1.2
Creating working copy for https://github.com/OperatorFoundation/InternetProtocols.git
Working copy of https://github.com/OperatorFoundation/InternetProtocols.git resolved at 2.2.1
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/40] Emitting module Datable
[8/44] Emitting module PacketStream
[9/44] Compiling PacketStream PacketStream.swift
[10/44] Compiling Datable Arrayable.swift
[11/44] Compiling Datable CSVable.swift
[12/44] Compiling Datable Data+Arrayable.swift
[13/44] Compiling Datable Data+Datable.swift
[14/44] Compiling Datable Data+Stringable.swift
[15/44] Compiling Datable Datable.swift
[16/44] Compiling Datable DatableConfig.swift
[17/44] Compiling Datable Double+MaybeDatable.swift
[18/44] Compiling Datable MaybeIntable.swift
[19/44] Compiling Datable MaybeNetworkIntable.swift
[20/44] Compiling Datable NetworkDatable.swift
[21/44] Compiling Datable NetworkIntable.swift
[22/44] Compiling Datable String+Arrayable.swift
[23/44] Compiling Datable String+Datable.swift
[24/44] Compiling Datable String+Intable.swift
[25/45] Compiling Datable Stringable.swift
[26/45] Compiling Datable Double+Stringable.swift
[27/45] Compiling Datable File.swift
[28/45] Compiling Datable Float+MaybeDatable.swift
[29/45] Compiling Datable Floatable.swift
[30/45] Compiling Datable Int+MaybeDatable.swift
[31/45] Compiling Datable Int+Stringable.swift
[32/45] Compiling Datable Intable.swift
[33/45] Compiling Datable MaybeDatable.swift
[35/45] Compiling SwiftQueue Queue.swift
[36/45] Emitting module SwiftQueue
[37/45] Compiling SwiftQueue LinkedList.swift
[38/46] Compiling Datable Data+ExpressibleByStringLiteral.swift
[39/46] Compiling Datable Data+Floatable.swift
[40/46] Compiling Datable Data+MaybeIntable.swift
[41/46] Compiling Datable Data+MaybeNetworkIntable.swift
[43/46] Compiling Datable StringableArray+CSVable.swift
[44/46] Compiling Datable UInt+Datable.swift
[45/46] Compiling Datable UInt+MaybeNetworkDatable.swift
[46/46] Compiling Datable UInt+Stringable.swift
[48/51] Emitting module Bits
[49/51] Compiling Bits SimpleBits+MaybeIntable.swift
[50/51] Compiling Bits Bits+MaybeIntable.swift
[51/51] Compiling Bits Bits.swift
[53/54] Emitting module PacketCaptureBPF
[54/54] Compiling PacketCaptureBPF CaptureDevice.swift
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:70:16: error: value of type 'ifreq' has no member 'ifr_name'
        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])
        ~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:87:35: error: cannot find 'Darwin' in scope
                print("* errno: \(Darwin.errno)")
                                  ^~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Emitting module PacketCaptureBPF
[3/3] Compiling PacketCaptureBPF CaptureDevice.swift
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:70:16: error: value of type 'ifreq' has no member 'ifr_name'
        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])
        ~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PacketCaptureBPF/CaptureDevice.swift:87:35: error: cannot find 'Darwin' in scope
                print("* errno: \(Darwin.errno)")
                                  ^~~~~~
error: fatalError
BUILD FAILURE 5.10 linux