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 develop (3b47fa), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 11:32:01 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: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/helje5/wren-swift
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 3b47faa Update README.md
Cloned https://github.com/helje5/wren-swift.git
Revision (git rev-parse @):
3b47faaaf46c95ba551113d9ef49f483081354b3
SUCCESS checkout https://github.com/helje5/wren-swift.git at develop
========================================
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.75s)
Creating working copy for https://github.com/helje5/wren-swift.git
Working copy of https://github.com/helje5/wren-swift.git resolved at develop (3b47faa)
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] 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
[5/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
[6/14] Compiling Wren Dynamic.swift
[7/14] Compiling Wren Slots.swift
[8/14] Compiling Wren Configuration.swift
[9/14] Compiling Wren Handle.swift
[10/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)
[11/14] Compiling Wren Foreign.swift
[12/14] Compiling Wren ValueConvertible.swift
[13/14] Compiling Wren Values.swift
[14/14] Compiling Wren WrenVM.swift
BUILD FAILURE 6.0 macosSpm