Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utilizing tetsy-mem-utils >= 0.4.2 causes build errors #9

Open
marlonhanks opened this issue Feb 27, 2021 · 0 comments
Open

utilizing tetsy-mem-utils >= 0.4.2 causes build errors #9

marlonhanks opened this issue Feb 27, 2021 · 0 comments

Comments

@marlonhanks
Copy link
Contributor

Before filing a new issue, please provide the following information.

If you think that your issue is an exploitable security vulnerability, please mail your bugreport to security@parity.io instead; your submission might be eligible for our Bug Bounty.
You can find mode info on the reporting process in SECURITY.md

  • OpenEthereum version: 0.0.0
  • Operating system: Windows / MacOS / Linux
  • Installation: homebrew / one-line installer / built from source
  • Fully synchronized: no / yes
  • Network: ethereum / ropsten / goerli / ...
  • Restarted: no / yes

Your issue description goes here below. Try to include actual vs. expected behavior and steps to reproduce the issue.

error[E0599]: no method named `malloc_size_of` found for struct `tetsy_memory_db::MemoryDB<KeccakHasher, HashKey<KeccakHasher>, Vec<u8>>` in the current scope
   --> util/journaldb/src/archivedb.rs:110:16
    |
110 |           self.overlay.malloc_size_of()
    |                        ^^^^^^^^^^^^^^ method not found in `tetsy_memory_db::MemoryDB<KeccakHasher, HashKey<KeccakHasher>, Vec<u8>>`
    |
   ::: /home/andres/.cargo/git/checkouts/trie-9dcd4b38438481c4/193a225/tetsy-memory-db/src/lib.rs:110:1
    |
110 | / pub struct MemoryDB<H, KF, T>
111 | |     where
112 | |     H: KeyHasher,
113 | |     KF: KeyFunction<H>,
...   |
118 | |     _kf: PhantomData<KF>,
119 | | }
    | | -
    | | |
    | |_doesn't satisfy `_: MallocSizeOfExt`
    |   doesn't satisfy `_: MallocSizeOf`
    |
    = note: the method `malloc_size_of` exists but the following trait bounds were not satisfied:
            `tetsy_memory_db::MemoryDB<KeccakHasher, HashKey<KeccakHasher>, Vec<u8>>: MallocSizeOf`
            which is required by `tetsy_memory_db::MemoryDB<KeccakHasher, HashKey<KeccakHasher>, Vec<u8>>: MallocSizeOfExt`

error[E0599]: no method named `size_of` found for struct `tetsy_memory_db::MemoryDB<KeccakHasher, HashKey<KeccakHasher>, Vec<u8>>` in the current scope
   --> util/journaldb/src/earlymergedb.rs:342:16
    |
342 |         self.overlay.size_of(&mut ops) + match self.refs {
    |                      ^^^^^^^ method not found in `tetsy_memory_db::MemoryDB<KeccakHasher, HashKey<KeccakHasher>, Vec<u8>>`

error[E0599]: no method named `size_of` found for struct `parking_lot::lock_api::RwLockReadGuard<'_, parking_lot::RawRwLock, HashMap<H256, RefInfo>>` in the current scope
   --> util/journaldb/src/earlymergedb.rs:343:28
    |
343 |               Some(ref c) => c.read().size_of(&mut ops),
    |                                       ^^^^^^^ method not found in `parking_lot::lock_api::RwLockReadGuard<'_, parking_lot::RawRwLock, HashMap<H256, RefInfo>>`
    |
   ::: /home/andres/.cargo/registry/src/github.com-1ecc6299db9ec823/tetsy-primitive-types-0.6.0/src/lib.rs:64:1
    |
64  | / construct_fixed_hash! {
65  | |     /// Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
66  | |     pub struct H256(32);
67  | | }
    | |_- doesn't satisfy `H256: MallocSizeOf`
    |
    = note: the method `size_of` exists but the following trait bounds were not satisfied:
            `H256: MallocSizeOf`
            which is required by `HashMap<H256, RefInfo>: MallocSizeOf`

error[E0277]: the trait bound `H256: MallocSizeOf` is not satisfied
   --> util/journaldb/src/overlayrecentdb.rs:137:21
    |
137 | #[derive(PartialEq, MallocSizeOf)]
    |                     ^^^^^^^^^^^^ the trait `MallocSizeOf` is not implemented for `H256`
    |
    = note: required by `tetsy_util_mem::MallocSizeOf::size_of`
    = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `size_of` found for struct `tetsy_memory_db::MemoryDB<KeccakHasher, HashKey<KeccakHasher>, Vec<u8>>` in the current scope
   --> util/journaldb/src/overlayrecentdb.rs:256:42
    |
256 |         let mut mem = self.transaction_overlay.size_of(&mut ops);
    |                                                ^^^^^^^ method not found in `tetsy_memory_db::MemoryDB<KeccakHasher, HashKey<KeccakHasher>, Vec<u8>>`

error[E0599]: no method named `size_of` found for struct `tetsy_memory_db::MemoryDB<KeccakHasher, HashKey<KeccakHasher>, Vec<u8>>` in the current scope
   --> util/journaldb/src/overlayrecentdb.rs:259:34
    |
259 |         mem += overlay.backing_overlay.size_of(&mut ops);
    |                                        ^^^^^^^ method not found in `tetsy_memory_db::MemoryDB<KeccakHasher, HashKey<KeccakHasher>, Vec<u8>>`

error[E0599]: no method named `size_of` found for struct `HashMap<H256, Vec<u8>, BuildHasherDefault<tetsy_plain_hasher::PlainHasher>>` in the current scope
   --> util/journaldb/src/overlayrecentdb.rs:260:34
    |
260 |           mem += overlay.pending_overlay.size_of(&mut ops);
    |                                          ^^^^^^^ method not found in `HashMap<H256, Vec<u8>, BuildHasherDefault<tetsy_plain_hasher::PlainHasher>>`
    |
   ::: /home/andres/.cargo/registry/src/github.com-1ecc6299db9ec823/tetsy-primitive-types-0.6.0/src/lib.rs:64:1
    |
64  | / construct_fixed_hash! {
65  | |     /// Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
66  | |     pub struct H256(32);
67  | | }
    | |_- doesn't satisfy `H256: MallocSizeOf`
    |
    = note: the method `size_of` exists but the following trait bounds were not satisfied:
            `H256: MallocSizeOf`
            which is required by `HashMap<H256, Vec<u8>, BuildHasherDefault<tetsy_plain_hasher::PlainHasher>>: MallocSizeOf`

error[E0599]: no method named `size_of` found for struct `Vec<H256>` in the current scope
   --> util/journaldb/src/refcounteddb.rs:109:16
    |
109 |           self.inserts.size_of(&mut ops) + self.removes.size_of(&mut ops)
    |                        ^^^^^^^ method not found in `Vec<H256>`
    |
   ::: /home/andres/.cargo/registry/src/github.com-1ecc6299db9ec823/tetsy-primitive-types-0.6.0/src/lib.rs:64:1
    |
64  | / construct_fixed_hash! {
65  | |     /// Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
66  | |     pub struct H256(32);
67  | | }
    | |_- doesn't satisfy `H256: MallocSizeOf`
    |
    = note: the method `size_of` exists but the following trait bounds were not satisfied:
            `H256: MallocSizeOf`
            which is required by `Vec<H256>: MallocSizeOf`
            `H256: MallocSizeOf`
            which is required by `[H256]: MallocSizeOf`

error[E0599]: no method named `size_of` found for struct `Vec<H256>` in the current scope
   --> util/journaldb/src/refcounteddb.rs:109:49
    |
109 |           self.inserts.size_of(&mut ops) + self.removes.size_of(&mut ops)
    |                                                         ^^^^^^^ method not found in `Vec<H256>`
    |
   ::: /home/andres/.cargo/registry/src/github.com-1ecc6299db9ec823/tetsy-primitive-types-0.6.0/src/lib.rs:64:1
    |
64  | / construct_fixed_hash! {
65  | |     /// Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.
66  | |     pub struct H256(32);
67  | | }
    | |_- doesn't satisfy `H256: MallocSizeOf`
    |
    = note: the method `size_of` exists but the following trait bounds were not satisfied:
            `H256: MallocSizeOf`
            which is required by `Vec<H256>: MallocSizeOf`
            `H256: MallocSizeOf`
            which is required by `[H256]: MallocSizeOf`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant