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 HaskellSwift, reference 1.0.6 (908bff), with Swift 6.0 for Linux on 28 Nov 2024 12:37:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/webcpu/HaskellSwift.git
Reference: 1.0.6
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/webcpu/HaskellSwift
 * tag               1.0.6      -> FETCH_HEAD
HEAD is now at 908bff3 Fix: compile error
Cloned https://github.com/webcpu/HaskellSwift.git
Revision (git rev-parse @):
908bff3c624af2fe4454daf3811e07df10302ba3
SUCCESS checkout https://github.com/webcpu/HaskellSwift.git at 1.0.6
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/webcpu/HaskellSwift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/18] Emitting module HaskellSwift
/host/spi-builder-workspace/Sources/HaskellSwift/Data/Data.Either.swift:39:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
37 | }
38 |
39 | extension String: Error {}
   | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
40 |
41 | //MARK: fromLeft :: Either a b -> a
/host/spi-builder-workspace/Sources/HaskellSwift/Network/Network.HTTP.swift:13:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public struct Response {
12 |     public let data: Data?
13 |     public let response: URLResponse?
   |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     public let error: NSError?
15 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HaskellSwift/Network/Network.HTTP.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | }
24 |
25 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |     func sync(_ url: URL) -> Response! {
27 |         var result: Response!
[4/20] Compiling HaskellSwift Control.Applicative.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Control/Control.Parallel.Strategies.swift:15:63: warning: converting non-sendable function value to '@Sendable (Int) -> Void' may introduce data races
13 |     var results = [U?](repeating: nil, count: len)
14 |     let process = { (i: Int) -> Void in results[i] = transform(xs[i]) }
15 |     DispatchQueue.concurrentPerform(iterations: len, execute: process)
   |                                                               `- warning: converting non-sendable function value to '@Sendable (Int) -> Void' may introduce data races
16 |     return map(fromJust, results)
17 | }
[5/20] Compiling HaskellSwift Control.Monad.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Control/Control.Parallel.Strategies.swift:15:63: warning: converting non-sendable function value to '@Sendable (Int) -> Void' may introduce data races
13 |     var results = [U?](repeating: nil, count: len)
14 |     let process = { (i: Int) -> Void in results[i] = transform(xs[i]) }
15 |     DispatchQueue.concurrentPerform(iterations: len, execute: process)
   |                                                               `- warning: converting non-sendable function value to '@Sendable (Int) -> Void' may introduce data races
16 |     return map(fromJust, results)
17 | }
[6/20] Compiling HaskellSwift Control.Parallel.Strategies.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Control/Control.Parallel.Strategies.swift:15:63: warning: converting non-sendable function value to '@Sendable (Int) -> Void' may introduce data races
13 |     var results = [U?](repeating: nil, count: len)
14 |     let process = { (i: Int) -> Void in results[i] = transform(xs[i]) }
15 |     DispatchQueue.concurrentPerform(iterations: len, execute: process)
   |                                                               `- warning: converting non-sendable function value to '@Sendable (Int) -> Void' may introduce data races
16 |     return map(fromJust, results)
17 | }
[7/20] Compiling HaskellSwift System.Directory.swift
[8/20] Compiling HaskellSwift System.FilePath.Posix.swift
[9/20] Compiling HaskellSwift Data.List.swift
[10/20] Compiling HaskellSwift Data.Maybe.swift
[11/20] Compiling HaskellSwift Data.Tuple.swift
[12/20] Compiling HaskellSwift GHC.Num.swift
[13/20] Compiling HaskellSwift Prelude.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Network/Network.HTTP.swift:13:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public struct Response {
12 |     public let data: Data?
13 |     public let response: URLResponse?
   |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     public let error: NSError?
15 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HaskellSwift/Network/Network.HTTP.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | }
24 |
25 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |     func sync(_ url: URL) -> Response! {
27 |         var result: Response!
/host/spi-builder-workspace/Sources/HaskellSwift/Network/Network.HTTP.swift:18:23: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |
17 | public func simpleHTTP(_ url: URL) -> Response! {
18 |     return URLSession.shared.sync(url)
   |                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | }
20 |
[14/20] Compiling HaskellSwift Network.HTTP.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Network/Network.HTTP.swift:13:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public struct Response {
12 |     public let data: Data?
13 |     public let response: URLResponse?
   |                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     public let error: NSError?
15 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/HaskellSwift/Network/Network.HTTP.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | }
24 |
25 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 |     func sync(_ url: URL) -> Response! {
27 |         var result: Response!
/host/spi-builder-workspace/Sources/HaskellSwift/Network/Network.HTTP.swift:18:23: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
16 |
17 | public func simpleHTTP(_ url: URL) -> Response! {
18 |     return URLSession.shared.sync(url)
   |                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | }
20 |
[15/20] Compiling HaskellSwift Data.Char.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Data/Data.Either.swift:39:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
37 | }
38 |
39 | extension String: Error {}
   | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
40 |
41 | //MARK: fromLeft :: Either a b -> a
[16/20] Compiling HaskellSwift Data.Either.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Data/Data.Either.swift:39:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
37 | }
38 |
39 | extension String: Error {}
   | |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
40 |
41 | //MARK: fromLeft :: Either a b -> a
[17/20] Compiling HaskellSwift Data.Function.swift
[18/20] Compiling HaskellSwift Data.Functor.swift
[19/20] Compiling HaskellSwift Data.Ord.swift
[20/20] Compiling HaskellSwift Data.Traversable.swift
BUILD FAILURE 6.0 linux