Error when compiling a custom build

I am trying to build a build without librustzcash for my own reasons.

I don’t like the rust language and I don’t understand it, but I like zcash and I want to remove rust from it

can you tell me how to fix this?

./build.sh -i

+ make -i
Making all in src
make[1]: Entering directory '/home/ubuntu/zcash/src'
make[2]: Entering directory '/home/ubuntu/zcash/src'
RUSTC="/home/ubuntu/zcash/depends/x86_64-unknown-linux-gnu/share/../native/bin/rustc" TERM=dumb /home/ubuntu/zcash/depends/x86_64-unknown-linux-gnu/share/../native/bin/cargo build --lib --release --target x86_64-unknown-linux-gnu --locked --offline  --manifest-path ../Cargo.toml
error: no matching package named `zcash_history` found
location searched: registry `https://github.com/rust-lang/crates.io-index`
required by package `librustzcash v0.2.0 (/home/ubuntu/zcash)`
As a reminder, you're using offline mode (--offline) which can sometimes cause surprising resolution failures, if this error is too confusing you may wish to retry without the offline flag.
make[2]: [Makefile:7595: cargo-build] Error 101 (ignored)
make[3]: Entering directory '/home/ubuntu/zcash/src/secp256k1'
make[3]: Leaving directory '/home/ubuntu/zcash/src/secp256k1'
  CXXLD    zcashd
g++: error: ../target/x86_64-unknown-linux-gnu/release/librustzcash.a: No such file or directory
make[2]: [Makefile:2714: zcashd] Error 1 (ignored)
  CXXLD    zcash-cli
g++: error: ../target/x86_64-unknown-linux-gnu/release/librustzcash.a: No such file or directory
make[2]: [Makefile:2611: zcash-cli] Error 1 (ignored)
  CXXLD    zcash-tx
g++: error: ../target/x86_64-unknown-linux-gnu/release/librustzcash.a: No such file or directory
make[2]: [Makefile:2710: zcash-tx] Error 1 (ignored)
  CXXLD    bench/bench_zcash
g++: error: ../target/x86_64-unknown-linux-gnu/release/librustzcash.a: No such file or directory
make[2]: [Makefile:2607: bench/bench_zcash] Error 1 (ignored)
  CXXLD    test/test_zcash
g++: error: ../target/x86_64-unknown-linux-gnu/release/librustzcash.a: No such file or directory
make[2]: [Makefile:2852: test/test_zcash] Error 1 (ignored)
  CXXLD    zcash-gtest
g++: error: ../target/x86_64-unknown-linux-gnu/release/librustzcash.a: No such file or directory
make[2]: [Makefile:2706: zcash-gtest] Error 1 (ignored)
make[2]: Leaving directory '/home/ubuntu/zcash/src'
make[1]: Leaving directory '/home/ubuntu/zcash/src'
Making all in doc/man
make[1]: Entering directory '/home/ubuntu/zcash/doc/man'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/ubuntu/zcash/doc/man'
make[1]: Entering directory '/home/ubuntu/zcash'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/ubuntu/zcash'
ubuntu@ubuntu:~/zcash$

this issue is resolved

It looks like Zcash is currently pretty far down the pipeline for Rust integration, if you really want to tinker around with Zcash minus Rust you might try using a fork with a much older version of Zcash, like Zclassic.

https://zcash.readthedocs.io/en/latest/rtd_pages/librustzcash_arch.html

All of Zcash’s Sapling shielded functionality is built in Rust, as is the “hybrid Sprout” circuit that we moved to at the same time for Sprout shielded functionality. Removing Rust from a current zcashd build would require re-implementing the shielded logic entirely.

Note also that using the pre-Rust (Sprout-only) zcashd versions in a non-Zcash context is not safe due to the counterfeiting bug in the original Sprout circuit parameters; they would need to be re-generated. (It is not possible to use those older parameters with the current Zcash network.)

2 Likes