The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwifitLearn with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-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.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/t-ae/swifit-learn.git
Reference: master
Cloned https://github.com/t-ae/swifit-learn.git into spi-builder-workspace
SUCCESS checkout https://github.com/t-ae/swifit-learn.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-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/t-ae/xorswift.git
Fetching https://github.com/t-ae/ndarray.git
[1/2231] Fetching ndarray
[2232/3015] Fetching ndarray, xorswift
Fetched https://github.com/t-ae/ndarray.git (0.21s)
Fetched https://github.com/t-ae/xorswift.git (0.21s)
Computing version for https://github.com/t-ae/ndarray.git
Computed https://github.com/t-ae/ndarray.git at 0.0.14 (0.25s)
Computing version for https://github.com/t-ae/xorswift.git
Computed https://github.com/t-ae/xorswift.git at 0.0.10 (0.26s)
Creating working copy for https://github.com/t-ae/xorswift.git
Working copy of https://github.com/t-ae/xorswift.git resolved at 0.0.10
Creating working copy for https://github.com/t-ae/ndarray.git
Working copy of https://github.com/t-ae/ndarray.git resolved at 0.0.14
Building for debugging...
[1/6] Compiling Xorswift Uniform.swift
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:4:9: error: cannot find 'arc4random' in scope
var x = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:5:9: error: cannot find 'arc4random' in scope
var y = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:6:9: error: cannot find 'arc4random' in scope
var z = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:7:9: error: cannot find 'arc4random' in scope
var w = arc4random()
        ^~~~~~~~~~
[2/6] Compiling Xorswift State.swift
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:4:9: error: cannot find 'arc4random' in scope
var x = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:5:9: error: cannot find 'arc4random' in scope
var y = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:6:9: error: cannot find 'arc4random' in scope
var z = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:7:9: error: cannot find 'arc4random' in scope
var w = arc4random()
        ^~~~~~~~~~
[3/6] Compiling Xorswift Xorswift.swift
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:4:9: error: cannot find 'arc4random' in scope
var x = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:5:9: error: cannot find 'arc4random' in scope
var y = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:6:9: error: cannot find 'arc4random' in scope
var z = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:7:9: error: cannot find 'arc4random' in scope
var w = arc4random()
        ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling Xorswift NextAfter.swift
[5/6] Emitting module Xorswift
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:4:9: error: cannot find 'arc4random' in scope
var x = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:5:9: error: cannot find 'arc4random' in scope
var y = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:6:9: error: cannot find 'arc4random' in scope
var z = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:7:9: error: cannot find 'arc4random' in scope
var w = arc4random()
        ^~~~~~~~~~
[6/6] Compiling Xorswift Normal.swift
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:106:47: error: cannot convert value of type 'Int32' to expected argument type 'Int'
        _xorshift_normal(start: start, count: Int32(count), mu: mu, sigma: sigma)
                                              ^
                                              Int(        )
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:124:19: error: cannot find 'nextafterf' in scope
    let divisor = nextafterf(Float(UInt32.max), Float.infinity)
                  ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:4:9: error: cannot find 'arc4random' in scope
var x = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:5:9: error: cannot find 'arc4random' in scope
var y = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:6:9: error: cannot find 'arc4random' in scope
var z = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:7:9: error: cannot find 'arc4random' in scope
var w = arc4random()
        ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:138:27: error: cannot find 'sqrtf' in scope
        p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
                          ^~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:138:36: error: cannot find 'logf' in scope
        p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
                                   ^~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:138:46: error: cannot find 'cosf' in scope
        p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
                                             ^~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:156:27: error: cannot find 'sqrtf' in scope
        p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
                          ^~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:156:36: error: cannot find 'logf' in scope
        p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
                                   ^~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:156:46: error: cannot find 'cosf' in scope
        p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
                                             ^~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:161:27: error: cannot find 'sqrtf' in scope
        p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
                          ^~~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:161:36: error: cannot find 'logf' in scope
        p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
                                   ^~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:161:46: error: cannot find 'cosf' in scope
        p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
                                             ^~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:272:47: error: cannot convert value of type 'Int32' to expected argument type 'Int'
        _xorshift_normal(start: start, count: Int32(count), mu: mu, sigma: sigma)
                                              ^
                                              Int(        )
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:304:27: error: cannot find 'sqrt' in scope
        p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
                          ^~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:304:35: error: cannot find 'log' in scope
        p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
                                  ^~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:304:44: error: cannot find 'cos' in scope
        p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
                                           ^~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:322:27: error: cannot find 'sqrt' in scope
        p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
                          ^~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:322:35: error: cannot find 'log' in scope
        p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
                                  ^~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:322:44: error: cannot find 'cos' in scope
        p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
                                           ^~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:327:27: error: cannot find 'sqrt' in scope
        p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
                          ^~~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:327:35: error: cannot find 'log' in scope
        p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
                                  ^~~
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:327:44: error: cannot find 'cos' in scope
        p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
                                           ^~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1