Build Information
Failed to build SwifitLearn, reference master (259662
), with Swift 6.0 for Linux on 31 Oct 2024 10:36:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.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: 6.0
Building package at path: $PWD
https://github.com/t-ae/swifit-learn.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/t-ae/ndarray.git
[1/2231] Fetching ndarray
Fetched https://github.com/t-ae/ndarray.git from cache (0.24s)
Computing version for https://github.com/t-ae/ndarray.git
Computed https://github.com/t-ae/ndarray.git at 0.0.14 (0.47s)
Fetching https://github.com/t-ae/xorswift.git
[1/784] Fetching xorswift
Fetched https://github.com/t-ae/xorswift.git from cache (0.20s)
Computing version for https://github.com/t-ae/xorswift.git
Computed https://github.com/t-ae/xorswift.git at 0.0.10 (0.48s)
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
2 | import Foundation
3 |
4 | var x = arc4random()
| `- error: cannot find 'arc4random' in scope
5 | var y = arc4random()
6 | var z = arc4random()
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:5:9: error: cannot find 'arc4random' in scope
3 |
4 | var x = arc4random()
5 | var y = arc4random()
| `- error: cannot find 'arc4random' in scope
6 | var z = arc4random()
7 | var w = arc4random()
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:6:9: error: cannot find 'arc4random' in scope
4 | var x = arc4random()
5 | var y = arc4random()
6 | var z = arc4random()
| `- error: cannot find 'arc4random' in scope
7 | var w = arc4random()
8 |
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:7:9: error: cannot find 'arc4random' in scope
5 | var y = arc4random()
6 | var z = arc4random()
7 | var w = arc4random()
| `- error: cannot find 'arc4random' in scope
8 |
[6/10] Compiling Xorswift Xorswift.swift
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:4:9: error: cannot find 'arc4random' in scope
2 | import Foundation
3 |
4 | var x = arc4random()
| `- error: cannot find 'arc4random' in scope
5 | var y = arc4random()
6 | var z = arc4random()
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:5:9: error: cannot find 'arc4random' in scope
3 |
4 | var x = arc4random()
5 | var y = arc4random()
| `- error: cannot find 'arc4random' in scope
6 | var z = arc4random()
7 | var w = arc4random()
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:6:9: error: cannot find 'arc4random' in scope
4 | var x = arc4random()
5 | var y = arc4random()
6 | var z = arc4random()
| `- error: cannot find 'arc4random' in scope
7 | var w = arc4random()
8 |
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:7:9: error: cannot find 'arc4random' in scope
5 | var y = arc4random()
6 | var z = arc4random()
7 | var w = arc4random()
| `- error: cannot find 'arc4random' in scope
8 |
[7/10] Compiling Xorswift Uniform.swift
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:4:9: error: cannot find 'arc4random' in scope
2 | import Foundation
3 |
4 | var x = arc4random()
| `- error: cannot find 'arc4random' in scope
5 | var y = arc4random()
6 | var z = arc4random()
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:5:9: error: cannot find 'arc4random' in scope
3 |
4 | var x = arc4random()
5 | var y = arc4random()
| `- error: cannot find 'arc4random' in scope
6 | var z = arc4random()
7 | var w = arc4random()
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:6:9: error: cannot find 'arc4random' in scope
4 | var x = arc4random()
5 | var y = arc4random()
6 | var z = arc4random()
| `- error: cannot find 'arc4random' in scope
7 | var w = arc4random()
8 |
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:7:9: error: cannot find 'arc4random' in scope
5 | var y = arc4random()
6 | var z = arc4random()
7 | var w = arc4random()
| `- error: cannot find 'arc4random' in scope
8 |
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
2 | import Foundation
3 |
4 | var x = arc4random()
| `- error: cannot find 'arc4random' in scope
5 | var y = arc4random()
6 | var z = arc4random()
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:5:9: error: cannot find 'arc4random' in scope
3 |
4 | var x = arc4random()
5 | var y = arc4random()
| `- error: cannot find 'arc4random' in scope
6 | var z = arc4random()
7 | var w = arc4random()
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:6:9: error: cannot find 'arc4random' in scope
4 | var x = arc4random()
5 | var y = arc4random()
6 | var z = arc4random()
| `- error: cannot find 'arc4random' in scope
7 | var w = arc4random()
8 |
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:7:9: error: cannot find 'arc4random' in scope
5 | var y = arc4random()
6 | var z = arc4random()
7 | var w = arc4random()
| `- error: cannot find 'arc4random' in scope
8 |
[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'
104 | mu: Float = 0,
105 | sigma: Float = 1) {
106 | _xorshift_normal(start: start, count: Int32(count), mu: mu, sigma: sigma)
| `- error: cannot convert value of type 'Int32' to expected argument type 'Int'
107 | }
108 | #endif
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:124:19: error: cannot find 'nextafterf' in scope
122 |
123 | var p = start
124 | let divisor = nextafterf(Float(UInt32.max), Float.infinity)
| `- error: cannot find 'nextafterf' in scope
125 |
126 | if count%2 == 1 {
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:4:9: error: cannot find 'arc4random' in scope
2 | import Foundation
3 |
4 | var x = arc4random()
| `- error: cannot find 'arc4random' in scope
5 | var y = arc4random()
6 | var z = arc4random()
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:5:9: error: cannot find 'arc4random' in scope
3 |
4 | var x = arc4random()
5 | var y = arc4random()
| `- error: cannot find 'arc4random' in scope
6 | var z = arc4random()
7 | var w = arc4random()
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:6:9: error: cannot find 'arc4random' in scope
4 | var x = arc4random()
5 | var y = arc4random()
6 | var z = arc4random()
| `- error: cannot find 'arc4random' in scope
7 | var w = arc4random()
8 |
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/State.swift:7:9: error: cannot find 'arc4random' in scope
5 | var y = arc4random()
6 | var z = arc4random()
7 | var w = arc4random()
| `- error: cannot find 'arc4random' in scope
8 |
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:138:27: error: cannot find 'sqrtf' in scope
136 | let x2 = Float(w) / divisor + Float.leastNormalMagnitude
137 |
138 | p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
| `- error: cannot find 'sqrtf' in scope
139 | p += 1
140 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:138:36: error: cannot find 'logf' in scope
136 | let x2 = Float(w) / divisor + Float.leastNormalMagnitude
137 |
138 | p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
| `- error: cannot find 'logf' in scope
139 | p += 1
140 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:138:46: error: cannot find 'cosf' in scope
136 | let x2 = Float(w) / divisor + Float.leastNormalMagnitude
137 |
138 | p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
| `- error: cannot find 'cosf' in scope
139 | p += 1
140 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:156:27: error: cannot find 'sqrtf' in scope
154 | x1 = Float(x) / divisor + Float.leastNormalMagnitude
155 | x2 = Float(y) / divisor + Float.leastNormalMagnitude
156 | p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
| `- error: cannot find 'sqrtf' in scope
157 | p += 1
158 |
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:156:36: error: cannot find 'logf' in scope
154 | x1 = Float(x) / divisor + Float.leastNormalMagnitude
155 | x2 = Float(y) / divisor + Float.leastNormalMagnitude
156 | p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
| `- error: cannot find 'logf' in scope
157 | p += 1
158 |
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:156:46: error: cannot find 'cosf' in scope
154 | x1 = Float(x) / divisor + Float.leastNormalMagnitude
155 | x2 = Float(y) / divisor + Float.leastNormalMagnitude
156 | p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
| `- error: cannot find 'cosf' in scope
157 | p += 1
158 |
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:161:27: error: cannot find 'sqrtf' in scope
159 | x1 = Float(z) / divisor + Float.leastNormalMagnitude
160 | x2 = Float(w) / divisor + Float.leastNormalMagnitude
161 | p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
| `- error: cannot find 'sqrtf' in scope
162 | p += 1
163 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:161:36: error: cannot find 'logf' in scope
159 | x1 = Float(z) / divisor + Float.leastNormalMagnitude
160 | x2 = Float(w) / divisor + Float.leastNormalMagnitude
161 | p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
| `- error: cannot find 'logf' in scope
162 | p += 1
163 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:161:46: error: cannot find 'cosf' in scope
159 | x1 = Float(z) / divisor + Float.leastNormalMagnitude
160 | x2 = Float(w) / divisor + Float.leastNormalMagnitude
161 | p.pointee = sigma*sqrtf(-2*logf(x1))*cosf(2*Float.pi*x2) + mu
| `- error: cannot find 'cosf' in scope
162 | p += 1
163 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:272:47: error: cannot convert value of type 'Int32' to expected argument type 'Int'
270 | mu: Double = 0,
271 | sigma: Double = 1) {
272 | _xorshift_normal(start: start, count: Int32(count), mu: mu, sigma: sigma)
| `- error: cannot convert value of type 'Int32' to expected argument type 'Int'
273 | }
274 | #endif
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:304:27: error: cannot find 'sqrt' in scope
302 | let x2 = Double(w) / divisor + Double.leastNormalMagnitude
303 |
304 | p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
| `- error: cannot find 'sqrt' in scope
305 | p += 1
306 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:304:35: error: cannot find 'log' in scope
302 | let x2 = Double(w) / divisor + Double.leastNormalMagnitude
303 |
304 | p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
| `- error: cannot find 'log' in scope
305 | p += 1
306 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:304:44: error: cannot find 'cos' in scope
302 | let x2 = Double(w) / divisor + Double.leastNormalMagnitude
303 |
304 | p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
| `- error: cannot find 'cos' in scope
305 | p += 1
306 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:322:27: error: cannot find 'sqrt' in scope
320 | x1 = Double(x) / divisor + Double.leastNormalMagnitude
321 | x2 = Double(y) / divisor + Double.leastNormalMagnitude
322 | p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
| `- error: cannot find 'sqrt' in scope
323 | p += 1
324 |
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:322:35: error: cannot find 'log' in scope
320 | x1 = Double(x) / divisor + Double.leastNormalMagnitude
321 | x2 = Double(y) / divisor + Double.leastNormalMagnitude
322 | p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
| `- error: cannot find 'log' in scope
323 | p += 1
324 |
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:322:44: error: cannot find 'cos' in scope
320 | x1 = Double(x) / divisor + Double.leastNormalMagnitude
321 | x2 = Double(y) / divisor + Double.leastNormalMagnitude
322 | p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
| `- error: cannot find 'cos' in scope
323 | p += 1
324 |
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:327:27: error: cannot find 'sqrt' in scope
325 | x1 = Double(z) / divisor + Double.leastNormalMagnitude
326 | x2 = Double(w) / divisor + Double.leastNormalMagnitude
327 | p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
| `- error: cannot find 'sqrt' in scope
328 | p += 1
329 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:327:35: error: cannot find 'log' in scope
325 | x1 = Double(z) / divisor + Double.leastNormalMagnitude
326 | x2 = Double(w) / divisor + Double.leastNormalMagnitude
327 | p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
| `- error: cannot find 'log' in scope
328 | p += 1
329 | }
/host/spi-builder-workspace/.build/checkouts/xorswift/Sources/Normal.swift:327:44: error: cannot find 'cos' in scope
325 | x1 = Double(z) / divisor + Double.leastNormalMagnitude
326 | x2 = Double(w) / divisor + Double.leastNormalMagnitude
327 | p.pointee = sigma*sqrt(-2*log(x1))*cos(2*Double.pi*x2) + mu
| `- error: cannot find 'cos' in scope
328 | p += 1
329 | }
BUILD FAILURE 6.0 linux