The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BTree with Swift 5.7 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-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/attaswift/BTree.git
Reference: v4.1.0
Cloned https://github.com/attaswift/BTree.git into spi-builder-workspace
SUCCESS checkout https://github.com/attaswift/BTree.git at v4.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Building for debugging...
[1/17] Compiling BTree Map.swift
/host/spi-builder-workspace/Sources/SortedBag.swift:265:25: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
        return try tree.flatMap { try transform($0.0) }
                        ^
/host/spi-builder-workspace/Sources/SortedBag.swift:265:25: note: use 'compactMap(_:)' instead
        return try tree.flatMap { try transform($0.0) }
                        ^~~~~~~
                        compactMap
[2/17] Compiling BTree SortedBag.swift
/host/spi-builder-workspace/Sources/SortedBag.swift:265:25: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
        return try tree.flatMap { try transform($0.0) }
                        ^
/host/spi-builder-workspace/Sources/SortedBag.swift:265:25: note: use 'compactMap(_:)' instead
        return try tree.flatMap { try transform($0.0) }
                        ^~~~~~~
                        compactMap
[3/19] Compiling BTree Compatibility.swift
/host/spi-builder-workspace/Sources/List.swift:300:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func elementsEqual(_ other: List<Element>, by isEquivalent: (Element, Element) throws -> Bool) rethrows -> Bool {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:308:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(where predicate: (Element) throws -> Bool) rethrows -> Index? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:332:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func elementsEqual(_ other: List<Element>) -> Bool {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:339:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(of element: Element) -> Index? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:352:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func contains(_ element: Element) -> Bool {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:362:5: warning: 'public' modifier is redundant for operator function declared in a public extension
    public static func ==(a: List, b: List) -> Bool {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:367:5: warning: 'public' modifier is redundant for operator function declared in a public extension
    public static func !=(a: List, b: List) -> Bool {
    ^~~~~~~
    
[4/19] Compiling BTree List.swift
/host/spi-builder-workspace/Sources/List.swift:300:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func elementsEqual(_ other: List<Element>, by isEquivalent: (Element, Element) throws -> Bool) rethrows -> Bool {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:308:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(where predicate: (Element) throws -> Bool) rethrows -> Index? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:332:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func elementsEqual(_ other: List<Element>) -> Bool {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:339:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(of element: Element) -> Index? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:352:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func contains(_ element: Element) -> Bool {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:362:5: warning: 'public' modifier is redundant for operator function declared in a public extension
    public static func ==(a: List, b: List) -> Bool {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:367:5: warning: 'public' modifier is redundant for operator function declared in a public extension
    public static func !=(a: List, b: List) -> Bool {
    ^~~~~~~
    
error: emit-module command failed with exit code 1 (use -v to see invocation)[5/19] Compiling BTree BTree.swift
/host/spi-builder-workspace/Sources/BTree.swift:292:5: warning: 'public' modifier is redundant for property declared in a public extension
    public var first: Element? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:299:5: warning: 'public' modifier is redundant for property declared in a public extension
    public var last: Element? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:307:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func element(atOffset offset: Int) -> Element {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:327:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func value(of key: Key, choosing selector: BTreeKeySelector = .any) -> Value? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:365:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(forKey key: Key, choosing selector: BTreeKeySelector = .any) -> Index? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:377:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(forInserting key: Key, at selector: BTreeKeySelector = .any) -> Index {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:386:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func offset(forKey key: Key, choosing selector: BTreeKeySelector = .any) -> Int? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:413:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func offset(of index: Index) -> Int {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:422:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(ofOffset offset: Int) -> Index {
    ^~~~~~~
    
[6/19] Compiling BTree BTreeBuilder.swift
/host/spi-builder-workspace/Sources/BTree.swift:292:5: warning: 'public' modifier is redundant for property declared in a public extension
    public var first: Element? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:299:5: warning: 'public' modifier is redundant for property declared in a public extension
    public var last: Element? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:307:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func element(atOffset offset: Int) -> Element {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:327:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func value(of key: Key, choosing selector: BTreeKeySelector = .any) -> Value? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:365:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(forKey key: Key, choosing selector: BTreeKeySelector = .any) -> Index? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:377:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(forInserting key: Key, at selector: BTreeKeySelector = .any) -> Index {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:386:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func offset(forKey key: Key, choosing selector: BTreeKeySelector = .any) -> Int? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:413:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func offset(of index: Index) -> Int {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:422:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(ofOffset offset: Int) -> Index {
    ^~~~~~~
    
[7/19] Emitting module BTree
/host/spi-builder-workspace/Sources/BTree.swift:292:5: warning: 'public' modifier is redundant for property declared in a public extension
    public var first: Element? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:299:5: warning: 'public' modifier is redundant for property declared in a public extension
    public var last: Element? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:307:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func element(atOffset offset: Int) -> Element {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:327:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func value(of key: Key, choosing selector: BTreeKeySelector = .any) -> Value? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:365:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(forKey key: Key, choosing selector: BTreeKeySelector = .any) -> Index? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:377:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(forInserting key: Key, at selector: BTreeKeySelector = .any) -> Index {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:386:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func offset(forKey key: Key, choosing selector: BTreeKeySelector = .any) -> Int? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:413:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func offset(of index: Index) -> Int {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTree.swift:422:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(ofOffset offset: Int) -> Index {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/BTreeMerger.swift:690:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
    internal mutating func skipForward(_ n: Int) {
    ^~~~~~~~~
    
/host/spi-builder-workspace/Sources/BridgedList.swift:57:78: error: cannot find type 'NSFastEnumerationState' in scope
    public override func countByEnumerating(with state: UnsafeMutablePointer<NSFastEnumerationState>, objects buffer: AutoreleasingUnsafeMutablePointer<AnyObject?>, count len: Int) -> Int {
                                                                             ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BridgedList.swift:57:119: error: cannot find type 'AutoreleasingUnsafeMutablePointer' in scope
    public override func countByEnumerating(with state: UnsafeMutablePointer<NSFastEnumerationState>, objects buffer: AutoreleasingUnsafeMutablePointer<AnyObject?>, count len: Int) -> Int {
                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BridgedList.swift:57:26: error: method does not override any method from its superclass
    public override func countByEnumerating(with state: UnsafeMutablePointer<NSFastEnumerationState>, objects buffer: AutoreleasingUnsafeMutablePointer<AnyObject?>, count len: Int) -> Int {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/List.swift:300:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func elementsEqual(_ other: List<Element>, by isEquivalent: (Element, Element) throws -> Bool) rethrows -> Bool {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:308:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(where predicate: (Element) throws -> Bool) rethrows -> Index? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:332:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func elementsEqual(_ other: List<Element>) -> Bool {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:339:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func index(of element: Element) -> Index? {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:352:5: warning: 'public' modifier is redundant for instance method declared in a public extension
    public func contains(_ element: Element) -> Bool {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:362:5: warning: 'public' modifier is redundant for operator function declared in a public extension
    public static func ==(a: List, b: List) -> Bool {
    ^~~~~~~
    
/host/spi-builder-workspace/Sources/List.swift:367:5: warning: 'public' modifier is redundant for operator function declared in a public extension
    public static func !=(a: List, b: List) -> Bool {
    ^~~~~~~
    
[8/19] Compiling BTree BTreeComparisons.swift
[9/19] Compiling BTree BTreeCursor.swift
[10/19] Compiling BTree BTreeIndex.swift
[11/19] Compiling BTree BTreeIterator.swift
[12/19] Compiling BTree SortedSet.swift
/host/spi-builder-workspace/Sources/SortedSet.swift:254:25: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
        return try tree.flatMap { try transform($0.0) }
                        ^
/host/spi-builder-workspace/Sources/SortedSet.swift:254:25: note: use 'compactMap(_:)' instead
        return try tree.flatMap { try transform($0.0) }
                        ^~~~~~~
                        compactMap
[13/19] Compiling BTree Weak.swift
/host/spi-builder-workspace/Sources/SortedSet.swift:254:25: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
        return try tree.flatMap { try transform($0.0) }
                        ^
/host/spi-builder-workspace/Sources/SortedSet.swift:254:25: note: use 'compactMap(_:)' instead
        return try tree.flatMap { try transform($0.0) }
                        ^~~~~~~
                        compactMap
[14/19] Compiling BTree BTreeMerger.swift
/host/spi-builder-workspace/Sources/BTreeMerger.swift:690:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
    internal mutating func skipForward(_ n: Int) {
    ^~~~~~~~~
    
/host/spi-builder-workspace/Sources/BTreeMerger.swift:644:22: warning: enum case 'element' has one associated value that is a tuple of 2 elements
        case .element(_, _):
                     ^
                     (     )
/host/spi-builder-workspace/Sources/BTreeMerger.swift:636:10: note: 'element' declared here
    case element((Key, Value))
         ^
[15/19] Compiling BTree BTreeNode.swift
/host/spi-builder-workspace/Sources/BTreeMerger.swift:690:5: warning: 'internal' modifier is redundant for instance method declared in an internal extension
    internal mutating func skipForward(_ n: Int) {
    ^~~~~~~~~
    
/host/spi-builder-workspace/Sources/BTreeMerger.swift:644:22: warning: enum case 'element' has one associated value that is a tuple of 2 elements
        case .element(_, _):
                     ^
                     (     )
/host/spi-builder-workspace/Sources/BTreeMerger.swift:636:10: note: 'element' declared here
    case element((Key, Value))
         ^
[16/19] Compiling BTree BTreePath.swift
/host/spi-builder-workspace/Sources/BridgedList.swift:57:78: error: cannot find type 'NSFastEnumerationState' in scope
    public override func countByEnumerating(with state: UnsafeMutablePointer<NSFastEnumerationState>, objects buffer: AutoreleasingUnsafeMutablePointer<AnyObject?>, count len: Int) -> Int {
                                                                             ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BridgedList.swift:57:119: error: cannot find type 'AutoreleasingUnsafeMutablePointer' in scope
    public override func countByEnumerating(with state: UnsafeMutablePointer<NSFastEnumerationState>, objects buffer: AutoreleasingUnsafeMutablePointer<AnyObject?>, count len: Int) -> Int {
                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BridgedList.swift:57:26: error: method does not override any method from its superclass
    public override func countByEnumerating(with state: UnsafeMutablePointer<NSFastEnumerationState>, objects buffer: AutoreleasingUnsafeMutablePointer<AnyObject?>, count len: Int) -> Int {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/BridgedList.swift:73:30: error: cannot find 'AutoreleasingUnsafeMutablePointer' in scope
                s.itemsPtr = AutoreleasingUnsafeMutablePointer<AnyObject?>(UnsafeMutablePointer(mutating: p.baseAddress!) + slot)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[17/19] Compiling BTree BridgedList.swift
/host/spi-builder-workspace/Sources/BridgedList.swift:57:78: error: cannot find type 'NSFastEnumerationState' in scope
    public override func countByEnumerating(with state: UnsafeMutablePointer<NSFastEnumerationState>, objects buffer: AutoreleasingUnsafeMutablePointer<AnyObject?>, count len: Int) -> Int {
                                                                             ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BridgedList.swift:57:119: error: cannot find type 'AutoreleasingUnsafeMutablePointer' in scope
    public override func countByEnumerating(with state: UnsafeMutablePointer<NSFastEnumerationState>, objects buffer: AutoreleasingUnsafeMutablePointer<AnyObject?>, count len: Int) -> Int {
                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BridgedList.swift:57:26: error: method does not override any method from its superclass
    public override func countByEnumerating(with state: UnsafeMutablePointer<NSFastEnumerationState>, objects buffer: AutoreleasingUnsafeMutablePointer<AnyObject?>, count len: Int) -> Int {
           ~~~~~~~~      ^
/host/spi-builder-workspace/Sources/BridgedList.swift:73:30: error: cannot find 'AutoreleasingUnsafeMutablePointer' in scope
                s.itemsPtr = AutoreleasingUnsafeMutablePointer<AnyObject?>(UnsafeMutablePointer(mutating: p.baseAddress!) + slot)
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BUILD FAILURE 5.7 linux

Build Machine: Linux 1