The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ShellKit with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-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/einstore/shellkit.git
Reference: master
Cloned https://github.com/einstore/shellkit.git into spi-builder-workspace
SUCCESS checkout https://github.com/einstore/shellkit.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-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/IBM-Swift/BlueSocket
Fetching https://github.com/jakeheis/CSSH
Fetching https://github.com/apple/swift-nio.git
[1/2942] Fetching bluesocket
[2943/63015] Fetching bluesocket, swift-nio
Fetching https://github.com/Einstore/WebErrorKit.git
Fetched https://github.com/IBM-Swift/BlueSocket (3.97s)
Fetched https://github.com/jakeheis/CSSH (3.97s)
Fetching https://github.com/Einstore/Shout.git
Fetched https://github.com/apple/swift-nio.git (4.05s)
Fetched https://github.com/Einstore/WebErrorKit.git (0.20s)
[1/412] Fetching shout
Fetched https://github.com/Einstore/Shout.git (0.31s)
Computing version for https://github.com/Einstore/Shout.git
Computed https://github.com/Einstore/Shout.git at 0.5.1 (0.94s)
Computing version for https://github.com/Einstore/WebErrorKit.git
Computed https://github.com/Einstore/WebErrorKit.git at 0.0.1 (0.25s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.7.0 (0.36s)
Computing version for https://github.com/jakeheis/CSSH
Computed https://github.com/jakeheis/CSSH at 1.0.3 (0.29s)
Computing version for https://github.com/IBM-Swift/BlueSocket
Computed https://github.com/IBM-Swift/BlueSocket at 1.0.48 (0.29s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.7.0
Creating working copy for https://github.com/jakeheis/CSSH
Working copy of https://github.com/jakeheis/CSSH resolved at 1.0.3
Creating working copy for https://github.com/IBM-Swift/BlueSocket
Working copy of https://github.com/IBM-Swift/BlueSocket resolved at 1.0.48
Creating working copy for https://github.com/Einstore/WebErrorKit.git
Working copy of https://github.com/Einstore/WebErrorKit.git resolved at 0.0.1
Creating working copy for https://github.com/Einstore/Shout.git
Working copy of https://github.com/Einstore/Shout.git resolved at 0.5.1
warning: 'cssh': ignoring declared target(s) 'CSSH' in the system package
warning: you may be able to install libssh2 using your system-packager:
    apt-get install libssh2-1-dev
Building for debugging...
[0/5] Compiling CNIODarwin shim.c
[1/5] Compiling CNIOLinux ifaddrs-android.c
[2/5] Compiling CNIOLinux shim.c
[3/5] Compiling CNIOSHA1 c_nio_sha1.c
[5/17] Compiling WebErrorKit WebError.swift
[6/17] Compiling WebErrorKit WebErrorContent.swift
[7/17] Compiling WebErrorKit SerializableWebError.swift
[8/17] Compiling WebErrorKit String+Codify.swift
[9/17] Compiling WebErrorKit WebError+RawRepresentable.swift
[10/17] Compiling WebErrorKit WebError+Serializable.swift
[11/17] Emitting module WebErrorKit
[12/17] Compiling WebErrorKit Exports.swift
[15/19] Compiling Socket SocketProtocols.swift
[16/19] Compiling Socket SocketUtils.swift
[16/19] Compiling c-atomics.c
[18/22] Emitting module Socket
[19/22] Compiling Socket Socket.swift
[22/24] Compiling NIOConcurrencyHelpers lock.swift
[23/33] Compiling NIOConcurrencyHelpers atomics.swift
[24/33] Emitting module NIOConcurrencyHelpers
[27/85] Compiling Shout ReadWrite.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSSH/shim.h:4:10: error: 'libssh2.h' file not found
#include <libssh2.h>
         ^
/host/spi-builder-workspace/.build/checkouts/Shout/Sources/Shout/Agent.swift:8:8: error: could not build C module 'CSSH'
import CSSH
       ^
[28/85] Compiling Shout SSHError.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSSH/shim.h:4:10: error: 'libssh2.h' file not found
#include <libssh2.h>
         ^
/host/spi-builder-workspace/.build/checkouts/Shout/Sources/Shout/Agent.swift:8:8: error: could not build C module 'CSSH'
import CSSH
       ^
[29/86] Compiling Shout FilePermissions.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSSH/shim.h:4:10: error: 'libssh2.h' file not found
#include <libssh2.h>
         ^
/host/spi-builder-workspace/.build/checkouts/Shout/Sources/Shout/Agent.swift:8:8: error: could not build C module 'CSSH'
import CSSH
       ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[30/86] Emitting module Shout
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSSH/shim.h:4:10: error: 'libssh2.h' file not found
#include <libssh2.h>
         ^
/host/spi-builder-workspace/.build/checkouts/Shout/Sources/Shout/Agent.swift:8:8: error: could not build C module 'CSSH'
import CSSH
       ^
[31/86] Compiling NIO FileDescriptor.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSSH/shim.h:4:10: error: 'libssh2.h' file not found
#include <libssh2.h>
         ^
/host/spi-builder-workspace/.build/checkouts/Shout/Sources/Shout/Agent.swift:8:8: error: could not build C module 'CSSH'
import CSSH
       ^
[32/86] Compiling NIO FileHandle.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSSH/shim.h:4:10: error: 'libssh2.h' file not found
#include <libssh2.h>
         ^
/host/spi-builder-workspace/.build/checkouts/Shout/Sources/Shout/Agent.swift:8:8: error: could not build C module 'CSSH'
import CSSH
       ^
[33/86] Compiling Shout SSHAuthMethod.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSSH/shim.h:4:10: error: 'libssh2.h' file not found
#include <libssh2.h>
         ^
/host/spi-builder-workspace/.build/checkouts/Shout/Sources/Shout/Agent.swift:8:8: error: could not build C module 'CSSH'
import CSSH
       ^
[34/86] Compiling Shout SFTP.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSSH/shim.h:4:10: error: 'libssh2.h' file not found
#include <libssh2.h>
         ^
/host/spi-builder-workspace/.build/checkouts/Shout/Sources/Shout/Agent.swift:8:8: error: could not build C module 'CSSH'
import CSSH
       ^
[35/86] Compiling Shout SSH.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSSH/shim.h:4:10: error: 'libssh2.h' file not found
#include <libssh2.h>
         ^
/host/spi-builder-workspace/.build/checkouts/Shout/Sources/Shout/Agent.swift:8:8: error: could not build C module 'CSSH'
import CSSH
       ^
[36/86] Compiling NIO IOData.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: type 'MarkedCircularBuffer<Element>' does not conform to protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: unavailable subscript 'subscript(_:)' was used to satisfy a requirement of protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
Swift.MutableCollection:8:12: note: 'subscript(_:)' declared here
    public subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
           ^
Swift.MutableCollection:6:14: note: requirement 'subscript(_:)' declared here
    override subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
             ^
[37/86] Compiling NIO IntegerTypes.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: type 'MarkedCircularBuffer<Element>' does not conform to protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: unavailable subscript 'subscript(_:)' was used to satisfy a requirement of protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
Swift.MutableCollection:8:12: note: 'subscript(_:)' declared here
    public subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
           ^
Swift.MutableCollection:6:14: note: requirement 'subscript(_:)' declared here
    override subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
             ^
[38/86] Compiling NIO Interfaces.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: type 'MarkedCircularBuffer<Element>' does not conform to protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: unavailable subscript 'subscript(_:)' was used to satisfy a requirement of protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
Swift.MutableCollection:8:12: note: 'subscript(_:)' declared here
    public subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
           ^
Swift.MutableCollection:6:14: note: requirement 'subscript(_:)' declared here
    override subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
             ^
[39/86] Compiling NIO Linux.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: type 'MarkedCircularBuffer<Element>' does not conform to protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: unavailable subscript 'subscript(_:)' was used to satisfy a requirement of protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
Swift.MutableCollection:8:12: note: 'subscript(_:)' declared here
    public subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
           ^
Swift.MutableCollection:6:14: note: requirement 'subscript(_:)' declared here
    override subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
             ^
[40/86] Compiling NIO LinuxCPUSet.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: type 'MarkedCircularBuffer<Element>' does not conform to protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: unavailable subscript 'subscript(_:)' was used to satisfy a requirement of protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
Swift.MutableCollection:8:12: note: 'subscript(_:)' declared here
    public subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
           ^
Swift.MutableCollection:6:14: note: requirement 'subscript(_:)' declared here
    override subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
             ^
[41/86] Compiling NIO MarkedCircularBuffer.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: type 'MarkedCircularBuffer<Element>' does not conform to protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: unavailable subscript 'subscript(_:)' was used to satisfy a requirement of protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
Swift.MutableCollection:8:12: note: 'subscript(_:)' declared here
    public subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
           ^
Swift.MutableCollection:6:14: note: requirement 'subscript(_:)' declared here
    override subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
             ^
[42/86] Compiling NIO MulticastChannel.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: type 'MarkedCircularBuffer<Element>' does not conform to protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: unavailable subscript 'subscript(_:)' was used to satisfy a requirement of protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
Swift.MutableCollection:8:12: note: 'subscript(_:)' declared here
    public subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
           ^
Swift.MutableCollection:6:14: note: requirement 'subscript(_:)' declared here
    override subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
             ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[43/92] Emitting module NIO
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift:106:1: error: type 'CircularBuffer<Element>' does not conform to protocol 'MutableCollection'
extension CircularBuffer: Collection, MutableCollection {
^
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift:106:1: error: unavailable subscript 'subscript(_:)' was used to satisfy a requirement of protocol 'MutableCollection'
extension CircularBuffer: Collection, MutableCollection {
^
Swift.MutableCollection:8:12: note: 'subscript(_:)' declared here
    public subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
           ^
Swift.MutableCollection:6:14: note: requirement 'subscript(_:)' declared here
    override subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
             ^
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: type 'MarkedCircularBuffer<Element>' does not conform to protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift:132:1: error: unavailable subscript 'subscript(_:)' was used to satisfy a requirement of protocol 'MutableCollection'
extension MarkedCircularBuffer: Collection, MutableCollection {
^
Swift.MutableCollection:8:12: note: 'subscript(_:)' declared here
    public subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
           ^
Swift.MutableCollection:6:14: note: requirement 'subscript(_:)' declared here
    override subscript(bounds: Range<Self.Index>) -> Self.SubSequence { get set }
             ^
[44/92] Compiling Shout Session.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSSH/shim.h:4:10: error: 'libssh2.h' file not found
#include <libssh2.h>
         ^
/host/spi-builder-workspace/.build/checkouts/Shout/Sources/Shout/Agent.swift:8:8: error: could not build C module 'CSSH'
import CSSH
       ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1