The Swift Package Index logo.Swift Package Index

Build Information

Successful build of WolfNumerics, reference master (40ecf0), with Swift 6.1 for Android on 27 May 2025 08:13:18 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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/wolfmcnally/WolfNumerics.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/wolfmcnally/WolfNumerics
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 40ecf0a Build as dynamic library.
Cloned https://github.com/wolfmcnally/WolfNumerics.git
Revision (git rev-parse @):
40ecf0a68c642dcbe3db4eb8e2c5785da551175e
SUCCESS checkout https://github.com/wolfmcnally/WolfNumerics.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/wolfmcnally/WolfNumerics.git
https://github.com/wolfmcnally/WolfNumerics.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WolfNumerics",
  "name" : "WolfNumerics",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "WolfNumerics",
      "targets" : [
        "WolfNumerics"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WolfNumericsTests",
      "module_type" : "SwiftTarget",
      "name" : "WolfNumericsTests",
      "path" : "Sources/WolfNumericsTests",
      "sources" : [
        "Tests.swift"
      ],
      "target_dependencies" : [
        "WolfNumerics"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WolfNumerics",
      "module_type" : "SwiftTarget",
      "name" : "WolfNumerics",
      "path" : "Sources/WolfNumerics",
      "product_memberships" : [
        "WolfNumerics"
      ],
      "sources" : [
        "ApproximatelyEqualsOperator.swift",
        "BinarySearch.swift",
        "Frac.swift",
        "Interpolable.swift",
        "Interval.swift",
        "IntervalCreationOperator.swift",
        "Lerp.swift",
        "NumericUtils.swift",
        "PercentOperator.swift",
        "RandomExtensions.swift",
        "RangeExtensions.swift",
        "RunningAverage.swift",
        "SecureRandomNumberGenerator.swift",
        "SeededRandomNumberGenerator.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
[3/19] Compiling WolfNumerics SecureRandomNumberGenerator.swift
[4/20] Compiling WolfNumerics SeededRandomNumberGenerator.swift
[5/20] Compiling WolfNumerics Frac.swift
[6/20] Compiling WolfNumerics Interpolable.swift
[7/20] Compiling WolfNumerics Interval.swift
/host/spi-builder-workspace/Sources/WolfNumerics/Interval.swift:142:23: warning: static property 'unit' is not concurrency-safe because non-'Sendable' type 'Interval<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
 25 | /// Represents a closed floating-point interval from `a`..`b`. Unlike ClosedRange,
 26 | /// `a` may be greater than `b`.
 27 | public struct Interval<T: BinaryFloatingPoint> {
    |               `- note: consider making generic struct 'Interval' conform to the 'Sendable' protocol
 28 |     public typealias Bound = T
 29 |
    :
140 |
141 | extension Double {
142 |     public static let unit = Interval<Double>(0, 1)
    |                       |- warning: static property 'unit' is not concurrency-safe because non-'Sendable' type 'Interval<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'unit' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 |
/host/spi-builder-workspace/Sources/WolfNumerics/Interval.swift:146:23: warning: static property 'unit' is not concurrency-safe because non-'Sendable' type 'Interval<Float>' may have shared mutable state; this is an error in the Swift 6 language mode
 25 | /// Represents a closed floating-point interval from `a`..`b`. Unlike ClosedRange,
 26 | /// `a` may be greater than `b`.
 27 | public struct Interval<T: BinaryFloatingPoint> {
    |               `- note: consider making generic struct 'Interval' conform to the 'Sendable' protocol
 28 |     public typealias Bound = T
 29 |
    :
144 |
145 | extension Float {
146 |     public static let unit = Interval<Float>(0, 1)
    |                       |- warning: static property 'unit' is not concurrency-safe because non-'Sendable' type 'Interval<Float>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'unit' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | }
148 |
[8/20] Compiling WolfNumerics IntervalCreationOperator.swift
/host/spi-builder-workspace/Sources/WolfNumerics/Interval.swift:142:23: warning: static property 'unit' is not concurrency-safe because non-'Sendable' type 'Interval<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
 25 | /// Represents a closed floating-point interval from `a`..`b`. Unlike ClosedRange,
 26 | /// `a` may be greater than `b`.
 27 | public struct Interval<T: BinaryFloatingPoint> {
    |               `- note: consider making generic struct 'Interval' conform to the 'Sendable' protocol
 28 |     public typealias Bound = T
 29 |
    :
140 |
141 | extension Double {
142 |     public static let unit = Interval<Double>(0, 1)
    |                       |- warning: static property 'unit' is not concurrency-safe because non-'Sendable' type 'Interval<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'unit' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 |
/host/spi-builder-workspace/Sources/WolfNumerics/Interval.swift:146:23: warning: static property 'unit' is not concurrency-safe because non-'Sendable' type 'Interval<Float>' may have shared mutable state; this is an error in the Swift 6 language mode
 25 | /// Represents a closed floating-point interval from `a`..`b`. Unlike ClosedRange,
 26 | /// `a` may be greater than `b`.
 27 | public struct Interval<T: BinaryFloatingPoint> {
    |               `- note: consider making generic struct 'Interval' conform to the 'Sendable' protocol
 28 |     public typealias Bound = T
 29 |
    :
144 |
145 | extension Float {
146 |     public static let unit = Interval<Float>(0, 1)
    |                       |- warning: static property 'unit' is not concurrency-safe because non-'Sendable' type 'Interval<Float>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'unit' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | }
148 |
[9/20] Emitting module WolfNumerics
/host/spi-builder-workspace/Sources/WolfNumerics/Interval.swift:142:23: warning: static property 'unit' is not concurrency-safe because non-'Sendable' type 'Interval<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
 25 | /// Represents a closed floating-point interval from `a`..`b`. Unlike ClosedRange,
 26 | /// `a` may be greater than `b`.
 27 | public struct Interval<T: BinaryFloatingPoint> {
    |               `- note: consider making generic struct 'Interval' conform to the 'Sendable' protocol
 28 |     public typealias Bound = T
 29 |
    :
140 |
141 | extension Double {
142 |     public static let unit = Interval<Double>(0, 1)
    |                       |- warning: static property 'unit' is not concurrency-safe because non-'Sendable' type 'Interval<Double>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'unit' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 | }
144 |
/host/spi-builder-workspace/Sources/WolfNumerics/Interval.swift:146:23: warning: static property 'unit' is not concurrency-safe because non-'Sendable' type 'Interval<Float>' may have shared mutable state; this is an error in the Swift 6 language mode
 25 | /// Represents a closed floating-point interval from `a`..`b`. Unlike ClosedRange,
 26 | /// `a` may be greater than `b`.
 27 | public struct Interval<T: BinaryFloatingPoint> {
    |               `- note: consider making generic struct 'Interval' conform to the 'Sendable' protocol
 28 |     public typealias Bound = T
 29 |
    :
144 |
145 | extension Float {
146 |     public static let unit = Interval<Float>(0, 1)
    |                       |- warning: static property 'unit' is not concurrency-safe because non-'Sendable' type 'Interval<Float>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'unit' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
147 | }
148 |
[10/20] Compiling WolfNumerics ApproximatelyEqualsOperator.swift
[11/20] Compiling WolfNumerics BinarySearch.swift
[12/20] Compiling WolfNumerics RangeExtensions.swift
[13/20] Compiling WolfNumerics RunningAverage.swift
[14/20] Compiling WolfNumerics Lerp.swift
[15/20] Compiling WolfNumerics NumericUtils.swift
[16/20] Compiling WolfNumerics PercentOperator.swift
[17/20] Compiling WolfNumerics RandomExtensions.swift
[18/21] Wrapping AST for WolfNumerics for debugging
[19/21] Write Objects.LinkFileList
[20/21] Linking libWolfNumerics.so
Build complete! (12.20s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "WolfNumerics",
  "name" : "WolfNumerics",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "WolfNumerics",
      "targets" : [
        "WolfNumerics"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WolfNumericsTests",
      "module_type" : "SwiftTarget",
      "name" : "WolfNumericsTests",
      "path" : "Sources/WolfNumericsTests",
      "sources" : [
        "Tests.swift"
      ],
      "target_dependencies" : [
        "WolfNumerics"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WolfNumerics",
      "module_type" : "SwiftTarget",
      "name" : "WolfNumerics",
      "path" : "Sources/WolfNumerics",
      "product_memberships" : [
        "WolfNumerics"
      ],
      "sources" : [
        "ApproximatelyEqualsOperator.swift",
        "BinarySearch.swift",
        "Frac.swift",
        "Interpolable.swift",
        "Interval.swift",
        "IntervalCreationOperator.swift",
        "Lerp.swift",
        "NumericUtils.swift",
        "PercentOperator.swift",
        "RandomExtensions.swift",
        "RangeExtensions.swift",
        "RunningAverage.swift",
        "SecureRandomNumberGenerator.swift",
        "SeededRandomNumberGenerator.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:9f3c606dcd2a4f06d17ba472aa533c43685ba7ba19a5c9bc23518a066eb7f86a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.