Build Information
Failed to build ZcashLightClientKit, reference main (d2e036), with Swift 6.1 for macOS (SPM) on 4 Sep 2026 18:46:59 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
448 | txHashBytes.withUnsafeBufferPointer { txBuf in
449 | eventsBytes.withUnsafeBufferPointer { evBuf in
450 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
451 | dbh,
452 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:550:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
548 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
549 | bundleBytes.withUnsafeBufferPointer { buf in
550 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
551 | buf.baseAddress,
552 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:583:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
581 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
582 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
583 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
584 | }
585 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1297:59: error: missing arguments for parameters #10, #11 in call
1295 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1296 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1297 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1298 | dbh,
1299 | 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:1306:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1304 | urlsBuf.baseAddress,
1305 | UInt(urlsBuf.count),
1306 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1307 | )
1308 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1421:56: error: missing arguments for parameters #2, #3 in call
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1422 | throw VotingRustBackendError.rustError(
1423 | 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:1421:56: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1422 | throw VotingRustBackendError.rustError(
1423 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1473:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1471 | bundleCount: raw.bundle_count,
1472 | eligibleWeight: raw.eligible_weight,
1473 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1474 | )
1475 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1514:62: error: extra arguments at positions #13, #14, #15, #16 in call
1512 | keys.seedFingerprint.withUnsafeBufferPointer { fpBuf in
1513 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1514 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1515 | dbh,
1516 | 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:1525:48: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1523 | secretBuf.baseAddress,
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1526 | fpBuf.baseAddress,
1527 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1526:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
1526 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1527 | UInt(fpBuf.count),
1528 | keys.accountIndex,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1631:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1629 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1630 | seed.withUnsafeBufferPointer { seedBuf in
1631 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1632 | dbh,
1633 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1696:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1694 | signature.withUnsafeBufferPointer { sigBuf in
1695 | sighash.withUnsafeBufferPointer { shBuf in
1696 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1697 | dbh,
1698 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1911:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1909 | draft.hotkeyStoredSecret.withUnsafeBufferPointer { secretBuf in
1910 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1911 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1912 | dbh,
1913 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2056:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2054 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2055 | urlBytes.withUnsafeBufferPointer { urlBuf in
2056 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2057 | dbh,
2058 | 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:2069:50: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2067 | fpBuf.baseAddress,
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2070:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2071:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2072 | urlBuf.baseAddress,
2073 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2072:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2073 | UInt(urlBuf.count),
2074 | 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)
[909/918] Compiling ZcashLightClientKit VotingTypes.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:170:65: error: extra arguments at positions #10, #11, #12 in call
168 | notesBytes.withUnsafeBufferPointer { notesBuf in
169 | urlBytes.withUnsafeBufferPointer { urlBuf in
170 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
171 | dbh,
172 | 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:401:55: error: extra arguments at positions #6, #7 in call
399 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
400 | txHashBytes.withUnsafeBufferPointer { txBuf in
401 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
402 | dbh,
403 | 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:450:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
448 | txHashBytes.withUnsafeBufferPointer { txBuf in
449 | eventsBytes.withUnsafeBufferPointer { evBuf in
450 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
451 | dbh,
452 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:550:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
548 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
549 | bundleBytes.withUnsafeBufferPointer { buf in
550 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
551 | buf.baseAddress,
552 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:583:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
581 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
582 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
583 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
584 | }
585 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1297:59: error: missing arguments for parameters #10, #11 in call
1295 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1296 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1297 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1298 | dbh,
1299 | 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:1306:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1304 | urlsBuf.baseAddress,
1305 | UInt(urlsBuf.count),
1306 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1307 | )
1308 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1421:56: error: missing arguments for parameters #2, #3 in call
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1422 | throw VotingRustBackendError.rustError(
1423 | 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:1421:56: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1422 | throw VotingRustBackendError.rustError(
1423 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1473:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1471 | bundleCount: raw.bundle_count,
1472 | eligibleWeight: raw.eligible_weight,
1473 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1474 | )
1475 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1514:62: error: extra arguments at positions #13, #14, #15, #16 in call
1512 | keys.seedFingerprint.withUnsafeBufferPointer { fpBuf in
1513 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1514 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1515 | dbh,
1516 | 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:1525:48: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1523 | secretBuf.baseAddress,
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1526 | fpBuf.baseAddress,
1527 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1526:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
1526 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1527 | UInt(fpBuf.count),
1528 | keys.accountIndex,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1631:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1629 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1630 | seed.withUnsafeBufferPointer { seedBuf in
1631 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1632 | dbh,
1633 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1696:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1694 | signature.withUnsafeBufferPointer { sigBuf in
1695 | sighash.withUnsafeBufferPointer { shBuf in
1696 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1697 | dbh,
1698 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1911:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1909 | draft.hotkeyStoredSecret.withUnsafeBufferPointer { secretBuf in
1910 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1911 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1912 | dbh,
1913 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2056:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2054 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2055 | urlBytes.withUnsafeBufferPointer { urlBuf in
2056 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2057 | dbh,
2058 | 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:2069:50: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2067 | fpBuf.baseAddress,
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2070:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2071:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2072 | urlBuf.baseAddress,
2073 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2072:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2073 | UInt(urlBuf.count),
2074 | 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/918] Compiling ZcashLightClientKit WalletSummary+FFI.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:170:65: error: extra arguments at positions #10, #11, #12 in call
168 | notesBytes.withUnsafeBufferPointer { notesBuf in
169 | urlBytes.withUnsafeBufferPointer { urlBuf in
170 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
171 | dbh,
172 | 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:401:55: error: extra arguments at positions #6, #7 in call
399 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
400 | txHashBytes.withUnsafeBufferPointer { txBuf in
401 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
402 | dbh,
403 | 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:450:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
448 | txHashBytes.withUnsafeBufferPointer { txBuf in
449 | eventsBytes.withUnsafeBufferPointer { evBuf in
450 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
451 | dbh,
452 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:550:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
548 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
549 | bundleBytes.withUnsafeBufferPointer { buf in
550 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
551 | buf.baseAddress,
552 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:583:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
581 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
582 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
583 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
584 | }
585 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1297:59: error: missing arguments for parameters #10, #11 in call
1295 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1296 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1297 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1298 | dbh,
1299 | 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:1306:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1304 | urlsBuf.baseAddress,
1305 | UInt(urlsBuf.count),
1306 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1307 | )
1308 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1421:56: error: missing arguments for parameters #2, #3 in call
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1422 | throw VotingRustBackendError.rustError(
1423 | 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:1421:56: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1422 | throw VotingRustBackendError.rustError(
1423 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1473:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1471 | bundleCount: raw.bundle_count,
1472 | eligibleWeight: raw.eligible_weight,
1473 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1474 | )
1475 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1514:62: error: extra arguments at positions #13, #14, #15, #16 in call
1512 | keys.seedFingerprint.withUnsafeBufferPointer { fpBuf in
1513 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1514 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1515 | dbh,
1516 | 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:1525:48: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1523 | secretBuf.baseAddress,
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1526 | fpBuf.baseAddress,
1527 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1526:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
1526 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1527 | UInt(fpBuf.count),
1528 | keys.accountIndex,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1631:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1629 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1630 | seed.withUnsafeBufferPointer { seedBuf in
1631 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1632 | dbh,
1633 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1696:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1694 | signature.withUnsafeBufferPointer { sigBuf in
1695 | sighash.withUnsafeBufferPointer { shBuf in
1696 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1697 | dbh,
1698 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1911:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1909 | draft.hotkeyStoredSecret.withUnsafeBufferPointer { secretBuf in
1910 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1911 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1912 | dbh,
1913 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2056:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2054 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2055 | urlBytes.withUnsafeBufferPointer { urlBuf in
2056 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2057 | dbh,
2058 | 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:2069:50: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2067 | fpBuf.baseAddress,
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2070:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2071:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2072 | urlBuf.baseAddress,
2073 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2072:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2073 | UInt(urlBuf.count),
2074 | 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/918] Compiling ZcashLightClientKit ZcashEip681Backend.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:170:65: error: extra arguments at positions #10, #11, #12 in call
168 | notesBytes.withUnsafeBufferPointer { notesBuf in
169 | urlBytes.withUnsafeBufferPointer { urlBuf in
170 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
171 | dbh,
172 | 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:401:55: error: extra arguments at positions #6, #7 in call
399 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
400 | txHashBytes.withUnsafeBufferPointer { txBuf in
401 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
402 | dbh,
403 | 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:450:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
448 | txHashBytes.withUnsafeBufferPointer { txBuf in
449 | eventsBytes.withUnsafeBufferPointer { evBuf in
450 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
451 | dbh,
452 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:550:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
548 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
549 | bundleBytes.withUnsafeBufferPointer { buf in
550 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
551 | buf.baseAddress,
552 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:583:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
581 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
582 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
583 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
584 | }
585 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1297:59: error: missing arguments for parameters #10, #11 in call
1295 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1296 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1297 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1298 | dbh,
1299 | 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:1306:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1304 | urlsBuf.baseAddress,
1305 | UInt(urlsBuf.count),
1306 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1307 | )
1308 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1421:56: error: missing arguments for parameters #2, #3 in call
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1422 | throw VotingRustBackendError.rustError(
1423 | 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:1421:56: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1422 | throw VotingRustBackendError.rustError(
1423 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1473:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1471 | bundleCount: raw.bundle_count,
1472 | eligibleWeight: raw.eligible_weight,
1473 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1474 | )
1475 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1514:62: error: extra arguments at positions #13, #14, #15, #16 in call
1512 | keys.seedFingerprint.withUnsafeBufferPointer { fpBuf in
1513 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1514 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1515 | dbh,
1516 | 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:1525:48: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1523 | secretBuf.baseAddress,
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1526 | fpBuf.baseAddress,
1527 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1526:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
1526 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1527 | UInt(fpBuf.count),
1528 | keys.accountIndex,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1631:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1629 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1630 | seed.withUnsafeBufferPointer { seedBuf in
1631 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1632 | dbh,
1633 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1696:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1694 | signature.withUnsafeBufferPointer { sigBuf in
1695 | sighash.withUnsafeBufferPointer { shBuf in
1696 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1697 | dbh,
1698 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1911:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1909 | draft.hotkeyStoredSecret.withUnsafeBufferPointer { secretBuf in
1910 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1911 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1912 | dbh,
1913 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2056:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2054 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2055 | urlBytes.withUnsafeBufferPointer { urlBuf in
2056 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2057 | dbh,
2058 | 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:2069:50: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2067 | fpBuf.baseAddress,
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2070:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2071:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2072 | urlBuf.baseAddress,
2073 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2072:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2073 | UInt(urlBuf.count),
2074 | 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/918] Compiling ZcashLightClientKit ZcashKeyDerivationBackend.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:170:65: error: extra arguments at positions #10, #11, #12 in call
168 | notesBytes.withUnsafeBufferPointer { notesBuf in
169 | urlBytes.withUnsafeBufferPointer { urlBuf in
170 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
171 | dbh,
172 | 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:401:55: error: extra arguments at positions #6, #7 in call
399 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
400 | txHashBytes.withUnsafeBufferPointer { txBuf in
401 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
402 | dbh,
403 | 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:450:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
448 | txHashBytes.withUnsafeBufferPointer { txBuf in
449 | eventsBytes.withUnsafeBufferPointer { evBuf in
450 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
451 | dbh,
452 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:550:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
548 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
549 | bundleBytes.withUnsafeBufferPointer { buf in
550 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
551 | buf.baseAddress,
552 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:583:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
581 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
582 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
583 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
584 | }
585 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1297:59: error: missing arguments for parameters #10, #11 in call
1295 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1296 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1297 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1298 | dbh,
1299 | 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:1306:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1304 | urlsBuf.baseAddress,
1305 | UInt(urlsBuf.count),
1306 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1307 | )
1308 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1421:56: error: missing arguments for parameters #2, #3 in call
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1422 | throw VotingRustBackendError.rustError(
1423 | 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:1421:56: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1422 | throw VotingRustBackendError.rustError(
1423 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1473:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1471 | bundleCount: raw.bundle_count,
1472 | eligibleWeight: raw.eligible_weight,
1473 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1474 | )
1475 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1514:62: error: extra arguments at positions #13, #14, #15, #16 in call
1512 | keys.seedFingerprint.withUnsafeBufferPointer { fpBuf in
1513 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1514 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1515 | dbh,
1516 | 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:1525:48: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1523 | secretBuf.baseAddress,
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1526 | fpBuf.baseAddress,
1527 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1526:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
1526 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1527 | UInt(fpBuf.count),
1528 | keys.accountIndex,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1631:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1629 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1630 | seed.withUnsafeBufferPointer { seedBuf in
1631 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1632 | dbh,
1633 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1696:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1694 | signature.withUnsafeBufferPointer { sigBuf in
1695 | sighash.withUnsafeBufferPointer { shBuf in
1696 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1697 | dbh,
1698 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1911:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1909 | draft.hotkeyStoredSecret.withUnsafeBufferPointer { secretBuf in
1910 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1911 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1912 | dbh,
1913 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2056:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2054 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2055 | urlBytes.withUnsafeBufferPointer { urlBuf in
2056 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2057 | dbh,
2058 | 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:2069:50: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2067 | fpBuf.baseAddress,
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2070:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2071:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2072 | urlBuf.baseAddress,
2073 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2072:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2073 | UInt(urlBuf.count),
2074 | 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/918] Compiling ZcashLightClientKit ZcashKeyDerivationBackendWelding.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:170:65: error: extra arguments at positions #10, #11, #12 in call
168 | notesBytes.withUnsafeBufferPointer { notesBuf in
169 | urlBytes.withUnsafeBufferPointer { urlBuf in
170 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
171 | dbh,
172 | 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:401:55: error: extra arguments at positions #6, #7 in call
399 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
400 | txHashBytes.withUnsafeBufferPointer { txBuf in
401 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
402 | dbh,
403 | 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:450:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
448 | txHashBytes.withUnsafeBufferPointer { txBuf in
449 | eventsBytes.withUnsafeBufferPointer { evBuf in
450 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
451 | dbh,
452 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:550:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
548 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
549 | bundleBytes.withUnsafeBufferPointer { buf in
550 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
551 | buf.baseAddress,
552 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:583:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
581 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
582 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
583 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
584 | }
585 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1297:59: error: missing arguments for parameters #10, #11 in call
1295 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1296 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1297 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1298 | dbh,
1299 | 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:1306:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1304 | urlsBuf.baseAddress,
1305 | UInt(urlsBuf.count),
1306 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1307 | )
1308 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1421:56: error: missing arguments for parameters #2, #3 in call
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1422 | throw VotingRustBackendError.rustError(
1423 | 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:1421:56: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1422 | throw VotingRustBackendError.rustError(
1423 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1473:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1471 | bundleCount: raw.bundle_count,
1472 | eligibleWeight: raw.eligible_weight,
1473 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1474 | )
1475 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1514:62: error: extra arguments at positions #13, #14, #15, #16 in call
1512 | keys.seedFingerprint.withUnsafeBufferPointer { fpBuf in
1513 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1514 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1515 | dbh,
1516 | 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:1525:48: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1523 | secretBuf.baseAddress,
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1526 | fpBuf.baseAddress,
1527 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1526:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
1526 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1527 | UInt(fpBuf.count),
1528 | keys.accountIndex,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1631:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1629 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1630 | seed.withUnsafeBufferPointer { seedBuf in
1631 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1632 | dbh,
1633 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1696:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1694 | signature.withUnsafeBufferPointer { sigBuf in
1695 | sighash.withUnsafeBufferPointer { shBuf in
1696 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1697 | dbh,
1698 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1911:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1909 | draft.hotkeyStoredSecret.withUnsafeBufferPointer { secretBuf in
1910 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1911 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1912 | dbh,
1913 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2056:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2054 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2055 | urlBytes.withUnsafeBufferPointer { urlBuf in
2056 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2057 | dbh,
2058 | 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:2069:50: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2067 | fpBuf.baseAddress,
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2070:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2071:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2072 | urlBuf.baseAddress,
2073 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2072:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2073 | UInt(urlBuf.count),
2074 | 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/918] Compiling ZcashLightClientKit ZcashRustBackend.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:170:65: error: extra arguments at positions #10, #11, #12 in call
168 | notesBytes.withUnsafeBufferPointer { notesBuf in
169 | urlBytes.withUnsafeBufferPointer { urlBuf in
170 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
171 | dbh,
172 | 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:401:55: error: extra arguments at positions #6, #7 in call
399 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
400 | txHashBytes.withUnsafeBufferPointer { txBuf in
401 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
402 | dbh,
403 | 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:450:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
448 | txHashBytes.withUnsafeBufferPointer { txBuf in
449 | eventsBytes.withUnsafeBufferPointer { evBuf in
450 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
451 | dbh,
452 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:550:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
548 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
549 | bundleBytes.withUnsafeBufferPointer { buf in
550 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
551 | buf.baseAddress,
552 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:583:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
581 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
582 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
583 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
584 | }
585 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1297:59: error: missing arguments for parameters #10, #11 in call
1295 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1296 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1297 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1298 | dbh,
1299 | 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:1306:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1304 | urlsBuf.baseAddress,
1305 | UInt(urlsBuf.count),
1306 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1307 | )
1308 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1421:56: error: missing arguments for parameters #2, #3 in call
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1422 | throw VotingRustBackendError.rustError(
1423 | 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:1421:56: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1422 | throw VotingRustBackendError.rustError(
1423 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1473:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1471 | bundleCount: raw.bundle_count,
1472 | eligibleWeight: raw.eligible_weight,
1473 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1474 | )
1475 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1514:62: error: extra arguments at positions #13, #14, #15, #16 in call
1512 | keys.seedFingerprint.withUnsafeBufferPointer { fpBuf in
1513 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1514 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1515 | dbh,
1516 | 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:1525:48: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1523 | secretBuf.baseAddress,
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1526 | fpBuf.baseAddress,
1527 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1526:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
1526 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1527 | UInt(fpBuf.count),
1528 | keys.accountIndex,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1631:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1629 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1630 | seed.withUnsafeBufferPointer { seedBuf in
1631 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1632 | dbh,
1633 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1696:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1694 | signature.withUnsafeBufferPointer { sigBuf in
1695 | sighash.withUnsafeBufferPointer { shBuf in
1696 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1697 | dbh,
1698 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1911:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1909 | draft.hotkeyStoredSecret.withUnsafeBufferPointer { secretBuf in
1910 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1911 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1912 | dbh,
1913 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2056:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2054 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2055 | urlBytes.withUnsafeBufferPointer { urlBuf in
2056 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2057 | dbh,
2058 | 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:2069:50: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2067 | fpBuf.baseAddress,
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2070:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2071:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2072 | urlBuf.baseAddress,
2073 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2072:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2073 | UInt(urlBuf.count),
2074 | 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/918] Compiling ZcashLightClientKit ZcashRustBackendWelding.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:170:65: error: extra arguments at positions #10, #11, #12 in call
168 | notesBytes.withUnsafeBufferPointer { notesBuf in
169 | urlBytes.withUnsafeBufferPointer { urlBuf in
170 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
171 | dbh,
172 | 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:401:55: error: extra arguments at positions #6, #7 in call
399 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
400 | txHashBytes.withUnsafeBufferPointer { txBuf in
401 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
402 | dbh,
403 | 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:450:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
448 | txHashBytes.withUnsafeBufferPointer { txBuf in
449 | eventsBytes.withUnsafeBufferPointer { evBuf in
450 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
451 | dbh,
452 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:550:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
548 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
549 | bundleBytes.withUnsafeBufferPointer { buf in
550 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
551 | buf.baseAddress,
552 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:583:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
581 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
582 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
583 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
584 | }
585 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1297:59: error: missing arguments for parameters #10, #11 in call
1295 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1296 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1297 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1298 | dbh,
1299 | 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:1306:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1304 | urlsBuf.baseAddress,
1305 | UInt(urlsBuf.count),
1306 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1307 | )
1308 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1421:56: error: missing arguments for parameters #2, #3 in call
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1422 | throw VotingRustBackendError.rustError(
1423 | 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:1421:56: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1422 | throw VotingRustBackendError.rustError(
1423 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1473:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1471 | bundleCount: raw.bundle_count,
1472 | eligibleWeight: raw.eligible_weight,
1473 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1474 | )
1475 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1514:62: error: extra arguments at positions #13, #14, #15, #16 in call
1512 | keys.seedFingerprint.withUnsafeBufferPointer { fpBuf in
1513 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1514 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1515 | dbh,
1516 | 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:1525:48: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1523 | secretBuf.baseAddress,
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1526 | fpBuf.baseAddress,
1527 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1526:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
1526 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1527 | UInt(fpBuf.count),
1528 | keys.accountIndex,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1631:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1629 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1630 | seed.withUnsafeBufferPointer { seedBuf in
1631 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1632 | dbh,
1633 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1696:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1694 | signature.withUnsafeBufferPointer { sigBuf in
1695 | sighash.withUnsafeBufferPointer { shBuf in
1696 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1697 | dbh,
1698 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1911:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1909 | draft.hotkeyStoredSecret.withUnsafeBufferPointer { secretBuf in
1910 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1911 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1912 | dbh,
1913 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2056:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2054 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2055 | urlBytes.withUnsafeBufferPointer { urlBuf in
2056 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2057 | dbh,
2058 | 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:2069:50: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2067 | fpBuf.baseAddress,
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2070:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2071:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2072 | urlBuf.baseAddress,
2073 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2072:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2073 | UInt(urlBuf.count),
2074 | 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/918] Compiling ZcashLightClientKit Synchronizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:170:65: error: extra arguments at positions #10, #11, #12 in call
168 | notesBytes.withUnsafeBufferPointer { notesBuf in
169 | urlBytes.withUnsafeBufferPointer { urlBuf in
170 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
171 | dbh,
172 | 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:401:55: error: extra arguments at positions #6, #7 in call
399 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
400 | txHashBytes.withUnsafeBufferPointer { txBuf in
401 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
402 | dbh,
403 | 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:450:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
448 | txHashBytes.withUnsafeBufferPointer { txBuf in
449 | eventsBytes.withUnsafeBufferPointer { evBuf in
450 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
451 | dbh,
452 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:550:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
548 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
549 | bundleBytes.withUnsafeBufferPointer { buf in
550 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
551 | buf.baseAddress,
552 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:583:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
581 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
582 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
583 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
584 | }
585 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1297:59: error: missing arguments for parameters #10, #11 in call
1295 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1296 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1297 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1298 | dbh,
1299 | 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:1306:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1304 | urlsBuf.baseAddress,
1305 | UInt(urlsBuf.count),
1306 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1307 | )
1308 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1421:56: error: missing arguments for parameters #2, #3 in call
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1422 | throw VotingRustBackendError.rustError(
1423 | 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:1421:56: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1422 | throw VotingRustBackendError.rustError(
1423 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1473:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1471 | bundleCount: raw.bundle_count,
1472 | eligibleWeight: raw.eligible_weight,
1473 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1474 | )
1475 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1514:62: error: extra arguments at positions #13, #14, #15, #16 in call
1512 | keys.seedFingerprint.withUnsafeBufferPointer { fpBuf in
1513 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1514 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1515 | dbh,
1516 | 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:1525:48: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1523 | secretBuf.baseAddress,
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1526 | fpBuf.baseAddress,
1527 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1526:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
1526 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1527 | UInt(fpBuf.count),
1528 | keys.accountIndex,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1631:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1629 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1630 | seed.withUnsafeBufferPointer { seedBuf in
1631 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1632 | dbh,
1633 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1696:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1694 | signature.withUnsafeBufferPointer { sigBuf in
1695 | sighash.withUnsafeBufferPointer { shBuf in
1696 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1697 | dbh,
1698 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1911:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1909 | draft.hotkeyStoredSecret.withUnsafeBufferPointer { secretBuf in
1910 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1911 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1912 | dbh,
1913 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2056:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2054 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2055 | urlBytes.withUnsafeBufferPointer { urlBuf in
2056 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2057 | dbh,
2058 | 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:2069:50: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2067 | fpBuf.baseAddress,
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2070:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2071:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2072 | urlBuf.baseAddress,
2073 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2072:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2073 | UInt(urlBuf.count),
2074 | 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/918] Compiling ZcashLightClientKit ClosureSDKSynchronizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:170:65: error: extra arguments at positions #10, #11, #12 in call
168 | notesBytes.withUnsafeBufferPointer { notesBuf in
169 | urlBytes.withUnsafeBufferPointer { urlBuf in
170 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
171 | dbh,
172 | 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:401:55: error: extra arguments at positions #6, #7 in call
399 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
400 | txHashBytes.withUnsafeBufferPointer { txBuf in
401 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
402 | dbh,
403 | 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:450:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
448 | txHashBytes.withUnsafeBufferPointer { txBuf in
449 | eventsBytes.withUnsafeBufferPointer { evBuf in
450 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
451 | dbh,
452 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:550:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
548 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
549 | bundleBytes.withUnsafeBufferPointer { buf in
550 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
551 | buf.baseAddress,
552 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:583:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
581 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
582 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
583 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
584 | }
585 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1297:59: error: missing arguments for parameters #10, #11 in call
1295 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1296 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1297 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1298 | dbh,
1299 | 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:1306:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1304 | urlsBuf.baseAddress,
1305 | UInt(urlsBuf.count),
1306 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1307 | )
1308 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1421:56: error: missing arguments for parameters #2, #3 in call
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1422 | throw VotingRustBackendError.rustError(
1423 | 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:1421:56: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1422 | throw VotingRustBackendError.rustError(
1423 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1473:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1471 | bundleCount: raw.bundle_count,
1472 | eligibleWeight: raw.eligible_weight,
1473 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1474 | )
1475 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1514:62: error: extra arguments at positions #13, #14, #15, #16 in call
1512 | keys.seedFingerprint.withUnsafeBufferPointer { fpBuf in
1513 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1514 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1515 | dbh,
1516 | 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:1525:48: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1523 | secretBuf.baseAddress,
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1526 | fpBuf.baseAddress,
1527 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1526:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
1526 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1527 | UInt(fpBuf.count),
1528 | keys.accountIndex,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1631:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1629 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1630 | seed.withUnsafeBufferPointer { seedBuf in
1631 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1632 | dbh,
1633 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1696:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1694 | signature.withUnsafeBufferPointer { sigBuf in
1695 | sighash.withUnsafeBufferPointer { shBuf in
1696 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1697 | dbh,
1698 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1911:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1909 | draft.hotkeyStoredSecret.withUnsafeBufferPointer { secretBuf in
1910 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1911 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1912 | dbh,
1913 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2056:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2054 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2055 | urlBytes.withUnsafeBufferPointer { urlBuf in
2056 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2057 | dbh,
2058 | 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:2069:50: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2067 | fpBuf.baseAddress,
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2070:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2071:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2072 | urlBuf.baseAddress,
2073 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2072:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2073 | UInt(urlBuf.count),
2074 | 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/918] Compiling ZcashLightClientKit CombineSDKSynchronizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:170:65: error: extra arguments at positions #10, #11, #12 in call
168 | notesBytes.withUnsafeBufferPointer { notesBuf in
169 | urlBytes.withUnsafeBufferPointer { urlBuf in
170 | zcashlc_voting_precompute_delegation_pir(
| `- error: extra arguments at positions #10, #11, #12 in call
171 | dbh,
172 | 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:401:55: error: extra arguments at positions #6, #7 in call
399 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
400 | txHashBytes.withUnsafeBufferPointer { txBuf in
401 | zcashlc_voting_mark_vote_submitted(
| `- error: extra arguments at positions #6, #7 in call
402 | dbh,
403 | 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:450:25: error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
448 | txHashBytes.withUnsafeBufferPointer { txBuf in
449 | eventsBytes.withUnsafeBufferPointer { evBuf in
450 | zcashlc_voting_confirm_vote_submission(
| `- error: cannot find 'zcashlc_voting_confirm_vote_submission' in scope
451 | dbh,
452 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:550:17: error: cannot find 'zcashlc_voting_recover_wire_json' in scope
548 | let payload = try staticBoxedSliceFFI(fallback: "`recover_wire_json` failed") {
549 | bundleBytes.withUnsafeBufferPointer { buf in
550 | zcashlc_voting_recover_wire_json(
| `- error: cannot find 'zcashlc_voting_recover_wire_json' in scope
551 | buf.baseAddress,
552 | UInt(buf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:583:13: error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
581 | let bundleBytes = [UInt8](commitmentBundleJson.utf8)
582 | let ptr = bundleBytes.withUnsafeBufferPointer { buf in
583 | zcashlc_voting_recoverable_share_indices(buf.baseAddress, UInt(buf.count))
| `- error: cannot find 'zcashlc_voting_recoverable_share_indices' in scope
584 | }
585 | guard let ptr else {
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1297:59: error: missing arguments for parameters #10, #11 in call
1295 | let result = roundIdBytes.withUnsafeBufferPointer { ridBuf in
1296 | urlsBytes.withUnsafeBufferPointer { urlsBuf in
1297 | zcashlc_voting_record_share_delegation(
| `- error: missing arguments for parameters #10, #11 in call
1298 | dbh,
1299 | 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:1306:25: error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1304 | urlsBuf.baseAddress,
1305 | UInt(urlsBuf.count),
1306 | submitAt
| `- error: cannot convert value of type 'UInt64' to expected argument type 'UnsafePointer<UInt8>'
1307 | )
1308 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1421:56: error: missing arguments for parameters #2, #3 in call
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: missing arguments for parameters #2, #3 in call
1422 | throw VotingRustBackendError.rustError(
1423 | 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:1421:56: error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1419 | /// with the same care as any other key material.
1420 | public static func generateHotkey(networkId: UInt32) throws -> VotingHotkey {
1421 | guard let ptr = zcashlc_voting_generate_hotkey(networkId) else {
| `- error: cannot convert value of type 'UInt32' to expected argument type 'OpaquePointer'
1422 | throw VotingRustBackendError.rustError(
1423 | staticLastErrorMessage(fallback: "`generate_hotkey` failed")
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1473:31: error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1471 | bundleCount: raw.bundle_count,
1472 | eligibleWeight: raw.eligible_weight,
1473 | droppedCount: raw.dropped_count
| `- error: value of type 'FfiBundleSetupResult' has no member 'dropped_count'
1474 | )
1475 | }
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1514:62: error: extra arguments at positions #13, #14, #15, #16 in call
1512 | keys.seedFingerprint.withUnsafeBufferPointer { fpBuf in
1513 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1514 | zcashlc_voting_build_pczt(
| `- error: extra arguments at positions #13, #14, #15, #16 in call
1515 | dbh,
1516 | 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:1525:48: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1523 | secretBuf.baseAddress,
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
1526 | fpBuf.baseAddress,
1527 | UInt(fpBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1526:47: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1524 | UInt(secretBuf.count),
1525 | params.consensusBranchId,
1526 | fpBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
1527 | UInt(fpBuf.count),
1528 | keys.accountIndex,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1631:37: error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1629 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
1630 | seed.withUnsafeBufferPointer { seedBuf in
1631 | zcashlc_voting_sign_delegation_request(
| `- error: cannot find 'zcashlc_voting_sign_delegation_request' in scope
1632 | dbh,
1633 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1696:25: error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1694 | signature.withUnsafeBufferPointer { sigBuf in
1695 | sighash.withUnsafeBufferPointer { shBuf in
1696 | zcashlc_voting_get_delegation_submission_with_signature(
| `- error: cannot find 'zcashlc_voting_get_delegation_submission_with_signature' in scope
1697 | dbh,
1698 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:1911:25: error: cannot find 'zcashlc_voting_commit_vote' in scope
1909 | draft.hotkeyStoredSecret.withUnsafeBufferPointer { secretBuf in
1910 | authPathBytes.withUnsafeBufferPointer { pathBuf in
1911 | zcashlc_voting_commit_vote(
| `- error: cannot find 'zcashlc_voting_commit_vote' in scope
1912 | dbh,
1913 | ridBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2056:82: error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2054 | roundNameBytes.withUnsafeBufferPointer { nameBuf in
2055 | urlBytes.withUnsafeBufferPointer { urlBuf in
2056 | zcashlc_voting_build_and_prove_delegation(
| `- error: extra arguments at positions #17, #18, #19, #20, #21, #22, #23 in call
2057 | dbh,
2058 | 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:2069:50: error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2067 | fpBuf.baseAddress,
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
| `- error: cannot convert value of type 'UInt32' to expected argument type 'UnsafePointer<UInt8>'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2070:53: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2068 | UInt(fpBuf.count),
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UInt'
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2071:45: error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2069 | keys.accountIndex,
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
| `- error: cannot convert value of type 'UInt' to expected argument type '@convention(c) (Double, UnsafeMutableRawPointer?) -> Void'
2072 | urlBuf.baseAddress,
2073 | UInt(urlBuf.count),
/Users/admin/builder/spi-builder-workspace/Sources/ZcashLightClientKit/Rust/Voting/VotingRustBackend.swift:2072:52: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2070 | nameBuf.baseAddress,
2071 | UInt(nameBuf.count),
2072 | urlBuf.baseAddress,
| `- error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutableRawPointer?'
2073 | UInt(urlBuf.count),
2074 | 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