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-0":/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: 0.1.0
Cloned https://github.com/arnecs/mqttkit.git into spi-builder-workspace
SUCCESS checkout https://github.com/arnecs/mqttkit.git at 0.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/5] Compiling MQTTKit MQTTPacket.swift
/host/spi-builder-workspace/Sources/MQTTPacket.swift:63:14: warning: function call causes an infinite recursion
        self.init(header: header)
             ^
[2/5] Compiling MQTTKit MQTTKit.swift
/host/spi-builder-workspace/Sources/MQTTKit.swift:224:16: error: type 'Stream' has no member 'getStreamsToHost'
        Stream.getStreamsToHost(
        ~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MQTTKit.swift:239:51: error: cannot find 'RunLoopMode' in scope
        input.schedule(in: RunLoop.main, forMode: RunLoopMode.defaultRunLoopMode)
                                                  ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/MQTTKit.swift:240:52: error: cannot find 'RunLoopMode' in scope
        output.schedule(in: RunLoop.main, forMode: RunLoopMode.defaultRunLoopMode)
                                                   ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/MQTTKit.swift:243: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/MQTTKit.swift:244:58: error: argument type 'StreamSocketSecurityLevel' expected to be an instance of a class or class-constrained type
            output.setProperty(StreamSocketSecurityLevel.tlSv1, forKey: .socketSecurityLevelKey)
                                                         ^
/host/spi-builder-workspace/Sources/MQTTKit.swift:294:27: warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
            messageBuffer.deallocate(capacity: options.bufferSize)
                          ^
[3/5] Emitting module MQTTKit
/host/spi-builder-workspace/Sources/Constants.swift:42:5: warning: 'public' modifier is redundant for operator function declared in a public extension
    public static func <(lhs: MQTTQoSLevel, rhs: MQTTQoSLevel) -> Bool {
    ^~~~~~~
    
[4/5] Compiling MQTTKit Extensions.swift
[5/5] Compiling MQTTKit Constants.swift
/host/spi-builder-workspace/Sources/Constants.swift:42:5: warning: 'public' modifier is redundant for operator function declared in a public extension
    public static func <(lhs: MQTTQoSLevel, rhs: MQTTQoSLevel) -> Bool {
    ^~~~~~~
    
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2