Build Information
Failed to build ZcashLightClientKit, reference main (ebd0ad), with Swift 6.1 for macOS (SPM) on 28 Oct 2026 07:16:03 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1566 | UInt(fpBuf.count),
1567 | keys.accountIndex.index,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1660:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1658 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1659 | seed.bytes.withUnsafeBufferPointer { seedBuf in
1660 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1661 | dbh,
1662 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1725:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1723 | signature.withUnsafeBufferPointer { sigBuf in
1724 | sighash.withUnsafeBufferPointer { shBuf in
1725 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1726 | dbh,
1727 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1952:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1950 | draft.hotkeyStoredSecret.bytes.withUnsafeBufferPointer { secretBuf in
1951 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1952 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1953 | dbh,
1954 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2097:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2095 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2096 | urlBytes.withUnsafeBufferPointer { urlBuf in
2097 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2098 | dbh,
2099 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5300:23: note: 'zcashlc_voting_build_and_prove_delegation' declared here
5298 | * `zcashlc_voting_build_vote_commitment`.
5299 | */
5300 | struct FfiBoxedSlice *zcashlc_voting_build_and_prove_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_and_prove_delegation' declared here
5301 | const uint8_t *round_id,
5302 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2110:63: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2108 | fpBuf.baseAddress,
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2111:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2112:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2113 | urlBuf.baseAddress,
2114 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2113:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2114 | UInt(urlBuf.count),
2115 | pirLayout.pirDepth,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2726:24: error: cannot find 'zcashlc_take_last_error_report' in scope
2724 | /// failure: whichever runs first consumes the error.
2725 | nonisolated func lastErrorReport(fallback: String) -> RedactedRustError {
2726 | guard let report = zcashlc_take_last_error_report() else {
| `- error: cannot find 'zcashlc_take_last_error_report' in scope
2727 | return RedactedRustError(kind: .unclassified, message: fallback)
2728 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2730:13: error: cannot find 'zcashlc_free_error_report' in scope
2728 | }
2729 |
2730 | defer { zcashlc_free_error_report(report) }
| `- error: cannot find 'zcashlc_free_error_report' in scope
2731 |
2732 | let kind = RustErrorKind(ffiValue: report.pointee.kind)
[910/919] Compiling ZcashLightClientKit VotingTypes.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingKeyTypes.swift:148:1: warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
146 | // across the detached proving task, so the index must be `Sendable` too. Its
147 | // only stored property is a `UInt32`.
148 | extension Zip32AccountIndex: Sendable {}
| `- warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
149 |
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:194:65: error: extra arguments at positions #10, #11, #12 in call
192 | notesBytes.withUnsafeBufferPointer { notesBuf in
193 | urlBytes.withUnsafeBufferPointer { urlBuf in
194 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
195 | dbh,
196 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5273:23: note: 'zcashlc_voting_precompute_delegation_pir' declared here
5271 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5272 | */
5273 | struct FfiBoxedSlice *zcashlc_voting_precompute_delegation_pir(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_precompute_delegation_pir' declared here
5274 | const uint8_t *round_id,
5275 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:428:55: error: extra arguments at positions #6, #7 in call
426 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
427 | txHashBytes.withUnsafeBufferPointer { txBuf in
428 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
429 | dbh,
430 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:6124:9: note: 'zcashlc_voting_mark_vote_submitted' declared here
6122 | * bytes; if `round_id_len == 0`, `round_id` is ignored.
6123 | */
6124 | int32_t zcashlc_voting_mark_vote_submitted(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_mark_vote_submitted' declared here
6125 | const uint8_t *round_id,
6126 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:477:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
475 | txHashBytes.withUnsafeBufferPointer { txBuf in
476 | eventsBytes.withUnsafeBufferPointer { evBuf in
477 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
478 | dbh,
479 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:582:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
580 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
581 | bundleBytes.withUnsafeBufferPointer { buf in
582 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
583 | buf.baseAddress,
584 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:615:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
613 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
614 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
615 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
616 | }
617 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1330:59: error: missing arguments for parameters #10, #11 in call
1328 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1329 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1330 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1331 | dbh,
1332 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5795:9: note: 'zcashlc_voting_record_share_delegation' declared here
5793 | * - `sent_to_urls_json` must be a JSON array of strings.
5794 | */
5795 | int32_t zcashlc_voting_record_share_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_record_share_delegation' declared here
5796 | const uint8_t *round_id,
5797 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1339:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1337 | urlsBuf.baseAddress,
1338 | UInt(urlsBuf.count),
1339 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1340 | )
1341 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:56: error: missing arguments for parameters #2, #3 in call
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5151:25: note: 'zcashlc_voting_generate_hotkey' declared here
5149 | * - `db` must be a valid, non-null `VotingDatabaseHandle` pointer.
5150 | */
5151 | struct FfiVotingHotkey *zcashlc_voting_generate_hotkey(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_generate_hotkey' declared here
5152 | const uint8_t *stored_secret,
5153 | uintptr_t stored_secret_len);
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:64: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1508:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1506 | bundleCount: raw.bundle_count,
1507 | eligibleWeight: raw.eligible_weight,
1508 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1509 | )
1510 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1553:62: error: extra arguments at positions #13, #14, #15, #16 in call
1551 | keys.seedFingerprint.bytes.withUnsafeBufferPointer { fpBuf in
1552 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1553 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1554 | dbh,
1555 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5203:23: note: 'zcashlc_voting_build_pczt' declared here
5201 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5202 | */
5203 | struct FfiBoxedSlice *zcashlc_voting_build_pczt(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_pczt' declared here
5204 | const uint8_t *round_id,
5205 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1564:41: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1562 | secretBuf.baseAddress,
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1565 | fpBuf.baseAddress,
1566 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1565:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
1565 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1566 | UInt(fpBuf.count),
1567 | keys.accountIndex.index,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1660:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1658 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1659 | seed.bytes.withUnsafeBufferPointer { seedBuf in
1660 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1661 | dbh,
1662 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1725:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1723 | signature.withUnsafeBufferPointer { sigBuf in
1724 | sighash.withUnsafeBufferPointer { shBuf in
1725 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1726 | dbh,
1727 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1952:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1950 | draft.hotkeyStoredSecret.bytes.withUnsafeBufferPointer { secretBuf in
1951 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1952 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1953 | dbh,
1954 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2097:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2095 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2096 | urlBytes.withUnsafeBufferPointer { urlBuf in
2097 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2098 | dbh,
2099 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5300:23: note: 'zcashlc_voting_build_and_prove_delegation' declared here
5298 | * `zcashlc_voting_build_vote_commitment`.
5299 | */
5300 | struct FfiBoxedSlice *zcashlc_voting_build_and_prove_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_and_prove_delegation' declared here
5301 | const uint8_t *round_id,
5302 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2110:63: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2108 | fpBuf.baseAddress,
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2111:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2112:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2113 | urlBuf.baseAddress,
2114 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2113:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2114 | UInt(urlBuf.count),
2115 | pirLayout.pirDepth,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2726:24: error: cannot find 'zcashlc_take_last_error_report' in scope
2724 | /// failure: whichever runs first consumes the error.
2725 | nonisolated func lastErrorReport(fallback: String) -> RedactedRustError {
2726 | guard let report = zcashlc_take_last_error_report() else {
| `- error: cannot find 'zcashlc_take_last_error_report' in scope
2727 | return RedactedRustError(kind: .unclassified, message: fallback)
2728 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2730:13: error: cannot find 'zcashlc_free_error_report' in scope
2728 | }
2729 |
2730 | defer { zcashlc_free_error_report(report) }
| `- error: cannot find 'zcashlc_free_error_report' in scope
2731 |
2732 | let kind = RustErrorKind(ffiValue: report.pointee.kind)
[911/919] Compiling ZcashLightClientKit WalletSummary+FFI.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingKeyTypes.swift:148:1: warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
146 | // across the detached proving task, so the index must be `Sendable` too. Its
147 | // only stored property is a `UInt32`.
148 | extension Zip32AccountIndex: Sendable {}
| `- warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
149 |
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:194:65: error: extra arguments at positions #10, #11, #12 in call
192 | notesBytes.withUnsafeBufferPointer { notesBuf in
193 | urlBytes.withUnsafeBufferPointer { urlBuf in
194 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
195 | dbh,
196 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5273:23: note: 'zcashlc_voting_precompute_delegation_pir' declared here
5271 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5272 | */
5273 | struct FfiBoxedSlice *zcashlc_voting_precompute_delegation_pir(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_precompute_delegation_pir' declared here
5274 | const uint8_t *round_id,
5275 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:428:55: error: extra arguments at positions #6, #7 in call
426 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
427 | txHashBytes.withUnsafeBufferPointer { txBuf in
428 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
429 | dbh,
430 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:6124:9: note: 'zcashlc_voting_mark_vote_submitted' declared here
6122 | * bytes; if `round_id_len == 0`, `round_id` is ignored.
6123 | */
6124 | int32_t zcashlc_voting_mark_vote_submitted(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_mark_vote_submitted' declared here
6125 | const uint8_t *round_id,
6126 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:477:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
475 | txHashBytes.withUnsafeBufferPointer { txBuf in
476 | eventsBytes.withUnsafeBufferPointer { evBuf in
477 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
478 | dbh,
479 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:582:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
580 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
581 | bundleBytes.withUnsafeBufferPointer { buf in
582 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
583 | buf.baseAddress,
584 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:615:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
613 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
614 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
615 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
616 | }
617 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1330:59: error: missing arguments for parameters #10, #11 in call
1328 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1329 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1330 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1331 | dbh,
1332 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5795:9: note: 'zcashlc_voting_record_share_delegation' declared here
5793 | * - `sent_to_urls_json` must be a JSON array of strings.
5794 | */
5795 | int32_t zcashlc_voting_record_share_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_record_share_delegation' declared here
5796 | const uint8_t *round_id,
5797 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1339:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1337 | urlsBuf.baseAddress,
1338 | UInt(urlsBuf.count),
1339 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1340 | )
1341 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:56: error: missing arguments for parameters #2, #3 in call
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5151:25: note: 'zcashlc_voting_generate_hotkey' declared here
5149 | * - `db` must be a valid, non-null `VotingDatabaseHandle` pointer.
5150 | */
5151 | struct FfiVotingHotkey *zcashlc_voting_generate_hotkey(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_generate_hotkey' declared here
5152 | const uint8_t *stored_secret,
5153 | uintptr_t stored_secret_len);
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:64: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1508:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1506 | bundleCount: raw.bundle_count,
1507 | eligibleWeight: raw.eligible_weight,
1508 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1509 | )
1510 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1553:62: error: extra arguments at positions #13, #14, #15, #16 in call
1551 | keys.seedFingerprint.bytes.withUnsafeBufferPointer { fpBuf in
1552 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1553 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1554 | dbh,
1555 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5203:23: note: 'zcashlc_voting_build_pczt' declared here
5201 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5202 | */
5203 | struct FfiBoxedSlice *zcashlc_voting_build_pczt(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_pczt' declared here
5204 | const uint8_t *round_id,
5205 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1564:41: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1562 | secretBuf.baseAddress,
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1565 | fpBuf.baseAddress,
1566 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1565:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
1565 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1566 | UInt(fpBuf.count),
1567 | keys.accountIndex.index,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1660:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1658 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1659 | seed.bytes.withUnsafeBufferPointer { seedBuf in
1660 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1661 | dbh,
1662 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1725:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1723 | signature.withUnsafeBufferPointer { sigBuf in
1724 | sighash.withUnsafeBufferPointer { shBuf in
1725 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1726 | dbh,
1727 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1952:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1950 | draft.hotkeyStoredSecret.bytes.withUnsafeBufferPointer { secretBuf in
1951 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1952 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1953 | dbh,
1954 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2097:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2095 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2096 | urlBytes.withUnsafeBufferPointer { urlBuf in
2097 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2098 | dbh,
2099 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5300:23: note: 'zcashlc_voting_build_and_prove_delegation' declared here
5298 | * `zcashlc_voting_build_vote_commitment`.
5299 | */
5300 | struct FfiBoxedSlice *zcashlc_voting_build_and_prove_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_and_prove_delegation' declared here
5301 | const uint8_t *round_id,
5302 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2110:63: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2108 | fpBuf.baseAddress,
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2111:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2112:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2113 | urlBuf.baseAddress,
2114 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2113:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2114 | UInt(urlBuf.count),
2115 | pirLayout.pirDepth,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2726:24: error: cannot find 'zcashlc_take_last_error_report' in scope
2724 | /// failure: whichever runs first consumes the error.
2725 | nonisolated func lastErrorReport(fallback: String) -> RedactedRustError {
2726 | guard let report = zcashlc_take_last_error_report() else {
| `- error: cannot find 'zcashlc_take_last_error_report' in scope
2727 | return RedactedRustError(kind: .unclassified, message: fallback)
2728 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2730:13: error: cannot find 'zcashlc_free_error_report' in scope
2728 | }
2729 |
2730 | defer { zcashlc_free_error_report(report) }
| `- error: cannot find 'zcashlc_free_error_report' in scope
2731 |
2732 | let kind = RustErrorKind(ffiValue: report.pointee.kind)
[912/919] Compiling ZcashLightClientKit ZcashEip681Backend.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingKeyTypes.swift:148:1: warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
146 | // across the detached proving task, so the index must be `Sendable` too. Its
147 | // only stored property is a `UInt32`.
148 | extension Zip32AccountIndex: Sendable {}
| `- warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
149 |
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:194:65: error: extra arguments at positions #10, #11, #12 in call
192 | notesBytes.withUnsafeBufferPointer { notesBuf in
193 | urlBytes.withUnsafeBufferPointer { urlBuf in
194 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
195 | dbh,
196 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5273:23: note: 'zcashlc_voting_precompute_delegation_pir' declared here
5271 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5272 | */
5273 | struct FfiBoxedSlice *zcashlc_voting_precompute_delegation_pir(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_precompute_delegation_pir' declared here
5274 | const uint8_t *round_id,
5275 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:428:55: error: extra arguments at positions #6, #7 in call
426 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
427 | txHashBytes.withUnsafeBufferPointer { txBuf in
428 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
429 | dbh,
430 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:6124:9: note: 'zcashlc_voting_mark_vote_submitted' declared here
6122 | * bytes; if `round_id_len == 0`, `round_id` is ignored.
6123 | */
6124 | int32_t zcashlc_voting_mark_vote_submitted(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_mark_vote_submitted' declared here
6125 | const uint8_t *round_id,
6126 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:477:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
475 | txHashBytes.withUnsafeBufferPointer { txBuf in
476 | eventsBytes.withUnsafeBufferPointer { evBuf in
477 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
478 | dbh,
479 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:582:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
580 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
581 | bundleBytes.withUnsafeBufferPointer { buf in
582 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
583 | buf.baseAddress,
584 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:615:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
613 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
614 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
615 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
616 | }
617 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1330:59: error: missing arguments for parameters #10, #11 in call
1328 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1329 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1330 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1331 | dbh,
1332 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5795:9: note: 'zcashlc_voting_record_share_delegation' declared here
5793 | * - `sent_to_urls_json` must be a JSON array of strings.
5794 | */
5795 | int32_t zcashlc_voting_record_share_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_record_share_delegation' declared here
5796 | const uint8_t *round_id,
5797 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1339:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1337 | urlsBuf.baseAddress,
1338 | UInt(urlsBuf.count),
1339 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1340 | )
1341 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:56: error: missing arguments for parameters #2, #3 in call
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5151:25: note: 'zcashlc_voting_generate_hotkey' declared here
5149 | * - `db` must be a valid, non-null `VotingDatabaseHandle` pointer.
5150 | */
5151 | struct FfiVotingHotkey *zcashlc_voting_generate_hotkey(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_generate_hotkey' declared here
5152 | const uint8_t *stored_secret,
5153 | uintptr_t stored_secret_len);
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:64: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1508:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1506 | bundleCount: raw.bundle_count,
1507 | eligibleWeight: raw.eligible_weight,
1508 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1509 | )
1510 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1553:62: error: extra arguments at positions #13, #14, #15, #16 in call
1551 | keys.seedFingerprint.bytes.withUnsafeBufferPointer { fpBuf in
1552 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1553 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1554 | dbh,
1555 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5203:23: note: 'zcashlc_voting_build_pczt' declared here
5201 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5202 | */
5203 | struct FfiBoxedSlice *zcashlc_voting_build_pczt(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_pczt' declared here
5204 | const uint8_t *round_id,
5205 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1564:41: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1562 | secretBuf.baseAddress,
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1565 | fpBuf.baseAddress,
1566 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1565:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
1565 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1566 | UInt(fpBuf.count),
1567 | keys.accountIndex.index,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1660:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1658 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1659 | seed.bytes.withUnsafeBufferPointer { seedBuf in
1660 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1661 | dbh,
1662 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1725:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1723 | signature.withUnsafeBufferPointer { sigBuf in
1724 | sighash.withUnsafeBufferPointer { shBuf in
1725 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1726 | dbh,
1727 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1952:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1950 | draft.hotkeyStoredSecret.bytes.withUnsafeBufferPointer { secretBuf in
1951 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1952 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1953 | dbh,
1954 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2097:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2095 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2096 | urlBytes.withUnsafeBufferPointer { urlBuf in
2097 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2098 | dbh,
2099 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5300:23: note: 'zcashlc_voting_build_and_prove_delegation' declared here
5298 | * `zcashlc_voting_build_vote_commitment`.
5299 | */
5300 | struct FfiBoxedSlice *zcashlc_voting_build_and_prove_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_and_prove_delegation' declared here
5301 | const uint8_t *round_id,
5302 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2110:63: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2108 | fpBuf.baseAddress,
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2111:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2112:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2113 | urlBuf.baseAddress,
2114 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2113:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2114 | UInt(urlBuf.count),
2115 | pirLayout.pirDepth,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2726:24: error: cannot find 'zcashlc_take_last_error_report' in scope
2724 | /// failure: whichever runs first consumes the error.
2725 | nonisolated func lastErrorReport(fallback: String) -> RedactedRustError {
2726 | guard let report = zcashlc_take_last_error_report() else {
| `- error: cannot find 'zcashlc_take_last_error_report' in scope
2727 | return RedactedRustError(kind: .unclassified, message: fallback)
2728 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2730:13: error: cannot find 'zcashlc_free_error_report' in scope
2728 | }
2729 |
2730 | defer { zcashlc_free_error_report(report) }
| `- error: cannot find 'zcashlc_free_error_report' in scope
2731 |
2732 | let kind = RustErrorKind(ffiValue: report.pointee.kind)
[913/919] Compiling ZcashLightClientKit ZcashKeyDerivationBackend.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingKeyTypes.swift:148:1: warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
146 | // across the detached proving task, so the index must be `Sendable` too. Its
147 | // only stored property is a `UInt32`.
148 | extension Zip32AccountIndex: Sendable {}
| `- warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
149 |
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:194:65: error: extra arguments at positions #10, #11, #12 in call
192 | notesBytes.withUnsafeBufferPointer { notesBuf in
193 | urlBytes.withUnsafeBufferPointer { urlBuf in
194 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
195 | dbh,
196 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5273:23: note: 'zcashlc_voting_precompute_delegation_pir' declared here
5271 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5272 | */
5273 | struct FfiBoxedSlice *zcashlc_voting_precompute_delegation_pir(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_precompute_delegation_pir' declared here
5274 | const uint8_t *round_id,
5275 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:428:55: error: extra arguments at positions #6, #7 in call
426 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
427 | txHashBytes.withUnsafeBufferPointer { txBuf in
428 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
429 | dbh,
430 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:6124:9: note: 'zcashlc_voting_mark_vote_submitted' declared here
6122 | * bytes; if `round_id_len == 0`, `round_id` is ignored.
6123 | */
6124 | int32_t zcashlc_voting_mark_vote_submitted(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_mark_vote_submitted' declared here
6125 | const uint8_t *round_id,
6126 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:477:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
475 | txHashBytes.withUnsafeBufferPointer { txBuf in
476 | eventsBytes.withUnsafeBufferPointer { evBuf in
477 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
478 | dbh,
479 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:582:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
580 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
581 | bundleBytes.withUnsafeBufferPointer { buf in
582 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
583 | buf.baseAddress,
584 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:615:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
613 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
614 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
615 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
616 | }
617 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1330:59: error: missing arguments for parameters #10, #11 in call
1328 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1329 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1330 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1331 | dbh,
1332 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5795:9: note: 'zcashlc_voting_record_share_delegation' declared here
5793 | * - `sent_to_urls_json` must be a JSON array of strings.
5794 | */
5795 | int32_t zcashlc_voting_record_share_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_record_share_delegation' declared here
5796 | const uint8_t *round_id,
5797 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1339:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1337 | urlsBuf.baseAddress,
1338 | UInt(urlsBuf.count),
1339 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1340 | )
1341 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:56: error: missing arguments for parameters #2, #3 in call
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5151:25: note: 'zcashlc_voting_generate_hotkey' declared here
5149 | * - `db` must be a valid, non-null `VotingDatabaseHandle` pointer.
5150 | */
5151 | struct FfiVotingHotkey *zcashlc_voting_generate_hotkey(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_generate_hotkey' declared here
5152 | const uint8_t *stored_secret,
5153 | uintptr_t stored_secret_len);
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:64: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1508:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1506 | bundleCount: raw.bundle_count,
1507 | eligibleWeight: raw.eligible_weight,
1508 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1509 | )
1510 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1553:62: error: extra arguments at positions #13, #14, #15, #16 in call
1551 | keys.seedFingerprint.bytes.withUnsafeBufferPointer { fpBuf in
1552 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1553 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1554 | dbh,
1555 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5203:23: note: 'zcashlc_voting_build_pczt' declared here
5201 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5202 | */
5203 | struct FfiBoxedSlice *zcashlc_voting_build_pczt(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_pczt' declared here
5204 | const uint8_t *round_id,
5205 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1564:41: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1562 | secretBuf.baseAddress,
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1565 | fpBuf.baseAddress,
1566 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1565:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
1565 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1566 | UInt(fpBuf.count),
1567 | keys.accountIndex.index,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1660:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1658 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1659 | seed.bytes.withUnsafeBufferPointer { seedBuf in
1660 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1661 | dbh,
1662 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1725:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1723 | signature.withUnsafeBufferPointer { sigBuf in
1724 | sighash.withUnsafeBufferPointer { shBuf in
1725 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1726 | dbh,
1727 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1952:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1950 | draft.hotkeyStoredSecret.bytes.withUnsafeBufferPointer { secretBuf in
1951 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1952 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1953 | dbh,
1954 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2097:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2095 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2096 | urlBytes.withUnsafeBufferPointer { urlBuf in
2097 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2098 | dbh,
2099 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5300:23: note: 'zcashlc_voting_build_and_prove_delegation' declared here
5298 | * `zcashlc_voting_build_vote_commitment`.
5299 | */
5300 | struct FfiBoxedSlice *zcashlc_voting_build_and_prove_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_and_prove_delegation' declared here
5301 | const uint8_t *round_id,
5302 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2110:63: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2108 | fpBuf.baseAddress,
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2111:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2112:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2113 | urlBuf.baseAddress,
2114 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2113:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2114 | UInt(urlBuf.count),
2115 | pirLayout.pirDepth,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2726:24: error: cannot find 'zcashlc_take_last_error_report' in scope
2724 | /// failure: whichever runs first consumes the error.
2725 | nonisolated func lastErrorReport(fallback: String) -> RedactedRustError {
2726 | guard let report = zcashlc_take_last_error_report() else {
| `- error: cannot find 'zcashlc_take_last_error_report' in scope
2727 | return RedactedRustError(kind: .unclassified, message: fallback)
2728 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2730:13: error: cannot find 'zcashlc_free_error_report' in scope
2728 | }
2729 |
2730 | defer { zcashlc_free_error_report(report) }
| `- error: cannot find 'zcashlc_free_error_report' in scope
2731 |
2732 | let kind = RustErrorKind(ffiValue: report.pointee.kind)
[914/919] Compiling ZcashLightClientKit ZcashKeyDerivationBackendWelding.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingKeyTypes.swift:148:1: warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
146 | // across the detached proving task, so the index must be `Sendable` too. Its
147 | // only stored property is a `UInt32`.
148 | extension Zip32AccountIndex: Sendable {}
| `- warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
149 |
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:194:65: error: extra arguments at positions #10, #11, #12 in call
192 | notesBytes.withUnsafeBufferPointer { notesBuf in
193 | urlBytes.withUnsafeBufferPointer { urlBuf in
194 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
195 | dbh,
196 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5273:23: note: 'zcashlc_voting_precompute_delegation_pir' declared here
5271 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5272 | */
5273 | struct FfiBoxedSlice *zcashlc_voting_precompute_delegation_pir(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_precompute_delegation_pir' declared here
5274 | const uint8_t *round_id,
5275 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:428:55: error: extra arguments at positions #6, #7 in call
426 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
427 | txHashBytes.withUnsafeBufferPointer { txBuf in
428 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
429 | dbh,
430 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:6124:9: note: 'zcashlc_voting_mark_vote_submitted' declared here
6122 | * bytes; if `round_id_len == 0`, `round_id` is ignored.
6123 | */
6124 | int32_t zcashlc_voting_mark_vote_submitted(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_mark_vote_submitted' declared here
6125 | const uint8_t *round_id,
6126 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:477:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
475 | txHashBytes.withUnsafeBufferPointer { txBuf in
476 | eventsBytes.withUnsafeBufferPointer { evBuf in
477 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
478 | dbh,
479 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:582:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
580 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
581 | bundleBytes.withUnsafeBufferPointer { buf in
582 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
583 | buf.baseAddress,
584 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:615:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
613 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
614 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
615 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
616 | }
617 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1330:59: error: missing arguments for parameters #10, #11 in call
1328 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1329 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1330 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1331 | dbh,
1332 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5795:9: note: 'zcashlc_voting_record_share_delegation' declared here
5793 | * - `sent_to_urls_json` must be a JSON array of strings.
5794 | */
5795 | int32_t zcashlc_voting_record_share_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_record_share_delegation' declared here
5796 | const uint8_t *round_id,
5797 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1339:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1337 | urlsBuf.baseAddress,
1338 | UInt(urlsBuf.count),
1339 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1340 | )
1341 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:56: error: missing arguments for parameters #2, #3 in call
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5151:25: note: 'zcashlc_voting_generate_hotkey' declared here
5149 | * - `db` must be a valid, non-null `VotingDatabaseHandle` pointer.
5150 | */
5151 | struct FfiVotingHotkey *zcashlc_voting_generate_hotkey(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_generate_hotkey' declared here
5152 | const uint8_t *stored_secret,
5153 | uintptr_t stored_secret_len);
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:64: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1508:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1506 | bundleCount: raw.bundle_count,
1507 | eligibleWeight: raw.eligible_weight,
1508 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1509 | )
1510 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1553:62: error: extra arguments at positions #13, #14, #15, #16 in call
1551 | keys.seedFingerprint.bytes.withUnsafeBufferPointer { fpBuf in
1552 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1553 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1554 | dbh,
1555 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5203:23: note: 'zcashlc_voting_build_pczt' declared here
5201 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5202 | */
5203 | struct FfiBoxedSlice *zcashlc_voting_build_pczt(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_pczt' declared here
5204 | const uint8_t *round_id,
5205 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1564:41: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1562 | secretBuf.baseAddress,
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1565 | fpBuf.baseAddress,
1566 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1565:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
1565 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1566 | UInt(fpBuf.count),
1567 | keys.accountIndex.index,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1660:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1658 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1659 | seed.bytes.withUnsafeBufferPointer { seedBuf in
1660 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1661 | dbh,
1662 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1725:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1723 | signature.withUnsafeBufferPointer { sigBuf in
1724 | sighash.withUnsafeBufferPointer { shBuf in
1725 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1726 | dbh,
1727 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1952:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1950 | draft.hotkeyStoredSecret.bytes.withUnsafeBufferPointer { secretBuf in
1951 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1952 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1953 | dbh,
1954 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2097:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2095 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2096 | urlBytes.withUnsafeBufferPointer { urlBuf in
2097 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2098 | dbh,
2099 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5300:23: note: 'zcashlc_voting_build_and_prove_delegation' declared here
5298 | * `zcashlc_voting_build_vote_commitment`.
5299 | */
5300 | struct FfiBoxedSlice *zcashlc_voting_build_and_prove_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_and_prove_delegation' declared here
5301 | const uint8_t *round_id,
5302 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2110:63: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2108 | fpBuf.baseAddress,
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2111:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2112:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2113 | urlBuf.baseAddress,
2114 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2113:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2114 | UInt(urlBuf.count),
2115 | pirLayout.pirDepth,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2726:24: error: cannot find 'zcashlc_take_last_error_report' in scope
2724 | /// failure: whichever runs first consumes the error.
2725 | nonisolated func lastErrorReport(fallback: String) -> RedactedRustError {
2726 | guard let report = zcashlc_take_last_error_report() else {
| `- error: cannot find 'zcashlc_take_last_error_report' in scope
2727 | return RedactedRustError(kind: .unclassified, message: fallback)
2728 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2730:13: error: cannot find 'zcashlc_free_error_report' in scope
2728 | }
2729 |
2730 | defer { zcashlc_free_error_report(report) }
| `- error: cannot find 'zcashlc_free_error_report' in scope
2731 |
2732 | let kind = RustErrorKind(ffiValue: report.pointee.kind)
[915/919] Compiling ZcashLightClientKit ZcashRustBackend.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingKeyTypes.swift:148:1: warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
146 | // across the detached proving task, so the index must be `Sendable` too. Its
147 | // only stored property is a `UInt32`.
148 | extension Zip32AccountIndex: Sendable {}
| `- warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
149 |
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:194:65: error: extra arguments at positions #10, #11, #12 in call
192 | notesBytes.withUnsafeBufferPointer { notesBuf in
193 | urlBytes.withUnsafeBufferPointer { urlBuf in
194 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
195 | dbh,
196 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5273:23: note: 'zcashlc_voting_precompute_delegation_pir' declared here
5271 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5272 | */
5273 | struct FfiBoxedSlice *zcashlc_voting_precompute_delegation_pir(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_precompute_delegation_pir' declared here
5274 | const uint8_t *round_id,
5275 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:428:55: error: extra arguments at positions #6, #7 in call
426 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
427 | txHashBytes.withUnsafeBufferPointer { txBuf in
428 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
429 | dbh,
430 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:6124:9: note: 'zcashlc_voting_mark_vote_submitted' declared here
6122 | * bytes; if `round_id_len == 0`, `round_id` is ignored.
6123 | */
6124 | int32_t zcashlc_voting_mark_vote_submitted(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_mark_vote_submitted' declared here
6125 | const uint8_t *round_id,
6126 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:477:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
475 | txHashBytes.withUnsafeBufferPointer { txBuf in
476 | eventsBytes.withUnsafeBufferPointer { evBuf in
477 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
478 | dbh,
479 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:582:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
580 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
581 | bundleBytes.withUnsafeBufferPointer { buf in
582 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
583 | buf.baseAddress,
584 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:615:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
613 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
614 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
615 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
616 | }
617 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1330:59: error: missing arguments for parameters #10, #11 in call
1328 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1329 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1330 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1331 | dbh,
1332 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5795:9: note: 'zcashlc_voting_record_share_delegation' declared here
5793 | * - `sent_to_urls_json` must be a JSON array of strings.
5794 | */
5795 | int32_t zcashlc_voting_record_share_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_record_share_delegation' declared here
5796 | const uint8_t *round_id,
5797 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1339:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1337 | urlsBuf.baseAddress,
1338 | UInt(urlsBuf.count),
1339 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1340 | )
1341 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:56: error: missing arguments for parameters #2, #3 in call
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5151:25: note: 'zcashlc_voting_generate_hotkey' declared here
5149 | * - `db` must be a valid, non-null `VotingDatabaseHandle` pointer.
5150 | */
5151 | struct FfiVotingHotkey *zcashlc_voting_generate_hotkey(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_generate_hotkey' declared here
5152 | const uint8_t *stored_secret,
5153 | uintptr_t stored_secret_len);
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:64: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1508:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1506 | bundleCount: raw.bundle_count,
1507 | eligibleWeight: raw.eligible_weight,
1508 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1509 | )
1510 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1553:62: error: extra arguments at positions #13, #14, #15, #16 in call
1551 | keys.seedFingerprint.bytes.withUnsafeBufferPointer { fpBuf in
1552 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1553 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1554 | dbh,
1555 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5203:23: note: 'zcashlc_voting_build_pczt' declared here
5201 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5202 | */
5203 | struct FfiBoxedSlice *zcashlc_voting_build_pczt(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_pczt' declared here
5204 | const uint8_t *round_id,
5205 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1564:41: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1562 | secretBuf.baseAddress,
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1565 | fpBuf.baseAddress,
1566 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1565:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
1565 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1566 | UInt(fpBuf.count),
1567 | keys.accountIndex.index,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1660:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1658 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1659 | seed.bytes.withUnsafeBufferPointer { seedBuf in
1660 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1661 | dbh,
1662 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1725:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1723 | signature.withUnsafeBufferPointer { sigBuf in
1724 | sighash.withUnsafeBufferPointer { shBuf in
1725 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1726 | dbh,
1727 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1952:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1950 | draft.hotkeyStoredSecret.bytes.withUnsafeBufferPointer { secretBuf in
1951 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1952 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1953 | dbh,
1954 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2097:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2095 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2096 | urlBytes.withUnsafeBufferPointer { urlBuf in
2097 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2098 | dbh,
2099 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5300:23: note: 'zcashlc_voting_build_and_prove_delegation' declared here
5298 | * `zcashlc_voting_build_vote_commitment`.
5299 | */
5300 | struct FfiBoxedSlice *zcashlc_voting_build_and_prove_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_and_prove_delegation' declared here
5301 | const uint8_t *round_id,
5302 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2110:63: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2108 | fpBuf.baseAddress,
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2111:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2112:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2113 | urlBuf.baseAddress,
2114 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2113:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2114 | UInt(urlBuf.count),
2115 | pirLayout.pirDepth,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2726:24: error: cannot find 'zcashlc_take_last_error_report' in scope
2724 | /// failure: whichever runs first consumes the error.
2725 | nonisolated func lastErrorReport(fallback: String) -> RedactedRustError {
2726 | guard let report = zcashlc_take_last_error_report() else {
| `- error: cannot find 'zcashlc_take_last_error_report' in scope
2727 | return RedactedRustError(kind: .unclassified, message: fallback)
2728 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2730:13: error: cannot find 'zcashlc_free_error_report' in scope
2728 | }
2729 |
2730 | defer { zcashlc_free_error_report(report) }
| `- error: cannot find 'zcashlc_free_error_report' in scope
2731 |
2732 | let kind = RustErrorKind(ffiValue: report.pointee.kind)
[916/919] Compiling ZcashLightClientKit ZcashRustBackendWelding.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingKeyTypes.swift:148:1: warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
146 | // across the detached proving task, so the index must be `Sendable` too. Its
147 | // only stored property is a `UInt32`.
148 | extension Zip32AccountIndex: Sendable {}
| `- warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
149 |
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:194:65: error: extra arguments at positions #10, #11, #12 in call
192 | notesBytes.withUnsafeBufferPointer { notesBuf in
193 | urlBytes.withUnsafeBufferPointer { urlBuf in
194 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
195 | dbh,
196 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5273:23: note: 'zcashlc_voting_precompute_delegation_pir' declared here
5271 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5272 | */
5273 | struct FfiBoxedSlice *zcashlc_voting_precompute_delegation_pir(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_precompute_delegation_pir' declared here
5274 | const uint8_t *round_id,
5275 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:428:55: error: extra arguments at positions #6, #7 in call
426 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
427 | txHashBytes.withUnsafeBufferPointer { txBuf in
428 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
429 | dbh,
430 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:6124:9: note: 'zcashlc_voting_mark_vote_submitted' declared here
6122 | * bytes; if `round_id_len == 0`, `round_id` is ignored.
6123 | */
6124 | int32_t zcashlc_voting_mark_vote_submitted(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_mark_vote_submitted' declared here
6125 | const uint8_t *round_id,
6126 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:477:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
475 | txHashBytes.withUnsafeBufferPointer { txBuf in
476 | eventsBytes.withUnsafeBufferPointer { evBuf in
477 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
478 | dbh,
479 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:582:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
580 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
581 | bundleBytes.withUnsafeBufferPointer { buf in
582 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
583 | buf.baseAddress,
584 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:615:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
613 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
614 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
615 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
616 | }
617 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1330:59: error: missing arguments for parameters #10, #11 in call
1328 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1329 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1330 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1331 | dbh,
1332 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5795:9: note: 'zcashlc_voting_record_share_delegation' declared here
5793 | * - `sent_to_urls_json` must be a JSON array of strings.
5794 | */
5795 | int32_t zcashlc_voting_record_share_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_record_share_delegation' declared here
5796 | const uint8_t *round_id,
5797 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1339:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1337 | urlsBuf.baseAddress,
1338 | UInt(urlsBuf.count),
1339 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1340 | )
1341 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:56: error: missing arguments for parameters #2, #3 in call
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5151:25: note: 'zcashlc_voting_generate_hotkey' declared here
5149 | * - `db` must be a valid, non-null `VotingDatabaseHandle` pointer.
5150 | */
5151 | struct FfiVotingHotkey *zcashlc_voting_generate_hotkey(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_generate_hotkey' declared here
5152 | const uint8_t *stored_secret,
5153 | uintptr_t stored_secret_len);
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:64: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1508:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1506 | bundleCount: raw.bundle_count,
1507 | eligibleWeight: raw.eligible_weight,
1508 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1509 | )
1510 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1553:62: error: extra arguments at positions #13, #14, #15, #16 in call
1551 | keys.seedFingerprint.bytes.withUnsafeBufferPointer { fpBuf in
1552 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1553 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1554 | dbh,
1555 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5203:23: note: 'zcashlc_voting_build_pczt' declared here
5201 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5202 | */
5203 | struct FfiBoxedSlice *zcashlc_voting_build_pczt(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_pczt' declared here
5204 | const uint8_t *round_id,
5205 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1564:41: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1562 | secretBuf.baseAddress,
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1565 | fpBuf.baseAddress,
1566 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1565:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
1565 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1566 | UInt(fpBuf.count),
1567 | keys.accountIndex.index,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1660:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1658 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1659 | seed.bytes.withUnsafeBufferPointer { seedBuf in
1660 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1661 | dbh,
1662 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1725:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1723 | signature.withUnsafeBufferPointer { sigBuf in
1724 | sighash.withUnsafeBufferPointer { shBuf in
1725 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1726 | dbh,
1727 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1952:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1950 | draft.hotkeyStoredSecret.bytes.withUnsafeBufferPointer { secretBuf in
1951 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1952 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1953 | dbh,
1954 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2097:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2095 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2096 | urlBytes.withUnsafeBufferPointer { urlBuf in
2097 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2098 | dbh,
2099 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5300:23: note: 'zcashlc_voting_build_and_prove_delegation' declared here
5298 | * `zcashlc_voting_build_vote_commitment`.
5299 | */
5300 | struct FfiBoxedSlice *zcashlc_voting_build_and_prove_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_and_prove_delegation' declared here
5301 | const uint8_t *round_id,
5302 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2110:63: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2108 | fpBuf.baseAddress,
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2111:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2112:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2113 | urlBuf.baseAddress,
2114 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2113:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2114 | UInt(urlBuf.count),
2115 | pirLayout.pirDepth,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2726:24: error: cannot find 'zcashlc_take_last_error_report' in scope
2724 | /// failure: whichever runs first consumes the error.
2725 | nonisolated func lastErrorReport(fallback: String) -> RedactedRustError {
2726 | guard let report = zcashlc_take_last_error_report() else {
| `- error: cannot find 'zcashlc_take_last_error_report' in scope
2727 | return RedactedRustError(kind: .unclassified, message: fallback)
2728 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2730:13: error: cannot find 'zcashlc_free_error_report' in scope
2728 | }
2729 |
2730 | defer { zcashlc_free_error_report(report) }
| `- error: cannot find 'zcashlc_free_error_report' in scope
2731 |
2732 | let kind = RustErrorKind(ffiValue: report.pointee.kind)
[917/919] Compiling ZcashLightClientKit Synchronizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingKeyTypes.swift:148:1: warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
146 | // across the detached proving task, so the index must be `Sendable` too. Its
147 | // only stored property is a `UInt32`.
148 | extension Zip32AccountIndex: Sendable {}
| `- warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
149 |
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:194:65: error: extra arguments at positions #10, #11, #12 in call
192 | notesBytes.withUnsafeBufferPointer { notesBuf in
193 | urlBytes.withUnsafeBufferPointer { urlBuf in
194 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
195 | dbh,
196 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5273:23: note: 'zcashlc_voting_precompute_delegation_pir' declared here
5271 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5272 | */
5273 | struct FfiBoxedSlice *zcashlc_voting_precompute_delegation_pir(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_precompute_delegation_pir' declared here
5274 | const uint8_t *round_id,
5275 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:428:55: error: extra arguments at positions #6, #7 in call
426 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
427 | txHashBytes.withUnsafeBufferPointer { txBuf in
428 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
429 | dbh,
430 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:6124:9: note: 'zcashlc_voting_mark_vote_submitted' declared here
6122 | * bytes; if `round_id_len == 0`, `round_id` is ignored.
6123 | */
6124 | int32_t zcashlc_voting_mark_vote_submitted(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_mark_vote_submitted' declared here
6125 | const uint8_t *round_id,
6126 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:477:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
475 | txHashBytes.withUnsafeBufferPointer { txBuf in
476 | eventsBytes.withUnsafeBufferPointer { evBuf in
477 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
478 | dbh,
479 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:582:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
580 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
581 | bundleBytes.withUnsafeBufferPointer { buf in
582 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
583 | buf.baseAddress,
584 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:615:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
613 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
614 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
615 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
616 | }
617 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1330:59: error: missing arguments for parameters #10, #11 in call
1328 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1329 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1330 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1331 | dbh,
1332 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5795:9: note: 'zcashlc_voting_record_share_delegation' declared here
5793 | * - `sent_to_urls_json` must be a JSON array of strings.
5794 | */
5795 | int32_t zcashlc_voting_record_share_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_record_share_delegation' declared here
5796 | const uint8_t *round_id,
5797 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1339:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1337 | urlsBuf.baseAddress,
1338 | UInt(urlsBuf.count),
1339 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1340 | )
1341 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:56: error: missing arguments for parameters #2, #3 in call
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5151:25: note: 'zcashlc_voting_generate_hotkey' declared here
5149 | * - `db` must be a valid, non-null `VotingDatabaseHandle` pointer.
5150 | */
5151 | struct FfiVotingHotkey *zcashlc_voting_generate_hotkey(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_generate_hotkey' declared here
5152 | const uint8_t *stored_secret,
5153 | uintptr_t stored_secret_len);
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:64: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1508:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1506 | bundleCount: raw.bundle_count,
1507 | eligibleWeight: raw.eligible_weight,
1508 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1509 | )
1510 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1553:62: error: extra arguments at positions #13, #14, #15, #16 in call
1551 | keys.seedFingerprint.bytes.withUnsafeBufferPointer { fpBuf in
1552 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1553 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1554 | dbh,
1555 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5203:23: note: 'zcashlc_voting_build_pczt' declared here
5201 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5202 | */
5203 | struct FfiBoxedSlice *zcashlc_voting_build_pczt(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_pczt' declared here
5204 | const uint8_t *round_id,
5205 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1564:41: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1562 | secretBuf.baseAddress,
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1565 | fpBuf.baseAddress,
1566 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1565:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
1565 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1566 | UInt(fpBuf.count),
1567 | keys.accountIndex.index,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1660:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1658 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1659 | seed.bytes.withUnsafeBufferPointer { seedBuf in
1660 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1661 | dbh,
1662 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1725:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1723 | signature.withUnsafeBufferPointer { sigBuf in
1724 | sighash.withUnsafeBufferPointer { shBuf in
1725 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1726 | dbh,
1727 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1952:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1950 | draft.hotkeyStoredSecret.bytes.withUnsafeBufferPointer { secretBuf in
1951 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1952 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1953 | dbh,
1954 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2097:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2095 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2096 | urlBytes.withUnsafeBufferPointer { urlBuf in
2097 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2098 | dbh,
2099 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5300:23: note: 'zcashlc_voting_build_and_prove_delegation' declared here
5298 | * `zcashlc_voting_build_vote_commitment`.
5299 | */
5300 | struct FfiBoxedSlice *zcashlc_voting_build_and_prove_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_and_prove_delegation' declared here
5301 | const uint8_t *round_id,
5302 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2110:63: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2108 | fpBuf.baseAddress,
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2111:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2112:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2113 | urlBuf.baseAddress,
2114 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2113:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2114 | UInt(urlBuf.count),
2115 | pirLayout.pirDepth,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2726:24: error: cannot find 'zcashlc_take_last_error_report' in scope
2724 | /// failure: whichever runs first consumes the error.
2725 | nonisolated func lastErrorReport(fallback: String) -> RedactedRustError {
2726 | guard let report = zcashlc_take_last_error_report() else {
| `- error: cannot find 'zcashlc_take_last_error_report' in scope
2727 | return RedactedRustError(kind: .unclassified, message: fallback)
2728 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2730:13: error: cannot find 'zcashlc_free_error_report' in scope
2728 | }
2729 |
2730 | defer { zcashlc_free_error_report(report) }
| `- error: cannot find 'zcashlc_free_error_report' in scope
2731 |
2732 | let kind = RustErrorKind(ffiValue: report.pointee.kind)
[918/919] Compiling ZcashLightClientKit ClosureSDKSynchronizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingKeyTypes.swift:148:1: warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
146 | // across the detached proving task, so the index must be `Sendable` too. Its
147 | // only stored property is a `UInt32`.
148 | extension Zip32AccountIndex: Sendable {}
| `- warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
149 |
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:194:65: error: extra arguments at positions #10, #11, #12 in call
192 | notesBytes.withUnsafeBufferPointer { notesBuf in
193 | urlBytes.withUnsafeBufferPointer { urlBuf in
194 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
195 | dbh,
196 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5273:23: note: 'zcashlc_voting_precompute_delegation_pir' declared here
5271 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5272 | */
5273 | struct FfiBoxedSlice *zcashlc_voting_precompute_delegation_pir(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_precompute_delegation_pir' declared here
5274 | const uint8_t *round_id,
5275 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:428:55: error: extra arguments at positions #6, #7 in call
426 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
427 | txHashBytes.withUnsafeBufferPointer { txBuf in
428 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
429 | dbh,
430 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:6124:9: note: 'zcashlc_voting_mark_vote_submitted' declared here
6122 | * bytes; if `round_id_len == 0`, `round_id` is ignored.
6123 | */
6124 | int32_t zcashlc_voting_mark_vote_submitted(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_mark_vote_submitted' declared here
6125 | const uint8_t *round_id,
6126 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:477:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
475 | txHashBytes.withUnsafeBufferPointer { txBuf in
476 | eventsBytes.withUnsafeBufferPointer { evBuf in
477 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
478 | dbh,
479 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:582:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
580 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
581 | bundleBytes.withUnsafeBufferPointer { buf in
582 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
583 | buf.baseAddress,
584 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:615:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
613 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
614 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
615 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
616 | }
617 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1330:59: error: missing arguments for parameters #10, #11 in call
1328 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1329 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1330 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1331 | dbh,
1332 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5795:9: note: 'zcashlc_voting_record_share_delegation' declared here
5793 | * - `sent_to_urls_json` must be a JSON array of strings.
5794 | */
5795 | int32_t zcashlc_voting_record_share_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_record_share_delegation' declared here
5796 | const uint8_t *round_id,
5797 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1339:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1337 | urlsBuf.baseAddress,
1338 | UInt(urlsBuf.count),
1339 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1340 | )
1341 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:56: error: missing arguments for parameters #2, #3 in call
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5151:25: note: 'zcashlc_voting_generate_hotkey' declared here
5149 | * - `db` must be a valid, non-null `VotingDatabaseHandle` pointer.
5150 | */
5151 | struct FfiVotingHotkey *zcashlc_voting_generate_hotkey(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_generate_hotkey' declared here
5152 | const uint8_t *stored_secret,
5153 | uintptr_t stored_secret_len);
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:64: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1508:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1506 | bundleCount: raw.bundle_count,
1507 | eligibleWeight: raw.eligible_weight,
1508 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1509 | )
1510 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1553:62: error: extra arguments at positions #13, #14, #15, #16 in call
1551 | keys.seedFingerprint.bytes.withUnsafeBufferPointer { fpBuf in
1552 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1553 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1554 | dbh,
1555 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5203:23: note: 'zcashlc_voting_build_pczt' declared here
5201 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5202 | */
5203 | struct FfiBoxedSlice *zcashlc_voting_build_pczt(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_pczt' declared here
5204 | const uint8_t *round_id,
5205 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1564:41: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1562 | secretBuf.baseAddress,
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1565 | fpBuf.baseAddress,
1566 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1565:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
1565 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1566 | UInt(fpBuf.count),
1567 | keys.accountIndex.index,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1660:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1658 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1659 | seed.bytes.withUnsafeBufferPointer { seedBuf in
1660 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1661 | dbh,
1662 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1725:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1723 | signature.withUnsafeBufferPointer { sigBuf in
1724 | sighash.withUnsafeBufferPointer { shBuf in
1725 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1726 | dbh,
1727 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1952:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1950 | draft.hotkeyStoredSecret.bytes.withUnsafeBufferPointer { secretBuf in
1951 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1952 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1953 | dbh,
1954 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2097:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2095 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2096 | urlBytes.withUnsafeBufferPointer { urlBuf in
2097 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2098 | dbh,
2099 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5300:23: note: 'zcashlc_voting_build_and_prove_delegation' declared here
5298 | * `zcashlc_voting_build_vote_commitment`.
5299 | */
5300 | struct FfiBoxedSlice *zcashlc_voting_build_and_prove_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_and_prove_delegation' declared here
5301 | const uint8_t *round_id,
5302 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2110:63: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2108 | fpBuf.baseAddress,
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2111:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2112:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2113 | urlBuf.baseAddress,
2114 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2113:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2114 | UInt(urlBuf.count),
2115 | pirLayout.pirDepth,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2726:24: error: cannot find 'zcashlc_take_last_error_report' in scope
2724 | /// failure: whichever runs first consumes the error.
2725 | nonisolated func lastErrorReport(fallback: String) -> RedactedRustError {
2726 | guard let report = zcashlc_take_last_error_report() else {
| `- error: cannot find 'zcashlc_take_last_error_report' in scope
2727 | return RedactedRustError(kind: .unclassified, message: fallback)
2728 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2730:13: error: cannot find 'zcashlc_free_error_report' in scope
2728 | }
2729 |
2730 | defer { zcashlc_free_error_report(report) }
| `- error: cannot find 'zcashlc_free_error_report' in scope
2731 |
2732 | let kind = RustErrorKind(ffiValue: report.pointee.kind)
[919/919] Compiling ZcashLightClientKit CombineSDKSynchronizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingKeyTypes.swift:148:1: warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
146 | // across the detached proving task, so the index must be `Sendable` too. Its
147 | // only stored property is a `UInt32`.
148 | extension Zip32AccountIndex: Sendable {}
| `- warning: conformance to 'Sendable' must occur in the same source file as struct 'Zip32AccountIndex'; use '@unchecked Sendable' for retroactive conformance; this is an error in the Swift 6 language mode
149 |
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:194:65: error: extra arguments at positions #10, #11, #12 in call
192 | notesBytes.withUnsafeBufferPointer { notesBuf in
193 | urlBytes.withUnsafeBufferPointer { urlBuf in
194 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
195 | dbh,
196 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5273:23: note: 'zcashlc_voting_precompute_delegation_pir' declared here
5271 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5272 | */
5273 | struct FfiBoxedSlice *zcashlc_voting_precompute_delegation_pir(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_precompute_delegation_pir' declared here
5274 | const uint8_t *round_id,
5275 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:428:55: error: extra arguments at positions #6, #7 in call
426 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
427 | txHashBytes.withUnsafeBufferPointer { txBuf in
428 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
429 | dbh,
430 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:6124:9: note: 'zcashlc_voting_mark_vote_submitted' declared here
6122 | * bytes; if `round_id_len == 0`, `round_id` is ignored.
6123 | */
6124 | int32_t zcashlc_voting_mark_vote_submitted(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_mark_vote_submitted' declared here
6125 | const uint8_t *round_id,
6126 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:477:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
475 | txHashBytes.withUnsafeBufferPointer { txBuf in
476 | eventsBytes.withUnsafeBufferPointer { evBuf in
477 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
478 | dbh,
479 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:582:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
580 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
581 | bundleBytes.withUnsafeBufferPointer { buf in
582 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
583 | buf.baseAddress,
584 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:615:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
613 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
614 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
615 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
616 | }
617 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1330:59: error: missing arguments for parameters #10, #11 in call
1328 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1329 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1330 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1331 | dbh,
1332 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5795:9: note: 'zcashlc_voting_record_share_delegation' declared here
5793 | * - `sent_to_urls_json` must be a JSON array of strings.
5794 | */
5795 | int32_t zcashlc_voting_record_share_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_record_share_delegation' declared here
5796 | const uint8_t *round_id,
5797 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1339:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1337 | urlsBuf.baseAddress,
1338 | UInt(urlsBuf.count),
1339 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1340 | )
1341 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:56: error: missing arguments for parameters #2, #3 in call
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5151:25: note: 'zcashlc_voting_generate_hotkey' declared here
5149 | * - `db` must be a valid, non-null `VotingDatabaseHandle` pointer.
5150 | */
5151 | struct FfiVotingHotkey *zcashlc_voting_generate_hotkey(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_generate_hotkey' declared here
5152 | const uint8_t *stored_secret,
5153 | uintptr_t stored_secret_len);
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1454:64: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1452 | /// with the same care as any other key material.
1453 | public static func generateHotkey(network: NetworkType) throws -> VotingHotkey {
1454 | guard let ptr = zcashlc_voting_generate_hotkey(network.networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1455 | throw VotingRustBackendError.rustError(
1456 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1508:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1506 | bundleCount: raw.bundle_count,
1507 | eligibleWeight: raw.eligible_weight,
1508 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1509 | )
1510 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1553:62: error: extra arguments at positions #13, #14, #15, #16 in call
1551 | keys.seedFingerprint.bytes.withUnsafeBufferPointer { fpBuf in
1552 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1553 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1554 | dbh,
1555 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5203:23: note: 'zcashlc_voting_build_pczt' declared here
5201 | * non-null and valid for reads for `len` bytes; if `len == 0`, `ptr` is ignored.
5202 | */
5203 | struct FfiBoxedSlice *zcashlc_voting_build_pczt(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_pczt' declared here
5204 | const uint8_t *round_id,
5205 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1564:41: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1562 | secretBuf.baseAddress,
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1565 | fpBuf.baseAddress,
1566 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1565:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1563 | UInt(secretBuf.count),
1564 | UInt32(bitPattern: params.consensusBranchId),
1565 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1566 | UInt(fpBuf.count),
1567 | keys.accountIndex.index,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1660:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1658 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1659 | seed.bytes.withUnsafeBufferPointer { seedBuf in
1660 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1661 | dbh,
1662 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1725:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1723 | signature.withUnsafeBufferPointer { sigBuf in
1724 | sighash.withUnsafeBufferPointer { shBuf in
1725 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1726 | dbh,
1727 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1952:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1950 | draft.hotkeyStoredSecret.bytes.withUnsafeBufferPointer { secretBuf in
1951 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1952 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1953 | dbh,
1954 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2097:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2095 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2096 | urlBytes.withUnsafeBufferPointer { urlBuf in
2097 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2098 | dbh,
2099 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/libzcashlc.framework/Headers/zcashlc.h:5300:23: note: 'zcashlc_voting_build_and_prove_delegation' declared here
5298 | * `zcashlc_voting_build_vote_commitment`.
5299 | */
5300 | struct FfiBoxedSlice *zcashlc_voting_build_and_prove_delegation(struct VotingDatabaseHandle *db,
| `- note: 'zcashlc_voting_build_and_prove_delegation' declared here
5301 | const uint8_t *round_id,
5302 | uintptr_t round_id_len,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2110:63: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2108 | fpBuf.baseAddress,
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2111:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2109 | UInt(fpBuf.count),
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2112:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2110 | keys.accountIndex.index,
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2113 | urlBuf.baseAddress,
2114 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2113:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2111 | nameBuf.baseAddress,
2112 | UInt(nameBuf.count),
2113 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2114 | UInt(urlBuf.count),
2115 | pirLayout.pirDepth,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2726:24: error: cannot find 'zcashlc_take_last_error_report' in scope
2724 | /// failure: whichever runs first consumes the error.
2725 | nonisolated func lastErrorReport(fallback: String) -> RedactedRustError {
2726 | guard let report = zcashlc_take_last_error_report() else {
| `- error: cannot find 'zcashlc_take_last_error_report' in scope
2727 | return RedactedRustError(kind: .unclassified, message: fallback)
2728 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/ZcashRustBackend.swift:2730:13: error: cannot find 'zcashlc_free_error_report' in scope
2728 | }
2729 |
2730 | defer { zcashlc_free_error_report(report) }
| `- error: cannot find 'zcashlc_free_error_report' in scope
2731 |
2732 | let kind = RustErrorKind(ffiValue: report.pointee.kind)
warning: 'spi-builder-workspace': Source files for target DarksideTests should be located under 'Tests/DarksideTests', or a custom sources path can be set with the 'path' property in Package.swift
BUILD FAILURE 6.1 macosSpm