Cuckoo_miner compile error

I’m running Ubuntu 18.04 trying to get one 1070 up and running. I’ve got a wallet set up and a node running. Any help would be greatly appreciated…Thanks!

To build I enter:

export CC=/usr/bin/gcc-5
cargo build

Compiling libc v0.2.43
Compiling serde v1.0.78
Compiling time v0.1.40
Compiling memchr v2.0.2
Compiling rand v0.4.3
Compiling isatty v0.1.9
Compiling backtrace-sys v0.1.24
Compiling backtrace v0.3.9
Compiling aho-corasick v0.6.8
Compiling chrono v0.4.6
Compiling regex v0.2.11
Compiling rand v0.3.22
Compiling rust-crypto v0.2.36
Compiling slog-term v2.4.0
Compiling serde_json v1.0.27
Compiling grin_miner_util v1.0.2 (/home/severus/grin-miner/util)
Compiling grin_miner_plugin v1.0.2 (/home/severus/grin-miner/plugin)
Compiling cuckoo_miner v1.0.2 (/home/severus/grin-miner/cuckoo-miner)

It gets this far and quits…

Compiling cuckoo_miner v1.0.2 (/home/sev/grin-miner/cuckoo-miner)
error[E0433]: failed to resolve. Use of undeclared type or module util
→ cuckoo-miner/src/miner/consensus.rs:208:3
|
208 | util::to_hex(self.0.to_vec())
| ^^^^ Use of undeclared type or module util

Not familiar with Rust, but I added a line to consensus.rs at the top to “use util;” and it finished compiling.

1 Like

This allowed it to compile for me as well, thanks.

Same here. Ubuntu 18.04 use util; did the trick