Build Information
Successful build of SwiftDilithium, reference main (452e50), with Swift 6.1 for macOS (SPM) on 26 Apr 2026 22:08:22 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/leif-ibsen/SwiftDilithium.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/leif-ibsen/SwiftDilithium
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 452e507 Release 3.6.0
Cloned https://github.com/leif-ibsen/SwiftDilithium.git
Revision (git rev-parse @):
452e507c68879a4a584502e1ef55605efb224e79
SUCCESS checkout https://github.com/leif-ibsen/SwiftDilithium.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/leif-ibsen/SwiftDilithium.git
https://github.com/leif-ibsen/SwiftDilithium.git
{
"dependencies" : [
{
"identity" : "asn1",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/ASN1"
},
{
"identity" : "bigint",
"requirement" : {
"range" : [
{
"lower_bound" : "1.23.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/BigInt"
},
{
"identity" : "digest",
"requirement" : {
"range" : [
{
"lower_bound" : "1.13.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/Digest"
}
],
"manifest_display_name" : "SwiftDilithium",
"name" : "SwiftDilithium",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftDilithium",
"targets" : [
"SwiftDilithium"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftDilithiumTests",
"module_type" : "SwiftTarget",
"name" : "SwiftDilithiumTests",
"path" : "Tests/SwiftDilithiumTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/katTestKeyGen.rsp",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/katTestSign.rsp",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/katTestVerify.rsp",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/wycheproofSign.rsp",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/wycheproofVerify.rsp",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"BitPacktest.swift",
"ContextTest.swift",
"DecomposeTest.swift",
"EncodeDecodeTest.swift",
"ExceptionTest.swift",
"ExpandTest.swift",
"HintBitTest.swift",
"KATTestKeyGen.swift",
"KATTestSign.swift",
"KATTestVerify.swift",
"MakeHintTest.swift",
"NTTTest.swift",
"PEMTest.swift",
"Power2RoundTest.swift",
"SampleInBallTest.swift",
"SignVerifyTest.swift",
"Util.swift",
"WycheproofSignTest.swift",
"WycheproofVerifyTest.swift"
],
"target_dependencies" : [
"SwiftDilithium"
],
"type" : "test"
},
{
"c99name" : "SwiftDilithium",
"module_type" : "SwiftTarget",
"name" : "SwiftDilithium",
"path" : "Sources/SwiftDilithium",
"product_dependencies" : [
"BigInt",
"ASN1",
"Digest"
],
"product_memberships" : [
"SwiftDilithium"
],
"sources" : [
"ByteSlice.swift",
"Dilithium.swift",
"Exception.swift",
"Kind.swift",
"Matrix.swift",
"Parameters.swift",
"Polynomial.swift",
"PreHash.swift",
"PublicKey.swift",
"SecretKey.swift",
"Vector.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-2F0A5646E1D333AE.txt
[6/28] Compiling Digest SHAKE.swift
[7/28] Compiling Digest SHA3.swift
[8/29] Compiling BigInt GCD.swift
[9/29] Compiling BigInt Limbs.swift
[10/29] Compiling BigInt Factorial.swift
[11/29] Compiling BigInt Karatsuba.swift
[12/30] Compiling Digest HMAC.swift
[13/30] Compiling BigInt FFT.swift
[14/30] Compiling Digest MD.swift
[15/30] Compiling Digest SHA2.swift
[16/30] Compiling Digest KDF.swift
[17/30] Compiling Digest SHA1.swift
[18/30] Compiling Digest XOF.swift
[19/30] Compiling BigInt ToomCook.swift
[20/30] Emitting module Digest
[21/30] Compiling Digest BLAKE.swift
[22/30] Compiling Digest Base64.swift
[23/30] Compiling BigInt ExpMod.swift
[24/30] Compiling BigInt BurnikelZiegler.swift
[25/30] Compiling BigInt CRT.swift
[26/30] Compiling BigInt BailliePSW.swift
[27/30] Compiling BigInt BigFrac.swift
[28/30] Compiling BigInt BigInt.swift
[29/30] Compiling BigInt BitSieve.swift
[30/30] Emitting module BigInt
[31/51] Emitting module ASN1
[32/53] Compiling ASN1 ASN1OctetString.swift
[33/53] Compiling ASN1 ASN1PrintableString.swift
[34/53] Compiling ASN1 ASN1Exception.swift
[35/53] Compiling ASN1 ASN1GeneralizedTime.swift
[36/53] Compiling ASN1 ASN1Sequence.swift
[37/53] Compiling ASN1 ASN1Set.swift
[38/53] Compiling ASN1 ASN1IA5String.swift
[39/53] Compiling ASN1 ASN1Integer.swift
[40/53] Compiling ASN1 ASN1SimpleType.swift
[41/53] Compiling ASN1 ASN1T61String.swift
[42/53] Compiling ASN1 ASN1Time.swift
[43/53] Compiling ASN1 ASN1UTCTime.swift
[44/53] Compiling ASN1 ASN1Null.swift
[45/53] Compiling ASN1 ASN1ObjectIdentifier.swift
[46/53] Compiling ASN1 ASN1Boolean.swift
[47/53] Compiling ASN1 ASN1Collection.swift
[48/53] Compiling ASN1 ASN1Ctx.swift
[49/53] Compiling ASN1 ASN1UTF8String.swift
[50/53] Compiling ASN1 InputStream.swift
[51/53] Compiling ASN1 ASN1.swift
[52/53] Compiling ASN1 ASN1BMPString.swift
[53/53] Compiling ASN1 ASN1BitString.swift
[54/64] Compiling SwiftDilithium SecretKey.swift
[55/64] Compiling SwiftDilithium PublicKey.swift
[56/65] Compiling SwiftDilithium PreHash.swift
[57/65] Compiling SwiftDilithium Parameters.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:29:16: warning: static property 'params' is not concurrency-safe because non-'Sendable' type '[Parameters]' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
27 | // Figures from [DILITHIUM] section 4
28 |
29 | static let params: [Parameters] = [
| |- warning: static property 'params' is not concurrency-safe because non-'Sendable' type '[Parameters]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'params' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | // Dilithium 2 parameters
31 | Parameters(tau: 39, entr: 192, lambda: 128, gamma1: 1 << 17, gamma2: 95232, k: 4, l: 4, eta: 2, beta: 78, omega: 80,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:42:16: warning: static property 'DSA44' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
40 |
41 | // Dilithium 2 parameters
42 | static let DSA44 = Parameters(tau: 39, entr: 192, lambda: 128, gamma1: 1 << 17, gamma2: 95232, k: 4, l: 4, eta: 2, beta: 78, omega: 80,
| |- warning: static property 'DSA44' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'DSA44' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | sigSize: 2420, pkSize: 1312, skSize: 2560, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.17")!)
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:46:16: warning: static property 'DSA65' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
44 |
45 | // Dilithium 3 parameters
46 | static let DSA65 = Parameters(tau: 49, entr: 225, lambda: 192, gamma1: 1 << 19, gamma2: 261888, k: 6, l: 5, eta: 4, beta: 196, omega: 55,
| |- warning: static property 'DSA65' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'DSA65' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | sigSize: 3309, pkSize: 1952, skSize: 4032, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.18")!)
48 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:50:16: warning: static property 'DSA87' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
48 |
49 | // Dilithium 5 parameters
50 | static let DSA87 = Parameters(tau: 60, entr: 257, lambda: 256, gamma1: 1 << 19, gamma2: 261888, k: 8, l: 7, eta: 2, beta: 120, omega: 75,
| |- warning: static property 'DSA87' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'DSA87' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | sigSize: 4627, pkSize: 2592, skSize: 4896, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.19")!)
52 |
[58/65] Compiling SwiftDilithium Matrix.swift
[59/65] Compiling SwiftDilithium Polynomial.swift
[60/65] Compiling SwiftDilithium Kind.swift
[61/65] Compiling SwiftDilithium Vector.swift
[62/65] Compiling SwiftDilithium ByteSlice.swift
[63/65] Compiling SwiftDilithium Dilithium.swift
[64/65] Compiling SwiftDilithium Exception.swift
[65/65] Emitting module SwiftDilithium
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:29:16: warning: static property 'params' is not concurrency-safe because non-'Sendable' type '[Parameters]' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
27 | // Figures from [DILITHIUM] section 4
28 |
29 | static let params: [Parameters] = [
| |- warning: static property 'params' is not concurrency-safe because non-'Sendable' type '[Parameters]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'params' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | // Dilithium 2 parameters
31 | Parameters(tau: 39, entr: 192, lambda: 128, gamma1: 1 << 17, gamma2: 95232, k: 4, l: 4, eta: 2, beta: 78, omega: 80,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:42:16: warning: static property 'DSA44' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
40 |
41 | // Dilithium 2 parameters
42 | static let DSA44 = Parameters(tau: 39, entr: 192, lambda: 128, gamma1: 1 << 17, gamma2: 95232, k: 4, l: 4, eta: 2, beta: 78, omega: 80,
| |- warning: static property 'DSA44' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'DSA44' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | sigSize: 2420, pkSize: 1312, skSize: 2560, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.17")!)
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:46:16: warning: static property 'DSA65' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
44 |
45 | // Dilithium 3 parameters
46 | static let DSA65 = Parameters(tau: 49, entr: 225, lambda: 192, gamma1: 1 << 19, gamma2: 261888, k: 6, l: 5, eta: 4, beta: 196, omega: 55,
| |- warning: static property 'DSA65' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'DSA65' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | sigSize: 3309, pkSize: 1952, skSize: 4032, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.18")!)
48 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDilithium/Parameters.swift:50:16: warning: static property 'DSA87' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import ASN1
9 |
10 | struct Parameters {
| `- note: consider making struct 'Parameters' conform to the 'Sendable' protocol
11 |
12 | let tau: Int
:
48 |
49 | // Dilithium 5 parameters
50 | static let DSA87 = Parameters(tau: 60, entr: 257, lambda: 256, gamma1: 1 << 19, gamma2: 261888, k: 8, l: 7, eta: 2, beta: 120, omega: 75,
| |- warning: static property 'DSA87' is not concurrency-safe because non-'Sendable' type 'Parameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'DSA87' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | sigSize: 4627, pkSize: 2592, skSize: 4896, oid: ASN1ObjectIdentifier("2.16.840.1.101.3.4.3.19")!)
52 |
Build complete! (17.61s)
Fetching https://github.com/leif-ibsen/BigInt
Fetching https://github.com/leif-ibsen/ASN1
Fetching https://github.com/leif-ibsen/Digest
[1/2427] Fetching asn1
[26/9178] Fetching asn1, bigint
[27/11771] Fetching asn1, bigint, digest
Fetched https://github.com/leif-ibsen/BigInt from cache (1.55s)
Fetched https://github.com/leif-ibsen/Digest from cache (1.55s)
Fetched https://github.com/leif-ibsen/ASN1 from cache (1.55s)
Computing version for https://github.com/leif-ibsen/Digest
Computed https://github.com/leif-ibsen/Digest at 1.13.0 (2.08s)
Computing version for https://github.com/leif-ibsen/BigInt
Computed https://github.com/leif-ibsen/BigInt at 1.23.0 (0.49s)
Computing version for https://github.com/leif-ibsen/ASN1
Computed https://github.com/leif-ibsen/ASN1 at 2.7.0 (3.19s)
Creating working copy for https://github.com/leif-ibsen/Digest
Working copy of https://github.com/leif-ibsen/Digest resolved at 1.13.0
Creating working copy for https://github.com/leif-ibsen/ASN1
Working copy of https://github.com/leif-ibsen/ASN1 resolved at 2.7.0
Creating working copy for https://github.com/leif-ibsen/BigInt
Working copy of https://github.com/leif-ibsen/BigInt resolved at 1.23.0
Build complete.
{
"dependencies" : [
{
"identity" : "asn1",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/ASN1"
},
{
"identity" : "bigint",
"requirement" : {
"range" : [
{
"lower_bound" : "1.23.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/BigInt"
},
{
"identity" : "digest",
"requirement" : {
"range" : [
{
"lower_bound" : "1.13.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/leif-ibsen/Digest"
}
],
"manifest_display_name" : "SwiftDilithium",
"name" : "SwiftDilithium",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftDilithium",
"targets" : [
"SwiftDilithium"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftDilithiumTests",
"module_type" : "SwiftTarget",
"name" : "SwiftDilithiumTests",
"path" : "Tests/SwiftDilithiumTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/katTestKeyGen.rsp",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/katTestSign.rsp",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/katTestVerify.rsp",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/wycheproofSign.rsp",
"rule" : {
"copy" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftDilithiumTests/Resources/wycheproofVerify.rsp",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"BitPacktest.swift",
"ContextTest.swift",
"DecomposeTest.swift",
"EncodeDecodeTest.swift",
"ExceptionTest.swift",
"ExpandTest.swift",
"HintBitTest.swift",
"KATTestKeyGen.swift",
"KATTestSign.swift",
"KATTestVerify.swift",
"MakeHintTest.swift",
"NTTTest.swift",
"PEMTest.swift",
"Power2RoundTest.swift",
"SampleInBallTest.swift",
"SignVerifyTest.swift",
"Util.swift",
"WycheproofSignTest.swift",
"WycheproofVerifyTest.swift"
],
"target_dependencies" : [
"SwiftDilithium"
],
"type" : "test"
},
{
"c99name" : "SwiftDilithium",
"module_type" : "SwiftTarget",
"name" : "SwiftDilithium",
"path" : "Sources/SwiftDilithium",
"product_dependencies" : [
"BigInt",
"ASN1",
"Digest"
],
"product_memberships" : [
"SwiftDilithium"
],
"sources" : [
"ByteSlice.swift",
"Dilithium.swift",
"Exception.swift",
"Kind.swift",
"Matrix.swift",
"Parameters.swift",
"Polynomial.swift",
"PreHash.swift",
"PublicKey.swift",
"SecretKey.swift",
"Vector.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Done.