Build Information
Successful build of OMHModels with Swift 6.0 for Linux.
Swift 6 data race errors: 1
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/StanfordBDHG/OMHModels.git
Reference: main
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/StanfordBDHG/OMHModels
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2c03e0e Improve structure and documentation (#2)
Cloned https://github.com/StanfordBDHG/OMHModels.git
Revision (git rev-parse @):
2c03e0ed53cc7518ac1ad01746698e7285890145
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/StanfordBDHG/OMHModels.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/StanfordBDHG/OMHModels.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/53] Emitting module OMHModels
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| `- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | // SPDX-License-Identifier: MIT
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 |
10 |
:
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
[4/60] Compiling OMHModels StepCountUnitValue.swift
[5/60] Compiling OMHModels SupplementalOxygenFlowRateUnit.swift
[6/60] Compiling OMHModels TemperatureUnitValue.swift
[7/60] Compiling OMHModels TemporalRelationshipToMeal.swift
[8/60] Compiling OMHModels TemporalRelationshipToPhysicalActivity.swift
[9/60] Compiling OMHModels TemporalRelationshipToSleep.swift
[10/60] Compiling OMHModels TimeFrame.swift
[11/60] Compiling OMHModels AcquisitionProvenance.swift
[12/60] Compiling OMHModels BloodGlucose.swift
[13/60] Compiling OMHModels BloodGlucoseUnitValue.swift
[14/60] Compiling OMHModels BloodPressure.swift
[15/60] Compiling OMHModels BloodPressureUnitValue.swift
[16/60] Compiling OMHModels BodyFatPercentage.swift
[17/60] Compiling OMHModels BodyFatPercentageUnitValue.swift
[18/60] Compiling OMHModels BodyHeight.swift
[19/60] Compiling OMHModels TimeInterval.swift
[20/60] Compiling OMHModels TimeUnit.swift
[21/60] Compiling OMHModels TimeWindow.swift
[22/60] Compiling OMHModels TotalSleepTime.swift
[23/60] Compiling OMHModels TypedUnitValue.swift
[24/60] Compiling OMHModels TypedUnitValueRange.swift
[25/60] Compiling OMHModels UnitProtocol.swift
[26/60] Compiling OMHModels BodyLocation.swift
[27/60] Compiling OMHModels BodyMassIndex.swift
[28/60] Compiling OMHModels BodyMassIndexUnitValue.swift
[29/60] Compiling OMHModels BodyPosture.swift
[30/60] Compiling OMHModels BodyTemperature.swift
[31/60] Compiling OMHModels BodyWeight.swift
[32/60] Compiling OMHModels DataPoint.swift
[33/60] Compiling OMHModels Header.swift
[34/60] Compiling OMHModels HealthKitQuantitySample.swift
[35/60] Compiling OMHModels HealthKitUnitValue.swift
[36/60] Compiling OMHModels HeartRate.swift
[37/60] Compiling OMHModels HeartRateUnitValue.swift
[38/60] Compiling OMHModels KcalUnit.swift
[39/60] Compiling OMHModels LengthUnitValue.swift
[40/60] Compiling OMHModels DateTime.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| `- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | // SPDX-License-Identifier: MIT
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 |
10 |
:
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
[41/60] Compiling OMHModels DescriptiveStatistic.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| `- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | // SPDX-License-Identifier: MIT
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 |
10 |
:
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
[42/60] Compiling OMHModels DescriptiveStatisticDenominator.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| `- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | // SPDX-License-Identifier: MIT
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 |
10 |
:
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
[43/60] Compiling OMHModels DurationUnitValue.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| `- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | // SPDX-License-Identifier: MIT
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 |
10 |
:
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
[44/60] Compiling OMHModels DurationUnitValueRange.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| `- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | // SPDX-License-Identifier: MIT
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 |
10 |
:
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
[45/60] Compiling OMHModels ExternalDataSheets.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| `- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | // SPDX-License-Identifier: MIT
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 |
10 |
:
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
[46/60] Compiling OMHModels FrequencyUnitValue.swift
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:16:24: warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| `- warning: static property 'formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/OMHModels/DateTime.swift:8:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
6 | // SPDX-License-Identifier: MIT
7 |
8 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
9 |
10 |
:
14 | public static let schemaId = SchemaId(namespace: .ieee, name: "date-time", version: "1.0")
15 |
16 | private static let formatter: ISO8601DateFormatter = {
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | let formatter = ISO8601DateFormatter()
18 | return formatter
[47/60] Compiling OMHModels MassUnitValue.swift
[48/60] Compiling OMHModels Modality.swift
[49/60] Compiling OMHModels OxygenSaturation.swift
[50/60] Compiling OMHModels OxygenSaturationUnitValue.swift
[51/60] Compiling OMHModels PartOfDay.swift
[52/60] Compiling OMHModels PhysicalActivity.swift
[53/60] Compiling OMHModels RespiratoryRate.swift
[54/60] Compiling OMHModels RespiratoryRateUnitValue.swift
[55/60] Compiling OMHModels Schema.swift
[56/60] Compiling OMHModels SchemaId.swift
[57/60] Compiling OMHModels SchemaNamespace.swift
[58/60] Compiling OMHModels SpecimenSource.swift
[59/60] Compiling OMHModels SpeedUnit.swift
[60/60] Compiling OMHModels StepCount.swift
Build complete! (14.74s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "OMHModels",
"name" : "OMHModels",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "OMHModels",
"targets" : [
"OMHModels"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OMHModelsTests",
"module_type" : "SwiftTarget",
"name" : "OMHModelsTests",
"path" : "Tests/OMHModelsTests",
"sources" : [
"HeaderTests.swift",
"OMHModelsTests.swift",
"PhysicalActivityTests.swift",
"TimeFrameTests.swift",
"TimeIntervalTests.swift",
"TimeWindowTests.swift",
"TypedUnitValueRangeTests.swift",
"TypedUnitValueTests.swift"
],
"target_dependencies" : [
"OMHModels"
],
"type" : "test"
},
{
"c99name" : "OMHModels",
"module_type" : "SwiftTarget",
"name" : "OMHModels",
"path" : "Sources/OMHModels",
"product_memberships" : [
"OMHModels"
],
"sources" : [
"AcquisitionProvenance.swift",
"BloodGlucose.swift",
"BloodGlucoseUnitValue.swift",
"BloodPressure.swift",
"BloodPressureUnitValue.swift",
"BodyFatPercentage.swift",
"BodyFatPercentageUnitValue.swift",
"BodyHeight.swift",
"BodyLocation.swift",
"BodyMassIndex.swift",
"BodyMassIndexUnitValue.swift",
"BodyPosture.swift",
"BodyTemperature.swift",
"BodyWeight.swift",
"DataPoint.swift",
"DateTime.swift",
"DescriptiveStatistic.swift",
"DescriptiveStatisticDenominator.swift",
"DurationUnitValue.swift",
"DurationUnitValueRange.swift",
"ExternalDataSheets.swift",
"FrequencyUnitValue.swift",
"Header.swift",
"HealthKitQuantitySample.swift",
"HealthKitUnitValue.swift",
"HeartRate.swift",
"HeartRateUnitValue.swift",
"KcalUnit.swift",
"LengthUnitValue.swift",
"MassUnitValue.swift",
"Modality.swift",
"OxygenSaturation.swift",
"OxygenSaturationUnitValue.swift",
"PartOfDay.swift",
"PhysicalActivity.swift",
"RespiratoryRate.swift",
"RespiratoryRateUnitValue.swift",
"Schema.swift",
"SchemaId.swift",
"SchemaNamespace.swift",
"SpecimenSource.swift",
"SpeedUnit.swift",
"StepCount.swift",
"StepCountUnitValue.swift",
"SupplementalOxygenFlowRateUnit.swift",
"TemperatureUnitValue.swift",
"TemporalRelationshipToMeal.swift",
"TemporalRelationshipToPhysicalActivity.swift",
"TemporalRelationshipToSleep.swift",
"TimeFrame.swift",
"TimeInterval.swift",
"TimeUnit.swift",
"TimeWindow.swift",
"TotalSleepTime.swift",
"TypedUnitValue.swift",
"TypedUnitValueRange.swift",
"UnitProtocol.swift"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.