The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of ExpressionParser, reference main (d72001), with Swift 6.0 for macOS (SPM) on 9 Oct 2024 17:51:59 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mgriebling/ExpressionParser.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mgriebling/ExpressionParser
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d72001c Corrected ATG definition.
Cloned https://github.com/mgriebling/ExpressionParser.git
Revision (git rev-parse @):
d72001c8da9c1e9f68142cf9adaa6c32b42c24c1
SUCCESS checkout https://github.com/mgriebling/ExpressionParser.git at main
Fetching https://github.com/mgriebling/BigDecimal.git
[1/3470] Fetching bigdecimal
Fetched https://github.com/mgriebling/BigDecimal.git from cache (1.24s)
Computing version for https://github.com/mgriebling/BigDecimal.git
Computed https://github.com/mgriebling/BigDecimal.git at 3.0.0 (3.86s)
Fetching https://github.com/mgriebling/BigInt.git
[1/4359] Fetching bigint
Fetched https://github.com/mgriebling/BigInt.git from cache (1.56s)
Computing version for https://github.com/mgriebling/BigInt.git
Computed https://github.com/mgriebling/BigInt.git at 2.1.0 (0.68s)
Creating working copy for https://github.com/mgriebling/BigDecimal.git
Working copy of https://github.com/mgriebling/BigDecimal.git resolved at 3.0.0
Creating working copy for https://github.com/mgriebling/BigInt.git
Working copy of https://github.com/mgriebling/BigInt.git resolved at 2.1.0
========================================
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",
  "dependencies": [
    {
      "identity": "expressionparser",
      "name": "ExpressionParser",
      "url": "https://github.com/mgriebling/ExpressionParser.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ExpressionParser",
      "dependencies": [
        {
          "identity": "bigdecimal",
          "name": "BigDecimal",
          "url": "https://github.com/mgriebling/BigDecimal.git",
          "version": "3.0.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BigDecimal",
          "dependencies": [
            {
              "identity": "bigint",
              "name": "BigInt",
              "url": "https://github.com/mgriebling/BigInt.git",
              "version": "2.1.0",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BigInt",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/mgriebling/ExpressionParser.git
[1/96] Fetching expressionparser
Fetched https://github.com/mgriebling/ExpressionParser.git from cache (0.70s)
Fetching https://github.com/mgriebling/BigDecimal.git from cache
Fetched https://github.com/mgriebling/BigDecimal.git from cache (0.48s)
Computing version for https://github.com/mgriebling/BigDecimal.git
Computed https://github.com/mgriebling/BigDecimal.git at 3.0.0 (0.02s)
Fetching https://github.com/mgriebling/BigInt.git from cache
Fetched https://github.com/mgriebling/BigInt.git from cache (0.48s)
Computing version for https://github.com/mgriebling/BigInt.git
Computed https://github.com/mgriebling/BigInt.git at 2.1.0 (0.02s)
Creating working copy for https://github.com/mgriebling/BigInt.git
Working copy of https://github.com/mgriebling/BigInt.git resolved at 2.1.0
Creating working copy for https://github.com/mgriebling/ExpressionParser.git
Working copy of https://github.com/mgriebling/ExpressionParser.git resolved at main (d72001c)
Creating working copy for https://github.com/mgriebling/BigDecimal.git
Working copy of https://github.com/mgriebling/BigDecimal.git resolved at 3.0.0
warning: '.resolve-product-dependencies': dependency 'expressionparser' is not used by any target
Found 1 product dependencies
  - BigDecimal
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/mgriebling/ExpressionParser.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version--4A847ED0836F2485.txt
[5/17] Compiling BigInt Limbs.swift
[6/18] Compiling BigInt Karatsuba.swift
[7/18] Compiling BigInt Factorial.swift
[8/18] Compiling BigInt FFT.swift
[9/18] Compiling BigInt GCD.swift
[10/18] Compiling BigInt ToomCook.swift
[11/18] Compiling BigInt BurnikelZiegler.swift
[12/18] Compiling BigInt CRT.swift
[13/18] Compiling BigInt BigFrac.swift
[14/18] Compiling BigInt BigInt-Extensions.swift
[15/18] Emitting module BigInt
[16/18] Compiling BigInt BigInt.swift
[17/18] Compiling BigInt BitSieve.swift
[18/18] Compiling BigInt ExpMod.swift
[19/36] Compiling BigDecimal Extensions.swift
[20/36] Compiling BigDecimal ExponentCalculator.swift
[21/36] Compiling BigDecimal SeriesCalculator.swift
[22/36] Compiling BigDecimal SinCalculator.swift
[23/36] Compiling BigDecimal SinhCalculator.swift
[24/37] Compiling BigDecimal Rounding.swift
[25/37] Compiling BigDecimal CosCalculator.swift
[26/37] Compiling BigDecimal CoshCalculator.swift
[27/37] Compiling BigDecimal DecimalMath-Simple.swift
[28/37] Compiling BigDecimal DecimalMath.swift
[29/37] Compiling BigDecimal DecimalLogic.swift
[30/37] Compiling BigDecimal AsinCalculator.swift
[31/37] Compiling BigDecimal Decimal64.swift
[32/37] Compiling BigDecimal DecimalFloatingPoint.swift
[33/37] Compiling BigDecimal Decimal128.swift
[34/37] Compiling BigDecimal Decimal32.swift
[35/37] Compiling BigDecimal BigDecimal.swift
[36/37] Compiling BigDecimal Decimal.swift
[37/37] Emitting module BigDecimal
[38/44] Compiling ExpressionParser String+Char.swift
[39/44] Compiling ExpressionParser Parser.swift
/Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/AST.swift:252:16: warning: static property '_symbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
250 |     var obj: Obj
251 |
252 |     static var _symbols : [String: Double] = [
    |                |- warning: static property '_symbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert '_symbols' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate '_symbols' 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
253 |         "pi"  : Double.pi
254 |     ]
[40/44] Compiling ExpressionParser AST.swift
/Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/AST.swift:49:16: warning: static property '_builtIns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 47 |     }
 48 |
 49 |     static var _builtIns : [String: (_:Double) -> Double] = [
    |                |- warning: static property '_builtIns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert '_builtIns' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate '_builtIns' 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
 50 |         "sin"  : sin,
 51 |         "cos"  : cos,
/Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/AST.swift:252:16: warning: static property '_symbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
250 |     var obj: Obj
251 |
252 |     static var _symbols : [String: Double] = [
    |                |- warning: static property '_symbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert '_symbols' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate '_symbols' 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
253 |         "pi"  : Double.pi
254 |     ]
/Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/AST.swift:299:16: warning: static property 'indent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
297 |
298 | public class Stat: Node {
299 |     static var indent = 0
    |                |- warning: static property 'indent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'indent' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'indent' 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
300 |     override public func dump() { for _ in 0..<Stat.indent { printn("  ") } }
301 | }
[41/44] Emitting module ExpressionParser
/Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/AST.swift:49:16: warning: static property '_builtIns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 47 |     }
 48 |
 49 |     static var _builtIns : [String: (_:Double) -> Double] = [
    |                |- warning: static property '_builtIns' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert '_builtIns' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate '_builtIns' 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
 50 |         "sin"  : sin,
 51 |         "cos"  : cos,
/Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/AST.swift:252:16: warning: static property '_symbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
250 |     var obj: Obj
251 |
252 |     static var _symbols : [String: Double] = [
    |                |- warning: static property '_symbols' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert '_symbols' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate '_symbols' 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
253 |         "pi"  : Double.pi
254 |     ]
/Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/AST.swift:299:16: warning: static property 'indent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
297 |
298 | public class Stat: Node {
299 |     static var indent = 0
    |                |- warning: static property 'indent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'indent' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'indent' 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
300 |     override public func dump() { for _ in 0..<Stat.indent { printn("  ") } }
301 | }
[42/44] Compiling ExpressionParser ExpressionParser.swift
[43/44] Compiling ExpressionParser Scanner.swift
[44/44] Compiling ExpressionParser LaTeX.swift
Build complete! (17.55s)
warning: 'spi-builder-workspace': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/Support/Parser.frame
    /Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/Support/exp.atg
    /Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/Support/Scanner.frame
    /Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/Support/Copyright.frame
Build complete.
{
  "dependencies" : [
    {
      "identity" : "bigdecimal",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mgriebling/BigDecimal.git"
    }
  ],
  "manifest_display_name" : "ExpressionParser",
  "name" : "ExpressionParser",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "15.0"
    },
    {
      "name" : "ios",
      "version" : "18.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "18.0"
    },
    {
      "name" : "watchos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "ExpressionParser",
      "targets" : [
        "ExpressionParser"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ExpressionParserTests",
      "module_type" : "SwiftTarget",
      "name" : "ExpressionParserTests",
      "path" : "Tests/ExpressionParserTests",
      "sources" : [
        "ExpressionParserTests.swift"
      ],
      "target_dependencies" : [
        "ExpressionParser"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ExpressionParser",
      "module_type" : "SwiftTarget",
      "name" : "ExpressionParser",
      "path" : "Sources/ExpressionParser",
      "product_dependencies" : [
        "BigDecimal"
      ],
      "product_memberships" : [
        "ExpressionParser"
      ],
      "sources" : [
        "AST.swift",
        "ExpressionParser.swift",
        "LaTeX.swift",
        "Parser.swift",
        "Scanner.swift",
        "String+Char.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.