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 SwifitLearn 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/t-ae/swifit-learn.git
Reference: master
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/t-ae/swifit-learn
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 259662c Update for Swift4
Cloned https://github.com/t-ae/swifit-learn.git
Revision (git rev-parse @):
259662cff3c5cfcc627c48294e578884ed97a931
SUCCESS checkout https://github.com/t-ae/swifit-learn.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/t-ae/swifit-learn.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
Fetching https://github.com/t-ae/ndarray.git
Fetching https://github.com/t-ae/xorswift.git
[1/784] Fetching xorswift
[785/3015] Fetching xorswift, ndarray
Fetched https://github.com/t-ae/xorswift.git from cache (0.25s)
Fetched https://github.com/t-ae/ndarray.git from cache (0.25s)
Computing version for https://github.com/t-ae/ndarray.git
Computed https://github.com/t-ae/ndarray.git at 0.0.14 (0.41s)
Computing version for https://github.com/t-ae/xorswift.git
Computed https://github.com/t-ae/xorswift.git at 0.0.10 (0.62s)
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
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
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/10] 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()
        ^~~~~~~~~~
[6/10] 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()
        ^~~~~~~~~~
[7/10] 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()
        ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/10] Compiling Xorswift NextAfter.swift
[9/10] 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()
        ^~~~~~~~~~
[10/10] 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
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[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()
        ^~~~~~~~~~
[4/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()
        ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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.10 linux