Build Information
Failed to build PacketCaptureBPF with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/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: 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: 5.10
Building package at path: $workDir
https://github.com/OperatorFoundation/PacketCaptureBPF.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/OperatorFoundation/PacketStream.git
[1/45] Fetching packetstream
Fetched https://github.com/OperatorFoundation/PacketStream.git from cache (0.21s)
Fetching https://github.com/OperatorFoundation/Datable.git
[1/399] Fetching datable
Fetched https://github.com/OperatorFoundation/Datable.git from cache (0.21s)
Fetching https://github.com/OperatorFoundation/InternetProtocols.git
[1/440] Fetching internetprotocols
Fetched https://github.com/OperatorFoundation/InternetProtocols.git from cache (0.31s)
Fetching https://github.com/OperatorFoundation/Bits.git
[1/116] Fetching bits
Fetched https://github.com/OperatorFoundation/Bits.git from cache (0.22s)
Fetching https://github.com/OperatorFoundation/SwiftQueue.git
[1/70] Fetching swiftqueue
Fetched https://github.com/OperatorFoundation/SwiftQueue.git from cache (0.20s)
Fetching https://github.com/OperatorFoundation/Net.git
[1/93] Fetching net
Fetched https://github.com/OperatorFoundation/Net.git from cache (0.23s)
Fetching https://github.com/OperatorFoundation/SwiftHexTools.git
[1/96] Fetching swifthextools
Fetched https://github.com/OperatorFoundation/SwiftHexTools.git from cache (0.19s)
Fetching https://github.com/OperatorFoundation/NetworkLinux.git
[1/193] Fetching networklinux
Fetched https://github.com/OperatorFoundation/NetworkLinux.git from cache (0.20s)
Fetching https://github.com/OperatorFoundation/BlueSocket.git
[1/2764] Fetching bluesocket
Fetched https://github.com/OperatorFoundation/BlueSocket.git from cache (0.31s)
Fetching https://github.com/apple/swift-argument-parser
[1/11426] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.65s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.3.0 (0.37s)
Creating working copy for https://github.com/OperatorFoundation/BlueSocket.git
Working copy of https://github.com/OperatorFoundation/BlueSocket.git resolved at main (5a936a3)
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/NetworkLinux.git
Working copy of https://github.com/OperatorFoundation/NetworkLinux.git resolved at main (2c563f2)
Creating working copy for https://github.com/OperatorFoundation/InternetProtocols.git
Working copy of https://github.com/OperatorFoundation/InternetProtocols.git resolved at main (c7d0f9f)
Creating working copy for https://github.com/OperatorFoundation/Datable.git
Working copy of https://github.com/OperatorFoundation/Datable.git resolved at main (b896773)
Creating working copy for https://github.com/OperatorFoundation/Net.git
Working copy of https://github.com/OperatorFoundation/Net.git resolved at main (20e37b7)
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/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.3.0
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/OperatorFoundation/SwiftQueue.git
Working copy of https://github.com/OperatorFoundation/SwiftQueue.git resolved at main (5d59db6)
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/42] Emitting module SwiftQueue
[9/42] Emitting module Datable
[10/46] Compiling Datable MaybeIntable.swift
[11/46] Compiling Datable MaybeNetworkIntable.swift
[12/46] Compiling Datable NetworkDatable.swift
[13/46] Compiling Datable NetworkIntable.swift
[14/46] Compiling Datable String+Arrayable.swift
[15/46] Compiling Datable String+Datable.swift
[16/46] Compiling Datable String+Intable.swift
[17/46] Compiling Datable Stringable.swift
[18/46] Compiling Datable Data+ExpressibleByStringLiteral.swift
[19/46] Compiling Datable Data+Floatable.swift
[20/46] Compiling Datable Data+MaybeIntable.swift
[21/46] Compiling Datable Data+MaybeNetworkIntable.swift
[22/46] Compiling Datable Data+Stringable.swift
[23/46] Compiling Datable Datable.swift
[24/46] Compiling Datable DatableConfig.swift
[25/46] Compiling Datable Double+MaybeDatable.swift
[26/46] Compiling Datable Arrayable.swift
[27/46] Compiling Datable CSVable.swift
[28/46] Compiling Datable Data+Arrayable.swift
[29/46] Compiling Datable Data+Base64.swift
[30/46] Compiling Datable Data+Datable.swift
[31/46] Compiling SwiftQueue Queue.swift
[32/46] Compiling SwiftQueue LinkedList.swift
[33/47] Emitting module PacketStream
[34/47] Compiling PacketStream PacketStream.swift
[37/48] Compiling Datable Double+Stringable.swift
[38/48] Compiling Datable File.swift
[39/48] Compiling Datable Float+MaybeDatable.swift
[40/48] Compiling Datable Floatable.swift
[41/48] Compiling Datable Int+MaybeDatable.swift
[42/48] Compiling Datable Int+Stringable.swift
[43/48] Compiling Datable Intable.swift
[44/48] Compiling Datable MaybeDatable.swift
[45/48] Compiling Datable StringableArray+CSVable.swift
[46/48] Compiling Datable UInt+Datable.swift
[47/48] Compiling Datable UInt+MaybeNetworkDatable.swift
[48/48] Compiling Datable UInt+Stringable.swift
[50/53] Compiling Bits Bits+MaybeIntable.swift
[51/53] Compiling Bits Bits.swift
[52/53] Emitting module Bits
[53/53] Compiling Bits SimpleBits+MaybeIntable.swift
[55/56] Emitting module PacketCaptureBPF
[56/56] 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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] Emitting module PacketCaptureBPF
[4/4] 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