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

Failed to build wren-swift, reference 0.1.0 (8c5fab), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 11:31:31 UTC.

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/helje5/wren-swift.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/helje5/wren-swift
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 8c5fab5 Merge branch 'develop' into main
Cloned https://github.com/helje5/wren-swift.git
Revision (git rev-parse @):
8c5fab5bca54d28e920ac7bec79fe1a901b20758
SUCCESS checkout https://github.com/helje5/wren-swift.git at 0.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": "wren-swift",
      "name": "wren-swift",
      "url": "https://github.com/helje5/wren-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/wren-swift",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/helje5/wren-swift.git
[1/101] Fetching wren-swift
Fetched https://github.com/helje5/wren-swift.git from cache (0.80s)
Creating working copy for https://github.com/helje5/wren-swift.git
Working copy of https://github.com/helje5/wren-swift.git resolved at 0.1.0 (8c5fab5)
warning: '.resolve-product-dependencies': dependency 'wren-swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/helje5/wren-swift.git
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
Building for debugging...
[0/3] Write sources
[1/3] Write swift-version--7754E27361AE5C74.txt
[2/3] Compiling CWren wren.c
[4/13] Compiling Wren Handle.swift
[5/14] Compiling Wren WrenVM.swift
[6/14] Compiling Wren Slots.swift
[7/14] Compiling Wren Foreign.swift
[8/14] Compiling Wren Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/Wren/Error.swift:19:16: warning: stored property 'type' of 'Sendable'-conforming struct 'WrenError' has non-sendable type 'WrenVM.WrenError.WrenErrorType'; this is an error in the Swift 6 language mode
13 |   struct WrenError: Swift.Error, Equatable {
14 |
15 |     public enum WrenErrorType: String, Equatable {
   |                 `- note: consider making enum 'WrenErrorType' conform to the 'Sendable' protocol
16 |       case compile, runtime, stacktrace, unknown
17 |     }
18 |
19 |     public let type    : WrenErrorType
   |                `- warning: stored property 'type' of 'Sendable'-conforming struct 'WrenError' has non-sendable type 'WrenVM.WrenError.WrenErrorType'; this is an error in the Swift 6 language mode
20 |     public let module  : String
21 |     public let line    : Int
[9/14] Compiling Wren Values.swift
[10/14] Compiling Wren ValueConvertible.swift
[11/14] Compiling Wren Dynamic.swift
[12/14] Emitting module Wren
/Users/admin/builder/spi-builder-workspace/Sources/Wren/Error.swift:19:16: warning: stored property 'type' of 'Sendable'-conforming struct 'WrenError' has non-sendable type 'WrenVM.WrenError.WrenErrorType'; this is an error in the Swift 6 language mode
13 |   struct WrenError: Swift.Error, Equatable {
14 |
15 |     public enum WrenErrorType: String, Equatable {
   |                 `- note: consider making enum 'WrenErrorType' conform to the 'Sendable' protocol
16 |       case compile, runtime, stacktrace, unknown
17 |     }
18 |
19 |     public let type    : WrenErrorType
   |                `- warning: stored property 'type' of 'Sendable'-conforming struct 'WrenError' has non-sendable type 'WrenVM.WrenError.WrenErrorType'; this is an error in the Swift 6 language mode
20 |     public let module  : String
21 |     public let line    : Int
[13/14] Compiling Wren Configuration.swift
[14/14] Compiling Wren Callbacks.swift
/Users/admin/builder/spi-builder-workspace/Sources/Wren/Callbacks.swift:27:15: error: cannot find 'strlen' in scope
25 |   let data : Data = {
26 |     guard let text = text else { return Data() }
27 |     let len = strlen(text) // yes, this one is 0-terminated
   |               `- error: cannot find 'strlen' in scope
28 |     let bp  = UnsafeBufferPointer(start: text, count: len)
29 |     return Data(buffer: bp)
BUILD FAILURE 6.0 macosSpm