The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build NumericAnnex, reference 0.1.19 (241ef9), with Swift 6.0 for Linux on 31 Oct 2024 15:24:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xwu/NumericAnnex.git
Reference: 0.1.19
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/xwu/NumericAnnex
 * tag               0.1.19     -> FETCH_HEAD
HEAD is now at 241ef9f Update README.md, podspec, and CHANGELOG.md
Cloned https://github.com/xwu/NumericAnnex.git
Revision (git rev-parse @):
241ef9fd836b879e31a81bb863c1f0be5899bae4
SUCCESS checkout https://github.com/xwu/NumericAnnex.git at 0.1.19
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/xwu/NumericAnnex.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/14] Compiling NumericAnnex Random.Xoroshiro.swift
/host/spi-builder-workspace/Sources/PRNG.swift:55:3: error: cannot find type 'SubSequence' in scope
 53 | public protocol PRNG : class, IteratorProtocol, Sequence
 54 | where Element : FixedWidthInteger & UnsignedInteger,
 55 |   SubSequence : Sequence,
    |   `- error: cannot find type 'SubSequence' in scope
 56 |   Element == SubSequence.Element {
 57 |   /// A type that can represent the internal state of the pseudo-random number
/host/spi-builder-workspace/Sources/PRNG.swift:56:14: error: cannot find type 'SubSequence' in scope
 54 | where Element : FixedWidthInteger & UnsignedInteger,
 55 |   SubSequence : Sequence,
 56 |   Element == SubSequence.Element {
    |              `- error: cannot find type 'SubSequence' in scope
 57 |   /// A type that can represent the internal state of the pseudo-random number
 58 |   /// generator.
/host/spi-builder-workspace/Sources/Random.Xoroshiro.swift:36:22: error: type 'Random.Xoroshiro' does not conform to protocol 'IteratorProtocol'
34 |   ///
35 |   /// - SeeAlso: `Random`, `PRNG`
36 |   public final class Xoroshiro : PRNG {
   |                      `- error: type 'Random.Xoroshiro' does not conform to protocol 'IteratorProtocol'
37 |     /// The internal state of the pseudo-random number generator.
38 |     public var state: (UInt64, UInt64)
/host/spi-builder-workspace/Sources/Random.Xoroshiro.swift:36:22: error: type 'Random.Xoroshiro' does not conform to protocol 'Sequence'
34 |   ///
35 |   /// - SeeAlso: `Random`, `PRNG`
36 |   public final class Xoroshiro : PRNG {
   |                      `- error: type 'Random.Xoroshiro' does not conform to protocol 'Sequence'
37 |     /// The internal state of the pseudo-random number generator.
38 |     public var state: (UInt64, UInt64)
Swift.IteratorProtocol:2:20: note: protocol requires nested type 'Element'; add nested type 'Element' for conformance
1 | public protocol IteratorProtocol<Element> {
2 |     associatedtype Element
  |                    `- note: protocol requires nested type 'Element'; add nested type 'Element' for conformance
3 |     mutating func next() -> Self.Element?
4 | }
/host/spi-builder-workspace/Sources/Random.swift:37:20: error: type 'Random' does not conform to protocol 'IteratorProtocol'
35 | ///
36 | /// [ref]: http://vigna.di.unimi.it/ftp/papers/xorshiftplus.pdf
37 | public final class Random : PRNG {
   |                    `- error: type 'Random' does not conform to protocol 'IteratorProtocol'
38 |   /// The internal state of the pseudo-random number generator.
39 |   public var state: (UInt64, UInt64)
/host/spi-builder-workspace/Sources/Random.swift:37:20: error: type 'Random' does not conform to protocol 'Sequence'
35 | ///
36 | /// [ref]: http://vigna.di.unimi.it/ftp/papers/xorshiftplus.pdf
37 | public final class Random : PRNG {
   |                    `- error: type 'Random' does not conform to protocol 'Sequence'
38 |   /// The internal state of the pseudo-random number generator.
39 |   public var state: (UInt64, UInt64)
Swift.IteratorProtocol:2:20: note: protocol requires nested type 'Element'; add nested type 'Element' for conformance
1 | public protocol IteratorProtocol<Element> {
2 |     associatedtype Element
  |                    `- note: protocol requires nested type 'Element'; add nested type 'Element' for conformance
3 |     mutating func next() -> Self.Element?
4 | }
[4/14] Compiling NumericAnnex Random.swift
/host/spi-builder-workspace/Sources/PRNG.swift:55:3: error: cannot find type 'SubSequence' in scope
 53 | public protocol PRNG : class, IteratorProtocol, Sequence
 54 | where Element : FixedWidthInteger & UnsignedInteger,
 55 |   SubSequence : Sequence,
    |   `- error: cannot find type 'SubSequence' in scope
 56 |   Element == SubSequence.Element {
 57 |   /// A type that can represent the internal state of the pseudo-random number
/host/spi-builder-workspace/Sources/PRNG.swift:56:14: error: cannot find type 'SubSequence' in scope
 54 | where Element : FixedWidthInteger & UnsignedInteger,
 55 |   SubSequence : Sequence,
 56 |   Element == SubSequence.Element {
    |              `- error: cannot find type 'SubSequence' in scope
 57 |   /// A type that can represent the internal state of the pseudo-random number
 58 |   /// generator.
/host/spi-builder-workspace/Sources/Random.Xoroshiro.swift:36:22: error: type 'Random.Xoroshiro' does not conform to protocol 'IteratorProtocol'
34 |   ///
35 |   /// - SeeAlso: `Random`, `PRNG`
36 |   public final class Xoroshiro : PRNG {
   |                      `- error: type 'Random.Xoroshiro' does not conform to protocol 'IteratorProtocol'
37 |     /// The internal state of the pseudo-random number generator.
38 |     public var state: (UInt64, UInt64)
/host/spi-builder-workspace/Sources/Random.Xoroshiro.swift:36:22: error: type 'Random.Xoroshiro' does not conform to protocol 'Sequence'
34 |   ///
35 |   /// - SeeAlso: `Random`, `PRNG`
36 |   public final class Xoroshiro : PRNG {
   |                      `- error: type 'Random.Xoroshiro' does not conform to protocol 'Sequence'
37 |     /// The internal state of the pseudo-random number generator.
38 |     public var state: (UInt64, UInt64)
Swift.IteratorProtocol:2:20: note: protocol requires nested type 'Element'; add nested type 'Element' for conformance
1 | public protocol IteratorProtocol<Element> {
2 |     associatedtype Element
  |                    `- note: protocol requires nested type 'Element'; add nested type 'Element' for conformance
3 |     mutating func next() -> Self.Element?
4 | }
/host/spi-builder-workspace/Sources/Random.swift:37:20: error: type 'Random' does not conform to protocol 'IteratorProtocol'
35 | ///
36 | /// [ref]: http://vigna.di.unimi.it/ftp/papers/xorshiftplus.pdf
37 | public final class Random : PRNG {
   |                    `- error: type 'Random' does not conform to protocol 'IteratorProtocol'
38 |   /// The internal state of the pseudo-random number generator.
39 |   public var state: (UInt64, UInt64)
/host/spi-builder-workspace/Sources/Random.swift:37:20: error: type 'Random' does not conform to protocol 'Sequence'
35 | ///
36 | /// [ref]: http://vigna.di.unimi.it/ftp/papers/xorshiftplus.pdf
37 | public final class Random : PRNG {
   |                    `- error: type 'Random' does not conform to protocol 'Sequence'
38 |   /// The internal state of the pseudo-random number generator.
39 |   public var state: (UInt64, UInt64)
Swift.IteratorProtocol:2:20: note: protocol requires nested type 'Element'; add nested type 'Element' for conformance
1 | public protocol IteratorProtocol<Element> {
2 |     associatedtype Element
  |                    `- note: protocol requires nested type 'Element'; add nested type 'Element' for conformance
3 |     mutating func next() -> Self.Element?
4 | }
[5/15] Compiling NumericAnnex RoundingRule.swift
[6/15] Compiling NumericAnnex Hash.swift
[7/15] Compiling NumericAnnex IntegerAlgorithms.swift
[8/15] Compiling NumericAnnex Sign.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/15] Compiling NumericAnnex Complex.swift
/host/spi-builder-workspace/Sources/Complex.swift:54:1: warning: '@frozen' attribute is now used for fixed-layout structs
  52 | /// [dfn]: http://mathworld.wolfram.com/BranchCut.html
  53 | /// [std]: http://www.open-std.org/JTC1/SC22/WG14/www/standards.html#9899
  54 | @_fixed_layout
     | `- warning: '@frozen' attribute is now used for fixed-layout structs
  55 | public struct Complex<T : Real> : Codable
  56 | where T : Codable & _ExpressibleByBuiltinFloatLiteral {
/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
 495 |
 496 |   // @_transparent // @_inlineable
 497 |   public var hashValue: Int {
     |              `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Complex' to 'Hashable' by implementing 'hash(into:)' instead
 498 |     return _Hash._combine(real, imaginary)
 499 |   }
[10/15] Compiling NumericAnnex ExponentiationOperators.swift
/host/spi-builder-workspace/Sources/Complex.swift:54:1: warning: '@frozen' attribute is now used for fixed-layout structs
  52 | /// [dfn]: http://mathworld.wolfram.com/BranchCut.html
  53 | /// [std]: http://www.open-std.org/JTC1/SC22/WG14/www/standards.html#9899
  54 | @_fixed_layout
     | `- warning: '@frozen' attribute is now used for fixed-layout structs
  55 | public struct Complex<T : Real> : Codable
  56 | where T : Codable & _ExpressibleByBuiltinFloatLiteral {
/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
 495 |
 496 |   // @_transparent // @_inlineable
 497 |   public var hashValue: Int {
     |              `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Complex' to 'Hashable' by implementing 'hash(into:)' instead
 498 |     return _Hash._combine(real, imaginary)
 499 |   }
[11/15] Emitting module NumericAnnex
/host/spi-builder-workspace/Sources/Complex.swift:54:1: warning: '@frozen' attribute is now used for fixed-layout structs
  52 | /// [dfn]: http://mathworld.wolfram.com/BranchCut.html
  53 | /// [std]: http://www.open-std.org/JTC1/SC22/WG14/www/standards.html#9899
  54 | @_fixed_layout
     | `- warning: '@frozen' attribute is now used for fixed-layout structs
  55 | public struct Complex<T : Real> : Codable
  56 | where T : Codable & _ExpressibleByBuiltinFloatLiteral {
/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
 495 |
 496 |   // @_transparent // @_inlineable
 497 |   public var hashValue: Int {
     |              `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Complex' to 'Hashable' by implementing 'hash(into:)' instead
 498 |     return _Hash._combine(real, imaginary)
 499 |   }
/host/spi-builder-workspace/Sources/PRNG.swift:55:3: error: cannot find type 'SubSequence' in scope
 53 | public protocol PRNG : class, IteratorProtocol, Sequence
 54 | where Element : FixedWidthInteger & UnsignedInteger,
 55 |   SubSequence : Sequence,
    |   `- error: cannot find type 'SubSequence' in scope
 56 |   Element == SubSequence.Element {
 57 |   /// A type that can represent the internal state of the pseudo-random number
/host/spi-builder-workspace/Sources/PRNG.swift:56:14: error: cannot find type 'SubSequence' in scope
 54 | where Element : FixedWidthInteger & UnsignedInteger,
 55 |   SubSequence : Sequence,
 56 |   Element == SubSequence.Element {
    |              `- error: cannot find type 'SubSequence' in scope
 57 |   /// A type that can represent the internal state of the pseudo-random number
 58 |   /// generator.
/host/spi-builder-workspace/Sources/Random.Xoroshiro.swift:36:22: error: type 'Random.Xoroshiro' does not conform to protocol 'IteratorProtocol'
34 |   ///
35 |   /// - SeeAlso: `Random`, `PRNG`
36 |   public final class Xoroshiro : PRNG {
   |                      `- error: type 'Random.Xoroshiro' does not conform to protocol 'IteratorProtocol'
37 |     /// The internal state of the pseudo-random number generator.
38 |     public var state: (UInt64, UInt64)
/host/spi-builder-workspace/Sources/Random.Xoroshiro.swift:36:22: error: type 'Random.Xoroshiro' does not conform to protocol 'Sequence'
34 |   ///
35 |   /// - SeeAlso: `Random`, `PRNG`
36 |   public final class Xoroshiro : PRNG {
   |                      `- error: type 'Random.Xoroshiro' does not conform to protocol 'Sequence'
37 |     /// The internal state of the pseudo-random number generator.
38 |     public var state: (UInt64, UInt64)
Swift.IteratorProtocol:2:20: note: protocol requires nested type 'Element'; add nested type 'Element' for conformance
1 | public protocol IteratorProtocol<Element> {
2 |     associatedtype Element
  |                    `- note: protocol requires nested type 'Element'; add nested type 'Element' for conformance
3 |     mutating func next() -> Self.Element?
4 | }
/host/spi-builder-workspace/Sources/Random.swift:37:20: error: type 'Random' does not conform to protocol 'IteratorProtocol'
35 | ///
36 | /// [ref]: http://vigna.di.unimi.it/ftp/papers/xorshiftplus.pdf
37 | public final class Random : PRNG {
   |                    `- error: type 'Random' does not conform to protocol 'IteratorProtocol'
38 |   /// The internal state of the pseudo-random number generator.
39 |   public var state: (UInt64, UInt64)
/host/spi-builder-workspace/Sources/Random.swift:37:20: error: type 'Random' does not conform to protocol 'Sequence'
35 | ///
36 | /// [ref]: http://vigna.di.unimi.it/ftp/papers/xorshiftplus.pdf
37 | public final class Random : PRNG {
   |                    `- error: type 'Random' does not conform to protocol 'Sequence'
38 |   /// The internal state of the pseudo-random number generator.
39 |   public var state: (UInt64, UInt64)
Swift.IteratorProtocol:2:20: note: protocol requires nested type 'Element'; add nested type 'Element' for conformance
1 | public protocol IteratorProtocol<Element> {
2 |     associatedtype Element
  |                    `- note: protocol requires nested type 'Element'; add nested type 'Element' for conformance
3 |     mutating func next() -> Self.Element?
4 | }
/host/spi-builder-workspace/Sources/Rational.swift:70:1: warning: '@frozen' attribute is now used for fixed-layout structs
 68 | /// occurs when the division (`/`) operator is used to create a value of type
 69 | /// `Rational<T>` with numerator `T.min`.
 70 | @_fixed_layout
    | `- warning: '@frozen' attribute is now used for fixed-layout structs
 71 | public struct Rational<T : SignedInteger> : Codable
 72 | where T : Codable & _ExpressibleByBuiltinIntegerLiteral,
/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
535 |
536 |   // @_transparent // @_inlineable
537 |   public var hashValue: Int {
    |              `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Rational' to 'Hashable' by implementing 'hash(into:)' instead
538 |     let t = canonical
539 |     return _Hash._combine(t.numerator, t.denominator)
/host/spi-builder-workspace/Sources/Real.swift:224:12: error: cannot find 'exp10f' in scope
222 |   public func commonExponential() -> Float {
223 | #if os(Linux)
224 |     return exp10f(self)
    |            `- error: cannot find 'exp10f' in scope
225 | #else
226 |     return __exp10f(self)
/host/spi-builder-workspace/Sources/Real.swift:401:12: error: module 'Glibc' has no member named 'exp10'
399 |   public func commonExponential() -> Double {
400 | #if os(Linux)
401 |     return Glibc.exp10(self)
    |            `- error: module 'Glibc' has no member named 'exp10'
402 | #else
403 |     return __exp10(self)
[12/15] Compiling NumericAnnex Math.swift
/host/spi-builder-workspace/Sources/PRNG.swift:55:3: error: cannot find type 'SubSequence' in scope
 53 | public protocol PRNG : class, IteratorProtocol, Sequence
 54 | where Element : FixedWidthInteger & UnsignedInteger,
 55 |   SubSequence : Sequence,
    |   `- error: cannot find type 'SubSequence' in scope
 56 |   Element == SubSequence.Element {
 57 |   /// A type that can represent the internal state of the pseudo-random number
/host/spi-builder-workspace/Sources/PRNG.swift:56:14: error: cannot find type 'SubSequence' in scope
 54 | where Element : FixedWidthInteger & UnsignedInteger,
 55 |   SubSequence : Sequence,
 56 |   Element == SubSequence.Element {
    |              `- error: cannot find type 'SubSequence' in scope
 57 |   /// A type that can represent the internal state of the pseudo-random number
 58 |   /// generator.
/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
 96 |   /// pseudo-random number generator.
 97 |   public static var _randomBitWidth: Int {
 98 |     let difference = Self.max - Self.min
    |                               `- error: binary operator '-' cannot be applied to two '(Self) -> ((Self.Element, Self.Element) throws -> Bool) throws -> Self.Element?' operands
 99 |     guard difference < Element.max else { return Element.bitWidth }
100 |     return Element.bitWidth - (difference + 1).leadingZeroBitCount - 1
/host/spi-builder-workspace/Sources/PRNG.swift:166:24: error: type of expression is ambiguous without a type annotation
164 |       bitCount == T.bitWidth {
165 |       // It is an awkward way of spelling `next()`, but it is necessary.
166 |       guard let next = first(where: { _ in true }) else { fatalError() }
    |                        `- error: type of expression is ambiguous without a type annotation
167 |       return T(truncatingIfNeeded: next)
168 |     }
/host/spi-builder-workspace/Sources/PRNG.swift:323:27: error: type '(Self) -> ((Self.Element, Self.Element) throws -> Bool) throws -> Self.Element?' cannot conform to 'BinaryInteger'
321 |       bitCount.quotientAndRemainder(dividingBy: Self._randomBitWidth)
322 |     let k = Swift.max(1, remainder == 0 ? quotient : quotient + 1)
323 |     let step = T(Self.max - Self.min)
    |                           |- error: type '(Self) -> ((Self.Element, Self.Element) throws -> Bool) throws -> Self.Element?' cannot conform to 'BinaryInteger'
    |                           |- note: only concrete types such as structs, enums and classes can conform to protocols
    |                           `- note: required by referencing operator function '-' on 'BinaryInteger' where 'Self' = '(Self) -> ((Self.Element, Self.Element) throws -> Bool) throws -> Self.Element?'
324 |     let initial = (0 as T, 1 as T)
325 |     // Call `next()` exactly `k` times.
/host/spi-builder-workspace/Sources/PRNG.swift:326:68: error: cannot infer type of closure parameter 'next' without a type annotation
324 |     let initial = (0 as T, 1 as T)
325 |     // Call `next()` exactly `k` times.
326 |     let (dividend, divisor) = prefix(k).reduce(initial) { partial, next in
    |                                                                    `- error: cannot infer type of closure parameter 'next' without a type annotation
327 |       let x = partial.0 + T(next - Self.min) * partial.1
328 |       let y = partial.1 + step * partial.1
/host/spi-builder-workspace/Sources/PRNG.swift:331:21: error: cannot convert return expression of type 'Duration' to return type 'T'
329 |       return (x, y)
330 |     }
331 |     return dividend / divisor
    |                     `- error: cannot convert return expression of type 'Duration' to return type 'T'
332 |   }
333 |
[13/15] Compiling NumericAnnex PRNG.swift
/host/spi-builder-workspace/Sources/PRNG.swift:55:3: error: cannot find type 'SubSequence' in scope
 53 | public protocol PRNG : class, IteratorProtocol, Sequence
 54 | where Element : FixedWidthInteger & UnsignedInteger,
 55 |   SubSequence : Sequence,
    |   `- error: cannot find type 'SubSequence' in scope
 56 |   Element == SubSequence.Element {
 57 |   /// A type that can represent the internal state of the pseudo-random number
/host/spi-builder-workspace/Sources/PRNG.swift:56:14: error: cannot find type 'SubSequence' in scope
 54 | where Element : FixedWidthInteger & UnsignedInteger,
 55 |   SubSequence : Sequence,
 56 |   Element == SubSequence.Element {
    |              `- error: cannot find type 'SubSequence' in scope
 57 |   /// A type that can represent the internal state of the pseudo-random number
 58 |   /// generator.
/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
 96 |   /// pseudo-random number generator.
 97 |   public static var _randomBitWidth: Int {
 98 |     let difference = Self.max - Self.min
    |                               `- error: binary operator '-' cannot be applied to two '(Self) -> ((Self.Element, Self.Element) throws -> Bool) throws -> Self.Element?' operands
 99 |     guard difference < Element.max else { return Element.bitWidth }
100 |     return Element.bitWidth - (difference + 1).leadingZeroBitCount - 1
/host/spi-builder-workspace/Sources/PRNG.swift:166:24: error: type of expression is ambiguous without a type annotation
164 |       bitCount == T.bitWidth {
165 |       // It is an awkward way of spelling `next()`, but it is necessary.
166 |       guard let next = first(where: { _ in true }) else { fatalError() }
    |                        `- error: type of expression is ambiguous without a type annotation
167 |       return T(truncatingIfNeeded: next)
168 |     }
/host/spi-builder-workspace/Sources/PRNG.swift:323:27: error: type '(Self) -> ((Self.Element, Self.Element) throws -> Bool) throws -> Self.Element?' cannot conform to 'BinaryInteger'
321 |       bitCount.quotientAndRemainder(dividingBy: Self._randomBitWidth)
322 |     let k = Swift.max(1, remainder == 0 ? quotient : quotient + 1)
323 |     let step = T(Self.max - Self.min)
    |                           |- error: type '(Self) -> ((Self.Element, Self.Element) throws -> Bool) throws -> Self.Element?' cannot conform to 'BinaryInteger'
    |                           |- note: only concrete types such as structs, enums and classes can conform to protocols
    |                           `- note: required by referencing operator function '-' on 'BinaryInteger' where 'Self' = '(Self) -> ((Self.Element, Self.Element) throws -> Bool) throws -> Self.Element?'
324 |     let initial = (0 as T, 1 as T)
325 |     // Call `next()` exactly `k` times.
/host/spi-builder-workspace/Sources/PRNG.swift:326:68: error: cannot infer type of closure parameter 'next' without a type annotation
324 |     let initial = (0 as T, 1 as T)
325 |     // Call `next()` exactly `k` times.
326 |     let (dividend, divisor) = prefix(k).reduce(initial) { partial, next in
    |                                                                    `- error: cannot infer type of closure parameter 'next' without a type annotation
327 |       let x = partial.0 + T(next - Self.min) * partial.1
328 |       let y = partial.1 + step * partial.1
/host/spi-builder-workspace/Sources/PRNG.swift:331:21: error: cannot convert return expression of type 'Duration' to return type 'T'
329 |       return (x, y)
330 |     }
331 |     return dividend / divisor
    |                     `- error: cannot convert return expression of type 'Duration' to return type 'T'
332 |   }
333 |
[14/15] Compiling NumericAnnex Rational.swift
/host/spi-builder-workspace/Sources/Rational.swift:70:1: warning: '@frozen' attribute is now used for fixed-layout structs
 68 | /// occurs when the division (`/`) operator is used to create a value of type
 69 | /// `Rational<T>` with numerator `T.min`.
 70 | @_fixed_layout
    | `- warning: '@frozen' attribute is now used for fixed-layout structs
 71 | public struct Rational<T : SignedInteger> : Codable
 72 | where T : Codable & _ExpressibleByBuiltinIntegerLiteral,
/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
535 |
536 |   // @_transparent // @_inlineable
537 |   public var hashValue: Int {
    |              `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Rational' to 'Hashable' by implementing 'hash(into:)' instead
538 |     let t = canonical
539 |     return _Hash._combine(t.numerator, t.denominator)
[15/15] Compiling NumericAnnex Real.swift
/host/spi-builder-workspace/Sources/Real.swift:224:12: error: cannot find 'exp10f' in scope
222 |   public func commonExponential() -> Float {
223 | #if os(Linux)
224 |     return exp10f(self)
    |            `- error: cannot find 'exp10f' in scope
225 | #else
226 |     return __exp10f(self)
/host/spi-builder-workspace/Sources/Real.swift:401:12: error: module 'Glibc' has no member named 'exp10'
399 |   public func commonExponential() -> Double {
400 | #if os(Linux)
401 |     return Glibc.exp10(self)
    |            `- error: module 'Glibc' has no member named 'exp10'
402 | #else
403 |     return __exp10(self)
BUILD FAILURE 6.0 linux