Build Information
Failed to build UInt256 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/hyugit/UInt256.git
Reference: 0.2.2
Cloned https://github.com/hyugit/UInt256.git into spi-builder-workspace
SUCCESS checkout https://github.com/hyugit/UInt256.git at 0.2.2
========================================
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 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()
^~~~~~~~~~
[2/15] 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()
^~~~~~~~~~
[3/16] Compiling UInt256 UInt256+Karatsuba.swift
[4/16] Compiling UInt256 UInt256+Numeric.swift
[5/16] Compiling UInt256 UInt256.swift
[6/16] Compiling UInt256 UInt256+CustomStringConvertible.swift
[7/16] Compiling UInt256 UInt256+Divide&Conquer.swift
[8/16] Compiling UInt256 UInt256+Equatable.swift
[9/16] Compiling UInt256 UInt256+ExpressibleByIntegerLiteral.swift
[10/16] 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/16] 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/16] Compiling UInt256 FixedWidthInteger+LongDivision.swift
[13/16] Compiling UInt256 UInt256+BarrettDivision.swift
[14/16] 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/16] 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/16] 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
^
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1