The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HaskellSwift, reference master (908bff), with Swift 6.1 for Wasm on 28 May 2025 05:05:24 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/webcpu/HaskellSwift.git
Reference: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/webcpu/HaskellSwift.git
https://github.com/webcpu/HaskellSwift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "HaskellSwift",
  "name" : "HaskellSwift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "HaskellSwift",
      "targets" : [
        "HaskellSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HaskellSwift",
      "module_type" : "SwiftTarget",
      "name" : "HaskellSwift",
      "path" : "Sources/HaskellSwift",
      "product_memberships" : [
        "HaskellSwift"
      ],
      "sources" : [
        "Control/Control.Applicative.swift",
        "Control/Control.Monad.swift",
        "Control/Control.Parallel.Strategies.swift",
        "Data/Data.Char.swift",
        "Data/Data.Either.swift",
        "Data/Data.Function.swift",
        "Data/Data.Functor.swift",
        "Data/Data.List.swift",
        "Data/Data.Maybe.swift",
        "Data/Data.Ord.swift",
        "Data/Data.Traversable.swift",
        "Data/Data.Tuple.swift",
        "GHC/GHC.Num.swift",
        "Language/Prelude.swift",
        "Network/Network.HTTP.swift",
        "System/System.Directory.swift",
        "System/System.FilePath.Posix.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-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 System.Directory.swift
[5/20] Compiling HaskellSwift System.FilePath.Posix.swift
[6/20] Compiling HaskellSwift Control.Applicative.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Control/Control.Parallel.Strategies.swift:15:5: error: cannot find 'DispatchQueue' in scope
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)
   |     `- error: cannot find 'DispatchQueue' in scope
16 |     return map(fromJust, results)
17 | }
[7/20] Compiling HaskellSwift Control.Monad.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Control/Control.Parallel.Strategies.swift:15:5: error: cannot find 'DispatchQueue' in scope
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)
   |     `- error: cannot find 'DispatchQueue' in scope
16 |     return map(fromJust, results)
17 | }
[8/20] Compiling HaskellSwift Control.Parallel.Strategies.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Control/Control.Parallel.Strategies.swift:15:5: error: cannot find 'DispatchQueue' in scope
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)
   |     `- error: cannot find 'DispatchQueue' in scope
16 |     return map(fromJust, results)
17 | }
[9/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 |
[10/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 |
[11/20] Compiling HaskellSwift Data.Ord.swift
[12/20] Compiling HaskellSwift Data.Traversable.swift
[13/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
[14/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
[15/20] Compiling HaskellSwift Data.Function.swift
[16/20] Compiling HaskellSwift Data.Functor.swift
[17/20] Compiling HaskellSwift Data.List.swift
[18/20] Compiling HaskellSwift Data.Maybe.swift
[19/20] Compiling HaskellSwift Data.Tuple.swift
[20/20] Compiling HaskellSwift GHC.Num.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/17] 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!
[3/19] Compiling HaskellSwift Data.Function.swift
[4/19] Compiling HaskellSwift Data.Functor.swift
[5/19] Compiling HaskellSwift System.Directory.swift
[6/19] Compiling HaskellSwift System.FilePath.Posix.swift
[7/19] 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 |
[8/19] 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 |
[9/19] Compiling HaskellSwift Data.Tuple.swift
[10/19] Compiling HaskellSwift GHC.Num.swift
[11/19] Compiling HaskellSwift Data.Ord.swift
[12/19] Compiling HaskellSwift Data.Traversable.swift
[13/19] 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
[14/19] 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
[15/19] Compiling HaskellSwift Data.List.swift
[16/19] Compiling HaskellSwift Data.Maybe.swift
[17/19] Compiling HaskellSwift Control.Applicative.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Control/Control.Parallel.Strategies.swift:15:5: error: cannot find 'DispatchQueue' in scope
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)
   |     `- error: cannot find 'DispatchQueue' in scope
16 |     return map(fromJust, results)
17 | }
[18/19] Compiling HaskellSwift Control.Monad.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Control/Control.Parallel.Strategies.swift:15:5: error: cannot find 'DispatchQueue' in scope
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)
   |     `- error: cannot find 'DispatchQueue' in scope
16 |     return map(fromJust, results)
17 | }
[19/19] Compiling HaskellSwift Control.Parallel.Strategies.swift
/host/spi-builder-workspace/Sources/HaskellSwift/Control/Control.Parallel.Strategies.swift:15:5: error: cannot find 'DispatchQueue' in scope
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)
   |     `- error: cannot find 'DispatchQueue' in scope
16 |     return map(fromJust, results)
17 | }
BUILD FAILURE 6.1 wasm