The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BaseMath, reference master (5fd3d8), with Swift 6.2 for Linux on 17 Jun 2025 21:33:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jph00/basemath.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/jph00/basemath
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 5fd3d82 Update main.swift
Cloned https://github.com/jph00/basemath.git
Revision (git rev-parse @):
5fd3d82b6f342a90efaed26fae2c0de1b5f2edaa
SUCCESS checkout https://github.com/jph00/basemath.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/jph00/basemath.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/9] Write sources
[2/9] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling CBaseMath CBaseMath.cpp
[4/9] Compiling CBaseMath CDistribution.cpp
[6/17] Compiling BaseMath BaseVector.swift
[7/17] Compiling BaseMath Utils.swift
[8/17] Compiling BaseMath CBaseRand.swift
[9/17] Emitting module BaseMath
/host/spi-builder-workspace/Sources/BaseMath/Storage.swift:44:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocols 'ExpressibleByArrayLiteral', 'Equatable', 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
42 | }
43 |
44 | extension UnsafeMutableBufferPointer: BaseVector,ExpressibleByArrayLiteral,Equatable,CustomStringConvertible
   | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocols 'ExpressibleByArrayLiteral', 'Equatable', 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
45 |     where Element:SignedNumeric {
46 |   public typealias ArrayLiteralElement=Element
[10/17] Compiling BaseMath Storage.swift
/host/spi-builder-workspace/Sources/BaseMath/Storage.swift:44:1: warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocols 'ExpressibleByArrayLiteral', 'Equatable', 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
42 | }
43 |
44 | extension UnsafeMutableBufferPointer: BaseVector,ExpressibleByArrayLiteral,Equatable,CustomStringConvertible
   | |- warning: extension declares a conformance of imported type 'UnsafeMutableBufferPointer' to imported protocols 'ExpressibleByArrayLiteral', 'Equatable', 'CustomStringConvertible'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
45 |     where Element:SignedNumeric {
46 |   public typealias ArrayLiteralElement=Element
/host/spi-builder-workspace/Sources/BaseMath/Storage.swift:11:59: warning: initialization of 'UnsafeMutablePointer<Element>' results in a dangling pointer [#TemporaryPointers]
 9 |     return a
10 |   }
11 |   public var p:UnsafeMutablePointer<Element> {get {return UnsafeMutablePointer(mutating: self)}}
   |                                                           |                              |- note: implicit argument conversion from 'Array<Element>' to 'UnsafePointer<Element>' produces a pointer valid only for the duration of the call to 'init(mutating:)'
   |                                                           |                              `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
   |                                                           `- warning: initialization of 'UnsafeMutablePointer<Element>' results in a dangling pointer [#TemporaryPointers]
12 | }
13 |
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
[11/17] Compiling BaseMath BaseRand.swift
[12/17] Compiling BaseMath BaseMath.swift
[13/17] Compiling BaseMath FloatVector.swift
[14/18] Wrapping AST for BaseMath for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/20] Compiling bench main.swift
/host/spi-builder-workspace/Sources/bench/main.swift:113:27: error: cannot find 'sm_add_float' in scope
111 | }
112 | print(ar2.sum())
113 | benchmark(title:"C add") {sm_add_float(ar1.p, 2.0, ar2.p, ar1.c)}
    |                           `- error: cannot find 'sm_add_float' in scope
114 | print(ar2.sum())
115 | benchmark(title:"map add") { ar1.map({$0+2.0}, ar2) }
/host/spi-builder-workspace/Sources/bench/main.swift:127:27: error: cannot find 'sm_sin_float' in scope
125 | }
126 | print(ar2.sum())
127 | benchmark(title:"C sin") {sm_sin_float(ar1.p, ar2.p, ar1.c)}
    |                           `- error: cannot find 'sm_sin_float' in scope
128 | print(ar2.sum())
129 |
/host/spi-builder-workspace/Sources/bench/main.swift:136:35: error: cannot find 'smSum_sqr_float' in scope
134 | benchmark(title:"reduce sumsqr") {a1 = ar1.reduce(0.0, {$0+Float.sqr($1)})}
135 | print(a1)
136 | benchmark(title:"c sumsqr") {a1 = smSum_sqr_float(ar1.p, ar1.c)}
    |                                   `- error: cannot find 'smSum_sqr_float' in scope
137 | print(a1)
138 | benchmark(title:"lib sumsqr") {a1 = ar1.sumsqr()}
[17/20] Emitting module bench
/host/spi-builder-workspace/Sources/bench/main.swift:113:27: error: cannot find 'sm_add_float' in scope
111 | }
112 | print(ar2.sum())
113 | benchmark(title:"C add") {sm_add_float(ar1.p, 2.0, ar2.p, ar1.c)}
    |                           `- error: cannot find 'sm_add_float' in scope
114 | print(ar2.sum())
115 | benchmark(title:"map add") { ar1.map({$0+2.0}, ar2) }
/host/spi-builder-workspace/Sources/bench/main.swift:127:27: error: cannot find 'sm_sin_float' in scope
125 | }
126 | print(ar2.sum())
127 | benchmark(title:"C sin") {sm_sin_float(ar1.p, ar2.p, ar1.c)}
    |                           `- error: cannot find 'sm_sin_float' in scope
128 | print(ar2.sum())
129 |
/host/spi-builder-workspace/Sources/bench/main.swift:136:35: error: cannot find 'smSum_sqr_float' in scope
134 | benchmark(title:"reduce sumsqr") {a1 = ar1.reduce(0.0, {$0+Float.sqr($1)})}
135 | print(a1)
136 | benchmark(title:"c sumsqr") {a1 = smSum_sqr_float(ar1.p, ar1.c)}
    |                                   `- error: cannot find 'smSum_sqr_float' in scope
137 | print(a1)
138 | benchmark(title:"lib sumsqr") {a1 = ar1.sumsqr()}
BUILD FAILURE 6.2 linux