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 SwissEphemeris, reference main (9d9ac6), with Swift 6.0 for Linux on 2 Nov 2024 21:17:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vsmithers1087/SwissEphemeris.git
Reference: main
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/vsmithers1087/SwissEphemeris
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 9d9ac62 Make ZodiacCoordinate init public (#18)
Cloned https://github.com/vsmithers1087/SwissEphemeris.git
Revision (git rev-parse @):
9d9ac62383eafa176e744af1130dcb0da17ca325
SUCCESS checkout https://github.com/vsmithers1087/SwissEphemeris.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/vsmithers1087/SwissEphemeris.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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 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/22] Write sources
[1/22] Copying ast_list.txt
[2/22] Copying sweph.sln
[3/22] Copying swedecl64.txt
[4/22] Copying swedecl.txt
[5/22] Copying sepl_18.se1
[6/22] Copying seorbel.txt
[7/22] Copying semo_18.se1
[8/22] Copying seleapsec.txt
[9/22] Copying sefstars.txt
[10/22] Copying sedeltat.txt.inactive
[11/22] Copying seas_18.se1
[12/22] Compiling swejpl.c
[13/22] Compiling swemmoon.c
[14/22] Compiling swedate.c
[15/22] Compiling swehel.c
[16/22] Compiling swehouse.c
[17/22] Compiling swemplan.c
[18/22] Write swift-version-24593BA9C3E375BF.txt
[19/22] Compiling swephlib.c
[20/22] Compiling sweph.c
[21/22] Compiling swecl.c
[23/48] Compiling SwissEphemeris HouseCusps.swift
[24/48] Compiling SwissEphemeris HouseSystem.swift
[25/48] Compiling SwissEphemeris LunarMansion.swift
[26/48] Compiling SwissEphemeris LunarNorthNode.swift
[27/51] Compiling SwissEphemeris ZodiacMappable.swift
[28/51] Compiling SwissEphemeris RiseTime.swift
[29/51] Compiling SwissEphemeris SetTime.swift
[30/51] Emitting module SwissEphemeris
/host/spi-builder-workspace/Sources/SwissEphemeris/Extensions/Date+Strideable.swift:10:17: warning: conformance of 'Date' to protocol 'Strideable' was already stated in the type's module 'FoundationEssentials'
 8 | import Foundation
 9 |
10 | extension Date: Strideable {}
   |                 `- warning: conformance of 'Date' to protocol 'Strideable' was already stated in the type's module 'FoundationEssentials'
11 |
FoundationEssentials.Date:2:11: note: 'Date' declares conformance to protocol 'Strideable' here
1 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
2 | extension Date : Strideable {
  |           `- note: 'Date' declares conformance to protocol 'Strideable' here
3 | }
/host/spi-builder-workspace/Sources/SwissEphemeris/PlanetPairs.swift:14:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
12 |
13 |     /// Holds all possible pairs of planets.
14 |     public private (set) var pairs = [Pair<Planet, Planet>]()
   |            `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
15 |
16 |     /// Creates an instance of `PlanetPairs`.
[31/51] Compiling SwissEphemeris Aspect.swift
[32/51] Compiling SwissEphemeris Asteroid.swift
[33/51] Compiling SwissEphemeris Ayanamsha.swift
[34/51] Compiling SwissEphemeris Coordinate.swift
[35/51] Compiling SwissEphemeris PlanetPairs.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/PlanetPairs.swift:14:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
12 |
13 |     /// Holds all possible pairs of planets.
14 |     public private (set) var pairs = [Pair<Planet, Planet>]()
   |            `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
15 |
16 |     /// Creates an instance of `PlanetPairs`.
[36/51] Compiling SwissEphemeris BatchRequest.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/PlanetPairs.swift:14:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
12 |
13 |     /// Holds all possible pairs of planets.
14 |     public private (set) var pairs = [Pair<Planet, Planet>]()
   |            `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
15 |
16 |     /// Creates an instance of `PlanetPairs`.
[37/51] Compiling SwissEphemeris CelestialBody.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/PlanetPairs.swift:14:12: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
12 |
13 |     /// Holds all possible pairs of planets.
14 |     public private (set) var pairs = [Pair<Planet, Planet>]()
   |            `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
15 |
16 |     /// Creates an instance of `PlanetPairs`.
[38/51] Compiling SwissEphemeris Cusp.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/Extensions/Date+Strideable.swift:10:17: warning: conformance of 'Date' to protocol 'Strideable' was already stated in the type's module 'FoundationEssentials'
 8 | import Foundation
 9 |
10 | extension Date: Strideable {}
   |                 `- warning: conformance of 'Date' to protocol 'Strideable' was already stated in the type's module 'FoundationEssentials'
11 |
FoundationEssentials.Date:2:11: note: 'Date' declares conformance to protocol 'Strideable' here
1 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
2 | extension Date : Strideable {
  |           `- note: 'Date' declares conformance to protocol 'Strideable' here
3 | }
[39/51] Compiling SwissEphemeris Date+JulianDate.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/Extensions/Date+Strideable.swift:10:17: warning: conformance of 'Date' to protocol 'Strideable' was already stated in the type's module 'FoundationEssentials'
 8 | import Foundation
 9 |
10 | extension Date: Strideable {}
   |                 `- warning: conformance of 'Date' to protocol 'Strideable' was already stated in the type's module 'FoundationEssentials'
11 |
FoundationEssentials.Date:2:11: note: 'Date' declares conformance to protocol 'Strideable' here
1 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
2 | extension Date : Strideable {
  |           `- note: 'Date' declares conformance to protocol 'Strideable' here
3 | }
[40/51] Compiling SwissEphemeris Date+Strideable.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/Extensions/Date+Strideable.swift:10:17: warning: conformance of 'Date' to protocol 'Strideable' was already stated in the type's module 'FoundationEssentials'
 8 | import Foundation
 9 |
10 | extension Date: Strideable {}
   |                 `- warning: conformance of 'Date' to protocol 'Strideable' was already stated in the type's module 'FoundationEssentials'
11 |
FoundationEssentials.Date:2:11: note: 'Date' declares conformance to protocol 'Strideable' here
1 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
2 | extension Date : Strideable {
  |           `- note: 'Date' declares conformance to protocol 'Strideable' here
3 | }
[41/51] Compiling SwissEphemeris FixedStar.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/Extensions/Date+Strideable.swift:10:17: warning: conformance of 'Date' to protocol 'Strideable' was already stated in the type's module 'FoundationEssentials'
 8 | import Foundation
 9 |
10 | extension Date: Strideable {}
   |                 `- warning: conformance of 'Date' to protocol 'Strideable' was already stated in the type's module 'FoundationEssentials'
11 |
FoundationEssentials.Date:2:11: note: 'Date' declares conformance to protocol 'Strideable' here
1 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
2 | extension Date : Strideable {
  |           `- note: 'Date' declares conformance to protocol 'Strideable' here
3 | }
[42/51] Compiling SwissEphemeris LunarSouthNode.swift
[43/51] Compiling SwissEphemeris Lunation.swift
[44/51] Compiling SwissEphemeris Pair.swift
[45/51] Compiling SwissEphemeris Planet.swift
[46/51] Compiling SwissEphemeris Station.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: error: value of optional type 'String?' must be unwrapped to a value of type 'String'
19 | 	/// - Parameter path: The  path of the ephemeris files. The default value is `resourcePath`.
20 | 	public static func setEphemerisPath(path: String? = resourcePath) {
21 | 		swe_set_ephe_path(strdup(path))
   |                            |- error: value of optional type 'String?' must be unwrapped to a value of type 'String'
   |                            |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
   |                            `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
22 | 	}
23 | }
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/PlanetsRequest.swift:36:43: warning: capture of 'self' with non-sendable type 'PlanetsRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 9 |
10 | /// A `BatchRequest` for a collection of `Planet` `Coordinates`.
11 | final public class PlanetsRequest: BatchRequest {
   |                    `- note: class 'PlanetsRequest' does not conform to the 'Sendable' protocol
12 |
13 |     /// The `Planet` to request.
   :
34 | 			}
35 | 			let batch = dates.removeFirst()
36 | 			return batch.map { EphemerisItem(body: self.body, date: $0) }
   |                                           `- warning: capture of 'self' with non-sendable type 'PlanetsRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | 		}
38 | 		for await items in stream {
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/PlanetsRequest.swift:29:11: warning: reference to captured var 'dates' in concurrently-executing code; this is an error in the Swift 6 language mode
27 | 		var dates = dates(for: start, end: end, interval: interval)
28 | 		let stream = AsyncStream<[EphemerisItem]> {
29 | 			guard !dates.isEmpty else { return nil }
   |           `- warning: reference to captured var 'dates' in concurrently-executing code; this is an error in the Swift 6 language mode
30 | 			do {
31 | 				try await Task.sleep(nanoseconds: 1)
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/PlanetsRequest.swift:35:16: warning: mutation of captured var 'dates' in concurrently-executing code; this is an error in the Swift 6 language mode
33 | 				return nil
34 | 			}
35 | 			let batch = dates.removeFirst()
   |                `- warning: mutation of captured var 'dates' in concurrently-executing code; this is an error in the Swift 6 language mode
36 | 			return batch.map { EphemerisItem(body: self.body, date: $0) }
37 | 		}
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/PlanetsRequest.swift:36:43: warning: capture of 'self' with non-sendable type 'PlanetsRequest' in an isolated closure; this is an error in the Swift 6 language mode
 9 |
10 | /// A `BatchRequest` for a collection of `Planet` `Coordinates`.
11 | final public class PlanetsRequest: BatchRequest {
   |                    `- note: class 'PlanetsRequest' does not conform to the 'Sendable' protocol
12 |
13 |     /// The `Planet` to request.
   :
34 | 			}
35 | 			let batch = dates.removeFirst()
36 | 			return batch.map { EphemerisItem(body: self.body, date: $0) }
   |                                           `- warning: capture of 'self' with non-sendable type 'PlanetsRequest' in an isolated closure; this is an error in the Swift 6 language mode
37 | 		}
38 | 		for await items in stream {
[47/51] Compiling SwissEphemeris JPLFileManager.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: error: value of optional type 'String?' must be unwrapped to a value of type 'String'
19 | 	/// - Parameter path: The  path of the ephemeris files. The default value is `resourcePath`.
20 | 	public static func setEphemerisPath(path: String? = resourcePath) {
21 | 		swe_set_ephe_path(strdup(path))
   |                            |- error: value of optional type 'String?' must be unwrapped to a value of type 'String'
   |                            |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
   |                            `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
22 | 	}
23 | }
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/PlanetsRequest.swift:36:43: warning: capture of 'self' with non-sendable type 'PlanetsRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 9 |
10 | /// A `BatchRequest` for a collection of `Planet` `Coordinates`.
11 | final public class PlanetsRequest: BatchRequest {
   |                    `- note: class 'PlanetsRequest' does not conform to the 'Sendable' protocol
12 |
13 |     /// The `Planet` to request.
   :
34 | 			}
35 | 			let batch = dates.removeFirst()
36 | 			return batch.map { EphemerisItem(body: self.body, date: $0) }
   |                                           `- warning: capture of 'self' with non-sendable type 'PlanetsRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | 		}
38 | 		for await items in stream {
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/PlanetsRequest.swift:29:11: warning: reference to captured var 'dates' in concurrently-executing code; this is an error in the Swift 6 language mode
27 | 		var dates = dates(for: start, end: end, interval: interval)
28 | 		let stream = AsyncStream<[EphemerisItem]> {
29 | 			guard !dates.isEmpty else { return nil }
   |           `- warning: reference to captured var 'dates' in concurrently-executing code; this is an error in the Swift 6 language mode
30 | 			do {
31 | 				try await Task.sleep(nanoseconds: 1)
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/PlanetsRequest.swift:35:16: warning: mutation of captured var 'dates' in concurrently-executing code; this is an error in the Swift 6 language mode
33 | 				return nil
34 | 			}
35 | 			let batch = dates.removeFirst()
   |                `- warning: mutation of captured var 'dates' in concurrently-executing code; this is an error in the Swift 6 language mode
36 | 			return batch.map { EphemerisItem(body: self.body, date: $0) }
37 | 		}
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/PlanetsRequest.swift:36:43: warning: capture of 'self' with non-sendable type 'PlanetsRequest' in an isolated closure; this is an error in the Swift 6 language mode
 9 |
10 | /// A `BatchRequest` for a collection of `Planet` `Coordinates`.
11 | final public class PlanetsRequest: BatchRequest {
   |                    `- note: class 'PlanetsRequest' does not conform to the 'Sendable' protocol
12 |
13 |     /// The `Planet` to request.
   :
34 | 			}
35 | 			let batch = dates.removeFirst()
36 | 			return batch.map { EphemerisItem(body: self.body, date: $0) }
   |                                           `- warning: capture of 'self' with non-sendable type 'PlanetsRequest' in an isolated closure; this is an error in the Swift 6 language mode
37 | 		}
38 | 		for await items in stream {
[48/51] Compiling SwissEphemeris PlanetsRequest.swift
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/JPLFileManager.swift:21:28: error: value of optional type 'String?' must be unwrapped to a value of type 'String'
19 | 	/// - Parameter path: The  path of the ephemeris files. The default value is `resourcePath`.
20 | 	public static func setEphemerisPath(path: String? = resourcePath) {
21 | 		swe_set_ephe_path(strdup(path))
   |                            |- error: value of optional type 'String?' must be unwrapped to a value of type 'String'
   |                            |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
   |                            `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
22 | 	}
23 | }
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/PlanetsRequest.swift:36:43: warning: capture of 'self' with non-sendable type 'PlanetsRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 9 |
10 | /// A `BatchRequest` for a collection of `Planet` `Coordinates`.
11 | final public class PlanetsRequest: BatchRequest {
   |                    `- note: class 'PlanetsRequest' does not conform to the 'Sendable' protocol
12 |
13 |     /// The `Planet` to request.
   :
34 | 			}
35 | 			let batch = dates.removeFirst()
36 | 			return batch.map { EphemerisItem(body: self.body, date: $0) }
   |                                           `- warning: capture of 'self' with non-sendable type 'PlanetsRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | 		}
38 | 		for await items in stream {
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/PlanetsRequest.swift:29:11: warning: reference to captured var 'dates' in concurrently-executing code; this is an error in the Swift 6 language mode
27 | 		var dates = dates(for: start, end: end, interval: interval)
28 | 		let stream = AsyncStream<[EphemerisItem]> {
29 | 			guard !dates.isEmpty else { return nil }
   |           `- warning: reference to captured var 'dates' in concurrently-executing code; this is an error in the Swift 6 language mode
30 | 			do {
31 | 				try await Task.sleep(nanoseconds: 1)
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/PlanetsRequest.swift:35:16: warning: mutation of captured var 'dates' in concurrently-executing code; this is an error in the Swift 6 language mode
33 | 				return nil
34 | 			}
35 | 			let batch = dates.removeFirst()
   |                `- warning: mutation of captured var 'dates' in concurrently-executing code; this is an error in the Swift 6 language mode
36 | 			return batch.map { EphemerisItem(body: self.body, date: $0) }
37 | 		}
/host/spi-builder-workspace/Sources/SwissEphemeris/Utility/PlanetsRequest.swift:36:43: warning: capture of 'self' with non-sendable type 'PlanetsRequest' in an isolated closure; this is an error in the Swift 6 language mode
 9 |
10 | /// A `BatchRequest` for a collection of `Planet` `Coordinates`.
11 | final public class PlanetsRequest: BatchRequest {
   |                    `- note: class 'PlanetsRequest' does not conform to the 'Sendable' protocol
12 |
13 |     /// The `Planet` to request.
   :
34 | 			}
35 | 			let batch = dates.removeFirst()
36 | 			return batch.map { EphemerisItem(body: self.body, date: $0) }
   |                                           `- warning: capture of 'self' with non-sendable type 'PlanetsRequest' in an isolated closure; this is an error in the Swift 6 language mode
37 | 		}
38 | 		for await items in stream {
[49/51] Compiling SwissEphemeris Zodiac.swift
[50/51] Compiling SwissEphemeris ZodiacCoordinate.swift
[51/51] Compiling SwissEphemeris resource_bundle_accessor.swift
BUILD FAILURE 6.0 linux