The Swift Package Index logo.Swift Package Index

Build Information

Successful build of WasmInterpreter, reference main (3a6963), with Swift 6.1 for macOS (SPM) on 14 May 2025 13:17:58 UTC.

Swift 6 data race errors: 4

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/shareup/wasm-interpreter-apple.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/shareup/wasm-interpreter-apple
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3a69633 Update .swiftformat
Cloned https://github.com/shareup/wasm-interpreter-apple.git
Revision (git rev-parse @):
3a69633a5a8d8d2ede5cfd1c4e45af7d542b4f09
SUCCESS checkout https://github.com/shareup/wasm-interpreter-apple.git at main
Fetching https://github.com/shareup/synchronized.git
[1/205] Fetching synchronized
Fetched https://github.com/shareup/synchronized.git from cache (0.69s)
Computing version for https://github.com/shareup/synchronized.git
Computed https://github.com/shareup/synchronized.git at 4.0.0 (1.28s)
Creating working copy for https://github.com/shareup/synchronized.git
Working copy of https://github.com/shareup/synchronized.git resolved at 4.0.0
Downloading binary artifact https://github.com/shareup/cwasm3/releases/download/v0.5.2/CWasm3-0.5.0.xcframework.zip
[16375/2666786] Downloading https://github.com/shareup/cwasm3/releases/download/v0.5.2/CWasm3-0.5.0.xcframework.zip
Downloaded https://github.com/shareup/cwasm3/releases/download/v0.5.2/CWasm3-0.5.0.xcframework.zip (1.16s)
========================================
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": "wasm-interpreter-apple",
      "name": "WasmInterpreter",
      "url": "https://github.com/shareup/wasm-interpreter-apple.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/wasm-interpreter-apple",
      "dependencies": [
        {
          "identity": "synchronized",
          "name": "Synchronized",
          "url": "https://github.com/shareup/synchronized.git",
          "version": "4.0.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/synchronized",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/shareup/wasm-interpreter-apple.git
[1/391] Fetching wasm-interpreter-apple
Fetched https://github.com/shareup/wasm-interpreter-apple.git from cache (0.72s)
Fetching https://github.com/shareup/synchronized.git from cache
Fetched https://github.com/shareup/synchronized.git from cache (0.44s)
Computing version for https://github.com/shareup/synchronized.git
Computed https://github.com/shareup/synchronized.git at 4.0.1 (0.49s)
Creating working copy for https://github.com/shareup/synchronized.git
Working copy of https://github.com/shareup/synchronized.git resolved at 4.0.1
Creating working copy for https://github.com/shareup/wasm-interpreter-apple.git
Working copy of https://github.com/shareup/wasm-interpreter-apple.git resolved at main (3a69633)
Fetching binary artifact https://github.com/shareup/cwasm3/releases/download/v0.5.2/CWasm3-0.5.0.xcframework.zip from cache
Fetched https://github.com/shareup/cwasm3/releases/download/v0.5.2/CWasm3-0.5.0.xcframework.zip from cache (0.19s)
warning: '.resolve-product-dependencies': dependency 'wasm-interpreter-apple' is not used by any target
Found 1 product dependencies
  - Synchronized
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/shareup/wasm-interpreter-apple.git
https://github.com/shareup/wasm-interpreter-apple.git
{
  "dependencies" : [
    {
      "identity" : "synchronized",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/shareup/synchronized.git"
    }
  ],
  "manifest_display_name" : "WasmInterpreter",
  "name" : "WasmInterpreter",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "WasmInterpreter",
      "targets" : [
        "WasmInterpreter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WasmInterpreterTests",
      "module_type" : "SwiftTarget",
      "name" : "WasmInterpreterTests",
      "path" : "Tests/WasmInterpreterTests",
      "sources" : [
        "String+WasmTypeProtocolTests.swift",
        "Wasm Modules/AddModule.swift",
        "Wasm Modules/ConstantModule.swift",
        "Wasm Modules/FibonacciModule.swift",
        "Wasm Modules/ImportedAddModule.swift",
        "Wasm Modules/MemoryModule.swift",
        "WasmInterpreterTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "WasmInterpreter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WasmInterpreter",
      "module_type" : "SwiftTarget",
      "name" : "WasmInterpreter",
      "path" : "Sources/WasmInterpreter",
      "product_dependencies" : [
        "Synchronized"
      ],
      "product_memberships" : [
        "WasmInterpreter"
      ],
      "sources" : [
        "Heap.swift",
        "ImportedFunctionCache.swift",
        "NativeFunction.swift",
        "NativeFunctionSignature.swift",
        "String+WasmInterpreter.swift",
        "String+WasmTypeProtocol.swift",
        "WasmInterpreter+Call.swift",
        "WasmInterpreter+ImportHandler.swift",
        "WasmInterpreter.swift",
        "WasmInterpreterError.swift",
        "WasmType.swift"
      ],
      "target_dependencies" : [
        "CWasm3"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CWasm3",
      "module_type" : "BinaryTarget",
      "name" : "CWasm3",
      "path" : "remote/archive/CWasm3-0.5.0.xcframework.zip",
      "product_memberships" : [
        "WasmInterpreter"
      ],
      "sources" : [
      ],
      "type" : "binary"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/4] Write sources
[2/4] Copying CWasm3.framework
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/8] Compiling Synchronized RecursiveLock.swift
[6/8] Emitting module Synchronized
[7/8] Compiling Synchronized Lock.swift
[8/8] Compiling Synchronized Locked.swift
[9/19] Compiling WasmInterpreter String+WasmTypeProtocol.swift
[10/19] Compiling WasmInterpreter WasmInterpreter.swift
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/WasmInterpreter.swift:125:31: warning: forming 'UnsafeRawPointer' to a variable of type '[T]'; this is likely incorrect because 'T' may contain an object reference.
123 |         var values = values
124 |         try writeToHeap(
125 |             data: Data(bytes: &values, count: values.count * MemoryLayout<T>.size),
    |                               `- warning: forming 'UnsafeRawPointer' to a variable of type '[T]'; this is likely incorrect because 'T' may contain an object reference.
126 |             byteOffset: byteOffset
127 |         )
[11/19] Compiling WasmInterpreter WasmInterpreterError.swift
[12/20] Compiling WasmInterpreter WasmInterpreter+Call.swift
[13/20] Compiling WasmInterpreter NativeFunctionSignature.swift
[14/20] Compiling WasmInterpreter NativeFunction.swift
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/NativeFunction.swift:118:5: warning: let 'importedFunctionInternalError' is not concurrency-safe because non-'Sendable' type 'UnsafeRawPointer' may have shared mutable state; this is an error in the Swift 6 language mode
116 | }
117 |
118 | let importedFunctionInternalError = UnsafeRawPointer(UnsafeMutableRawPointer.allocate(
    |     |- warning: let 'importedFunctionInternalError' is not concurrency-safe because non-'Sendable' type 'UnsafeRawPointer' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'importedFunctionInternalError' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |     byteCount: _importedFunctionInternalError.count, alignment: MemoryLayout<CChar>.alignment
120 | ))
Swift.UnsafeRawPointer:1:23: note: struct 'UnsafeRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
[15/20] Compiling WasmInterpreter Heap.swift
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:86:13: warning: let 'lock' is not concurrency-safe because non-'Sendable' type 'Lock' may have shared mutable state; this is an error in the Swift 6 language mode
84 | // MARK: - Private
85 |
86 | private let lock = Lock()
   |             `- warning: let 'lock' is not concurrency-safe because non-'Sendable' type 'Lock' may have shared mutable state; this is an error in the Swift 6 language mode
87 | private var lastInstanceIdentifier: UInt64 = 0
88 | private var importedFunctionCache =
/Users/admin/builder/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:3:20: note: class 'Lock' does not conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public final class Lock {
   |                    `- note: class 'Lock' does not conform to the 'Sendable' protocol
 4 |     private var backing: UnsafeMutablePointer<os_unfair_lock>
 5 |
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Synchronized'
 1 | import CWasm3
 2 | import Foundation
 3 | import Synchronized
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Synchronized'
 4 |
 5 | // MARK: - Managing imported functions
   :
84 | // MARK: - Private
85 |
86 | private let lock = Lock()
   |             |- note: add '@MainActor' to make let 'lock' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | private var lastInstanceIdentifier: UInt64 = 0
88 | private var importedFunctionCache =
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:87:13: warning: var 'lastInstanceIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 |
86 | private let lock = Lock()
87 | private var lastInstanceIdentifier: UInt64 = 0
   |             |- warning: var 'lastInstanceIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'lastInstanceIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'lastInstanceIdentifier' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | private var importedFunctionCache =
89 |     [UInt64: [UnsafeMutableRawPointer: ImportedFunctionSignature]]()
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:88:13: warning: var 'importedFunctionCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
86 | private let lock = Lock()
87 | private var lastInstanceIdentifier: UInt64 = 0
88 | private var importedFunctionCache =
   |             |- warning: var 'importedFunctionCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'importedFunctionCache' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'importedFunctionCache' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 |     [UInt64: [UnsafeMutableRawPointer: ImportedFunctionSignature]]()
90 |
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:55:36: warning: reference to var 'm3Err_trapUnreachable' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
53 | ) -> UnsafeRawPointer? {
54 |     guard let id = m3_GetUserData(runtime)?.load(as: UInt64.self)
55 |     else { return UnsafeRawPointer(m3Err_trapUnreachable) }
   |                                    `- warning: reference to var 'm3Err_trapUnreachable' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
56 |
57 |     guard let userData = context?.pointee.userdata
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/CWasm3.framework/Headers/wasm3.h:178:1: note: var declared here
176 | d_m3ErrorConst  (trapExit,                      "[trap] program called exit")
177 | d_m3ErrorConst  (trapAbort,                     "[trap] program called abort")
178 | d_m3ErrorConst  (trapUnreachable,               "[trap] unreachable executed")
    | `- note: var declared here
179 | d_m3ErrorConst  (trapStackOverflow,             "[trap] stack overflow")
180 |
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:58:36: warning: reference to var 'm3Err_trapUnreachable' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
56 |
57 |     guard let userData = context?.pointee.userdata
58 |     else { return UnsafeRawPointer(m3Err_trapUnreachable) }
   |                                    `- warning: reference to var 'm3Err_trapUnreachable' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
59 |
60 |     guard let function = importedFunction(for: userData, instanceIdentifier: id)
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/CWasm3.framework/Headers/wasm3.h:178:1: note: var declared here
176 | d_m3ErrorConst  (trapExit,                      "[trap] program called exit")
177 | d_m3ErrorConst  (trapAbort,                     "[trap] program called abort")
178 | d_m3ErrorConst  (trapUnreachable,               "[trap] unreachable executed")
    | `- note: var declared here
179 | d_m3ErrorConst  (trapStackOverflow,             "[trap] stack overflow")
180 |
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:61:36: warning: reference to var 'm3Err_trapUnreachable' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
59 |
60 |     guard let function = importedFunction(for: userData, instanceIdentifier: id)
61 |     else { return UnsafeRawPointer(m3Err_trapUnreachable) }
   |                                    `- warning: reference to var 'm3Err_trapUnreachable' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
62 |
63 |     return function(stackPointer, heap)
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/CWasm3.framework/Headers/wasm3.h:178:1: note: var declared here
176 | d_m3ErrorConst  (trapExit,                      "[trap] program called exit")
177 | d_m3ErrorConst  (trapAbort,                     "[trap] program called abort")
178 | d_m3ErrorConst  (trapUnreachable,               "[trap] unreachable executed")
    | `- note: var declared here
179 | d_m3ErrorConst  (trapStackOverflow,             "[trap] stack overflow")
180 |
[16/20] Compiling WasmInterpreter ImportedFunctionCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:86:13: warning: let 'lock' is not concurrency-safe because non-'Sendable' type 'Lock' may have shared mutable state; this is an error in the Swift 6 language mode
84 | // MARK: - Private
85 |
86 | private let lock = Lock()
   |             `- warning: let 'lock' is not concurrency-safe because non-'Sendable' type 'Lock' may have shared mutable state; this is an error in the Swift 6 language mode
87 | private var lastInstanceIdentifier: UInt64 = 0
88 | private var importedFunctionCache =
/Users/admin/builder/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:3:20: note: class 'Lock' does not conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public final class Lock {
   |                    `- note: class 'Lock' does not conform to the 'Sendable' protocol
 4 |     private var backing: UnsafeMutablePointer<os_unfair_lock>
 5 |
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Synchronized'
 1 | import CWasm3
 2 | import Foundation
 3 | import Synchronized
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Synchronized'
 4 |
 5 | // MARK: - Managing imported functions
   :
84 | // MARK: - Private
85 |
86 | private let lock = Lock()
   |             |- note: add '@MainActor' to make let 'lock' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | private var lastInstanceIdentifier: UInt64 = 0
88 | private var importedFunctionCache =
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:87:13: warning: var 'lastInstanceIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 |
86 | private let lock = Lock()
87 | private var lastInstanceIdentifier: UInt64 = 0
   |             |- warning: var 'lastInstanceIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'lastInstanceIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'lastInstanceIdentifier' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | private var importedFunctionCache =
89 |     [UInt64: [UnsafeMutableRawPointer: ImportedFunctionSignature]]()
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:88:13: warning: var 'importedFunctionCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
86 | private let lock = Lock()
87 | private var lastInstanceIdentifier: UInt64 = 0
88 | private var importedFunctionCache =
   |             |- warning: var 'importedFunctionCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'importedFunctionCache' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'importedFunctionCache' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 |     [UInt64: [UnsafeMutableRawPointer: ImportedFunctionSignature]]()
90 |
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:55:36: warning: reference to var 'm3Err_trapUnreachable' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
53 | ) -> UnsafeRawPointer? {
54 |     guard let id = m3_GetUserData(runtime)?.load(as: UInt64.self)
55 |     else { return UnsafeRawPointer(m3Err_trapUnreachable) }
   |                                    `- warning: reference to var 'm3Err_trapUnreachable' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
56 |
57 |     guard let userData = context?.pointee.userdata
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/CWasm3.framework/Headers/wasm3.h:178:1: note: var declared here
176 | d_m3ErrorConst  (trapExit,                      "[trap] program called exit")
177 | d_m3ErrorConst  (trapAbort,                     "[trap] program called abort")
178 | d_m3ErrorConst  (trapUnreachable,               "[trap] unreachable executed")
    | `- note: var declared here
179 | d_m3ErrorConst  (trapStackOverflow,             "[trap] stack overflow")
180 |
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:58:36: warning: reference to var 'm3Err_trapUnreachable' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
56 |
57 |     guard let userData = context?.pointee.userdata
58 |     else { return UnsafeRawPointer(m3Err_trapUnreachable) }
   |                                    `- warning: reference to var 'm3Err_trapUnreachable' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
59 |
60 |     guard let function = importedFunction(for: userData, instanceIdentifier: id)
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/CWasm3.framework/Headers/wasm3.h:178:1: note: var declared here
176 | d_m3ErrorConst  (trapExit,                      "[trap] program called exit")
177 | d_m3ErrorConst  (trapAbort,                     "[trap] program called abort")
178 | d_m3ErrorConst  (trapUnreachable,               "[trap] unreachable executed")
    | `- note: var declared here
179 | d_m3ErrorConst  (trapStackOverflow,             "[trap] stack overflow")
180 |
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:61:36: warning: reference to var 'm3Err_trapUnreachable' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
59 |
60 |     guard let function = importedFunction(for: userData, instanceIdentifier: id)
61 |     else { return UnsafeRawPointer(m3Err_trapUnreachable) }
   |                                    `- warning: reference to var 'm3Err_trapUnreachable' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
62 |
63 |     return function(stackPointer, heap)
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/CWasm3.framework/Headers/wasm3.h:178:1: note: var declared here
176 | d_m3ErrorConst  (trapExit,                      "[trap] program called exit")
177 | d_m3ErrorConst  (trapAbort,                     "[trap] program called abort")
178 | d_m3ErrorConst  (trapUnreachable,               "[trap] unreachable executed")
    | `- note: var declared here
179 | d_m3ErrorConst  (trapStackOverflow,             "[trap] stack overflow")
180 |
[17/20] Emitting module WasmInterpreter
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:86:13: warning: let 'lock' is not concurrency-safe because non-'Sendable' type 'Lock' may have shared mutable state; this is an error in the Swift 6 language mode
84 | // MARK: - Private
85 |
86 | private let lock = Lock()
   |             `- warning: let 'lock' is not concurrency-safe because non-'Sendable' type 'Lock' may have shared mutable state; this is an error in the Swift 6 language mode
87 | private var lastInstanceIdentifier: UInt64 = 0
88 | private var importedFunctionCache =
/Users/admin/builder/spi-builder-workspace/.build/checkouts/synchronized/Sources/Synchronized/Lock.swift:3:20: note: class 'Lock' does not conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public final class Lock {
   |                    `- note: class 'Lock' does not conform to the 'Sendable' protocol
 4 |     private var backing: UnsafeMutablePointer<os_unfair_lock>
 5 |
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Synchronized'
 1 | import CWasm3
 2 | import Foundation
 3 | import Synchronized
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Synchronized'
 4 |
 5 | // MARK: - Managing imported functions
   :
84 | // MARK: - Private
85 |
86 | private let lock = Lock()
   |             |- note: add '@MainActor' to make let 'lock' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 | private var lastInstanceIdentifier: UInt64 = 0
88 | private var importedFunctionCache =
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:87:13: warning: var 'lastInstanceIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
85 |
86 | private let lock = Lock()
87 | private var lastInstanceIdentifier: UInt64 = 0
   |             |- warning: var 'lastInstanceIdentifier' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'lastInstanceIdentifier' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'lastInstanceIdentifier' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
88 | private var importedFunctionCache =
89 |     [UInt64: [UnsafeMutableRawPointer: ImportedFunctionSignature]]()
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/ImportedFunctionCache.swift:88:13: warning: var 'importedFunctionCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
86 | private let lock = Lock()
87 | private var lastInstanceIdentifier: UInt64 = 0
88 | private var importedFunctionCache =
   |             |- warning: var 'importedFunctionCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'importedFunctionCache' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'importedFunctionCache' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
89 |     [UInt64: [UnsafeMutableRawPointer: ImportedFunctionSignature]]()
90 |
/Users/admin/builder/spi-builder-workspace/Sources/WasmInterpreter/NativeFunction.swift:118:5: warning: let 'importedFunctionInternalError' is not concurrency-safe because non-'Sendable' type 'UnsafeRawPointer' may have shared mutable state; this is an error in the Swift 6 language mode
116 | }
117 |
118 | let importedFunctionInternalError = UnsafeRawPointer(UnsafeMutableRawPointer.allocate(
    |     |- warning: let 'importedFunctionInternalError' is not concurrency-safe because non-'Sendable' type 'UnsafeRawPointer' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: add '@MainActor' to make let 'importedFunctionInternalError' part of global actor 'MainActor'
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |     byteCount: _importedFunctionInternalError.count, alignment: MemoryLayout<CChar>.alignment
120 | ))
Swift.UnsafeRawPointer:1:23: note: struct 'UnsafeRawPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeRawPointer : _Pointer {
  |                       `- note: struct 'UnsafeRawPointer' does not conform to the 'Sendable' protocol
2 |     public typealias Pointee = UInt8
3 |     public let _rawValue: Builtin.RawPointer
[18/20] Compiling WasmInterpreter WasmInterpreter+ImportHandler.swift
[19/20] Compiling WasmInterpreter String+WasmInterpreter.swift
[20/20] Compiling WasmInterpreter WasmType.swift
Build complete! (7.74s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "synchronized",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/shareup/synchronized.git"
    }
  ],
  "manifest_display_name" : "WasmInterpreter",
  "name" : "WasmInterpreter",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "WasmInterpreter",
      "targets" : [
        "WasmInterpreter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WasmInterpreterTests",
      "module_type" : "SwiftTarget",
      "name" : "WasmInterpreterTests",
      "path" : "Tests/WasmInterpreterTests",
      "sources" : [
        "String+WasmTypeProtocolTests.swift",
        "Wasm Modules/AddModule.swift",
        "Wasm Modules/ConstantModule.swift",
        "Wasm Modules/FibonacciModule.swift",
        "Wasm Modules/ImportedAddModule.swift",
        "Wasm Modules/MemoryModule.swift",
        "WasmInterpreterTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "WasmInterpreter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WasmInterpreter",
      "module_type" : "SwiftTarget",
      "name" : "WasmInterpreter",
      "path" : "Sources/WasmInterpreter",
      "product_dependencies" : [
        "Synchronized"
      ],
      "product_memberships" : [
        "WasmInterpreter"
      ],
      "sources" : [
        "Heap.swift",
        "ImportedFunctionCache.swift",
        "NativeFunction.swift",
        "NativeFunctionSignature.swift",
        "String+WasmInterpreter.swift",
        "String+WasmTypeProtocol.swift",
        "WasmInterpreter+Call.swift",
        "WasmInterpreter+ImportHandler.swift",
        "WasmInterpreter.swift",
        "WasmInterpreterError.swift",
        "WasmType.swift"
      ],
      "target_dependencies" : [
        "CWasm3"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CWasm3",
      "module_type" : "BinaryTarget",
      "name" : "CWasm3",
      "path" : "remote/archive/CWasm3-0.5.0.xcframework.zip",
      "product_memberships" : [
        "WasmInterpreter"
      ],
      "sources" : [
      ],
      "type" : "binary"
    }
  ],
  "tools_version" : "5.7"
}
Done.