The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-any-sort-comparator 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/roanutil/swift-any-sort-comparator.git
Reference: 1.0.0
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/roanutil/swift-any-sort-comparator
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at a990f27 Add build status and codecov badges
Cloned https://github.com/roanutil/swift-any-sort-comparator.git
Revision (git rev-parse @):
a990f27db7b482ce9d7990837b4c9ec8cbf079fb
SUCCESS checkout https://github.com/roanutil/swift-any-sort-comparator.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/roanutil/swift-any-sort-comparator.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling AnySortComparator ComparisonResult+Inverted.swift
[4/5] Emitting module AnySortComparator
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:14:23: error: cannot find type 'SortOrder' in scope
    public var order: SortOrder
                      ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:55: error: cannot find type 'SortComparator' in scope
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                      ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:95: error: 'Compared' is not a member type of generic struct 'AnySortComparator.AnySortComparator<Compared>'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                                         ~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:15: note: 'AnySortComparator' declared here
public struct AnySortComparator<Compared>: SortComparator {
              ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:78: error: 'Compared' is not a member type of type 'Erased'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                      ~~~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:40:31: error: cannot find type 'SortOrder' in scope
    private let initialOrder: SortOrder
                              ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:44: error: cannot find type 'SortComparator' in scope
public struct AnySortComparator<Compared>: SortComparator {
                                           ^~~~~~~~~~~~~~
[5/5] Compiling AnySortComparator AnySortComparator.swift
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:14:23: error: cannot find type 'SortOrder' in scope
    public var order: SortOrder
                      ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:55: error: cannot find type 'SortComparator' in scope
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                      ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:95: error: 'Compared' is not a member type of generic struct 'AnySortComparator.AnySortComparator<Compared>'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                                         ~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:15: note: 'AnySortComparator' declared here
public struct AnySortComparator<Compared>: SortComparator {
              ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:78: error: 'Compared' is not a member type of type 'Erased'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                      ~~~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:40:31: error: cannot find type 'SortOrder' in scope
    private let initialOrder: SortOrder
                              ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:44: error: cannot find type 'SortComparator' in scope
public struct AnySortComparator<Compared>: SortComparator {
                                           ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:31:25: error: value of type 'Erased' has no member 'compare'
        _compare = base.compare(_:_:)
                   ~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:32:29: error: value of type 'Erased' has no member 'order'
        initialOrder = base.order
                       ~~~~ ^~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:33:22: error: value of type 'Erased' has no member 'order'
        order = base.order
                ~~~~ ^~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:34:24: error: initializer 'init(_:)' requires that 'Erased' conform to 'Hashable'
        hashableBase = AnyHashable(base)
                       ^
Swift.AnyHashable:2:12: note: where 'H' = 'Erased'
    public init<H>(_ base: H) where H : Hashable
           ^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module AnySortComparator
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:14:23: error: cannot find type 'SortOrder' in scope
    public var order: SortOrder
                      ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:55: error: cannot find type 'SortComparator' in scope
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                      ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:95: error: 'Compared' is not a member type of generic struct 'AnySortComparator.AnySortComparator<Compared>'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                                         ~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:15: note: 'AnySortComparator' declared here
public struct AnySortComparator<Compared>: SortComparator {
              ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:78: error: 'Compared' is not a member type of type 'Erased'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                      ~~~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:40:31: error: cannot find type 'SortOrder' in scope
    private let initialOrder: SortOrder
                              ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:44: error: cannot find type 'SortComparator' in scope
public struct AnySortComparator<Compared>: SortComparator {
                                           ^~~~~~~~~~~~~~
[3/3] Compiling AnySortComparator AnySortComparator.swift
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:14:23: error: cannot find type 'SortOrder' in scope
    public var order: SortOrder
                      ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:55: error: cannot find type 'SortComparator' in scope
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                      ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:95: error: 'Compared' is not a member type of generic struct 'AnySortComparator.AnySortComparator<Compared>'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                                         ~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:15: note: 'AnySortComparator' declared here
public struct AnySortComparator<Compared>: SortComparator {
              ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:30:78: error: 'Compared' is not a member type of type 'Erased'
    public init<Erased>(_ base: Erased) where Erased: SortComparator, Erased.Compared == Self.Compared {
                                                                      ~~~~~~ ^
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:40:31: error: cannot find type 'SortOrder' in scope
    private let initialOrder: SortOrder
                              ^~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:11:44: error: cannot find type 'SortComparator' in scope
public struct AnySortComparator<Compared>: SortComparator {
                                           ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:31:25: error: value of type 'Erased' has no member 'compare'
        _compare = base.compare(_:_:)
                   ~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:32:29: error: value of type 'Erased' has no member 'order'
        initialOrder = base.order
                       ~~~~ ^~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:33:22: error: value of type 'Erased' has no member 'order'
        order = base.order
                ~~~~ ^~~~~
/host/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:34:24: error: initializer 'init(_:)' requires that 'Erased' conform to 'Hashable'
        hashableBase = AnyHashable(base)
                       ^
Swift.AnyHashable:2:12: note: where 'H' = 'Erased'
    public init<H>(_ base: H) where H : Hashable
           ^
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1