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

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.25.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/roanutil/swift-any-sort-comparator.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at eb4b39e Merge pull request #3 from roanutil/spi-documentation
Cloned https://github.com/roanutil/swift-any-sort-comparator.git
Revision (git rev-parse @):
eb4b39e9e3060d79ccbd82d59852b8bee4be1c71
SPI manifest file found: $PWD/checkout/.spi.yml
SUCCESS checkout https://github.com/roanutil/swift-any-sort-comparator.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
Building package at path:  $PWD/checkout
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$PWD/checkout" 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
           ^
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)[1/2] 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 {
                                           ^~~~~~~~~~~~~~
[2/2] 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 1