Build Information
Failed to build Dflat, reference unstable (ac2de5
), with Swift 6.1 for Android on 28 May 2025 12:27:59 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
| `- error: cannot find 'os_unfair_lock' in scope
30 | shutdown = false
31 | }
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:33:5: error: cannot find 'os_unfair_lock_lock' in scope
31 | }
32 | func drain() {
33 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
34 | shutdown = true
35 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:35:5: error: cannot find 'os_unfair_lock_unlock' in scope
33 | os_unfair_lock_lock(&lock)
34 | shutdown = true
35 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
36 | // Simply wait out any and every connection we give out.
37 | for _ in 0..<capacity {
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:51:5: error: cannot find 'os_unfair_lock_lock' in scope
49 | func borrow() -> Borrowed {
50 | flowControl.wait()
51 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
52 | // If we shutdown, give out nil.
53 | if shutdown {
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:54:7: error: cannot find 'os_unfair_lock_unlock' in scope
52 | // If we shutdown, give out nil.
53 | if shutdown {
54 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
55 | flowControl.signal()
56 | return Borrowed(pointee: nil, pool: nil)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:61:7: error: cannot find 'os_unfair_lock_unlock' in scope
59 | if let connection = pool.last {
60 | pool.removeLast()
61 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
62 | return Borrowed(pointee: connection, pool: self)
63 | }
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:64:5: error: cannot find 'os_unfair_lock_unlock' in scope
62 | return Borrowed(pointee: connection, pool: self)
63 | }
64 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
65 | let pointee = SQLiteConnection(filePath: filePath, createIfMissing: false, readOnly: true)
66 | if pointee == nil { // This is unusual, but we give out a nil.
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:67:7: error: cannot find 'os_unfair_lock_lock' in scope
65 | let pointee = SQLiteConnection(filePath: filePath, createIfMissing: false, readOnly: true)
66 | if pointee == nil { // This is unusual, but we give out a nil.
67 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
68 | os_unfair_lock_unlock(&lock)
69 | flowControl.signal()
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:68:7: error: cannot find 'os_unfair_lock_unlock' in scope
66 | if pointee == nil { // This is unusual, but we give out a nil.
67 | os_unfair_lock_lock(&lock)
68 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
69 | flowControl.signal()
70 | return Borrowed(pointee: pointee, pool: nil)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:76:5: error: cannot find 'os_unfair_lock_lock' in scope
74 | }
75 | fileprivate func add(_ connection: SQLiteConnection) {
76 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
77 | pool.append(connection)
78 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:78:5: error: cannot find 'os_unfair_lock_unlock' in scope
76 | os_unfair_lock_lock(&lock)
77 | pool.append(connection)
78 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
79 | flowControl.signal()
80 | }
[124/131] Compiling SQLiteDflat dict_mutating_generated.swift
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:13:21: warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
11 | return or0.key
12 | }
13 | public static let key: FieldExpr<String, DictItem> = FieldExpr(
| `- warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | name: "__pk0", primaryKey: true, hasIndex: false, tableReader: _tr__f4, objectReader: _or__f4)
15 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
1 | import Dflat
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
2 | import FlatBuffers
3 |
:
11 | return or0.key
12 | }
13 | public static let key: FieldExpr<String, DictItem> = FieldExpr(
| |- note: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | name: "__pk0", primaryKey: true, hasIndex: false, tableReader: _tr__f4, objectReader: _or__f4)
15 |
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:23:21: warning: static property 'namespace' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | return or0.namespace
22 | }
23 | public static let namespace: FieldExpr<String, DictItem> = FieldExpr(
| |- warning: static property 'namespace' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'namespace' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | name: "__pk1", primaryKey: true, hasIndex: false, tableReader: _tr__f6, objectReader: _or__f6)
25 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:35:21: warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
33 | return s
34 | }
35 | public static let version: FieldExpr<String, DictItem> = FieldExpr(
| |- warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'version' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | name: "f8", primaryKey: false, hasIndex: false, tableReader: _tr__f8, objectReader: _or__f8)
37 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:45:21: warning: static property 'valueType' is not concurrency-safe because non-'Sendable' type 'FieldExpr<ValueType, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
43 | return or0.valueType
44 | }
45 | public static let valueType: FieldExpr<ValueType, DictItem> = FieldExpr(
| |- warning: static property 'valueType' is not concurrency-safe because non-'Sendable' type 'FieldExpr<ValueType, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'valueType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | name: "f10", primaryKey: false, hasIndex: false, tableReader: _tr__f10, objectReader: _or__f10)
47 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:55:21: warning: static property 'boolValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Bool, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
53 | return or0.boolValue
54 | }
55 | public static let boolValue: FieldExpr<Bool, DictItem> = FieldExpr(
| |- warning: static property 'boolValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Bool, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'boolValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | name: "f12", primaryKey: false, hasIndex: false, tableReader: _tr__f12, objectReader: _or__f12)
57 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:65:21: warning: static property 'longValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Int64, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
63 | return or0.longValue
64 | }
65 | public static let longValue: FieldExpr<Int64, DictItem> = FieldExpr(
| |- warning: static property 'longValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Int64, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'longValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 | name: "f14", primaryKey: false, hasIndex: false, tableReader: _tr__f14, objectReader: _or__f14)
67 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:75:21: warning: static property 'unsignedLongValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<UInt64, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
73 | return or0.unsignedLongValue
74 | }
75 | public static let unsignedLongValue: FieldExpr<UInt64, DictItem> = FieldExpr(
| |- warning: static property 'unsignedLongValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<UInt64, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unsignedLongValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | name: "f16", primaryKey: false, hasIndex: false, tableReader: _tr__f16, objectReader: _or__f16)
77 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:85:21: warning: static property 'floatValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Float32, DictItem>' (aka 'FieldExpr<Float, DictItem>') may have shared mutable state; this is an error in the Swift 6 language mode
83 | return or0.floatValue
84 | }
85 | public static let floatValue: FieldExpr<Float32, DictItem> = FieldExpr(
| |- warning: static property 'floatValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Float32, DictItem>' (aka 'FieldExpr<Float, DictItem>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'floatValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | name: "f18", primaryKey: false, hasIndex: false, tableReader: _tr__f18, objectReader: _or__f18)
87 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:95:21: warning: static property 'doubleValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Double, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
93 | return or0.doubleValue
94 | }
95 | public static let doubleValue: FieldExpr<Double, DictItem> = FieldExpr(
| |- warning: static property 'doubleValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Double, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'doubleValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | name: "f20", primaryKey: false, hasIndex: false, tableReader: _tr__f20, objectReader: _or__f20)
97 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:107:21: warning: static property 'stringValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
105 | return s
106 | }
107 | public static let stringValue: FieldExpr<String, DictItem> = FieldExpr(
| |- warning: static property 'stringValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | name: "f22", primaryKey: false, hasIndex: false, tableReader: _tr__f22, objectReader: _or__f22)
109 | }
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
[125/131] Compiling SQLiteDflat dict_query_generated.swift
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:13:21: warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
11 | return or0.key
12 | }
13 | public static let key: FieldExpr<String, DictItem> = FieldExpr(
| `- warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | name: "__pk0", primaryKey: true, hasIndex: false, tableReader: _tr__f4, objectReader: _or__f4)
15 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
1 | import Dflat
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
2 | import FlatBuffers
3 |
:
11 | return or0.key
12 | }
13 | public static let key: FieldExpr<String, DictItem> = FieldExpr(
| |- note: add '@MainActor' to make static property 'key' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | name: "__pk0", primaryKey: true, hasIndex: false, tableReader: _tr__f4, objectReader: _or__f4)
15 |
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:23:21: warning: static property 'namespace' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | return or0.namespace
22 | }
23 | public static let namespace: FieldExpr<String, DictItem> = FieldExpr(
| |- warning: static property 'namespace' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'namespace' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | name: "__pk1", primaryKey: true, hasIndex: false, tableReader: _tr__f6, objectReader: _or__f6)
25 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:35:21: warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
33 | return s
34 | }
35 | public static let version: FieldExpr<String, DictItem> = FieldExpr(
| |- warning: static property 'version' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'version' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | name: "f8", primaryKey: false, hasIndex: false, tableReader: _tr__f8, objectReader: _or__f8)
37 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:45:21: warning: static property 'valueType' is not concurrency-safe because non-'Sendable' type 'FieldExpr<ValueType, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
43 | return or0.valueType
44 | }
45 | public static let valueType: FieldExpr<ValueType, DictItem> = FieldExpr(
| |- warning: static property 'valueType' is not concurrency-safe because non-'Sendable' type 'FieldExpr<ValueType, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'valueType' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | name: "f10", primaryKey: false, hasIndex: false, tableReader: _tr__f10, objectReader: _or__f10)
47 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:55:21: warning: static property 'boolValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Bool, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
53 | return or0.boolValue
54 | }
55 | public static let boolValue: FieldExpr<Bool, DictItem> = FieldExpr(
| |- warning: static property 'boolValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Bool, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'boolValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 | name: "f12", primaryKey: false, hasIndex: false, tableReader: _tr__f12, objectReader: _or__f12)
57 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:65:21: warning: static property 'longValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Int64, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
63 | return or0.longValue
64 | }
65 | public static let longValue: FieldExpr<Int64, DictItem> = FieldExpr(
| |- warning: static property 'longValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Int64, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'longValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 | name: "f14", primaryKey: false, hasIndex: false, tableReader: _tr__f14, objectReader: _or__f14)
67 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:75:21: warning: static property 'unsignedLongValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<UInt64, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
73 | return or0.unsignedLongValue
74 | }
75 | public static let unsignedLongValue: FieldExpr<UInt64, DictItem> = FieldExpr(
| |- warning: static property 'unsignedLongValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<UInt64, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'unsignedLongValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
76 | name: "f16", primaryKey: false, hasIndex: false, tableReader: _tr__f16, objectReader: _or__f16)
77 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:85:21: warning: static property 'floatValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Float32, DictItem>' (aka 'FieldExpr<Float, DictItem>') may have shared mutable state; this is an error in the Swift 6 language mode
83 | return or0.floatValue
84 | }
85 | public static let floatValue: FieldExpr<Float32, DictItem> = FieldExpr(
| |- warning: static property 'floatValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Float32, DictItem>' (aka 'FieldExpr<Float, DictItem>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'floatValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | name: "f18", primaryKey: false, hasIndex: false, tableReader: _tr__f18, objectReader: _or__f18)
87 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:95:21: warning: static property 'doubleValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Double, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
93 | return or0.doubleValue
94 | }
95 | public static let doubleValue: FieldExpr<Double, DictItem> = FieldExpr(
| |- warning: static property 'doubleValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<Double, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'doubleValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | name: "f20", primaryKey: false, hasIndex: false, tableReader: _tr__f20, objectReader: _or__f20)
97 |
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
/host/spi-builder-workspace/src/sqlite/dict/dict_query_generated.swift:107:21: warning: static property 'stringValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
105 | return s
106 | }
107 | public static let stringValue: FieldExpr<String, DictItem> = FieldExpr(
| |- warning: static property 'stringValue' is not concurrency-safe because non-'Sendable' type 'FieldExpr<String, DictItem>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'stringValue' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
108 | name: "f22", primaryKey: false, hasIndex: false, tableReader: _tr__f22, objectReader: _or__f22)
109 | }
/host/spi-builder-workspace/src/exprs/Field.swift:102:20: note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
100 | }
101 |
102 | public final class FieldExpr<T, Element>: Expr where T: DflatFriendlyValue, Element: Atom {
| `- note: generic class 'FieldExpr' does not conform to the 'Sendable' protocol
103 | public typealias ResultType = T
104 | public typealias Element = Element
[126/131] Compiling SQLiteDflat SQLiteWorkspace.swift
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:6:22: error: cannot find 'os_unfair_lock' in scope
4 | // This is a state shared for a workspace.
5 | final class SQLiteWorkspaceState {
6 | private var lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
7 | private var tableTimestamps = [ObjectIdentifier: Int64]()
8 | var changesTimestamp = UnsafeAtomic<Int64>.Storage(0)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:138:11: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
136 | group.enter()
137 | tableSpace.queue.async {
138 | tableSpace.lock()
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
139 | tableSpace.shutdown()
140 | tableSpace.unlock()
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:506:9: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
504 | // We don't need to prioritize this.
505 | tableSpace.queue.async {
506 | tableSpace.lock()
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
507 | defer { tableSpace.unlock() }
508 | // The publisher is manipulated after acquiring the lock.
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:507:17: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
505 | tableSpace.queue.async {
506 | tableSpace.lock()
507 | defer { tableSpace.unlock() }
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
508 | // The publisher is manipulated after acquiring the lock.
509 | guard let resultPublisher = tableSpace.resultPublisher else { return }
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:517:9: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
515 | // We don't need to prioritize this.
516 | tableSpace.queue.async {
517 | tableSpace.lock()
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
518 | defer { tableSpace.unlock() }
519 | guard let resultPublisher = tableSpace.resultPublisher else { return }
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:518:17: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
516 | tableSpace.queue.async {
517 | tableSpace.lock()
518 | defer { tableSpace.unlock() }
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
519 | guard let resultPublisher = tableSpace.resultPublisher else { return }
520 | resultPublisher.cancel(object: rowid, identifier: identifier)
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:568:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
566 | }
567 | continuation.onTermination = { @Sendable _ in
568 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
569 | }
570 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
1 | import Atomics
2 | import Dflat
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
3 | import Dispatch
4 | import FlatBuffers
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:583:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
581 | }
582 | continuation.onTermination = { @Sendable _ in
583 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
584 | }
585 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:779:24: warning: capture of 'self' with non-sendable type 'SQLiteWorkspace?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import _SQLiteDflatOSShim
8 |
9 | public final class SQLiteWorkspace: Workspace {
| `- note: class 'SQLiteWorkspace' does not conform to the 'Sendable' protocol
10 |
11 | public enum FileProtectionLevel: Int32 {
:
777 | // We don't need to bump the priority for this.
778 | tableSpace.queue.async { [weak self] in
779 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'SQLiteWorkspace?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
780 | guard let connection = tableSpace.connect({ self.newConnection() }) else { return }
781 | let SQLiteElement = Element.self as! SQLiteAtom.Type
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:780:30: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
778 | tableSpace.queue.async { [weak self] in
779 | guard let self = self else { return }
780 | guard let connection = tableSpace.connect({ self.newConnection() }) else { return }
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
781 | let SQLiteElement = Element.self as! SQLiteAtom.Type
782 | let toolbox = SQLitePersistenceToolbox(connection: connection)
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:792:48: warning: capture of 'fields' with non-sendable type 'S' in a '@Sendable' closure; this is an error in the Swift 6 language mode
766 | }
767 |
768 | func beginRebuildIndex<Element: Atom, S: Sequence>(_ ofType: Element.Type, fields: S)
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
769 | where S.Element == String {
770 | guard
:
790 | tableSpace.state.tableCreated.insert(objectType)
791 | }
792 | let indexSurvey = connection.indexSurvey(fields, table: table)
| `- warning: capture of 'fields' with non-sendable type 'S' in a '@Sendable' closure; this is an error in the Swift 6 language mode
793 | // Obtain a exclusive lock, see discussions in SQLiteTransactionContext for why.
794 | let begin = connection.prepareStaticStatement("BEGIN IMMEDIATE")
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:786:15: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
784 | // It is OK to create connection, etc. before acquiring the lock as long as we don't do mutation.
785 | tableSpace.lock()
786 | defer { tableSpace.unlock() }
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
787 | // Make sure the table exists before we query.
788 | if !tableSpace.state.tableCreated.contains(objectType) {
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:821:11: warning: capture of 'self' with non-sendable type 'SQLiteWorkspace?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import _SQLiteDflatOSShim
8 |
9 | public final class SQLiteWorkspace: Workspace {
| `- note: class 'SQLiteWorkspace' does not conform to the 'Sendable' protocol
10 |
11 | public enum FileProtectionLevel: Int32 {
:
819 | tableSpace.queue.asyncAfter(deadline: .now() + Self.RebuildIndexDelayOnDiskFull) {
820 | [weak self] in
821 | self?.beginRebuildIndex(Element.self, fields: fields)
| `- warning: capture of 'self' with non-sendable type 'SQLiteWorkspace?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
822 | }
823 | return
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:821:57: warning: capture of 'fields' with non-sendable type 'S' in a '@Sendable' closure; this is an error in the Swift 6 language mode
766 | }
767 |
768 | func beginRebuildIndex<Element: Atom, S: Sequence>(_ ofType: Element.Type, fields: S)
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
769 | where S.Element == String {
770 | guard
:
819 | tableSpace.queue.asyncAfter(deadline: .now() + Self.RebuildIndexDelayOnDiskFull) {
820 | [weak self] in
821 | self?.beginRebuildIndex(Element.self, fields: fields)
| `- warning: capture of 'fields' with non-sendable type 'S' in a '@Sendable' closure; this is an error in the Swift 6 language mode
822 | }
823 | return
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:14:37: error: cannot find type 'os_unfair_lock_s' in scope
12 | static let size = 12
13 | let namespace: String
14 | var locks: UnsafeMutablePointer<os_unfair_lock_s>
| `- error: cannot find type 'os_unfair_lock_s' in scope
15 | var dictionaries: [[String: Any]]
16 | var subscriptions: [[String: [ObjectIdentifier: (Any?) -> Void]]]
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:20:15: error: generic parameter 'Pointee' could not be inferred
18 | init(namespace: String) {
19 | self.namespace = namespace
20 | locks = UnsafeMutablePointer.allocate(capacity: Self.size)
| |- error: generic parameter 'Pointee' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
21 | locks.assign(repeating: os_unfair_lock(), count: Self.size)
22 | dictionaries = Array(repeating: [String: Any](), count: Self.size)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:21:31: error: cannot find 'os_unfair_lock' in scope
19 | self.namespace = namespace
20 | locks = UnsafeMutablePointer.allocate(capacity: Self.size)
21 | locks.assign(repeating: os_unfair_lock(), count: Self.size)
| `- error: cannot find 'os_unfair_lock' in scope
22 | dictionaries = Array(repeating: [String: Any](), count: Self.size)
23 | subscriptions = Array(
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:638:5: error: cannot find 'os_unfair_lock_lock' in scope
636 | key.hash(into: &hasher)
637 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
638 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
639 | return (dictionaries[hashValue][key], hashValue)
640 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:646:5: error: cannot find 'os_unfair_lock_lock' in scope
644 | key.hash(into: &hasher)
645 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
646 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
647 | return hashValue
648 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:654:5: error: cannot find 'os_unfair_lock_lock' in scope
652 | key.hash(into: &hasher)
653 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
654 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
655 | let oldValue = dictionaries[hashValue].updateValue(value, forKey: key)
656 | return (oldValue, hashValue)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:693:5: error: cannot find 'os_unfair_lock_lock' in scope
691 | @inline(__always)
692 | func lock(_ hashValue: Int) {
693 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
694 | }
695 | @inline(__always)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:697:5: error: cannot find 'os_unfair_lock_unlock' in scope
695 | @inline(__always)
696 | func unlock(_ hashValue: Int) {
697 | os_unfair_lock_unlock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
698 | }
699 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1155:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1153 | }
1154 | continuation.onTermination = { @Sendable _ in
1155 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1156 | }
1157 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
1 | import Atomics
2 | import Dflat
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
3 | import Dispatch
4 | import FlatBuffers
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1176:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1174 | }
1175 | continuation.onTermination = { @Sendable _ in
1176 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1177 | }
1178 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1196:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1194 | }
1195 | continuation.onTermination = { @Sendable _ in
1196 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1197 | }
1198 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1216:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1214 | }
1215 | continuation.onTermination = { @Sendable _ in
1216 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1217 | }
1218 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1236:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1234 | }
1235 | continuation.onTermination = { @Sendable _ in
1236 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1237 | }
1238 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1257:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1255 | }
1256 | continuation.onTermination = { @Sendable _ in
1257 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1258 | }
1259 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1278:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1276 | }
1277 | continuation.onTermination = { @Sendable _ in
1278 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1279 | }
1280 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1299:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1297 | }
1298 | continuation.onTermination = { @Sendable _ in
1299 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1300 | }
1301 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:12:5: error: cannot find 'os_unfair_lock_lock' in scope
10 |
11 | func serial<T>(_ closure: () -> T) -> T {
12 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
13 | let retval = closure()
14 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:14:5: error: cannot find 'os_unfair_lock_unlock' in scope
12 | os_unfair_lock_lock(&lock)
13 | let retval = closure()
14 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
15 | return retval
16 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:20:5: error: cannot find 'os_unfair_lock_lock' in scope
18 | func setTableTimestamp<S: Sequence>(_ timestamp: Int64, for identifiers: S)
19 | where S.Element == ObjectIdentifier {
20 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
21 | for identifier in identifiers {
22 | tableTimestamps[identifier] = timestamp
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:24:5: error: cannot find 'os_unfair_lock_unlock' in scope
22 | tableTimestamps[identifier] = timestamp
23 | }
24 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
25 | }
26 |
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:28:5: error: cannot find 'os_unfair_lock_lock' in scope
26 |
27 | func tableTimestamp(for identifier: ObjectIdentifier) -> Int64 {
28 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
29 | let tableTimestamp = tableTimestamps[identifier] ?? -1
30 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:30:5: error: cannot find 'os_unfair_lock_unlock' in scope
28 | os_unfair_lock_lock(&lock)
29 | let tableTimestamp = tableTimestamps[identifier] ?? -1
30 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
31 | return tableTimestamp
32 | }
[127/131] Compiling SQLiteDflat SQLiteWorkspaceDictionary.swift
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:6:22: error: cannot find 'os_unfair_lock' in scope
4 | // This is a state shared for a workspace.
5 | final class SQLiteWorkspaceState {
6 | private var lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
7 | private var tableTimestamps = [ObjectIdentifier: Int64]()
8 | var changesTimestamp = UnsafeAtomic<Int64>.Storage(0)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:138:11: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
136 | group.enter()
137 | tableSpace.queue.async {
138 | tableSpace.lock()
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
139 | tableSpace.shutdown()
140 | tableSpace.unlock()
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:506:9: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
504 | // We don't need to prioritize this.
505 | tableSpace.queue.async {
506 | tableSpace.lock()
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
507 | defer { tableSpace.unlock() }
508 | // The publisher is manipulated after acquiring the lock.
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:507:17: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
505 | tableSpace.queue.async {
506 | tableSpace.lock()
507 | defer { tableSpace.unlock() }
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
508 | // The publisher is manipulated after acquiring the lock.
509 | guard let resultPublisher = tableSpace.resultPublisher else { return }
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:517:9: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
515 | // We don't need to prioritize this.
516 | tableSpace.queue.async {
517 | tableSpace.lock()
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
518 | defer { tableSpace.unlock() }
519 | guard let resultPublisher = tableSpace.resultPublisher else { return }
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:518:17: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
516 | tableSpace.queue.async {
517 | tableSpace.lock()
518 | defer { tableSpace.unlock() }
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
519 | guard let resultPublisher = tableSpace.resultPublisher else { return }
520 | resultPublisher.cancel(object: rowid, identifier: identifier)
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:568:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
566 | }
567 | continuation.onTermination = { @Sendable _ in
568 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
569 | }
570 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
1 | import Atomics
2 | import Dflat
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
3 | import Dispatch
4 | import FlatBuffers
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:583:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
581 | }
582 | continuation.onTermination = { @Sendable _ in
583 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
584 | }
585 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:779:24: warning: capture of 'self' with non-sendable type 'SQLiteWorkspace?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import _SQLiteDflatOSShim
8 |
9 | public final class SQLiteWorkspace: Workspace {
| `- note: class 'SQLiteWorkspace' does not conform to the 'Sendable' protocol
10 |
11 | public enum FileProtectionLevel: Int32 {
:
777 | // We don't need to bump the priority for this.
778 | tableSpace.queue.async { [weak self] in
779 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'SQLiteWorkspace?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
780 | guard let connection = tableSpace.connect({ self.newConnection() }) else { return }
781 | let SQLiteElement = Element.self as! SQLiteAtom.Type
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:780:30: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
778 | tableSpace.queue.async { [weak self] in
779 | guard let self = self else { return }
780 | guard let connection = tableSpace.connect({ self.newConnection() }) else { return }
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
781 | let SQLiteElement = Element.self as! SQLiteAtom.Type
782 | let toolbox = SQLitePersistenceToolbox(connection: connection)
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:792:48: warning: capture of 'fields' with non-sendable type 'S' in a '@Sendable' closure; this is an error in the Swift 6 language mode
766 | }
767 |
768 | func beginRebuildIndex<Element: Atom, S: Sequence>(_ ofType: Element.Type, fields: S)
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
769 | where S.Element == String {
770 | guard
:
790 | tableSpace.state.tableCreated.insert(objectType)
791 | }
792 | let indexSurvey = connection.indexSurvey(fields, table: table)
| `- warning: capture of 'fields' with non-sendable type 'S' in a '@Sendable' closure; this is an error in the Swift 6 language mode
793 | // Obtain a exclusive lock, see discussions in SQLiteTransactionContext for why.
794 | let begin = connection.prepareStaticStatement("BEGIN IMMEDIATE")
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:786:15: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
784 | // It is OK to create connection, etc. before acquiring the lock as long as we don't do mutation.
785 | tableSpace.lock()
786 | defer { tableSpace.unlock() }
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
787 | // Make sure the table exists before we query.
788 | if !tableSpace.state.tableCreated.contains(objectType) {
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:821:11: warning: capture of 'self' with non-sendable type 'SQLiteWorkspace?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import _SQLiteDflatOSShim
8 |
9 | public final class SQLiteWorkspace: Workspace {
| `- note: class 'SQLiteWorkspace' does not conform to the 'Sendable' protocol
10 |
11 | public enum FileProtectionLevel: Int32 {
:
819 | tableSpace.queue.asyncAfter(deadline: .now() + Self.RebuildIndexDelayOnDiskFull) {
820 | [weak self] in
821 | self?.beginRebuildIndex(Element.self, fields: fields)
| `- warning: capture of 'self' with non-sendable type 'SQLiteWorkspace?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
822 | }
823 | return
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:821:57: warning: capture of 'fields' with non-sendable type 'S' in a '@Sendable' closure; this is an error in the Swift 6 language mode
766 | }
767 |
768 | func beginRebuildIndex<Element: Atom, S: Sequence>(_ ofType: Element.Type, fields: S)
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
769 | where S.Element == String {
770 | guard
:
819 | tableSpace.queue.asyncAfter(deadline: .now() + Self.RebuildIndexDelayOnDiskFull) {
820 | [weak self] in
821 | self?.beginRebuildIndex(Element.self, fields: fields)
| `- warning: capture of 'fields' with non-sendable type 'S' in a '@Sendable' closure; this is an error in the Swift 6 language mode
822 | }
823 | return
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:14:37: error: cannot find type 'os_unfair_lock_s' in scope
12 | static let size = 12
13 | let namespace: String
14 | var locks: UnsafeMutablePointer<os_unfair_lock_s>
| `- error: cannot find type 'os_unfair_lock_s' in scope
15 | var dictionaries: [[String: Any]]
16 | var subscriptions: [[String: [ObjectIdentifier: (Any?) -> Void]]]
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:20:15: error: generic parameter 'Pointee' could not be inferred
18 | init(namespace: String) {
19 | self.namespace = namespace
20 | locks = UnsafeMutablePointer.allocate(capacity: Self.size)
| |- error: generic parameter 'Pointee' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
21 | locks.assign(repeating: os_unfair_lock(), count: Self.size)
22 | dictionaries = Array(repeating: [String: Any](), count: Self.size)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:21:31: error: cannot find 'os_unfair_lock' in scope
19 | self.namespace = namespace
20 | locks = UnsafeMutablePointer.allocate(capacity: Self.size)
21 | locks.assign(repeating: os_unfair_lock(), count: Self.size)
| `- error: cannot find 'os_unfair_lock' in scope
22 | dictionaries = Array(repeating: [String: Any](), count: Self.size)
23 | subscriptions = Array(
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:638:5: error: cannot find 'os_unfair_lock_lock' in scope
636 | key.hash(into: &hasher)
637 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
638 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
639 | return (dictionaries[hashValue][key], hashValue)
640 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:646:5: error: cannot find 'os_unfair_lock_lock' in scope
644 | key.hash(into: &hasher)
645 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
646 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
647 | return hashValue
648 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:654:5: error: cannot find 'os_unfair_lock_lock' in scope
652 | key.hash(into: &hasher)
653 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
654 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
655 | let oldValue = dictionaries[hashValue].updateValue(value, forKey: key)
656 | return (oldValue, hashValue)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:693:5: error: cannot find 'os_unfair_lock_lock' in scope
691 | @inline(__always)
692 | func lock(_ hashValue: Int) {
693 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
694 | }
695 | @inline(__always)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:697:5: error: cannot find 'os_unfair_lock_unlock' in scope
695 | @inline(__always)
696 | func unlock(_ hashValue: Int) {
697 | os_unfair_lock_unlock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
698 | }
699 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1155:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1153 | }
1154 | continuation.onTermination = { @Sendable _ in
1155 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1156 | }
1157 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
1 | import Atomics
2 | import Dflat
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
3 | import Dispatch
4 | import FlatBuffers
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1176:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1174 | }
1175 | continuation.onTermination = { @Sendable _ in
1176 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1177 | }
1178 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1196:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1194 | }
1195 | continuation.onTermination = { @Sendable _ in
1196 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1197 | }
1198 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1216:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1214 | }
1215 | continuation.onTermination = { @Sendable _ in
1216 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1217 | }
1218 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1236:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1234 | }
1235 | continuation.onTermination = { @Sendable _ in
1236 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1237 | }
1238 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1257:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1255 | }
1256 | continuation.onTermination = { @Sendable _ in
1257 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1258 | }
1259 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1278:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1276 | }
1277 | continuation.onTermination = { @Sendable _ in
1278 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1279 | }
1280 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1299:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1297 | }
1298 | continuation.onTermination = { @Sendable _ in
1299 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1300 | }
1301 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:12:5: error: cannot find 'os_unfair_lock_lock' in scope
10 |
11 | func serial<T>(_ closure: () -> T) -> T {
12 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
13 | let retval = closure()
14 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:14:5: error: cannot find 'os_unfair_lock_unlock' in scope
12 | os_unfair_lock_lock(&lock)
13 | let retval = closure()
14 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
15 | return retval
16 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:20:5: error: cannot find 'os_unfair_lock_lock' in scope
18 | func setTableTimestamp<S: Sequence>(_ timestamp: Int64, for identifiers: S)
19 | where S.Element == ObjectIdentifier {
20 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
21 | for identifier in identifiers {
22 | tableTimestamps[identifier] = timestamp
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:24:5: error: cannot find 'os_unfair_lock_unlock' in scope
22 | tableTimestamps[identifier] = timestamp
23 | }
24 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
25 | }
26 |
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:28:5: error: cannot find 'os_unfair_lock_lock' in scope
26 |
27 | func tableTimestamp(for identifier: ObjectIdentifier) -> Int64 {
28 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
29 | let tableTimestamp = tableTimestamps[identifier] ?? -1
30 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:30:5: error: cannot find 'os_unfair_lock_unlock' in scope
28 | os_unfair_lock_lock(&lock)
29 | let tableTimestamp = tableTimestamps[identifier] ?? -1
30 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
31 | return tableTimestamp
32 | }
[128/131] Compiling SQLiteDflat SQLiteWorkspaceState.swift
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:6:22: error: cannot find 'os_unfair_lock' in scope
4 | // This is a state shared for a workspace.
5 | final class SQLiteWorkspaceState {
6 | private var lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
7 | private var tableTimestamps = [ObjectIdentifier: Int64]()
8 | var changesTimestamp = UnsafeAtomic<Int64>.Storage(0)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:138:11: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
136 | group.enter()
137 | tableSpace.queue.async {
138 | tableSpace.lock()
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
139 | tableSpace.shutdown()
140 | tableSpace.unlock()
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:506:9: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
504 | // We don't need to prioritize this.
505 | tableSpace.queue.async {
506 | tableSpace.lock()
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
507 | defer { tableSpace.unlock() }
508 | // The publisher is manipulated after acquiring the lock.
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:507:17: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
505 | tableSpace.queue.async {
506 | tableSpace.lock()
507 | defer { tableSpace.unlock() }
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
508 | // The publisher is manipulated after acquiring the lock.
509 | guard let resultPublisher = tableSpace.resultPublisher else { return }
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:517:9: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
515 | // We don't need to prioritize this.
516 | tableSpace.queue.async {
517 | tableSpace.lock()
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
518 | defer { tableSpace.unlock() }
519 | guard let resultPublisher = tableSpace.resultPublisher else { return }
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:518:17: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
516 | tableSpace.queue.async {
517 | tableSpace.lock()
518 | defer { tableSpace.unlock() }
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
519 | guard let resultPublisher = tableSpace.resultPublisher else { return }
520 | resultPublisher.cancel(object: rowid, identifier: identifier)
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:568:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
566 | }
567 | continuation.onTermination = { @Sendable _ in
568 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
569 | }
570 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
1 | import Atomics
2 | import Dflat
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
3 | import Dispatch
4 | import FlatBuffers
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:583:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
581 | }
582 | continuation.onTermination = { @Sendable _ in
583 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
584 | }
585 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:779:24: warning: capture of 'self' with non-sendable type 'SQLiteWorkspace?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import _SQLiteDflatOSShim
8 |
9 | public final class SQLiteWorkspace: Workspace {
| `- note: class 'SQLiteWorkspace' does not conform to the 'Sendable' protocol
10 |
11 | public enum FileProtectionLevel: Int32 {
:
777 | // We don't need to bump the priority for this.
778 | tableSpace.queue.async { [weak self] in
779 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'SQLiteWorkspace?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
780 | guard let connection = tableSpace.connect({ self.newConnection() }) else { return }
781 | let SQLiteElement = Element.self as! SQLiteAtom.Type
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:780:30: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
778 | tableSpace.queue.async { [weak self] in
779 | guard let self = self else { return }
780 | guard let connection = tableSpace.connect({ self.newConnection() }) else { return }
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in a '@Sendable' closure; this is an error in the Swift 6 language mode
781 | let SQLiteElement = Element.self as! SQLiteAtom.Type
782 | let toolbox = SQLitePersistenceToolbox(connection: connection)
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:792:48: warning: capture of 'fields' with non-sendable type 'S' in a '@Sendable' closure; this is an error in the Swift 6 language mode
766 | }
767 |
768 | func beginRebuildIndex<Element: Atom, S: Sequence>(_ ofType: Element.Type, fields: S)
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
769 | where S.Element == String {
770 | guard
:
790 | tableSpace.state.tableCreated.insert(objectType)
791 | }
792 | let indexSurvey = connection.indexSurvey(fields, table: table)
| `- warning: capture of 'fields' with non-sendable type 'S' in a '@Sendable' closure; this is an error in the Swift 6 language mode
793 | // Obtain a exclusive lock, see discussions in SQLiteTransactionContext for why.
794 | let begin = connection.prepareStaticStatement("BEGIN IMMEDIATE")
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:786:15: warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
784 | // It is OK to create connection, etc. before acquiring the lock as long as we don't do mutation.
785 | tableSpace.lock()
786 | defer { tableSpace.unlock() }
| `- warning: capture of 'tableSpace' with non-sendable type 'any SQLiteTableSpace' in an isolated local function; this is an error in the Swift 6 language mode
787 | // Make sure the table exists before we query.
788 | if !tableSpace.state.tableCreated.contains(objectType) {
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:3:10: note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
1 | import Dispatch
2 |
3 | protocol SQLiteTableSpace: AnyObject {
| `- note: protocol 'SQLiteTableSpace' does not conform to the 'Sendable' protocol
4 | var queue: DispatchQueue { get }
5 | var state: SQLiteTableState { get }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:821:11: warning: capture of 'self' with non-sendable type 'SQLiteWorkspace?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
7 | import _SQLiteDflatOSShim
8 |
9 | public final class SQLiteWorkspace: Workspace {
| `- note: class 'SQLiteWorkspace' does not conform to the 'Sendable' protocol
10 |
11 | public enum FileProtectionLevel: Int32 {
:
819 | tableSpace.queue.asyncAfter(deadline: .now() + Self.RebuildIndexDelayOnDiskFull) {
820 | [weak self] in
821 | self?.beginRebuildIndex(Element.self, fields: fields)
| `- warning: capture of 'self' with non-sendable type 'SQLiteWorkspace?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
822 | }
823 | return
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspace.swift:821:57: warning: capture of 'fields' with non-sendable type 'S' in a '@Sendable' closure; this is an error in the Swift 6 language mode
766 | }
767 |
768 | func beginRebuildIndex<Element: Atom, S: Sequence>(_ ofType: Element.Type, fields: S)
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
769 | where S.Element == String {
770 | guard
:
819 | tableSpace.queue.asyncAfter(deadline: .now() + Self.RebuildIndexDelayOnDiskFull) {
820 | [weak self] in
821 | self?.beginRebuildIndex(Element.self, fields: fields)
| `- warning: capture of 'fields' with non-sendable type 'S' in a '@Sendable' closure; this is an error in the Swift 6 language mode
822 | }
823 | return
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:14:37: error: cannot find type 'os_unfair_lock_s' in scope
12 | static let size = 12
13 | let namespace: String
14 | var locks: UnsafeMutablePointer<os_unfair_lock_s>
| `- error: cannot find type 'os_unfair_lock_s' in scope
15 | var dictionaries: [[String: Any]]
16 | var subscriptions: [[String: [ObjectIdentifier: (Any?) -> Void]]]
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:20:15: error: generic parameter 'Pointee' could not be inferred
18 | init(namespace: String) {
19 | self.namespace = namespace
20 | locks = UnsafeMutablePointer.allocate(capacity: Self.size)
| |- error: generic parameter 'Pointee' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
21 | locks.assign(repeating: os_unfair_lock(), count: Self.size)
22 | dictionaries = Array(repeating: [String: Any](), count: Self.size)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:21:31: error: cannot find 'os_unfair_lock' in scope
19 | self.namespace = namespace
20 | locks = UnsafeMutablePointer.allocate(capacity: Self.size)
21 | locks.assign(repeating: os_unfair_lock(), count: Self.size)
| `- error: cannot find 'os_unfair_lock' in scope
22 | dictionaries = Array(repeating: [String: Any](), count: Self.size)
23 | subscriptions = Array(
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:638:5: error: cannot find 'os_unfair_lock_lock' in scope
636 | key.hash(into: &hasher)
637 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
638 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
639 | return (dictionaries[hashValue][key], hashValue)
640 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:646:5: error: cannot find 'os_unfair_lock_lock' in scope
644 | key.hash(into: &hasher)
645 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
646 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
647 | return hashValue
648 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:654:5: error: cannot find 'os_unfair_lock_lock' in scope
652 | key.hash(into: &hasher)
653 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
654 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
655 | let oldValue = dictionaries[hashValue].updateValue(value, forKey: key)
656 | return (oldValue, hashValue)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:693:5: error: cannot find 'os_unfair_lock_lock' in scope
691 | @inline(__always)
692 | func lock(_ hashValue: Int) {
693 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
694 | }
695 | @inline(__always)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:697:5: error: cannot find 'os_unfair_lock_unlock' in scope
695 | @inline(__always)
696 | func unlock(_ hashValue: Int) {
697 | os_unfair_lock_unlock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
698 | }
699 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1155:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1153 | }
1154 | continuation.onTermination = { @Sendable _ in
1155 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1156 | }
1157 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
1 | import Atomics
2 | import Dflat
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dflat'
3 | import Dispatch
4 | import FlatBuffers
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1176:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1174 | }
1175 | continuation.onTermination = { @Sendable _ in
1176 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1177 | }
1178 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1196:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1194 | }
1195 | continuation.onTermination = { @Sendable _ in
1196 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1197 | }
1198 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1216:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1214 | }
1215 | continuation.onTermination = { @Sendable _ in
1216 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1217 | }
1218 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1236:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1234 | }
1235 | continuation.onTermination = { @Sendable _ in
1236 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1237 | }
1238 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1257:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1255 | }
1256 | continuation.onTermination = { @Sendable _ in
1257 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1258 | }
1259 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1278:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1276 | }
1277 | continuation.onTermination = { @Sendable _ in
1278 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1279 | }
1280 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:1299:11: warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1297 | }
1298 | continuation.onTermination = { @Sendable _ in
1299 | cancellable.cancel()
| `- warning: capture of 'cancellable' with non-sendable type 'any WorkspaceSubscription' in a '@Sendable' closure; this is an error in the Swift 6 language mode
1300 | }
1301 | }
/host/spi-builder-workspace/src/Workspace.swift:14:17: note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
12 | }
13 |
14 | public protocol WorkspaceSubscription {
| `- note: protocol 'WorkspaceSubscription' does not conform to the 'Sendable' protocol
15 | /**
16 | * Cancel an existing subscription. It is guaranteed that no callback will happen
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:12:5: error: cannot find 'os_unfair_lock_lock' in scope
10 |
11 | func serial<T>(_ closure: () -> T) -> T {
12 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
13 | let retval = closure()
14 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:14:5: error: cannot find 'os_unfair_lock_unlock' in scope
12 | os_unfair_lock_lock(&lock)
13 | let retval = closure()
14 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
15 | return retval
16 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:20:5: error: cannot find 'os_unfair_lock_lock' in scope
18 | func setTableTimestamp<S: Sequence>(_ timestamp: Int64, for identifiers: S)
19 | where S.Element == ObjectIdentifier {
20 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
21 | for identifier in identifiers {
22 | tableTimestamps[identifier] = timestamp
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:24:5: error: cannot find 'os_unfair_lock_unlock' in scope
22 | tableTimestamps[identifier] = timestamp
23 | }
24 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
25 | }
26 |
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:28:5: error: cannot find 'os_unfair_lock_lock' in scope
26 |
27 | func tableTimestamp(for identifier: ObjectIdentifier) -> Int64 {
28 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
29 | let tableTimestamp = tableTimestamps[identifier] ?? -1
30 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:30:5: error: cannot find 'os_unfair_lock_unlock' in scope
28 | os_unfair_lock_lock(&lock)
29 | let tableTimestamp = tableTimestamps[identifier] ?? -1
30 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
31 | return tableTimestamp
32 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/10] Write swift-version-24593BA9C3E375BF.txt
[4/48] Compiling Atomics UnsafeAtomic.swift
[5/48] Compiling Atomics UnsafeAtomicLazyReference.swift
[6/50] Compiling Atomics ManagedAtomicLazyReference.swift
[7/50] Compiling Atomics AtomicMemoryOrderings.swift
[8/50] Compiling Atomics DoubleWord.swift
[9/50] Compiling Atomics AtomicValue.swift
[10/50] Compiling Atomics ManagedAtomic.swift
[15/52] Emitting module FlatBuffers
[18/52] Compiling Atomics Primitives.shims.swift
[19/52] Compiling Atomics AtomicInteger.swift
[20/52] Compiling Atomics AtomicOptionalWrappable.swift
[24/52] Compiling Atomics AtomicReference.swift
[25/52] Compiling Atomics AtomicStorage.swift
[27/52] Compiling FlatBuffers Verifiable.swift
[28/52] Compiling FlatBuffers Verifier.swift
[33/52] Compiling Atomics OptionalRawRepresentable.swift
[34/52] Compiling Atomics RawRepresentable.swift
[35/52] Compiling Atomics AtomicBool.swift
[36/52] Compiling Atomics IntegerConformances.swift
[37/52] Compiling Atomics PointerConformances.swift
[38/52] Compiling Atomics Primitives.native.swift
[39/53] Wrapping AST for FlatBuffers for debugging
[44/53] Emitting module Atomics
[48/55] Wrapping AST for Atomics for debugging
[50/93] Compiling Dflat SQLiteAnd.swift
[51/93] Compiling Dflat SQLiteEqualTo.swift
[52/93] Compiling Dflat SQLiteField.swift
[53/93] Compiling Dflat SQLiteIn.swift
[54/93] Compiling Dflat SQLiteIsNotNull.swift
[55/98] Compiling Dflat Atom.swift
[56/98] Compiling Dflat ChangeRequest.swift
[57/98] Compiling Dflat Expr.swift
[58/98] Compiling Dflat FetchedResult.swift
[59/98] Compiling Dflat FlatBuffersCodable.swift
[60/98] Compiling Dflat Publisher.swift
[61/98] Compiling Dflat NotIn.swift
/host/spi-builder-workspace/src/exprs/Value.swift:5:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
3 | public protocol DflatFriendlyValue: Comparable, Hashable {}
4 |
5 | extension Bool: Comparable {
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | @inlinable
7 | public static func < (lhs: Bool, rhs: Bool) -> Bool {
[62/98] Compiling Dflat Or.swift
/host/spi-builder-workspace/src/exprs/Value.swift:5:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
3 | public protocol DflatFriendlyValue: Comparable, Hashable {}
4 |
5 | extension Bool: Comparable {
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | @inlinable
7 | public static func < (lhs: Bool, rhs: Bool) -> Bool {
[63/98] Compiling Dflat Subtraction.swift
/host/spi-builder-workspace/src/exprs/Value.swift:5:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
3 | public protocol DflatFriendlyValue: Comparable, Hashable {}
4 |
5 | extension Bool: Comparable {
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | @inlinable
7 | public static func < (lhs: Bool, rhs: Bool) -> Bool {
[64/98] Compiling Dflat Value.swift
/host/spi-builder-workspace/src/exprs/Value.swift:5:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
3 | public protocol DflatFriendlyValue: Comparable, Hashable {}
4 |
5 | extension Bool: Comparable {
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | @inlinable
7 | public static func < (lhs: Bool, rhs: Bool) -> Bool {
[65/98] Compiling Dflat SQLiteAddition.swift
/host/spi-builder-workspace/src/exprs/Value.swift:5:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
3 | public protocol DflatFriendlyValue: Comparable, Hashable {}
4 |
5 | extension Bool: Comparable {
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | @inlinable
7 | public static func < (lhs: Bool, rhs: Bool) -> Bool {
[66/98] Compiling Dflat QueryBuilder.swift
[67/98] Compiling Dflat SQLiteExpr.swift
[68/98] Compiling Dflat TransactionContext.swift
[69/98] Compiling Dflat Workspace.swift
[70/98] Compiling Dflat Addition.swift
[71/98] Compiling Dflat And.swift
[72/98] Compiling Dflat SQLiteIsNull.swift
[73/98] Compiling Dflat SQLiteLessThan.swift
[74/98] Compiling Dflat SQLiteLessThanOrEqualTo.swift
[75/98] Compiling Dflat SQLiteMod.swift
[76/98] Compiling Dflat SQLiteNot.swift
[77/98] Compiling Dflat EqualTo.swift
[78/98] Compiling Dflat Field.swift
[79/98] Compiling Dflat In.swift
[80/98] Compiling Dflat IsNotNull.swift
[81/98] Compiling Dflat IsNull.swift
[82/98] Compiling Dflat LessThan.swift
[83/98] Compiling Dflat LessThanOrEqualTo.swift
[84/98] Compiling Dflat Mod.swift
[85/98] Compiling Dflat Not.swift
[86/98] Compiling Dflat NotEqualTo.swift
[87/98] Compiling Dflat SQLiteNotEqualTo.swift
[88/98] Compiling Dflat SQLiteNotIn.swift
[89/98] Compiling Dflat SQLiteOr.swift
[90/98] Compiling Dflat SQLiteSubtraction.swift
[91/98] Compiling Dflat SQLiteValue.swift
[92/98] Emitting module Dflat
/host/spi-builder-workspace/src/exprs/Value.swift:5:1: warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
3 | public protocol DflatFriendlyValue: Comparable, Hashable {}
4 |
5 | extension Bool: Comparable {
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | @inlinable
7 | public static func < (lhs: Bool, rhs: Bool) -> Bool {
[93/99] Wrapping AST for Dflat for debugging
[94/99] Write Objects.LinkFileList
[95/99] Archiving libDflat.a
[97/120] Compiling SQLiteDflat OSShim.swift
[98/120] Compiling SQLiteDflat SQLiteAtom.swift
[99/120] Compiling SQLiteDflat SQLiteConnection.swift
[100/120] Compiling SQLiteDflat SQLiteObjectRepository.swift
[101/120] Compiling SQLiteDflat SQLitePersistenceToolbox.swift
[102/120] Compiling SQLiteDflat SQLitePublisher.swift
[103/122] Compiling SQLiteDflat SQLiteQueryBuilder.swift
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:21:22: error: cannot find type 'os_unfair_lock_s' in scope
19 | private var connection: SQLiteConnection? = nil
20 | private var _shutdown: Bool = false
21 | private var _lock: os_unfair_lock_s = os_unfair_lock()
| `- error: cannot find type 'os_unfair_lock_s' in scope
22 | init(queue: DispatchQueue) {
23 | self.queue = queue
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:37:5: error: cannot find 'os_unfair_lock_lock' in scope
35 | }
36 | func lock() {
37 | os_unfair_lock_lock(&_lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
38 | }
39 | func unlock() {
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:40:5: error: cannot find 'os_unfair_lock_unlock' in scope
38 | }
39 | func unlock() {
40 | os_unfair_lock_unlock(&_lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
41 | }
42 | func resume() {
[104/122] Compiling SQLiteDflat SQLiteResultPublisher.swift
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:21:22: error: cannot find type 'os_unfair_lock_s' in scope
19 | private var connection: SQLiteConnection? = nil
20 | private var _shutdown: Bool = false
21 | private var _lock: os_unfair_lock_s = os_unfair_lock()
| `- error: cannot find type 'os_unfair_lock_s' in scope
22 | init(queue: DispatchQueue) {
23 | self.queue = queue
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:37:5: error: cannot find 'os_unfair_lock_lock' in scope
35 | }
36 | func lock() {
37 | os_unfair_lock_lock(&_lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
38 | }
39 | func unlock() {
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:40:5: error: cannot find 'os_unfair_lock_unlock' in scope
38 | }
39 | func unlock() {
40 | os_unfair_lock_unlock(&_lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
41 | }
42 | func resume() {
[105/122] Compiling SQLiteDflat SQLiteTableSpace.swift
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:21:22: error: cannot find type 'os_unfair_lock_s' in scope
19 | private var connection: SQLiteConnection? = nil
20 | private var _shutdown: Bool = false
21 | private var _lock: os_unfair_lock_s = os_unfair_lock()
| `- error: cannot find type 'os_unfair_lock_s' in scope
22 | init(queue: DispatchQueue) {
23 | self.queue = queue
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:37:5: error: cannot find 'os_unfair_lock_lock' in scope
35 | }
36 | func lock() {
37 | os_unfair_lock_lock(&_lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
38 | }
39 | func unlock() {
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:40:5: error: cannot find 'os_unfair_lock_unlock' in scope
38 | }
39 | func unlock() {
40 | os_unfair_lock_unlock(&_lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
41 | }
42 | func resume() {
[106/122] Compiling SQLiteDflat SQLiteConnectionPool.swift
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:23:21: error: cannot find type 'os_unfair_lock_s' in scope
21 | private let flowControl: DispatchSemaphore
22 | private let capacity: Int
23 | private var lock: os_unfair_lock_s
| `- error: cannot find type 'os_unfair_lock_s' in scope
24 | private var shutdown: Bool
25 | init(capacity: Int, filePath: String) {
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:29:12: error: cannot find 'os_unfair_lock' in scope
27 | self.filePath = filePath
28 | flowControl = DispatchSemaphore(value: capacity)
29 | lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
30 | shutdown = false
31 | }
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:33:5: error: cannot find 'os_unfair_lock_lock' in scope
31 | }
32 | func drain() {
33 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
34 | shutdown = true
35 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:35:5: error: cannot find 'os_unfair_lock_unlock' in scope
33 | os_unfair_lock_lock(&lock)
34 | shutdown = true
35 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
36 | // Simply wait out any and every connection we give out.
37 | for _ in 0..<capacity {
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:51:5: error: cannot find 'os_unfair_lock_lock' in scope
49 | func borrow() -> Borrowed {
50 | flowControl.wait()
51 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
52 | // If we shutdown, give out nil.
53 | if shutdown {
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:54:7: error: cannot find 'os_unfair_lock_unlock' in scope
52 | // If we shutdown, give out nil.
53 | if shutdown {
54 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
55 | flowControl.signal()
56 | return Borrowed(pointee: nil, pool: nil)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:61:7: error: cannot find 'os_unfair_lock_unlock' in scope
59 | if let connection = pool.last {
60 | pool.removeLast()
61 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
62 | return Borrowed(pointee: connection, pool: self)
63 | }
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:64:5: error: cannot find 'os_unfair_lock_unlock' in scope
62 | return Borrowed(pointee: connection, pool: self)
63 | }
64 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
65 | let pointee = SQLiteConnection(filePath: filePath, createIfMissing: false, readOnly: true)
66 | if pointee == nil { // This is unusual, but we give out a nil.
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:67:7: error: cannot find 'os_unfair_lock_lock' in scope
65 | let pointee = SQLiteConnection(filePath: filePath, createIfMissing: false, readOnly: true)
66 | if pointee == nil { // This is unusual, but we give out a nil.
67 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
68 | os_unfair_lock_unlock(&lock)
69 | flowControl.signal()
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:68:7: error: cannot find 'os_unfair_lock_unlock' in scope
66 | if pointee == nil { // This is unusual, but we give out a nil.
67 | os_unfair_lock_lock(&lock)
68 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
69 | flowControl.signal()
70 | return Borrowed(pointee: pointee, pool: nil)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:76:5: error: cannot find 'os_unfair_lock_lock' in scope
74 | }
75 | fileprivate func add(_ connection: SQLiteConnection) {
76 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
77 | pool.append(connection)
78 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:78:5: error: cannot find 'os_unfair_lock_unlock' in scope
76 | os_unfair_lock_lock(&lock)
77 | pool.append(connection)
78 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
79 | flowControl.signal()
80 | }
[107/122] Compiling SQLiteDflat SQLiteExpr.swift
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:23:21: error: cannot find type 'os_unfair_lock_s' in scope
21 | private let flowControl: DispatchSemaphore
22 | private let capacity: Int
23 | private var lock: os_unfair_lock_s
| `- error: cannot find type 'os_unfair_lock_s' in scope
24 | private var shutdown: Bool
25 | init(capacity: Int, filePath: String) {
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:29:12: error: cannot find 'os_unfair_lock' in scope
27 | self.filePath = filePath
28 | flowControl = DispatchSemaphore(value: capacity)
29 | lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
30 | shutdown = false
31 | }
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:33:5: error: cannot find 'os_unfair_lock_lock' in scope
31 | }
32 | func drain() {
33 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
34 | shutdown = true
35 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:35:5: error: cannot find 'os_unfair_lock_unlock' in scope
33 | os_unfair_lock_lock(&lock)
34 | shutdown = true
35 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
36 | // Simply wait out any and every connection we give out.
37 | for _ in 0..<capacity {
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:51:5: error: cannot find 'os_unfair_lock_lock' in scope
49 | func borrow() -> Borrowed {
50 | flowControl.wait()
51 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
52 | // If we shutdown, give out nil.
53 | if shutdown {
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:54:7: error: cannot find 'os_unfair_lock_unlock' in scope
52 | // If we shutdown, give out nil.
53 | if shutdown {
54 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
55 | flowControl.signal()
56 | return Borrowed(pointee: nil, pool: nil)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:61:7: error: cannot find 'os_unfair_lock_unlock' in scope
59 | if let connection = pool.last {
60 | pool.removeLast()
61 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
62 | return Borrowed(pointee: connection, pool: self)
63 | }
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:64:5: error: cannot find 'os_unfair_lock_unlock' in scope
62 | return Borrowed(pointee: connection, pool: self)
63 | }
64 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
65 | let pointee = SQLiteConnection(filePath: filePath, createIfMissing: false, readOnly: true)
66 | if pointee == nil { // This is unusual, but we give out a nil.
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:67:7: error: cannot find 'os_unfair_lock_lock' in scope
65 | let pointee = SQLiteConnection(filePath: filePath, createIfMissing: false, readOnly: true)
66 | if pointee == nil { // This is unusual, but we give out a nil.
67 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
68 | os_unfair_lock_unlock(&lock)
69 | flowControl.signal()
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:68:7: error: cannot find 'os_unfair_lock_unlock' in scope
66 | if pointee == nil { // This is unusual, but we give out a nil.
67 | os_unfair_lock_lock(&lock)
68 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
69 | flowControl.signal()
70 | return Borrowed(pointee: pointee, pool: nil)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:76:5: error: cannot find 'os_unfair_lock_lock' in scope
74 | }
75 | fileprivate func add(_ connection: SQLiteConnection) {
76 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
77 | pool.append(connection)
78 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:78:5: error: cannot find 'os_unfair_lock_unlock' in scope
76 | os_unfair_lock_lock(&lock)
77 | pool.append(connection)
78 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
79 | flowControl.signal()
80 | }
[108/122] Compiling SQLiteDflat SQLiteFetchedResult.swift
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:23:21: error: cannot find type 'os_unfair_lock_s' in scope
21 | private let flowControl: DispatchSemaphore
22 | private let capacity: Int
23 | private var lock: os_unfair_lock_s
| `- error: cannot find type 'os_unfair_lock_s' in scope
24 | private var shutdown: Bool
25 | init(capacity: Int, filePath: String) {
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:29:12: error: cannot find 'os_unfair_lock' in scope
27 | self.filePath = filePath
28 | flowControl = DispatchSemaphore(value: capacity)
29 | lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
30 | shutdown = false
31 | }
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:33:5: error: cannot find 'os_unfair_lock_lock' in scope
31 | }
32 | func drain() {
33 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
34 | shutdown = true
35 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:35:5: error: cannot find 'os_unfair_lock_unlock' in scope
33 | os_unfair_lock_lock(&lock)
34 | shutdown = true
35 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
36 | // Simply wait out any and every connection we give out.
37 | for _ in 0..<capacity {
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:51:5: error: cannot find 'os_unfair_lock_lock' in scope
49 | func borrow() -> Borrowed {
50 | flowControl.wait()
51 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
52 | // If we shutdown, give out nil.
53 | if shutdown {
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:54:7: error: cannot find 'os_unfair_lock_unlock' in scope
52 | // If we shutdown, give out nil.
53 | if shutdown {
54 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
55 | flowControl.signal()
56 | return Borrowed(pointee: nil, pool: nil)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:61:7: error: cannot find 'os_unfair_lock_unlock' in scope
59 | if let connection = pool.last {
60 | pool.removeLast()
61 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
62 | return Borrowed(pointee: connection, pool: self)
63 | }
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:64:5: error: cannot find 'os_unfair_lock_unlock' in scope
62 | return Borrowed(pointee: connection, pool: self)
63 | }
64 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
65 | let pointee = SQLiteConnection(filePath: filePath, createIfMissing: false, readOnly: true)
66 | if pointee == nil { // This is unusual, but we give out a nil.
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:67:7: error: cannot find 'os_unfair_lock_lock' in scope
65 | let pointee = SQLiteConnection(filePath: filePath, createIfMissing: false, readOnly: true)
66 | if pointee == nil { // This is unusual, but we give out a nil.
67 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
68 | os_unfair_lock_unlock(&lock)
69 | flowControl.signal()
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:68:7: error: cannot find 'os_unfair_lock_unlock' in scope
66 | if pointee == nil { // This is unusual, but we give out a nil.
67 | os_unfair_lock_lock(&lock)
68 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
69 | flowControl.signal()
70 | return Borrowed(pointee: pointee, pool: nil)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:76:5: error: cannot find 'os_unfair_lock_lock' in scope
74 | }
75 | fileprivate func add(_ connection: SQLiteConnection) {
76 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
77 | pool.append(connection)
78 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:78:5: error: cannot find 'os_unfair_lock_unlock' in scope
76 | os_unfair_lock_lock(&lock)
77 | pool.append(connection)
78 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
79 | flowControl.signal()
80 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[109/122] Emitting module SQLiteDflat
/host/spi-builder-workspace/src/sqlite/SQLiteConnectionPool.swift:23:21: error: cannot find type 'os_unfair_lock_s' in scope
21 | private let flowControl: DispatchSemaphore
22 | private let capacity: Int
23 | private var lock: os_unfair_lock_s
| `- error: cannot find type 'os_unfair_lock_s' in scope
24 | private var shutdown: Bool
25 | init(capacity: Int, filePath: String) {
/host/spi-builder-workspace/src/sqlite/SQLiteTableSpace.swift:21:22: error: cannot find type 'os_unfair_lock_s' in scope
19 | private var connection: SQLiteConnection? = nil
20 | private var _shutdown: Bool = false
21 | private var _lock: os_unfair_lock_s = os_unfair_lock()
| `- error: cannot find type 'os_unfair_lock_s' in scope
22 | init(queue: DispatchQueue) {
23 | self.queue = queue
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:6:1: warning: extension declares a conformance of imported type 'Bool' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
4 | // MARK - Implement binding for SQLite.
5 |
6 | extension Bool: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
7 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
8 | sqlite3_bind_int(query, parameterId, self ? 1 : 0)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:11:1: warning: extension declares a conformance of imported type 'Int8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
9 | }
10 | }
11 | extension Int8: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
12 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
13 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:16:1: warning: extension declares a conformance of imported type 'UInt8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
14 | }
15 | }
16 | extension UInt8: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
18 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:21:1: warning: extension declares a conformance of imported type 'Int16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
19 | }
20 | }
21 | extension Int16: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
22 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
23 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:26:1: warning: extension declares a conformance of imported type 'UInt16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
24 | }
25 | }
26 | extension UInt16: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
27 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
28 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:31:1: warning: extension declares a conformance of imported type 'Int32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
29 | }
30 | }
31 | extension Int32: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
32 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
33 | sqlite3_bind_int(query, parameterId, self)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:36:1: warning: extension declares a conformance of imported type 'UInt32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
34 | }
35 | }
36 | extension UInt32: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
37 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
38 | sqlite3_bind_int(query, parameterId, Int32(bitPattern: self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:41:1: warning: extension declares a conformance of imported type 'Int64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
39 | }
40 | }
41 | extension Int64: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
42 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
43 | sqlite3_bind_int64(query, parameterId, self)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:46:1: warning: extension declares a conformance of imported type 'UInt64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
44 | }
45 | }
46 | extension UInt64: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
47 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
48 | sqlite3_bind_int64(query, parameterId, Int64(bitPattern: self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:51:1: warning: extension declares a conformance of imported type 'Float' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
49 | }
50 | }
51 | extension Float: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Float' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
52 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
53 | sqlite3_bind_double(query, parameterId, Double(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:56:1: warning: extension declares a conformance of imported type 'Double' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
54 | }
55 | }
56 | extension Double: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Double' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
57 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
58 | sqlite3_bind_double(query, parameterId, self)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:61:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
59 | }
60 | }
61 | extension String: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
62 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
63 | // This is not ideal, but there isn't a good way to guarentee life-cycle of the String from Swift.
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:14:37: error: cannot find type 'os_unfair_lock_s' in scope
12 | static let size = 12
13 | let namespace: String
14 | var locks: UnsafeMutablePointer<os_unfair_lock_s>
| `- error: cannot find type 'os_unfair_lock_s' in scope
15 | var dictionaries: [[String: Any]]
16 | var subscriptions: [[String: [ObjectIdentifier: (Any?) -> Void]]]
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:6:22: error: cannot find 'os_unfair_lock' in scope
4 | // This is a state shared for a workspace.
5 | final class SQLiteWorkspaceState {
6 | private var lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
7 | private var tableTimestamps = [ObjectIdentifier: Int64]()
8 | var changesTimestamp = UnsafeAtomic<Int64>.Storage(0)
[110/122] Compiling SQLiteDflat dict_mutating_generated.swift
[111/122] Compiling SQLiteDflat dict_query_generated.swift
[112/122] Compiling SQLiteDflat SQLiteTableState.swift
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:6:1: warning: extension declares a conformance of imported type 'Bool' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
4 | // MARK - Implement binding for SQLite.
5 |
6 | extension Bool: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
7 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
8 | sqlite3_bind_int(query, parameterId, self ? 1 : 0)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:11:1: warning: extension declares a conformance of imported type 'Int8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
9 | }
10 | }
11 | extension Int8: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
12 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
13 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:16:1: warning: extension declares a conformance of imported type 'UInt8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
14 | }
15 | }
16 | extension UInt8: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
18 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:21:1: warning: extension declares a conformance of imported type 'Int16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
19 | }
20 | }
21 | extension Int16: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
22 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
23 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:26:1: warning: extension declares a conformance of imported type 'UInt16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
24 | }
25 | }
26 | extension UInt16: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
27 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
28 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:31:1: warning: extension declares a conformance of imported type 'Int32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
29 | }
30 | }
31 | extension Int32: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
32 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
33 | sqlite3_bind_int(query, parameterId, self)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:36:1: warning: extension declares a conformance of imported type 'UInt32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
34 | }
35 | }
36 | extension UInt32: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
37 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
38 | sqlite3_bind_int(query, parameterId, Int32(bitPattern: self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:41:1: warning: extension declares a conformance of imported type 'Int64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
39 | }
40 | }
41 | extension Int64: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
42 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
43 | sqlite3_bind_int64(query, parameterId, self)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:46:1: warning: extension declares a conformance of imported type 'UInt64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
44 | }
45 | }
46 | extension UInt64: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
47 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
48 | sqlite3_bind_int64(query, parameterId, Int64(bitPattern: self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:51:1: warning: extension declares a conformance of imported type 'Float' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
49 | }
50 | }
51 | extension Float: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Float' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
52 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
53 | sqlite3_bind_double(query, parameterId, Double(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:56:1: warning: extension declares a conformance of imported type 'Double' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
54 | }
55 | }
56 | extension Double: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Double' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
57 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
58 | sqlite3_bind_double(query, parameterId, self)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:61:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
59 | }
60 | }
61 | extension String: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
62 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
63 | // This is not ideal, but there isn't a good way to guarentee life-cycle of the String from Swift.
[113/122] Compiling SQLiteDflat SQLiteTransactionContext.swift
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:6:1: warning: extension declares a conformance of imported type 'Bool' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
4 | // MARK - Implement binding for SQLite.
5 |
6 | extension Bool: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
7 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
8 | sqlite3_bind_int(query, parameterId, self ? 1 : 0)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:11:1: warning: extension declares a conformance of imported type 'Int8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
9 | }
10 | }
11 | extension Int8: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
12 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
13 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:16:1: warning: extension declares a conformance of imported type 'UInt8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
14 | }
15 | }
16 | extension UInt8: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
18 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:21:1: warning: extension declares a conformance of imported type 'Int16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
19 | }
20 | }
21 | extension Int16: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
22 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
23 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:26:1: warning: extension declares a conformance of imported type 'UInt16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
24 | }
25 | }
26 | extension UInt16: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
27 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
28 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:31:1: warning: extension declares a conformance of imported type 'Int32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
29 | }
30 | }
31 | extension Int32: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
32 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
33 | sqlite3_bind_int(query, parameterId, self)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:36:1: warning: extension declares a conformance of imported type 'UInt32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
34 | }
35 | }
36 | extension UInt32: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
37 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
38 | sqlite3_bind_int(query, parameterId, Int32(bitPattern: self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:41:1: warning: extension declares a conformance of imported type 'Int64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
39 | }
40 | }
41 | extension Int64: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
42 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
43 | sqlite3_bind_int64(query, parameterId, self)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:46:1: warning: extension declares a conformance of imported type 'UInt64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
44 | }
45 | }
46 | extension UInt64: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
47 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
48 | sqlite3_bind_int64(query, parameterId, Int64(bitPattern: self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:51:1: warning: extension declares a conformance of imported type 'Float' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
49 | }
50 | }
51 | extension Float: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Float' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
52 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
53 | sqlite3_bind_double(query, parameterId, Double(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:56:1: warning: extension declares a conformance of imported type 'Double' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
54 | }
55 | }
56 | extension Double: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Double' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
57 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
58 | sqlite3_bind_double(query, parameterId, self)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:61:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
59 | }
60 | }
61 | extension String: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
62 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
63 | // This is not ideal, but there isn't a good way to guarentee life-cycle of the String from Swift.
[114/122] Compiling SQLiteDflat SQLiteValue.swift
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:6:1: warning: extension declares a conformance of imported type 'Bool' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
4 | // MARK - Implement binding for SQLite.
5 |
6 | extension Bool: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Bool' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
7 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
8 | sqlite3_bind_int(query, parameterId, self ? 1 : 0)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:11:1: warning: extension declares a conformance of imported type 'Int8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
9 | }
10 | }
11 | extension Int8: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
12 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
13 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:16:1: warning: extension declares a conformance of imported type 'UInt8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
14 | }
15 | }
16 | extension UInt8: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt8' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
18 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:21:1: warning: extension declares a conformance of imported type 'Int16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
19 | }
20 | }
21 | extension Int16: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
22 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
23 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:26:1: warning: extension declares a conformance of imported type 'UInt16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
24 | }
25 | }
26 | extension UInt16: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt16' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
27 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
28 | sqlite3_bind_int(query, parameterId, Int32(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:31:1: warning: extension declares a conformance of imported type 'Int32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
29 | }
30 | }
31 | extension Int32: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
32 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
33 | sqlite3_bind_int(query, parameterId, self)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:36:1: warning: extension declares a conformance of imported type 'UInt32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
34 | }
35 | }
36 | extension UInt32: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt32' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
37 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
38 | sqlite3_bind_int(query, parameterId, Int32(bitPattern: self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:41:1: warning: extension declares a conformance of imported type 'Int64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
39 | }
40 | }
41 | extension Int64: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Int64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
42 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
43 | sqlite3_bind_int64(query, parameterId, self)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:46:1: warning: extension declares a conformance of imported type 'UInt64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
44 | }
45 | }
46 | extension UInt64: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'UInt64' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
47 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
48 | sqlite3_bind_int64(query, parameterId, Int64(bitPattern: self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:51:1: warning: extension declares a conformance of imported type 'Float' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
49 | }
50 | }
51 | extension Float: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Float' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
52 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
53 | sqlite3_bind_double(query, parameterId, Double(self))
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:56:1: warning: extension declares a conformance of imported type 'Double' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
54 | }
55 | }
56 | extension Double: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'Double' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
57 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
58 | sqlite3_bind_double(query, parameterId, self)
/host/spi-builder-workspace/src/sqlite/SQLiteValue.swift:61:1: warning: extension declares a conformance of imported type 'String' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
59 | }
60 | }
61 | extension String: SQLiteValue {
| |- warning: extension declares a conformance of imported type 'String' to imported protocols 'SQLiteValue', 'SQLiteBinding'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
62 | public func bindSQLite(_ query: OpaquePointer, parameterId: Int32) {
63 | // This is not ideal, but there isn't a good way to guarentee life-cycle of the String from Swift.
[115/122] Compiling SQLiteDflat dict_data_model_generated.swift
[116/122] Compiling SQLiteDflat dict_generated.swift
[117/122] Compiling SQLiteDflat SQLiteWorkspace.swift
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:14:37: error: cannot find type 'os_unfair_lock_s' in scope
12 | static let size = 12
13 | let namespace: String
14 | var locks: UnsafeMutablePointer<os_unfair_lock_s>
| `- error: cannot find type 'os_unfair_lock_s' in scope
15 | var dictionaries: [[String: Any]]
16 | var subscriptions: [[String: [ObjectIdentifier: (Any?) -> Void]]]
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:20:15: error: generic parameter 'Pointee' could not be inferred
18 | init(namespace: String) {
19 | self.namespace = namespace
20 | locks = UnsafeMutablePointer.allocate(capacity: Self.size)
| |- error: generic parameter 'Pointee' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
21 | locks.assign(repeating: os_unfair_lock(), count: Self.size)
22 | dictionaries = Array(repeating: [String: Any](), count: Self.size)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:21:31: error: cannot find 'os_unfair_lock' in scope
19 | self.namespace = namespace
20 | locks = UnsafeMutablePointer.allocate(capacity: Self.size)
21 | locks.assign(repeating: os_unfair_lock(), count: Self.size)
| `- error: cannot find 'os_unfair_lock' in scope
22 | dictionaries = Array(repeating: [String: Any](), count: Self.size)
23 | subscriptions = Array(
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:638:5: error: cannot find 'os_unfair_lock_lock' in scope
636 | key.hash(into: &hasher)
637 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
638 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
639 | return (dictionaries[hashValue][key], hashValue)
640 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:646:5: error: cannot find 'os_unfair_lock_lock' in scope
644 | key.hash(into: &hasher)
645 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
646 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
647 | return hashValue
648 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:654:5: error: cannot find 'os_unfair_lock_lock' in scope
652 | key.hash(into: &hasher)
653 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
654 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
655 | let oldValue = dictionaries[hashValue].updateValue(value, forKey: key)
656 | return (oldValue, hashValue)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:693:5: error: cannot find 'os_unfair_lock_lock' in scope
691 | @inline(__always)
692 | func lock(_ hashValue: Int) {
693 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
694 | }
695 | @inline(__always)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:697:5: error: cannot find 'os_unfair_lock_unlock' in scope
695 | @inline(__always)
696 | func unlock(_ hashValue: Int) {
697 | os_unfair_lock_unlock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
698 | }
699 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:6:22: error: cannot find 'os_unfair_lock' in scope
4 | // This is a state shared for a workspace.
5 | final class SQLiteWorkspaceState {
6 | private var lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
7 | private var tableTimestamps = [ObjectIdentifier: Int64]()
8 | var changesTimestamp = UnsafeAtomic<Int64>.Storage(0)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:12:5: error: cannot find 'os_unfair_lock_lock' in scope
10 |
11 | func serial<T>(_ closure: () -> T) -> T {
12 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
13 | let retval = closure()
14 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:14:5: error: cannot find 'os_unfair_lock_unlock' in scope
12 | os_unfair_lock_lock(&lock)
13 | let retval = closure()
14 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
15 | return retval
16 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:20:5: error: cannot find 'os_unfair_lock_lock' in scope
18 | func setTableTimestamp<S: Sequence>(_ timestamp: Int64, for identifiers: S)
19 | where S.Element == ObjectIdentifier {
20 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
21 | for identifier in identifiers {
22 | tableTimestamps[identifier] = timestamp
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:24:5: error: cannot find 'os_unfair_lock_unlock' in scope
22 | tableTimestamps[identifier] = timestamp
23 | }
24 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
25 | }
26 |
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:28:5: error: cannot find 'os_unfair_lock_lock' in scope
26 |
27 | func tableTimestamp(for identifier: ObjectIdentifier) -> Int64 {
28 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
29 | let tableTimestamp = tableTimestamps[identifier] ?? -1
30 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:30:5: error: cannot find 'os_unfair_lock_unlock' in scope
28 | os_unfair_lock_lock(&lock)
29 | let tableTimestamp = tableTimestamps[identifier] ?? -1
30 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
31 | return tableTimestamp
32 | }
[118/122] Compiling SQLiteDflat SQLiteWorkspaceDictionary.swift
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:14:37: error: cannot find type 'os_unfair_lock_s' in scope
12 | static let size = 12
13 | let namespace: String
14 | var locks: UnsafeMutablePointer<os_unfair_lock_s>
| `- error: cannot find type 'os_unfair_lock_s' in scope
15 | var dictionaries: [[String: Any]]
16 | var subscriptions: [[String: [ObjectIdentifier: (Any?) -> Void]]]
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:20:15: error: generic parameter 'Pointee' could not be inferred
18 | init(namespace: String) {
19 | self.namespace = namespace
20 | locks = UnsafeMutablePointer.allocate(capacity: Self.size)
| |- error: generic parameter 'Pointee' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
21 | locks.assign(repeating: os_unfair_lock(), count: Self.size)
22 | dictionaries = Array(repeating: [String: Any](), count: Self.size)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:21:31: error: cannot find 'os_unfair_lock' in scope
19 | self.namespace = namespace
20 | locks = UnsafeMutablePointer.allocate(capacity: Self.size)
21 | locks.assign(repeating: os_unfair_lock(), count: Self.size)
| `- error: cannot find 'os_unfair_lock' in scope
22 | dictionaries = Array(repeating: [String: Any](), count: Self.size)
23 | subscriptions = Array(
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:638:5: error: cannot find 'os_unfair_lock_lock' in scope
636 | key.hash(into: &hasher)
637 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
638 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
639 | return (dictionaries[hashValue][key], hashValue)
640 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:646:5: error: cannot find 'os_unfair_lock_lock' in scope
644 | key.hash(into: &hasher)
645 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
646 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
647 | return hashValue
648 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:654:5: error: cannot find 'os_unfair_lock_lock' in scope
652 | key.hash(into: &hasher)
653 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
654 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
655 | let oldValue = dictionaries[hashValue].updateValue(value, forKey: key)
656 | return (oldValue, hashValue)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:693:5: error: cannot find 'os_unfair_lock_lock' in scope
691 | @inline(__always)
692 | func lock(_ hashValue: Int) {
693 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
694 | }
695 | @inline(__always)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:697:5: error: cannot find 'os_unfair_lock_unlock' in scope
695 | @inline(__always)
696 | func unlock(_ hashValue: Int) {
697 | os_unfair_lock_unlock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
698 | }
699 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:6:22: error: cannot find 'os_unfair_lock' in scope
4 | // This is a state shared for a workspace.
5 | final class SQLiteWorkspaceState {
6 | private var lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
7 | private var tableTimestamps = [ObjectIdentifier: Int64]()
8 | var changesTimestamp = UnsafeAtomic<Int64>.Storage(0)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:12:5: error: cannot find 'os_unfair_lock_lock' in scope
10 |
11 | func serial<T>(_ closure: () -> T) -> T {
12 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
13 | let retval = closure()
14 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:14:5: error: cannot find 'os_unfair_lock_unlock' in scope
12 | os_unfair_lock_lock(&lock)
13 | let retval = closure()
14 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
15 | return retval
16 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:20:5: error: cannot find 'os_unfair_lock_lock' in scope
18 | func setTableTimestamp<S: Sequence>(_ timestamp: Int64, for identifiers: S)
19 | where S.Element == ObjectIdentifier {
20 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
21 | for identifier in identifiers {
22 | tableTimestamps[identifier] = timestamp
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:24:5: error: cannot find 'os_unfair_lock_unlock' in scope
22 | tableTimestamps[identifier] = timestamp
23 | }
24 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
25 | }
26 |
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:28:5: error: cannot find 'os_unfair_lock_lock' in scope
26 |
27 | func tableTimestamp(for identifier: ObjectIdentifier) -> Int64 {
28 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
29 | let tableTimestamp = tableTimestamps[identifier] ?? -1
30 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:30:5: error: cannot find 'os_unfair_lock_unlock' in scope
28 | os_unfair_lock_lock(&lock)
29 | let tableTimestamp = tableTimestamps[identifier] ?? -1
30 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
31 | return tableTimestamp
32 | }
[119/122] Compiling SQLiteDflat SQLiteWorkspaceState.swift
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:14:37: error: cannot find type 'os_unfair_lock_s' in scope
12 | static let size = 12
13 | let namespace: String
14 | var locks: UnsafeMutablePointer<os_unfair_lock_s>
| `- error: cannot find type 'os_unfair_lock_s' in scope
15 | var dictionaries: [[String: Any]]
16 | var subscriptions: [[String: [ObjectIdentifier: (Any?) -> Void]]]
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:20:15: error: generic parameter 'Pointee' could not be inferred
18 | init(namespace: String) {
19 | self.namespace = namespace
20 | locks = UnsafeMutablePointer.allocate(capacity: Self.size)
| |- error: generic parameter 'Pointee' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
21 | locks.assign(repeating: os_unfair_lock(), count: Self.size)
22 | dictionaries = Array(repeating: [String: Any](), count: Self.size)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:21:31: error: cannot find 'os_unfair_lock' in scope
19 | self.namespace = namespace
20 | locks = UnsafeMutablePointer.allocate(capacity: Self.size)
21 | locks.assign(repeating: os_unfair_lock(), count: Self.size)
| `- error: cannot find 'os_unfair_lock' in scope
22 | dictionaries = Array(repeating: [String: Any](), count: Self.size)
23 | subscriptions = Array(
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:638:5: error: cannot find 'os_unfair_lock_lock' in scope
636 | key.hash(into: &hasher)
637 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
638 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
639 | return (dictionaries[hashValue][key], hashValue)
640 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:646:5: error: cannot find 'os_unfair_lock_lock' in scope
644 | key.hash(into: &hasher)
645 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
646 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
647 | return hashValue
648 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:654:5: error: cannot find 'os_unfair_lock_lock' in scope
652 | key.hash(into: &hasher)
653 | let hashValue = Int(UInt(bitPattern: hasher.finalize()) % UInt(Self.size))
654 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
655 | let oldValue = dictionaries[hashValue].updateValue(value, forKey: key)
656 | return (oldValue, hashValue)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:693:5: error: cannot find 'os_unfair_lock_lock' in scope
691 | @inline(__always)
692 | func lock(_ hashValue: Int) {
693 | os_unfair_lock_lock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_lock' in scope
694 | }
695 | @inline(__always)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceDictionary.swift:697:5: error: cannot find 'os_unfair_lock_unlock' in scope
695 | @inline(__always)
696 | func unlock(_ hashValue: Int) {
697 | os_unfair_lock_unlock(locks + hashValue)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
698 | }
699 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:6:22: error: cannot find 'os_unfair_lock' in scope
4 | // This is a state shared for a workspace.
5 | final class SQLiteWorkspaceState {
6 | private var lock = os_unfair_lock()
| `- error: cannot find 'os_unfair_lock' in scope
7 | private var tableTimestamps = [ObjectIdentifier: Int64]()
8 | var changesTimestamp = UnsafeAtomic<Int64>.Storage(0)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:12:5: error: cannot find 'os_unfair_lock_lock' in scope
10 |
11 | func serial<T>(_ closure: () -> T) -> T {
12 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
13 | let retval = closure()
14 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:14:5: error: cannot find 'os_unfair_lock_unlock' in scope
12 | os_unfair_lock_lock(&lock)
13 | let retval = closure()
14 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
15 | return retval
16 | }
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:20:5: error: cannot find 'os_unfair_lock_lock' in scope
18 | func setTableTimestamp<S: Sequence>(_ timestamp: Int64, for identifiers: S)
19 | where S.Element == ObjectIdentifier {
20 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
21 | for identifier in identifiers {
22 | tableTimestamps[identifier] = timestamp
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:24:5: error: cannot find 'os_unfair_lock_unlock' in scope
22 | tableTimestamps[identifier] = timestamp
23 | }
24 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
25 | }
26 |
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:28:5: error: cannot find 'os_unfair_lock_lock' in scope
26 |
27 | func tableTimestamp(for identifier: ObjectIdentifier) -> Int64 {
28 | os_unfair_lock_lock(&lock)
| `- error: cannot find 'os_unfair_lock_lock' in scope
29 | let tableTimestamp = tableTimestamps[identifier] ?? -1
30 | os_unfair_lock_unlock(&lock)
/host/spi-builder-workspace/src/sqlite/SQLiteWorkspaceState.swift:30:5: error: cannot find 'os_unfair_lock_unlock' in scope
28 | os_unfair_lock_lock(&lock)
29 | let tableTimestamp = tableTimestamps[identifier] ?? -1
30 | os_unfair_lock_unlock(&lock)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
31 | return tableTimestamp
32 | }
BUILD FAILURE 6.1 android