The Swift Package Index logo.Swift Package Index

Build Information

Successful build of FAWS, reference main (dbf023), with Swift 6.1 for Wasm on 29 May 2025 04:49:45 UTC.

Swift 6 data race errors: 5

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/behrouzz/FAWS.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/behrouzz/FAWS
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at dbf0232 make vars public for both structs
Cloned https://github.com/behrouzz/FAWS.git
Revision (git rev-parse @):
dbf0232bd7b0925ebeee31516b03668a61f3ddf6
SUCCESS checkout https://github.com/behrouzz/FAWS.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/behrouzz/FAWS.git
https://github.com/behrouzz/FAWS.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FAWS",
  "name" : "FAWS",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FAWS",
      "targets" : [
        "FAWS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FAWS",
      "module_type" : "SwiftTarget",
      "name" : "FAWS",
      "path" : "Sources/FAWS",
      "product_memberships" : [
        "FAWS"
      ],
      "sources" : [
        "Astrometry.swift",
        "Basics.swift",
        "CalTime.swift",
        "CatalogConv.swift",
        "DataNut.swift",
        "DataXY.swift",
        "Ephemerides.swift",
        "GeoGnoEclGalHor.swift",
        "MainFaws.swift",
        "Matrix.swift",
        "PrecNutPol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling FAWS MainFaws.swift
[4/13] Compiling FAWS Matrix.swift
[5/14] Emitting module FAWS
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:30:5: warning: let 'adsDint' is not concurrency-safe because non-'Sendable' type '(Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 28 | let adsTDB0 = -6.55e-5
 29 | let adsSRS = 1.97412574336e-8
 30 | let adsDint = { $0 < 0.0 ? ceil($0) : floor($0) }
    |     |- warning: let 'adsDint' is not concurrency-safe because non-'Sendable' type '(Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsDint' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 | let adsDnint = { abs($0) < 0.5 ? 0.0 : ( $0 < 0.0 ? ceil(($0) - 0.5) : floor($0 + 0.5 )) }
 32 | let adsDsign = { (a: Double, b: Double) -> Double in
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:31:5: warning: let 'adsDnint' is not concurrency-safe because non-'Sendable' type '(Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 29 | let adsSRS = 1.97412574336e-8
 30 | let adsDint = { $0 < 0.0 ? ceil($0) : floor($0) }
 31 | let adsDnint = { abs($0) < 0.5 ? 0.0 : ( $0 < 0.0 ? ceil(($0) - 0.5) : floor($0 + 0.5 )) }
    |     |- warning: let 'adsDnint' is not concurrency-safe because non-'Sendable' type '(Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsDnint' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 | let adsDsign = { (a: Double, b: Double) -> Double in
 33 |     b < 0.0 ? -1.0 * abs(a) : abs(a)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:32:5: warning: let 'adsDsign' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 30 | let adsDint = { $0 < 0.0 ? ceil($0) : floor($0) }
 31 | let adsDnint = { abs($0) < 0.5 ? 0.0 : ( $0 < 0.0 ? ceil(($0) - 0.5) : floor($0 + 0.5 )) }
 32 | let adsDsign = { (a: Double, b: Double) -> Double in
    |     |- warning: let 'adsDsign' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsDsign' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |     b < 0.0 ? -1.0 * abs(a) : abs(a)
 34 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:35:5: warning: let 'adsGmax' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 33 |     b < 0.0 ? -1.0 * abs(a) : abs(a)
 34 | }
 35 | let adsGmax = { (a: Double, b: Double) -> Double in a > b ? a : b }
    |     |- warning: let 'adsGmax' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsGmax' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 36 | let adsGmin = { (a: Double, b: Double) -> Double in a < b ? a : b }
 37 | let adsWGS84 = 1
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:36:5: warning: let 'adsGmin' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 34 | }
 35 | let adsGmax = { (a: Double, b: Double) -> Double in a > b ? a : b }
 36 | let adsGmin = { (a: Double, b: Double) -> Double in a < b ? a : b }
    |     |- warning: let 'adsGmin' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsGmin' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 | let adsWGS84 = 1
 38 | let adsGRS80 = 2
[6/14] Compiling FAWS GeoGnoEclGalHor.swift
[7/14] Compiling FAWS PrecNutPol.swift
[8/14] Compiling FAWS Ephemerides.swift
[9/14] Compiling FAWS CalTime.swift
[10/14] Compiling FAWS CatalogConv.swift
[11/14] Compiling FAWS Astrometry.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:30:5: warning: let 'adsDint' is not concurrency-safe because non-'Sendable' type '(Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 28 | let adsTDB0 = -6.55e-5
 29 | let adsSRS = 1.97412574336e-8
 30 | let adsDint = { $0 < 0.0 ? ceil($0) : floor($0) }
    |     |- warning: let 'adsDint' is not concurrency-safe because non-'Sendable' type '(Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsDint' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 | let adsDnint = { abs($0) < 0.5 ? 0.0 : ( $0 < 0.0 ? ceil(($0) - 0.5) : floor($0 + 0.5 )) }
 32 | let adsDsign = { (a: Double, b: Double) -> Double in
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:31:5: warning: let 'adsDnint' is not concurrency-safe because non-'Sendable' type '(Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 29 | let adsSRS = 1.97412574336e-8
 30 | let adsDint = { $0 < 0.0 ? ceil($0) : floor($0) }
 31 | let adsDnint = { abs($0) < 0.5 ? 0.0 : ( $0 < 0.0 ? ceil(($0) - 0.5) : floor($0 + 0.5 )) }
    |     |- warning: let 'adsDnint' is not concurrency-safe because non-'Sendable' type '(Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsDnint' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 | let adsDsign = { (a: Double, b: Double) -> Double in
 33 |     b < 0.0 ? -1.0 * abs(a) : abs(a)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:32:5: warning: let 'adsDsign' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 30 | let adsDint = { $0 < 0.0 ? ceil($0) : floor($0) }
 31 | let adsDnint = { abs($0) < 0.5 ? 0.0 : ( $0 < 0.0 ? ceil(($0) - 0.5) : floor($0 + 0.5 )) }
 32 | let adsDsign = { (a: Double, b: Double) -> Double in
    |     |- warning: let 'adsDsign' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsDsign' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |     b < 0.0 ? -1.0 * abs(a) : abs(a)
 34 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:35:5: warning: let 'adsGmax' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 33 |     b < 0.0 ? -1.0 * abs(a) : abs(a)
 34 | }
 35 | let adsGmax = { (a: Double, b: Double) -> Double in a > b ? a : b }
    |     |- warning: let 'adsGmax' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsGmax' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 36 | let adsGmin = { (a: Double, b: Double) -> Double in a < b ? a : b }
 37 | let adsWGS84 = 1
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:36:5: warning: let 'adsGmin' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 34 | }
 35 | let adsGmax = { (a: Double, b: Double) -> Double in a > b ? a : b }
 36 | let adsGmin = { (a: Double, b: Double) -> Double in a < b ? a : b }
    |     |- warning: let 'adsGmin' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsGmin' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 | let adsWGS84 = 1
 38 | let adsGRS80 = 2
[12/14] Compiling FAWS Basics.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:30:5: warning: let 'adsDint' is not concurrency-safe because non-'Sendable' type '(Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 28 | let adsTDB0 = -6.55e-5
 29 | let adsSRS = 1.97412574336e-8
 30 | let adsDint = { $0 < 0.0 ? ceil($0) : floor($0) }
    |     |- warning: let 'adsDint' is not concurrency-safe because non-'Sendable' type '(Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsDint' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 31 | let adsDnint = { abs($0) < 0.5 ? 0.0 : ( $0 < 0.0 ? ceil(($0) - 0.5) : floor($0 + 0.5 )) }
 32 | let adsDsign = { (a: Double, b: Double) -> Double in
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:31:5: warning: let 'adsDnint' is not concurrency-safe because non-'Sendable' type '(Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 29 | let adsSRS = 1.97412574336e-8
 30 | let adsDint = { $0 < 0.0 ? ceil($0) : floor($0) }
 31 | let adsDnint = { abs($0) < 0.5 ? 0.0 : ( $0 < 0.0 ? ceil(($0) - 0.5) : floor($0 + 0.5 )) }
    |     |- warning: let 'adsDnint' is not concurrency-safe because non-'Sendable' type '(Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsDnint' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 32 | let adsDsign = { (a: Double, b: Double) -> Double in
 33 |     b < 0.0 ? -1.0 * abs(a) : abs(a)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:32:5: warning: let 'adsDsign' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 30 | let adsDint = { $0 < 0.0 ? ceil($0) : floor($0) }
 31 | let adsDnint = { abs($0) < 0.5 ? 0.0 : ( $0 < 0.0 ? ceil(($0) - 0.5) : floor($0 + 0.5 )) }
 32 | let adsDsign = { (a: Double, b: Double) -> Double in
    |     |- warning: let 'adsDsign' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsDsign' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |     b < 0.0 ? -1.0 * abs(a) : abs(a)
 34 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:35:5: warning: let 'adsGmax' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 33 |     b < 0.0 ? -1.0 * abs(a) : abs(a)
 34 | }
 35 | let adsGmax = { (a: Double, b: Double) -> Double in a > b ? a : b }
    |     |- warning: let 'adsGmax' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsGmax' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 36 | let adsGmin = { (a: Double, b: Double) -> Double in a < b ? a : b }
 37 | let adsWGS84 = 1
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/FAWS/Basics.swift:36:5: warning: let 'adsGmin' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
 34 | }
 35 | let adsGmax = { (a: Double, b: Double) -> Double in a > b ? a : b }
 36 | let adsGmin = { (a: Double, b: Double) -> Double in a < b ? a : b }
    |     |- warning: let 'adsGmin' is not concurrency-safe because non-'Sendable' type '(Double, Double) -> Double' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'adsGmin' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 | let adsWGS84 = 1
 38 | let adsGRS80 = 2
[13/14] Compiling FAWS DataNut.swift
[14/14] Compiling FAWS DataXY.swift
Build complete! (83.97s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FAWS",
  "name" : "FAWS",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FAWS",
      "targets" : [
        "FAWS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FAWS",
      "module_type" : "SwiftTarget",
      "name" : "FAWS",
      "path" : "Sources/FAWS",
      "product_memberships" : [
        "FAWS"
      ],
      "sources" : [
        "Astrometry.swift",
        "Basics.swift",
        "CalTime.swift",
        "CatalogConv.swift",
        "DataNut.swift",
        "DataXY.swift",
        "Ephemerides.swift",
        "GeoGnoEclGalHor.swift",
        "MainFaws.swift",
        "Matrix.swift",
        "PrecNutPol.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Done.