Skip to content

z-0.13.0-3080 error[E0432]: unresolved import heim::memory #34

@huhuapop

Description

@huhuapop

Compiling config v0.10.1
Compiling bls-signatures v0.10.0
Compiling bellperson v0.14.2
Compiling heim-runtime v0.0.7 (/root/lotus/heim/heim-runtime)
Compiling neptune v3.0.0
Compiling fr32 v1.0.2
Compiling heim v0.0.11 (/root/lotus/heim/heim)
Compiling bellperson v0.14.2 (/root/lotus/bellperson)
error[E0432]: unresolved import heim::memory
--> /root/lotus/bellperson/src/groth16/prover.rs:276:12
|
276 | use heim::{memory, units::information};
| ^^^^^^ no memory in the root

Compiling filecoin-hashers v3.0.2
Compiling filcrypto v0.7.5 (/root/lotus/extern/filecoin-ffi/rust)
Compiling storage-proofs-core v8.0.2
error: aborting due to previous error

For more information about this error, try rustc --explain E0432.
error: could not compile bellperson

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

  • rm -f /mnt/md0/tmp/tmp.5gLPbYldaK
    Makefile:11: recipe for target '.install-filcrypto' failed
    make[1]: *** [.install-filcrypto] Error 101
    make[1]: Leaving directory '/root/lotus/extern/filecoin-ffi'
    Makefile:37: recipe for target 'build/.filecoin-install' failed
    make: *** [build/.filecoin-install] Error 2
    root@SYS-1-WORKER3-223:~/lotus#

I download the heim package and change it to v0.0.11. I google for a long time and there is no answer to this issue.

lotus version 1.11.1-dev+mainnet+git.2d40089b7

root@SYS-1-WORKER3-223:/lotus# cd bellperson/
root@SYS-1-WORKER3-223:
/lotus/bellperson# BELLMAN_NUM_CPUS=1 RUSTFLAGS="-C target-cpu=native" RUST_LOG=debug cargo test --release --all --workspace -- --nocapture
Compiling memchr v2.4.0
Compiling heim-common v0.0.11 (/root/lotus/heim/heim-common)
Compiling futures-util v0.3.15
Compiling aho-corasick v0.7.18
Compiling bstr v0.2.16
Compiling csv-core v0.1.10
Compiling csv v1.1.6
Compiling regex v1.5.4
Compiling criterion v0.3.4
Compiling env_logger v0.8.4
Compiling futures-executor v0.3.15
Compiling futures v0.3.15
Compiling heim-runtime v0.0.7 (/root/lotus/heim/heim-runtime)
Compiling heim v0.0.11 (/root/lotus/heim/heim)
Compiling bellperson v0.14.2 (/root/lotus/bellperson)
error[E0432]: unresolved import heim::memory
--> src/groth16/prover.rs:276:12
|
276 | use heim::{memory, units::information};
| ^^^^^^ no memory in the root

error: aborting due to previous error

For more information about this error, try rustc --explain E0432.
error: could not compile bellperson.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
root@SYS-1-WORKER3-223:~/lotus/bellperson#

I guess the problem is because the variable 'memory' is not defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions