Build Information
Failed to build BTree 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/attaswift/BTree.git
Reference: master
Cloned https://github.com/attaswift/BTree.git into spi-builder-workspace
SUCCESS checkout https://github.com/attaswift/BTree.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
Building for debugging...
[1/15] Compiling BTree BTreeComparisons.swift
[2/15] Compiling BTree BTreeCursor.swift
[3/17] 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/17] 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 {
^~~~~~~
[5/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
[6/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/17] 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 {
^~~~~~~
[8/17] 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 {
^~~~~~~
[9/17] 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 {
^~~~~~~
[10/17] 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
[11/17] 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
[12/17] Compiling BTree BTreeIndex.swift
[13/17] Compiling BTree BTreeIterator.swift
[14/17] 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/17] 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/17] 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)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BridgedList.swift:73:76: error: generic parameter 'Pointee' could not be inferred
s.itemsPtr = AutoreleasingUnsafeMutablePointer<AnyObject?>(UnsafeMutablePointer(mutating: p.baseAddress!) + slot)
^
/host/spi-builder-workspace/Sources/BridgedList.swift:73:76: note: explicitly specify the generic arguments to fix this issue
s.itemsPtr = AutoreleasingUnsafeMutablePointer<AnyObject?>(UnsafeMutablePointer(mutating: p.baseAddress!) + slot)
^
<Any>
[17/17] 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)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/BridgedList.swift:73:76: error: generic parameter 'Pointee' could not be inferred
s.itemsPtr = AutoreleasingUnsafeMutablePointer<AnyObject?>(UnsafeMutablePointer(mutating: p.baseAddress!) + slot)
^
/host/spi-builder-workspace/Sources/BridgedList.swift:73:76: note: explicitly specify the generic arguments to fix this issue
s.itemsPtr = AutoreleasingUnsafeMutablePointer<AnyObject?>(UnsafeMutablePointer(mutating: p.baseAddress!) + slot)
^
<Any>
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1