The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MQTTKit with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/arnecs/mqttkit.git
Reference: master
Cloned https://github.com/arnecs/mqttkit.git into spi-builder-workspace
SUCCESS checkout https://github.com/arnecs/mqttkit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/8] Compiling MQTTKit Constants.swift
/host/spi-builder-workspace/Sources/Constants.swift:45:5: warning: 'public' modifier is redundant for operator function declared in a public extension
    public static func < (lhs: MQTTQoSLevel, rhs: MQTTQoSLevel) -> Bool {
    ^~~~~~~
    
[2/8] Compiling MQTTKit Extensions.swift
[3/8] Emitting module MQTTKit
/host/spi-builder-workspace/Sources/Constants.swift:45:5: warning: 'public' modifier is redundant for operator function declared in a public extension
    public static func < (lhs: MQTTQoSLevel, rhs: MQTTQoSLevel) -> Bool {
    ^~~~~~~
    
[4/8] Compiling MQTTKit MQTTMessage.swift
[5/8] Compiling MQTTKit MQTTSessionDelegate.swift
[6/8] Compiling MQTTKit MQTTOptions.swift
[7/8] Compiling MQTTKit MQTTPacket.swift
/host/spi-builder-workspace/Sources/MQTTPacket.swift:63:14: warning: function call causes an infinite recursion
        self.init(header: header)
             ^
[8/8] Compiling MQTTKit MQTTSession.swift
/host/spi-builder-workspace/Sources/MQTTSession.swift:174:16: error: type 'Stream' has no member 'getStreamsToHost'
        Stream.getStreamsToHost(
        ~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MQTTSession.swift:188:51: error: cannot find 'RunLoopMode' in scope
        input.schedule(in: RunLoop.main, forMode: RunLoopMode.defaultRunLoopMode)
                                                  ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/MQTTSession.swift:189:52: error: cannot find 'RunLoopMode' in scope
        output.schedule(in: RunLoop.main, forMode: RunLoopMode.defaultRunLoopMode)
                                                   ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/MQTTSession.swift:192:57: error: argument type 'StreamSocketSecurityLevel' expected to be an instance of a class or class-constrained type
            input.setProperty(StreamSocketSecurityLevel.tlSv1, forKey: .socketSecurityLevelKey)
                                                        ^
/host/spi-builder-workspace/Sources/MQTTSession.swift:193:58: error: argument type 'StreamSocketSecurityLevel' expected to be an instance of a class or class-constrained type
            output.setProperty(StreamSocketSecurityLevel.tlSv1, forKey: .socketSecurityLevelKey)
                                                         ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2