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 0.1.1 (2f91ca), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 01:49:42 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mgriebling/ExpressionParser.git
Reference: 0.1.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mgriebling/ExpressionParser
 * tag               0.1.1      -> FETCH_HEAD
HEAD is now at 2f91cac Fixed an error.
Cloned https://github.com/mgriebling/ExpressionParser.git
Revision (git rev-parse @):
2f91cac42ad5de6459c6808c29b295aec5087899
SUCCESS checkout https://github.com/mgriebling/ExpressionParser.git at 0.1.1
Fetching https://github.com/mgriebling/BigDecimal.git
[1/5879] Fetching bigdecimal
Fetched https://github.com/mgriebling/BigDecimal.git from cache (1.51s)
Computing version for https://github.com/mgriebling/BigDecimal.git
Computed https://github.com/mgriebling/BigDecimal.git at 3.0.2 (0.40s)
Fetching https://github.com/mgriebling/UInt128.git
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/mgriebling/BigInt.git
[1/1584] Fetching uint128
[461/9088] Fetching uint128, bigint
[1000/14664] Fetching uint128, bigint, swift-numerics
Fetched https://github.com/mgriebling/BigInt.git from cache (5.52s)
Fetched https://github.com/mgriebling/UInt128.git from cache (5.52s)
Fetched https://github.com/apple/swift-numerics from cache (5.52s)
Computing version for https://github.com/mgriebling/UInt128.git
Computed https://github.com/mgriebling/UInt128.git at 3.2.0 (2.95s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.59s)
Computing version for https://github.com/mgriebling/BigInt.git
Computed https://github.com/mgriebling/BigInt.git at 2.3.0 (0.41s)
Creating working copy for https://github.com/mgriebling/UInt128.git
Working copy of https://github.com/mgriebling/UInt128.git resolved at 3.2.0
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/mgriebling/BigInt.git
Working copy of https://github.com/mgriebling/BigInt.git resolved at 2.3.0
Creating working copy for https://github.com/mgriebling/BigDecimal.git
Working copy of https://github.com/mgriebling/BigDecimal.git resolved at 3.0.2
========================================
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.2",
          "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.3.0",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BigInt",
              "dependencies": [
              ]
            },
            {
              "identity": "swift-numerics",
              "name": "swift-numerics",
              "url": "https://github.com/apple/swift-numerics",
              "version": "1.0.2",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-numerics",
              "dependencies": [
              ]
            },
            {
              "identity": "uint128",
              "name": "UInt128",
              "url": "https://github.com/mgriebling/UInt128.git",
              "version": "3.2.0",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/UInt128",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/mgriebling/ExpressionParser.git
[1/103] Fetching expressionparser
Fetched https://github.com/mgriebling/ExpressionParser.git from cache (0.64s)
Fetching https://github.com/mgriebling/BigDecimal.git from cache
Fetched https://github.com/mgriebling/BigDecimal.git from cache (0.45s)
Computing version for https://github.com/mgriebling/BigDecimal.git
Computed https://github.com/mgriebling/BigDecimal.git at 3.0.2 (0.02s)
Fetching https://github.com/mgriebling/UInt128.git from cache
Fetching https://github.com/apple/swift-numerics from cache
Fetching https://github.com/mgriebling/BigInt.git from cache
Fetched https://github.com/apple/swift-numerics from cache (0.50s)
Fetched https://github.com/mgriebling/UInt128.git from cache (0.50s)
Fetched https://github.com/mgriebling/BigInt.git from cache (0.50s)
Computing version for https://github.com/mgriebling/UInt128.git
Computed https://github.com/mgriebling/UInt128.git at 3.2.0 (0.02s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.0.2 (0.02s)
Computing version for https://github.com/mgriebling/BigInt.git
Computed https://github.com/mgriebling/BigInt.git at 2.3.0 (0.02s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.0.2
Creating working copy for https://github.com/mgriebling/UInt128.git
Working copy of https://github.com/mgriebling/UInt128.git resolved at 3.2.0
Creating working copy for https://github.com/mgriebling/BigDecimal.git
Working copy of https://github.com/mgriebling/BigDecimal.git resolved at 3.0.2
Creating working copy for https://github.com/mgriebling/ExpressionParser.git
Working copy of https://github.com/mgriebling/ExpressionParser.git resolved at 0.1.1 (2f91cac)
Creating working copy for https://github.com/mgriebling/BigInt.git
Working copy of https://github.com/mgriebling/BigInt.git resolved at 2.3.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
{
  "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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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/9] Write sources
[7/9] Compiling _NumericsShims _NumericsShims.c
[8/9] Write swift-version--7754E27361AE5C74.txt
[10/36] Compiling RealModule Real.swift
[11/36] Compiling RealModule Float16+Real.swift
[12/37] Compiling RealModule Float80+Real.swift
[13/37] Compiling RealModule Float+Real.swift
[14/37] Compiling RealModule RealFunctions.swift
[15/37] Compiling RealModule ElementaryFunctions.swift
[16/37] Compiling RealModule Double+Real.swift
[17/37] Compiling RealModule AugmentedArithmetic.swift
[18/37] Compiling RealModule ApproximateEquality.swift
[19/37] Emitting module RealModule
[20/37] Compiling RealModule AlgebraicField.swift
[21/42] Compiling UInt128 Common.swift
[22/42] Compiling UInt128 Int128.swift
[23/42] Emitting module UInt128
[24/42] Compiling UInt128 UInt128.swift
[25/42] Compiling ComplexModule Differentiable.swift
[26/42] Compiling ComplexModule Arithmetic.swift
[27/42] Compiling ComplexModule Complex.swift
[28/42] Compiling ComplexModule ElementaryFunctions.swift
[29/42] Compiling BigInt BurnikelZiegler.swift
[30/42] Compiling BigInt CRT.swift
[31/43] Emitting module ComplexModule
[32/43] Compiling BigInt ExpMod.swift
[33/43] Compiling BigInt FFT.swift
[34/45] Compiling BigInt Factorial.swift
[35/45] Compiling BigInt GCD.swift
[36/45] Compiling Numerics Numerics.swift
[37/45] Emitting module Numerics
[38/45] Compiling BigInt Karatsuba.swift
[39/45] Compiling BigInt Limbs.swift
[40/45] Compiling BigInt ToomCook.swift
[41/45] Compiling BigInt BigFrac.swift
[42/45] Compiling BigInt BigInt-Extensions.swift
[43/45] Compiling BigInt BigInt.swift
[44/45] Compiling BigInt BitSieve.swift
[45/45] Emitting module BigInt
[46/64] Compiling BigDecimal SeriesCalculator.swift
[47/64] Compiling BigDecimal SinCalculator.swift
[48/64] Compiling BigDecimal DecimalLogic.swift
[49/64] Compiling BigDecimal Extensions.swift
[50/64] Compiling BigDecimal DecimalMath.swift
[51/64] Compiling BigDecimal ExponentCalculator.swift
[52/64] Compiling BigDecimal CoshCalculator.swift
[53/64] Compiling BigDecimal DecimalMath-Simple.swift
[54/64] Compiling BigDecimal Decimal32.swift
[55/64] Compiling BigDecimal Decimal64.swift
[56/64] Compiling BigDecimal AsinCalculator.swift
[57/64] Compiling BigDecimal CosCalculator.swift
[58/64] Compiling BigDecimal Decimal.swift
[59/64] Compiling BigDecimal Decimal128.swift
[60/64] Compiling BigDecimal SinhCalculator.swift
[61/64] Compiling BigDecimal DecimalFloatingPoint.swift
[62/65] Compiling BigDecimal Rounding.swift
[63/65] Compiling BigDecimal BigDecimal.swift
[64/65] Compiling BigDecimal CBDecimal.swift
[65/65] Emitting module BigDecimal
[66/72] Compiling ExpressionParser String+Char.swift
[67/72] Compiling ExpressionParser LaTeX.swift
[68/72] 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 | }
[69/72] Compiling ExpressionParser ExpressionParser.swift
[70/72] 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 | }
[71/72] 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 |     ]
[72/72] Compiling ExpressionParser Scanner.swift
Build complete! (23.66s)
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/Copyright.frame
    /Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/Support/Parser.frame
    /Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/Support/Scanner.frame
    /Users/admin/builder/spi-builder-workspace/Sources/ExpressionParser/Support/exp.atg
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.