The Swift Package Index logo.Swift Package Index

Build Information

Failed to build UInt256 with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-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: master
Cloned https://github.com/hyugit/UInt256.git into spi-builder-workspace
SUCCESS checkout https://github.com/hyugit/UInt256.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-4609320-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+Equatable.swift
[2/15] Compiling UInt256 UInt256+ExpressibleByIntegerLiteral.swift
[3/16] Compiling UInt256 UInt256+CustomStringConvertible.swift
[4/16] Compiling UInt256 UInt256+Divide&Conquer.swift
[5/16] Compiling UInt256 UInt256+BinaryInteger.swift
[6/16] Compiling UInt256 UInt256+Comparable.swift
[7/16] Compiling UInt256 UInt256.swift
[8/16] 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()
                      ^~~~~~~~~~
[9/16] 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()
                      ^~~~~~~~~~
[10/16] Emitting module UInt256
[11/16] Compiling UInt256 FixedWidthInteger+BarrettDivision.swift
[12/16] Compiling UInt256 FixedWidthInteger+LongDivision.swift
[13/16] Compiling UInt256 UInt256+Karatsuba.swift
[14/16] Compiling UInt256 UInt256+Numeric.swift
[15/16] Compiling UInt256 UInt256+FixedWidthInteger.swift
[16/16] Compiling UInt256 UInt256+Hashable.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2