The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-any-sort-comparator with Swift 5.7 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.7-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/roanutil/swift-any-sort-comparator.git
Reference: 1.0.0
Cloned https://github.com/roanutil/swift-any-sort-comparator.git into spi-builder-workspace
SUCCESS checkout https://github.com/roanutil/swift-any-sort-comparator.git at 1.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
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.7-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)[1/3] Compiling AnySortComparator ComparisonResult+Inverted.swift
[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
           ^
BUILD FAILURE 5.7 linux

Build Machine: Linux 2