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

Rust fails to compile the fasthash accelerations #1799

Closed
Mike404-source opened this issue Jun 15, 2024 Discussed in #1798 · 12 comments
Closed

Rust fails to compile the fasthash accelerations #1799

Mike404-source opened this issue Jun 15, 2024 Discussed in #1798 · 12 comments
Labels
in progress This is currently being worked on

Comments

@Mike404-source
Copy link

Both compiled and source versions of PC_Miner are not running. Both versions seem to "hang" on user verification and no config file is written. The generated url does produce good results when entered manually in a browser.

@KorryKatti
Copy link

I am getting a libducohash error too on the new release

@paolokk07
Copy link

I am also getting an libducohash error with the 4.1:

error[E0599]: no method named add_class found for reference &pyo3::prelude::P yModule in the current scope
--> src/lib.rs:44:7
|
44 | m.add_class::()?;
| ^^^^^^^^^ method not found in &PyModule

error[E0277]: the trait bound &pyo3::prelude::PyModule: From<BoundRef<'_, '_, p yo3::prelude::PyModule>> is not satisfied
--> src/lib.rs:42:1
|
42 | #[pymodule]
| ^^^^^^^^^^^ the trait From<BoundRef<'_, '_, pyo3::prelude::PyModule>> is not implemented for &pyo3::prelude::PyModule, which is required by BoundRef<' _, '_, pyo3::prelude::PyModule>: Into<_>
|
= note: required for BoundRef<'_, '_, pyo3::prelude::PyModule> to implement Into<&pyo3::prelude::PyModule>
= note: this error originates in the attribute macro pymodule (in Nightly b uilds, run with -Z macro-backtrace for more info)

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try rustc --explain E0277.
error: could not compile ducohasher (lib) due to 2 previous errors

@misterpk-thailand
Copy link

Screenshot_20240623_114110_Chrome.jpg

Just to reaport after upgraded to 4.1 version, I'm using 10 ESP32 device, hashrate increase from around 8x to 9x KH/s and reject also increase.

@revoxhere revoxhere reopened this Jun 29, 2024
@revoxhere revoxhere changed the title Release 4.1 Rust fails to compile the fasthash accelerations Jun 29, 2024
@revoxhere revoxhere added the in progress This is currently being worked on label Jun 29, 2024
simeononsecurity added a commit to simeononsecurity/docker-duino-coin that referenced this issue Jul 1, 2024
@simeononsecurity
Copy link

simeononsecurity commented Jul 1, 2024

This is preventing the docker container I made from being able to update.
For now I've removed it, so we'll have to deal without the fasthash.
Please notify me when this is fixed. I'll try and monitor either way.

Possible fix is to hardcode the rust version. But I'll have to look into that when I have more time.

@seanganteng
Copy link

Same eror

@KosmicDaKerbal
Copy link

root@server-inspiron:/mnt/SysHDD/Applications/DuinoCoin/V4.1/libducohash# cargo build --release
   Compiling ducohasher v0.1.0 (/mnt/SysHDD/Applications/DuinoCoin/V4.1/libducohash)
error[E0599]: no method named `add_class` found for reference `&pyo3::types::PyModule` in the current scope
  --> src/lib.rs:44:7
   |
44 |     m.add_class::<DUCOHasher>()?;
   |       ^^^^^^^^^ method not found in `&PyModule`

error[E0277]: the trait bound `&pyo3::types::PyModule: From<BoundRef<'_, '_, pyo3::types::PyModule>>` is not satisfied
  --> src/lib.rs:42:1
   |
42 | #[pymodule]
   | ^^^^^^^^^^^ the trait `From<BoundRef<'_, '_, pyo3::types::PyModule>>` is not implemented for `&pyo3::types::PyModule`, which is required by `BoundRef<'_, '_, pyo3::types::PyModule>: Into<_>`
   |
   = note: required for `BoundRef<'_, '_, pyo3::types::PyModule>` to implement `Into<&pyo3::types::PyModule>`
   = note: this error originates in the attribute macro `pymodule` (in Nightly builds, run with -Z macro-backtrace for more info)

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `ducohasher` (lib) due to 2 previous errors

@stijink
Copy link

stijink commented Aug 15, 2024

+1

@LF1977
Copy link

LF1977 commented Sep 10, 2024

Same error on Raspbery Pi 400 with latest Rasbian.

@profpandaa
Copy link
Contributor

The compile time error should be fixed in https://github.com/profpandaa/compatible-libducohash

@revoxhere
Copy link
Owner

@profpandaa Nice job. I didn't have success reaching out to the original libducohash dev to take a look at it. Can I update the source code on server that miners download to your edit?

@profpandaa
Copy link
Contributor

Of course!

@revoxhere
Copy link
Owner

Updated the codebase on server to version submitted by @profpandaa, this error should now be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress This is currently being worked on
Projects
None yet
Development

No branches or pull requests