Build Information
Failed to build NumericAnnex with Swift 5.9 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.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xwu/NumericAnnex.git
Reference: 0.1.19
Cloned https://github.com/xwu/NumericAnnex.git into spi-builder-workspace
SUCCESS checkout https://github.com/xwu/NumericAnnex.git at 0.1.19
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
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.9-latest swift build 2>&1
Building for debugging...
[1/12] Compiling NumericAnnex RoundingRule.swift
[2/13] Compiling NumericAnnex Sign.swift
[3/13] Compiling NumericAnnex Hash.swift
[4/13] Compiling NumericAnnex IntegerAlgorithms.swift
[5/13] Compiling NumericAnnex Math.swift
/host/spi-builder-workspace/Sources/PRNG.swift:55:3: error: cannot find type 'SubSequence' in scope
SubSequence : Sequence,
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:56:14: error: cannot find type 'SubSequence' in scope
Element == SubSequence.Element {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:89:51: error: type 'Self.Element' has no member 'max'
public static var max: Element { return Element.max }
~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PRNG.swift:93:51: error: type 'Self.Element' has no member 'min'
public static var min: Element { return Element.min }
~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PRNG.swift:98:31: error: binary operator '-' cannot be applied to two '(Self) -> ((Self.Element, Self.Element) throws -> Bool) throws -> Self.Element?' operands
let difference = Self.max - Self.min
~~~~~~~~ ^ ~~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:99:32: error: type 'Self.Element' has no member 'max'
guard difference < Element.max else { return Element.bitWidth }
~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PRNG.swift:99:58: error: type 'Self.Element' has no member 'bitWidth'
guard difference < Element.max else { return Element.bitWidth }
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:100:20: error: type 'Self.Element' has no member 'bitWidth'
return Element.bitWidth - (difference + 1).leadingZeroBitCount - 1
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:162:30: error: type 'Self.Element' has no member 'bitWidth'
if T.bitWidth == Element.bitWidth &&
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:163:33: error: type 'Self.Element' has no member 'bitWidth'
randomBitWidth == Element.bitWidth &&
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:167:14: error: no exact matches in call to initializer
return T(truncatingIfNeeded: next)
^
Swift.BinaryInteger:6:5: note: candidate requires that 'Self.Element' conform to 'BinaryInteger' (requirement specified as 'T' : 'BinaryInteger')
init<T>(truncatingIfNeeded source: T) where T : BinaryInteger
^
Swift.FixedWidthInteger:6:23: note: candidate requires that 'Self.Element' conform to 'BinaryInteger' (requirement specified as 'T' : 'BinaryInteger')
@inlinable public init<T>(truncatingIfNeeded source: T) where T : BinaryInteger
^
/host/spi-builder-workspace/Sources/PRNG.swift:172:24: error: type 'Self.Element' has no member 'max'
let max = (Element.max &>> (Element.bitWidth - randomBitWidth)) + Self.min
~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PRNG.swift:172:41: error: type 'Self.Element' has no member 'bitWidth'
let max = (Element.max &>> (Element.bitWidth - randomBitWidth)) + Self.min
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:176:42: error: binary operator '<=' cannot be applied to operands of type 'Self.Element' and '()'
guard let next = first(where: { $0 <= max }) else { fatalError() }
~~ ^ ~~~
/host/spi-builder-workspace/Sources/PRNG.swift:176:42: note: overloads for '<=' exist with these partially matching parameter lists: ((), ()), (Int, Int), (Int16, Int16), (Int32, Int32), (Int64, Int64), (Int8, Int8), (JobPriority, JobPriority), (TaskPriority, TaskPriority), (UInt, UInt), (UInt16, UInt16), (UInt32, UInt32), (UInt64, UInt64), (UInt8, UInt8)
guard let next = first(where: { $0 <= max }) else { fatalError() }
^
/host/spi-builder-workspace/Sources/PRNG.swift:181:42: error: binary operator '<=' cannot be applied to operands of type 'Self.Element' and '()'
guard let next = first(where: { $0 <= max }) else { fatalError() }
~~ ^ ~~~
/host/spi-builder-workspace/Sources/PRNG.swift:181:42: note: overloads for '<=' exist with these partially matching parameter lists: ((), ()), (Int, Int), (Int16, Int16), (Int32, Int32), (Int64, Int64), (Int8, Int8), (JobPriority, JobPriority), (TaskPriority, TaskPriority), (UInt, UInt), (UInt16, UInt16), (UInt32, UInt32), (UInt64, UInt64), (UInt8, UInt8)
guard let next = first(where: { $0 <= max }) else { fatalError() }
^
/host/spi-builder-workspace/Sources/PRNG.swift:182:26: error: type 'Self.Element' has no member 'max'
let mask = Element.max &>> (Element.bitWidth - remainder)
~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PRNG.swift:182:43: error: type 'Self.Element' has no member 'bitWidth'
let mask = Element.max &>> (Element.bitWidth - remainder)
~~~~~~~ ^~~~~~~~
[6/13] Compiling NumericAnnex PRNG.swift
/host/spi-builder-workspace/Sources/PRNG.swift:55:3: error: cannot find type 'SubSequence' in scope
SubSequence : Sequence,
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:56:14: error: cannot find type 'SubSequence' in scope
Element == SubSequence.Element {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:89:51: error: type 'Self.Element' has no member 'max'
public static var max: Element { return Element.max }
~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PRNG.swift:93:51: error: type 'Self.Element' has no member 'min'
public static var min: Element { return Element.min }
~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PRNG.swift:98:31: error: binary operator '-' cannot be applied to two '(Self) -> ((Self.Element, Self.Element) throws -> Bool) throws -> Self.Element?' operands
let difference = Self.max - Self.min
~~~~~~~~ ^ ~~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:99:32: error: type 'Self.Element' has no member 'max'
guard difference < Element.max else { return Element.bitWidth }
~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PRNG.swift:99:58: error: type 'Self.Element' has no member 'bitWidth'
guard difference < Element.max else { return Element.bitWidth }
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:100:20: error: type 'Self.Element' has no member 'bitWidth'
return Element.bitWidth - (difference + 1).leadingZeroBitCount - 1
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:162:30: error: type 'Self.Element' has no member 'bitWidth'
if T.bitWidth == Element.bitWidth &&
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:163:33: error: type 'Self.Element' has no member 'bitWidth'
randomBitWidth == Element.bitWidth &&
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:167:14: error: no exact matches in call to initializer
return T(truncatingIfNeeded: next)
^
Swift.BinaryInteger:6:5: note: candidate requires that 'Self.Element' conform to 'BinaryInteger' (requirement specified as 'T' : 'BinaryInteger')
init<T>(truncatingIfNeeded source: T) where T : BinaryInteger
^
Swift.FixedWidthInteger:6:23: note: candidate requires that 'Self.Element' conform to 'BinaryInteger' (requirement specified as 'T' : 'BinaryInteger')
@inlinable public init<T>(truncatingIfNeeded source: T) where T : BinaryInteger
^
/host/spi-builder-workspace/Sources/PRNG.swift:172:24: error: type 'Self.Element' has no member 'max'
let max = (Element.max &>> (Element.bitWidth - randomBitWidth)) + Self.min
~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PRNG.swift:172:41: error: type 'Self.Element' has no member 'bitWidth'
let max = (Element.max &>> (Element.bitWidth - randomBitWidth)) + Self.min
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:176:42: error: binary operator '<=' cannot be applied to operands of type 'Self.Element' and '()'
guard let next = first(where: { $0 <= max }) else { fatalError() }
~~ ^ ~~~
/host/spi-builder-workspace/Sources/PRNG.swift:176:42: note: overloads for '<=' exist with these partially matching parameter lists: ((), ()), (Int, Int), (Int16, Int16), (Int32, Int32), (Int64, Int64), (Int8, Int8), (JobPriority, JobPriority), (TaskPriority, TaskPriority), (UInt, UInt), (UInt16, UInt16), (UInt32, UInt32), (UInt64, UInt64), (UInt8, UInt8)
guard let next = first(where: { $0 <= max }) else { fatalError() }
^
/host/spi-builder-workspace/Sources/PRNG.swift:181:42: error: binary operator '<=' cannot be applied to operands of type 'Self.Element' and '()'
guard let next = first(where: { $0 <= max }) else { fatalError() }
~~ ^ ~~~
/host/spi-builder-workspace/Sources/PRNG.swift:181:42: note: overloads for '<=' exist with these partially matching parameter lists: ((), ()), (Int, Int), (Int16, Int16), (Int32, Int32), (Int64, Int64), (Int8, Int8), (JobPriority, JobPriority), (TaskPriority, TaskPriority), (UInt, UInt), (UInt16, UInt16), (UInt32, UInt32), (UInt64, UInt64), (UInt8, UInt8)
guard let next = first(where: { $0 <= max }) else { fatalError() }
^
/host/spi-builder-workspace/Sources/PRNG.swift:182:26: error: type 'Self.Element' has no member 'max'
let mask = Element.max &>> (Element.bitWidth - remainder)
~~~~~~~ ^~~
/host/spi-builder-workspace/Sources/PRNG.swift:182:43: error: type 'Self.Element' has no member 'bitWidth'
let mask = Element.max &>> (Element.bitWidth - remainder)
~~~~~~~ ^~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/13] Compiling NumericAnnex Complex.swift
/host/spi-builder-workspace/Sources/Complex.swift:54:1: warning: '@frozen' attribute is now used for fixed-layout structs
@_fixed_layout
^~~~~~~~~~~~~~
@frozen
/host/spi-builder-workspace/Sources/Complex.swift:497:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Complex' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
[8/13] Compiling NumericAnnex ExponentiationOperators.swift
/host/spi-builder-workspace/Sources/Complex.swift:54:1: warning: '@frozen' attribute is now used for fixed-layout structs
@_fixed_layout
^~~~~~~~~~~~~~
@frozen
/host/spi-builder-workspace/Sources/Complex.swift:497:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Complex' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
[9/13] Emitting module NumericAnnex
/host/spi-builder-workspace/Sources/Complex.swift:54:1: warning: '@frozen' attribute is now used for fixed-layout structs
@_fixed_layout
^~~~~~~~~~~~~~
@frozen
/host/spi-builder-workspace/Sources/Complex.swift:497:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Complex' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/host/spi-builder-workspace/Sources/PRNG.swift:55:3: error: cannot find type 'SubSequence' in scope
SubSequence : Sequence,
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:56:14: error: cannot find type 'SubSequence' in scope
Element == SubSequence.Element {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Rational.swift:70:1: warning: '@frozen' attribute is now used for fixed-layout structs
@_fixed_layout
^~~~~~~~~~~~~~
@frozen
/host/spi-builder-workspace/Sources/Rational.swift:537:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Rational' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
/host/spi-builder-workspace/Sources/Real.swift:224:12: error: cannot find 'exp10f' in scope
return exp10f(self)
^~~~~~
/host/spi-builder-workspace/Sources/Real.swift:401:12: error: module 'Glibc' has no member named 'exp10'
return Glibc.exp10(self)
^~~~~ ~~~~~
[10/13] Compiling NumericAnnex Rational.swift
/host/spi-builder-workspace/Sources/Rational.swift:70:1: warning: '@frozen' attribute is now used for fixed-layout structs
@_fixed_layout
^~~~~~~~~~~~~~
@frozen
/host/spi-builder-workspace/Sources/Rational.swift:537:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Rational' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
[11/13] Compiling NumericAnnex Real.swift
/host/spi-builder-workspace/Sources/Real.swift:224:12: error: cannot find 'exp10f' in scope
return exp10f(self)
^~~~~~
/host/spi-builder-workspace/Sources/Real.swift:401:12: error: module 'Glibc' has no member named 'exp10'
return Glibc.exp10(self)
^~~~~ ~~~~~
[12/13] Compiling NumericAnnex Random.Xoroshiro.swift
/host/spi-builder-workspace/Sources/PRNG.swift:55:3: error: cannot find type 'SubSequence' in scope
SubSequence : Sequence,
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:56:14: error: cannot find type 'SubSequence' in scope
Element == SubSequence.Element {
^~~~~~~~~~~
[13/13] Compiling NumericAnnex Random.swift
/host/spi-builder-workspace/Sources/PRNG.swift:55:3: error: cannot find type 'SubSequence' in scope
SubSequence : Sequence,
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/PRNG.swift:56:14: error: cannot find type 'SubSequence' in scope
Element == SubSequence.Element {
^~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2