The Swift Package Index logo.Swift Package Index

Build Information

Failed to build UInt256 with Swift 5.10 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hyugit/UInt256.git
Reference: 0.2.2
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/hyugit/UInt256
 * tag               0.2.2      -> FETCH_HEAD
HEAD is now at 1a499a1 minor changes
Cloned https://github.com/hyugit/UInt256.git
Revision (git rev-parse @):
1a499a1bf08afd10b9fcd0fd6d90b6dd9196be50
SUCCESS checkout https://github.com/hyugit/UInt256.git at 0.2.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/hyugit/UInt256.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling UInt256 UInt256+CustomStringConvertible.swift
[4/17] Compiling UInt256 UInt256+Divide&Conquer.swift
[5/18] Compiling UInt256 UInt256+Equatable.swift
[6/18] Compiling UInt256 UInt256+ExpressibleByIntegerLiteral.swift
[7/18] Compiling UInt256 UInt256+UnsignedInteger.swift
/host/spi-builder-workspace/Sources/UInt256+arc4random.swift:33:27: error: cannot find 'arc4random' in scope
        let low: UInt32 = arc4random()
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UInt256+arc4random.swift:66:24: error: cannot find 'arc4random' in scope
    let high: UInt32 = arc4random()
                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UInt256+arc4random.swift:67:23: error: cannot find 'arc4random' in scope
    let low: UInt32 = arc4random()
                      ^~~~~~~~~~
[8/18] Compiling UInt256 UInt256+arc4random.swift
/host/spi-builder-workspace/Sources/UInt256+arc4random.swift:33:27: error: cannot find 'arc4random' in scope
        let low: UInt32 = arc4random()
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UInt256+arc4random.swift:66:24: error: cannot find 'arc4random' in scope
    let high: UInt32 = arc4random()
                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UInt256+arc4random.swift:67:23: error: cannot find 'arc4random' in scope
    let low: UInt32 = arc4random()
                      ^~~~~~~~~~
[9/18] Compiling UInt256 UInt256.swift
[10/18] Compiling UInt256 UInt256+FixedWidthInteger.swift
/host/spi-builder-workspace/Sources/UInt256+Hashable.swift:4:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
[11/18] Compiling UInt256 UInt256+Hashable.swift
/host/spi-builder-workspace/Sources/UInt256+Hashable.swift:4:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
[12/18] Compiling UInt256 UInt256+Karatsuba.swift
[13/18] Compiling UInt256 UInt256+Numeric.swift
[14/18] Emitting module UInt256
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
    public static var bitWidth: Int {
                      ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: note: candidate operates on a type, not an instance as required
    public static var bitWidth: Int {
           ~~~~~~~    ^

/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: note: move 'bitWidth' to another extension to silence this warning
    public static var bitWidth: Int {
                      ^
Swift.BinaryInteger:11:9: note: requirement 'bitWidth' declared here
    var bitWidth: Int { get }
        ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: note: candidate has non-matching type '(exactly: T)'
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: note: move 'init(exactly:)' to another extension to silence this warning
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
Swift.BinaryInteger:3:5: note: requirement 'init(exactly:)' declared here
    init?<T>(exactly source: T) where T : BinaryFloatingPoint
    ^
/host/spi-builder-workspace/Sources/UInt256+Hashable.swift:4:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
[15/18] Compiling UInt256 UInt256+BinaryInteger.swift
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
    public static var bitWidth: Int {
                      ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: note: candidate operates on a type, not an instance as required
    public static var bitWidth: Int {
           ~~~~~~~    ^

/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: note: move 'bitWidth' to another extension to silence this warning
    public static var bitWidth: Int {
                      ^
Swift.BinaryInteger:11:9: note: requirement 'bitWidth' declared here
    var bitWidth: Int { get }
        ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: note: candidate has non-matching type '(exactly: T)'
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: note: move 'init(exactly:)' to another extension to silence this warning
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
Swift.BinaryInteger:3:5: note: requirement 'init(exactly:)' declared here
    init?<T>(exactly source: T) where T : BinaryFloatingPoint
    ^
[16/18] Compiling UInt256 UInt256+Comparable.swift
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
    public static var bitWidth: Int {
                      ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: note: candidate operates on a type, not an instance as required
    public static var bitWidth: Int {
           ~~~~~~~    ^

/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: note: move 'bitWidth' to another extension to silence this warning
    public static var bitWidth: Int {
                      ^
Swift.BinaryInteger:11:9: note: requirement 'bitWidth' declared here
    var bitWidth: Int { get }
        ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: note: candidate has non-matching type '(exactly: T)'
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: note: move 'init(exactly:)' to another extension to silence this warning
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
Swift.BinaryInteger:3:5: note: requirement 'init(exactly:)' declared here
    init?<T>(exactly source: T) where T : BinaryFloatingPoint
    ^
[17/18] Compiling UInt256 FixedWidthInteger+LongDivision.swift
[18/18] Compiling UInt256 UInt256+BarrettDivision.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling UInt256 UInt256+UnsignedInteger.swift
[3/4] Emitting module UInt256
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
    public static var bitWidth: Int {
                      ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: note: candidate operates on a type, not an instance as required
    public static var bitWidth: Int {
           ~~~~~~~    ^

/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: note: move 'bitWidth' to another extension to silence this warning
    public static var bitWidth: Int {
                      ^
Swift.BinaryInteger:11:9: note: requirement 'bitWidth' declared here
    var bitWidth: Int { get }
        ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: note: candidate has non-matching type '(exactly: T)'
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: note: move 'init(exactly:)' to another extension to silence this warning
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
Swift.BinaryInteger:3:5: note: requirement 'init(exactly:)' declared here
    init?<T>(exactly source: T) where T : BinaryFloatingPoint
    ^
/host/spi-builder-workspace/Sources/UInt256+Hashable.swift:4:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
[4/4] Compiling UInt256 UInt256+arc4random.swift
/host/spi-builder-workspace/Sources/UInt256+arc4random.swift:33:27: error: cannot find 'arc4random' in scope
        let low: UInt32 = arc4random()
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UInt256+arc4random.swift:66:24: error: cannot find 'arc4random' in scope
    let high: UInt32 = arc4random()
                       ^~~~~~~~~~
/host/spi-builder-workspace/Sources/UInt256+arc4random.swift:67:23: error: cannot find 'arc4random' in scope
    let low: UInt32 = arc4random()
                      ^~~~~~~~~~
[5/17] Compiling UInt256 UInt256.swift
[6/17] Compiling UInt256 UInt256+Numeric.swift
[7/17] Compiling UInt256 UInt256+Karatsuba.swift
[8/17] Compiling UInt256 UInt256+Equatable.swift
[9/17] Compiling UInt256 UInt256+ExpressibleByIntegerLiteral.swift
[10/17] Compiling UInt256 UInt256+FixedWidthInteger.swift
/host/spi-builder-workspace/Sources/UInt256+Hashable.swift:4:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
[11/17] Compiling UInt256 UInt256+Hashable.swift
/host/spi-builder-workspace/Sources/UInt256+Hashable.swift:4:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'UInt256' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
[12/17] Compiling UInt256 FixedWidthInteger+LongDivision.swift
[13/17] Compiling UInt256 UInt256+BarrettDivision.swift
[14/17] Compiling UInt256 UInt256+BinaryInteger.swift
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
    public static var bitWidth: Int {
                      ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: note: candidate operates on a type, not an instance as required
    public static var bitWidth: Int {
           ~~~~~~~    ^

/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: note: move 'bitWidth' to another extension to silence this warning
    public static var bitWidth: Int {
                      ^
Swift.BinaryInteger:11:9: note: requirement 'bitWidth' declared here
    var bitWidth: Int { get }
        ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: note: candidate has non-matching type '(exactly: T)'
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: note: move 'init(exactly:)' to another extension to silence this warning
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
Swift.BinaryInteger:3:5: note: requirement 'init(exactly:)' declared here
    init?<T>(exactly source: T) where T : BinaryFloatingPoint
    ^
[15/17] Compiling UInt256 UInt256+Comparable.swift
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: warning: static property 'bitWidth' nearly matches defaulted requirement 'bitWidth' of protocol 'BinaryInteger'
    public static var bitWidth: Int {
                      ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: note: candidate operates on a type, not an instance as required
    public static var bitWidth: Int {
           ~~~~~~~    ^

/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:22:23: note: move 'bitWidth' to another extension to silence this warning
    public static var bitWidth: Int {
                      ^
Swift.BinaryInteger:11:9: note: requirement 'bitWidth' declared here
    var bitWidth: Int { get }
        ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: warning: initializer 'init(exactly:)' nearly matches defaulted requirement 'init(exactly:)' of protocol 'BinaryInteger'
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: note: candidate has non-matching type '(exactly: T)'
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
/host/spi-builder-workspace/Sources/UInt256+BinaryInteger.swift:45:12: note: move 'init(exactly:)' to another extension to silence this warning
    public init?<T: BinaryInteger>(exactly source: T) {
           ^
Swift.BinaryInteger:3:5: note: requirement 'init(exactly:)' declared here
    init?<T>(exactly source: T) where T : BinaryFloatingPoint
    ^
[16/17] Compiling UInt256 UInt256+CustomStringConvertible.swift
[17/17] Compiling UInt256 UInt256+Divide&Conquer.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1