Build Information
Failed to build When, reference master (a0811b
), with Swift 6.1 for macOS (SPM) on 24 Apr 2025 09:27:39 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vadymmarkov/When.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vadymmarkov/When
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at a0811be Merge pull request #42 from fggeraissate/use-native-result
Cloned https://github.com/vadymmarkov/When.git
Revision (git rev-parse @):
a0811be90114d82131271c629c6c4bfb27530433
SUCCESS checkout https://github.com/vadymmarkov/When.git at master
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/455] Fetching cwlcatchexception
[288/1712] Fetching cwlcatchexception, cwlpreconditiontesting
[947/16467] Fetching cwlcatchexception, cwlpreconditiontesting, quick
[2009/36034] Fetching cwlcatchexception, cwlpreconditiontesting, quick, nimble
Fetched https://github.com/Quick/Quick.git from cache (1.78s)
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (1.78s)
Fetched https://github.com/Quick/Nimble.git from cache (1.78s)
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (1.78s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.0.5 (2.44s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.0 (0.62s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 1.2.0 (0.67s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 1.2.0 (2.94s)
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 1.2.0
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 1.2.0
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.2.0
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.0.5
========================================
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": "when",
"name": "When",
"url": "https://github.com/vadymmarkov/When.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/When",
"dependencies": [
{
"identity": "quick",
"name": "Quick",
"url": "https://github.com/Quick/Quick.git",
"version": "2.2.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Quick",
"dependencies": [
{
"identity": "nimble",
"name": "Nimble",
"url": "https://github.com/Quick/Nimble.git",
"version": "8.0.9",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nimble",
"dependencies": [
]
}
]
},
{
"identity": "nimble",
"name": "Nimble",
"url": "https://github.com/Quick/Nimble.git",
"version": "8.0.9",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nimble",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/vadymmarkov/When.git
[1/858] Fetching when
Fetched https://github.com/vadymmarkov/When.git from cache (0.88s)
Fetching https://github.com/Quick/Quick.git from cache
Fetching https://github.com/Quick/Nimble.git from cache
Fetched https://github.com/Quick/Quick.git from cache (0.57s)
Fetched https://github.com/Quick/Nimble.git from cache (0.57s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.1 (1.21s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.0.9 (0.62s)
Creating working copy for https://github.com/vadymmarkov/When.git
Working copy of https://github.com/vadymmarkov/When.git resolved at master (a0811be)
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.0.9
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.2.1
warning: '.resolve-product-dependencies': dependency 'when' is not used by any target
Found 2 product dependencies
- Quick
- Nimble
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/vadymmarkov/When.git
https://github.com/vadymmarkov/When.git
{
"dependencies" : [
{
"identity" : "quick",
"requirement" : {
"range" : [
{
"lower_bound" : "2.2.0",
"upper_bound" : "2.3.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Quick.git"
},
{
"identity" : "nimble",
"requirement" : {
"range" : [
{
"lower_bound" : "8.0.5",
"upper_bound" : "8.1.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Nimble.git"
}
],
"manifest_display_name" : "When",
"name" : "When",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "8.0"
},
{
"name" : "tvos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "When",
"targets" : [
"When"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "WhenTests",
"module_type" : "SwiftTarget",
"name" : "WhenTests",
"path" : "WhenTests",
"product_dependencies" : [
"Quick",
"Nimble"
],
"sources" : [
"Shared/FunctionsSpec.swift",
"Shared/Helpers/SpecError.swift",
"Shared/PromiseSpec.swift",
"Shared/StateSpec.swift"
],
"target_dependencies" : [
"When"
],
"type" : "test"
},
{
"c99name" : "When",
"module_type" : "SwiftTarget",
"name" : "When",
"path" : "Sources",
"product_memberships" : [
"When"
],
"sources" : [
"Error.swift",
"Functions.swift",
"Observer.swift",
"Promise.swift",
"State.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/11] Write sources
[3/11] Write swift-version-2F0A5646E1D333AE.txt
[4/17] Compiling CwlMachBadInstructionHandler mach_excServer.c
[5/17] Compiling CwlCatchExceptionSupport CwlCatchException.m
[6/17] Compiling CwlMachBadInstructionHandler CwlMachBadInstructionHandler.m
[8/19] Compiling When State.swift
[9/19] Compiling When Promise.swift
/Users/admin/builder/spi-builder-workspace/Sources/Promise.swift:178:28: warning: passing non-sendable parameter 'closure' to function expecting a @Sendable closure
172 | }
173 |
174 | private func dispatch(_ queue: DispatchQueue, closure: @escaping () -> Void) {
| `- note: parameter 'closure' is implicitly non-sendable
175 | if queue === instantQueue {
176 | closure()
177 | } else {
178 | queue.async(execute: closure)
| `- warning: passing non-sendable parameter 'closure' to function expecting a @Sendable closure
179 | }
180 | }
[10/19] Compiling When Observer.swift
[11/19] Compiling When Error.swift
[12/19] Compiling When Functions.swift
[13/19] Emitting module When
[14/19] Compiling CwlCatchException CwlCatchException.swift
[15/19] Emitting module CwlCatchException
[15/19] Write Objects.LinkFileList
[16/19] Linking libCwlCatchException.dylib
[18/23] Compiling CwlPreconditionTesting CwlDarwinDefinitions.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift:44:59: error: cannot find type 'x86_thread_state64_t' in scope
42 | // #define x86_THREAD_STATE64_COUNT ((mach_msg_type_number_t) \
43 | // ( sizeof (x86_thread_state64_t) / sizeof (int) ))
44 | public let x86_THREAD_STATE64_COUNT = UInt32(MemoryLayout<x86_thread_state64_t>.size / MemoryLayout<Int32>.size)
| `- error: cannot find type 'x86_thread_state64_t' in scope
45 |
46 | public let EXC_TYPES_COUNT = 14
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/23] Emitting module CwlPreconditionTesting
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift:44:59: error: cannot find type 'x86_thread_state64_t' in scope
42 | // #define x86_THREAD_STATE64_COUNT ((mach_msg_type_number_t) \
43 | // ( sizeof (x86_thread_state64_t) / sizeof (int) ))
44 | public let x86_THREAD_STATE64_COUNT = UInt32(MemoryLayout<x86_thread_state64_t>.size / MemoryLayout<Int32>.size)
| `- error: cannot find type 'x86_thread_state64_t' in scope
45 |
46 | public let EXC_TYPES_COUNT = 14
[20/23] Compiling CwlPreconditionTesting CwlCatchBadInstruction.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift:185:166: error: cannot find 'x86_THREAD_STATE64' in scope
183 | try kernCheck { context.withUnsafeMutablePointers { masksPtr, countPtr, portsPtr, behaviorsPtr, flavorsPtr in
184 | // 3. Apply the mach port as the handler for this thread
185 | thread_swap_exception_ports(mach_thread_self(), EXC_MASK_BAD_INSTRUCTION, currentExceptionPtr, Int32(bitPattern: UInt32(EXCEPTION_STATE) | MACH_EXCEPTION_CODES), x86_THREAD_STATE64, masksPtr, countPtr, portsPtr, behaviorsPtr, flavorsPtr)
| `- error: cannot find 'x86_THREAD_STATE64' in scope
186 | } }
187 |
[21/23] Compiling CwlPreconditionTesting CwlBadInstructionException.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift:44:59: error: cannot find type 'x86_thread_state64_t' in scope
42 | // #define x86_THREAD_STATE64_COUNT ((mach_msg_type_number_t) \
43 | // ( sizeof (x86_thread_state64_t) / sizeof (int) ))
44 | public let x86_THREAD_STATE64_COUNT = UInt32(MemoryLayout<x86_thread_state64_t>.size / MemoryLayout<Int32>.size)
| `- error: cannot find type 'x86_thread_state64_t' in scope
45 |
46 | public let EXC_TYPES_COUNT = 14
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift:63:47: error: cannot find 'x86_thread_state64_t' in scope
61 |
62 | // Read the old thread state
63 | var state = old_state.withMemoryRebound(to: x86_thread_state64_t.self, capacity: 1) { return $0.pointee }
| `- error: cannot find 'x86_thread_state64_t' in scope
64 |
65 | // 1. Decrement the stack pointer
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift:63:25: error: generic parameter 'T' could not be inferred
61 |
62 | // Read the old thread state
63 | var state = old_state.withMemoryRebound(to: x86_thread_state64_t.self, capacity: 1) { return $0.pointee }
| `- error: generic parameter 'T' could not be inferred
64 |
65 | // 1. Decrement the stack pointer
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
| `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift:82:35: error: cannot find 'x86_thread_state64_t' in scope
80 |
81 | // Write the new thread state
82 | new_state.withMemoryRebound(to: x86_thread_state64_t.self, capacity: 1) { $0.pointee = state }
| `- error: cannot find 'x86_thread_state64_t' in scope
83 | new_stateCnt.pointee = x86_THREAD_STATE64_COUNT
84 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-2F0A5646E1D333AE.txt
[2/13] Compiling CwlCatchException CwlCatchException.swift
[3/13] Emitting module CwlCatchException
[4/12] Emitting module When
[5/12] Compiling When Functions.swift
[6/12] Compiling When Observer.swift
[7/12] Compiling When Error.swift
[8/12] Compiling When Promise.swift
[9/12] Compiling When State.swift
[9/12] Linking libCwlCatchException.dylib
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/16] Emitting module CwlPreconditionTesting
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift:44:59: error: cannot find type 'x86_thread_state64_t' in scope
42 | // #define x86_THREAD_STATE64_COUNT ((mach_msg_type_number_t) \
43 | // ( sizeof (x86_thread_state64_t) / sizeof (int) ))
44 | public let x86_THREAD_STATE64_COUNT = UInt32(MemoryLayout<x86_thread_state64_t>.size / MemoryLayout<Int32>.size)
| `- error: cannot find type 'x86_thread_state64_t' in scope
45 |
46 | public let EXC_TYPES_COUNT = 14
[12/16] Compiling CwlPreconditionTesting CwlBadInstructionException.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift:44:59: error: cannot find type 'x86_thread_state64_t' in scope
42 | // #define x86_THREAD_STATE64_COUNT ((mach_msg_type_number_t) \
43 | // ( sizeof (x86_thread_state64_t) / sizeof (int) ))
44 | public let x86_THREAD_STATE64_COUNT = UInt32(MemoryLayout<x86_thread_state64_t>.size / MemoryLayout<Int32>.size)
| `- error: cannot find type 'x86_thread_state64_t' in scope
45 |
46 | public let EXC_TYPES_COUNT = 14
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift:63:47: error: cannot find 'x86_thread_state64_t' in scope
61 |
62 | // Read the old thread state
63 | var state = old_state.withMemoryRebound(to: x86_thread_state64_t.self, capacity: 1) { return $0.pointee }
| `- error: cannot find 'x86_thread_state64_t' in scope
64 |
65 | // 1. Decrement the stack pointer
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift:63:25: error: generic parameter 'T' could not be inferred
61 |
62 | // Read the old thread state
63 | var state = old_state.withMemoryRebound(to: x86_thread_state64_t.self, capacity: 1) { return $0.pointee }
| `- error: generic parameter 'T' could not be inferred
64 |
65 | // 1. Decrement the stack pointer
Swift.UnsafePointer.withMemoryRebound:2:13: note: in call to function 'withMemoryRebound(to:capacity:_:)'
1 | generic struct UnsafePointer {
2 | public func withMemoryRebound<T, E, Result>(to type: T.Type, capacity count: Int, _ body: (_ pointer: UnsafePointer<T>) throws(E) -> Result) throws(E) -> Result where E : Error, T : ~Copyable, Result : ~Copyable}
| `- note: in call to function 'withMemoryRebound(to:capacity:_:)'
3 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift:82:35: error: cannot find 'x86_thread_state64_t' in scope
80 |
81 | // Write the new thread state
82 | new_state.withMemoryRebound(to: x86_thread_state64_t.self, capacity: 1) { $0.pointee = state }
| `- error: cannot find 'x86_thread_state64_t' in scope
83 | new_stateCnt.pointee = x86_THREAD_STATE64_COUNT
84 |
[13/16] Compiling CwlPreconditionTesting CwlCatchBadInstruction.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift:185:166: error: cannot find 'x86_THREAD_STATE64' in scope
183 | try kernCheck { context.withUnsafeMutablePointers { masksPtr, countPtr, portsPtr, behaviorsPtr, flavorsPtr in
184 | // 3. Apply the mach port as the handler for this thread
185 | thread_swap_exception_ports(mach_thread_self(), EXC_MASK_BAD_INSTRUCTION, currentExceptionPtr, Int32(bitPattern: UInt32(EXCEPTION_STATE) | MACH_EXCEPTION_CODES), x86_THREAD_STATE64, masksPtr, countPtr, portsPtr, behaviorsPtr, flavorsPtr)
| `- error: cannot find 'x86_THREAD_STATE64' in scope
186 | } }
187 |
[14/16] Compiling CwlPreconditionTesting CwlDarwinDefinitions.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift:44:59: error: cannot find type 'x86_thread_state64_t' in scope
42 | // #define x86_THREAD_STATE64_COUNT ((mach_msg_type_number_t) \
43 | // ( sizeof (x86_thread_state64_t) / sizeof (int) ))
44 | public let x86_THREAD_STATE64_COUNT = UInt32(MemoryLayout<x86_thread_state64_t>.size / MemoryLayout<Int32>.size)
| `- error: cannot find type 'x86_thread_state64_t' in scope
45 |
46 | public let EXC_TYPES_COUNT = 14
BUILD FAILURE 6.1 macosSpm