Build Information
Failed to build BaseMath, reference master (5fd3d8), with Swift 6.3 for macOS (SPM) on 10 Apr 2026 18:28:56 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jph00/basemath.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "basemath",
"name": "BaseMath",
"url": "https://github.com/jph00/basemath.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/basemath",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/jph00/basemath.git
[1/265] Fetching basemath
Fetched https://github.com/jph00/basemath.git from cache (0.74s)
Creating working copy for https://github.com/jph00/basemath.git
Working copy of https://github.com/jph00/basemath.git resolved at master (5fd3d82)
warning: '.resolve-product-dependencies': dependency 'basemath' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/jph00/basemath.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/9] Write sources
[0/9] Write bench-entitlement.plist
[1/9] Write sources
[3/9] Write swift-version--6988338F2F200930.txt
[4/9] Compiling CBaseMath CBaseMath.cpp
[5/9] Compiling CBaseMath CDistribution.cpp
[7/17] Compiling BaseMath BaseMath.swift
[8/17] Compiling BaseMath CBaseRand.swift
[9/17] Compiling BaseMath BaseVector.swift
[10/17] Compiling BaseMath BaseRand.swift
[11/17] Compiling BaseMath Utils.swift
[12/17] Compiling BaseMath FloatVector.swift
[13/17] Emitting module BaseMath
/Users/admin/builder/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
[14/17] Compiling BaseMath Storage.swift
/Users/admin/builder/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
/Users/admin/builder/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>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/19] Emitting module bench
/Users/admin/builder/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) }
/Users/admin/builder/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 |
/Users/admin/builder/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()}
[16/19] Compiling bench main.swift
/Users/admin/builder/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) }
/Users/admin/builder/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 |
/Users/admin/builder/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.3 macosSpm