Build Information
Failed to build swift-package-directory with Swift 6.0 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bitwit/swift-package-directory.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/bitwit/swift-package-directory
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at cdc4af4 Update README.md
Cloned https://github.com/bitwit/swift-package-directory.git
Revision (git rev-parse @):
cdc4af47a55d992cfed378d88fac6d3416f2b332
SUCCESS checkout https://github.com/bitwit/swift-package-directory.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/bitwit/swift-package-directory.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/8] Write sources
[2/8] Write SPDCorePlayground-entitlement.plist
[4/8] Write swift-version-6F35C1178C84523A.txt
[6/25] Compiling PromiseKit race.swift
[7/25] Compiling PromiseKit hang.swift
[8/26] Emitting module PromiseKit
[9/26] Compiling PromiseKit Configuration.swift
[10/26] Compiling PromiseKit CustomStringConvertible.swift
[11/26] Compiling PromiseKit Resolver.swift
[12/26] Compiling PromiseKit Thenable.swift
[13/26] Compiling PromiseKit after.swift
[14/26] Compiling PromiseKit firstly.swift
[15/26] Compiling PromiseKit LogEvent.swift
[16/26] Compiling PromiseKit Promise.swift
[17/26] Compiling PromiseKit Catchable.swift
[18/26] Compiling PromiseKit Combine.swift
[19/26] Compiling PromiseKit Async.swift
[20/26] Compiling PromiseKit Box.swift
[21/26] Compiling PromiseKit Error.swift
[22/26] Compiling PromiseKit Guarantee.swift
[23/26] Compiling PromiseKit when.swift
[24/36] Compiling SPDCore PackageCrawler.swift
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:6:23: warning: static property 'callCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public class Networking {
5 |
6 | public static var callCount = [String: Int]()
| |- warning: static property 'callCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'callCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'callCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | public static func reportCallCount() {
[25/36] Compiling SPDCore URLRequest+Curl.swift
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Functions/URLRequest+Curl.swift:12:5: warning: 'public' modifier is redundant for property declared in a public extension
10 | /// Returns a cURL command for a request
11 | /// - return A String object that contains cURL command or "" if an URL is not properly initalized.
12 | public var cURL: String {
| `- warning: 'public' modifier is redundant for property declared in a public extension
13 |
14 | guard
[26/36] Compiling SPDCore Package.swift
[27/36] Compiling SPDCore DataStructures.swift
[28/36] Compiling SPDCore performRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:6:23: warning: static property 'callCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public class Networking {
5 |
6 | public static var callCount = [String: Int]()
| |- warning: static property 'callCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'callCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'callCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | public static func reportCallCount() {
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:21:21: warning: capture of 'resolver' with non-sendable type 'Resolver<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 |
20 | if let err = error {
21 | resolver.reject(err)
| `- warning: capture of 'resolver' with non-sendable type 'Resolver<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | return
23 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:2:20: note: generic class 'Resolver' does not conform to the 'Sendable' protocol
1 | /// An object for resolving promises
2 | public final class Resolver<T> {
| `- note: generic class 'Resolver' does not conform to the 'Sendable' protocol
3 | let box: Box<Result<T>>
4 |
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PromiseKit'
1 | import Foundation
2 | import PromiseKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'PromiseKit'
3 |
4 | public class Networking {
[29/36] Compiling SPDCore WhiskWrap.swift
[30/36] Compiling SPDCore Cloudant.swift
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:10:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
8 |
9 | struct PopularSearch: Codable {
10 | let limit: Int = 10
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'limit' case to silence this warning
| `- note: make the property mutable instead
11 | let sort = [["stargazers_count": "desc"]]
12 | let selector = ["stargazers_count": ["$gte": 100]]
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:11:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
9 | struct PopularSearch: Codable {
10 | let limit: Int = 10
11 | let sort = [["stargazers_count": "desc"]]
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'sort' case to silence this warning
| `- note: make the property mutable instead
12 | let selector = ["stargazers_count": ["$gte": 100]]
13 | let use_index: String
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:12:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
10 | let limit: Int = 10
11 | let sort = [["stargazers_count": "desc"]]
12 | let selector = ["stargazers_count": ["$gte": 100]]
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'selector' case to silence this warning
| `- note: make the property mutable instead
13 | let use_index: String
14 | }
[31/36] Emitting module SPDCore
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Functions/URLRequest+Curl.swift:12:5: warning: 'public' modifier is redundant for property declared in a public extension
10 | /// Returns a cURL command for a request
11 | /// - return A String object that contains cURL command or "" if an URL is not properly initalized.
12 | public var cURL: String {
| `- warning: 'public' modifier is redundant for property declared in a public extension
13 |
14 | guard
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Functions/performRequest.swift:6:23: warning: static property 'callCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public class Networking {
5 |
6 | public static var callCount = [String: Int]()
| |- warning: static property 'callCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'callCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'callCount' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | public static func reportCallCount() {
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:10:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
8 |
9 | struct PopularSearch: Codable {
10 | let limit: Int = 10
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'limit' case to silence this warning
| `- note: make the property mutable instead
11 | let sort = [["stargazers_count": "desc"]]
12 | let selector = ["stargazers_count": ["$gte": 100]]
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:11:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
9 | struct PopularSearch: Codable {
10 | let limit: Int = 10
11 | let sort = [["stargazers_count": "desc"]]
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'sort' case to silence this warning
| `- note: make the property mutable instead
12 | let selector = ["stargazers_count": ["$gte": 100]]
13 | let use_index: String
/Users/admin/builder/spi-builder-workspace/Sources/SPDCore/Services/Cloudant.swift:12:9: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
10 | let limit: Int = 10
11 | let sort = [["stargazers_count": "desc"]]
12 | let selector = ["stargazers_count": ["$gte": 100]]
| |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
| |- note: set the initial value via the initializer or explicitly define a CodingKeys enum including a 'selector' case to silence this warning
| `- note: make the property mutable instead
13 | let use_index: String
14 | }
[32/36] Compiling SPDCore GitHub.swift
[33/36] Compiling SPDCore PackageManager.swift
error: emit-module command failed due to signal 6 (use -v to see invocation)
Assertion failed: (captureInfo.hasBeenComputed()), function operator(), file TypeLowering.cpp, line 4240.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/admin/builder/spi-builder-workspace/Sources/SPDCorePlayground/main.swift -target arm64-apple-macosx10.13 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -I /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/Modules -I /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/ModuleCache -swift-version 4 -Onone -D SWIFT_PACKAGE -D DEBUG -stats-output-dir .stats -strict-concurrency=complete -empty-abi-descriptor -resource-dir /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/admin/builder/spi-builder-workspace -Xcc -isysroot -Xcc /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -Xcc -F -Xcc /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -fPIC -Xcc -g -module-name SPDCorePlayground -plugin-path /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Library/Developer/Toolchains/swift-6.0-DEVELOPMENT-SNAPSHOT-2024-05-26-a.xctoolchain/usr/local/lib/swift/host/plugins -target-sdk-version 14.4 -target-sdk-name macosx14.4 -external-plugin-path /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -emit-module-doc-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SPDCorePlayground.build/SPDCorePlayground.swiftdoc -emit-module-source-info-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SPDCorePlayground.build/SPDCorePlayground.swiftsourceinfo -emit-dependencies-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SPDCorePlayground.build/SPDCorePlayground.emit-module.d -o /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SPDCorePlayground.build/SPDCorePlayground.swiftmodule -emit-abi-descriptor-path /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SPDCorePlayground.build/SPDCorePlayground.abi.json
1. Apple Swift version 6.0-dev (LLVM 4b0b1f9e1a69523, Swift 91a3abcf816bc36)
2. Compiling with effective version 4.1.50
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for module SPDCorePlayground)
4. While getting lowered local captures at 'main()' (at /Users/admin/builder/spi-builder-workspace/Sources/SPDCorePlayground/main.swift:34:1)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x000000010a35fbf0 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1 swift-frontend 0x000000010a35e3bc llvm::sys::RunSignalHandlers() + 112
2 swift-frontend 0x000000010a360238 SignalHandler(int) + 304
3 libsystem_platform.dylib 0x000000018199da24 _sigtramp + 56
4 libsystem_pthread.dylib 0x000000018196dcc0 pthread_kill + 288
5 libsystem_c.dylib 0x0000000181879a40 abort + 180
6 libsystem_c.dylib 0x0000000181878d30 err + 0
7 swift-frontend 0x000000010a6b81a4 swift::Lowering::TypeConverter::getLoweredLocalCaptures(swift::SILDeclRef)::$_13::operator()(swift::CaptureInfo, swift::DeclContext*) const::'lambda'(swift::AccessorKind)::operator()(swift::AccessorKind) const (.cold.1) + 0
8 swift-frontend 0x0000000105dcf990 std::__1::__function::__func<swift::Lowering::TypeConverter::getLoweredLocalCaptures(swift::SILDeclRef)::$_13, std::__1::allocator<swift::Lowering::TypeConverter::getLoweredLocalCaptures(swift::SILDeclRef)::$_13>, void (swift::CaptureInfo, swift::DeclContext*)>::operator()(swift::CaptureInfo&&, swift::DeclContext*&&) + 1388
9 swift-frontend 0x0000000105dd09ec std::__1::__function::__func<swift::Lowering::TypeConverter::getLoweredLocalCaptures(swift::SILDeclRef)::$_14, std::__1::allocator<swift::Lowering::TypeConverter::getLoweredLocalCaptures(swift::SILDeclRef)::$_14>, void (swift::AnyFunctionRef)>::operator()(swift::AnyFunctionRef&&) + 256
10 swift-frontend 0x0000000105dd12a4 std::__1::__function::__func<swift::Lowering::TypeConverter::getLoweredLocalCaptures(swift::SILDeclRef)::$_15, std::__1::allocator<swift::Lowering::TypeConverter::getLoweredLocalCaptures(swift::SILDeclRef)::$_15>, void (swift::SILDeclRef)>::operator()(swift::SILDeclRef&&) + 308
11 swift-frontend 0x0000000105dbec9c swift::Lowering::TypeConverter::getLoweredLocalCaptures(swift::SILDeclRef) + 768
12 swift-frontend 0x000000010550f7b8 (anonymous namespace)::SILGenApply::visitDeclRefExpr(swift::DeclRefExpr*) + 1852
13 swift-frontend 0x00000001054fcab8 swift::Lowering::SILGenFunction::emitApplyExpr(swift::ApplyExpr*, swift::Lowering::SGFContext) + 524
14 swift-frontend 0x0000000105556f88 swift::Lowering::SILGenFunction::emitIgnoredExpr(swift::Expr*) + 912
15 swift-frontend 0x00000001055f8160 swift::Lowering::SILGenTopLevel::visitTopLevelCodeDecl(swift::TopLevelCodeDecl*) + 236
16 swift-frontend 0x00000001055f68f8 swift::Lowering::SILGenTopLevel::visitSourceFile(swift::SourceFile*) + 100
17 swift-frontend 0x00000001055f6194 swift::Lowering::SILGenModule::emitEntryPoint(swift::SourceFile*, swift::SILFunction*) + 780
18 swift-frontend 0x00000001055f7ae4 swift::Lowering::SILGenModule::emitEntryPoint(swift::SourceFile*) + 228
19 swift-frontend 0x00000001054eed54 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const + 1360
20 swift-frontend 0x00000001055e8c7c swift::SimpleRequest<swift::ASTLoweringRequest, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) + 148
21 swift-frontend 0x00000001054f4468 swift::ASTLoweringRequest::OutputType swift::Evaluator::getResultUncached<swift::ASTLoweringRequest, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()>(swift::ASTLoweringRequest const&, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()) + 340
22 swift-frontend 0x00000001054ef1c0 swift::performASTLowering(swift::ModuleDecl*, swift::Lowering::TypeConverter&, swift::SILOptions const&, swift::IRGenOptions const*) + 144
23 swift-frontend 0x0000000104ed9138 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1172
24 swift-frontend 0x0000000104eea248 withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) + 160
25 swift-frontend 0x0000000104edb590 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 708
26 swift-frontend 0x0000000104eda4fc swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 2388
27 swift-frontend 0x0000000104cf43b0 swift::mainEntry(int, char const**) + 3096
28 dyld 0x00000001815ed0e0 start + 2360
Fetching https://github.com/mxcl/PromiseKit.git
[1/16963] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git from cache (1.94s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.22.1 (0.78s)
Creating working copy for https://github.com/mxcl/PromiseKit.git
Working copy of https://github.com/mxcl/PromiseKit.git resolved at 6.22.1
BUILD FAILURE 6.0 macosSpm