I’m trying to build grin-miner just as it described in the instructions. And I’ve already struggled several error in a few days using search. But right now I even don’t know what I should looking for, cause I can’t get any clue from error output.
So my system is:
OS: Ubuntu 22.04.3LTS,
CPU: i5-11400H,
GPU: RTX 3060 Mobile 6GB
rustc 1.75.0, cargo 1.75.0, cmake 3.22.1, gcc 11.4.0, Cuda 12.3.107
I’m trying to build with the last commit of the repository:
58ed70be89c10149634372799d28a3fbaf43b925
Merge: 9df56c3 54beb23
Date: Tue Sep 22 17:18:57 2020 +0100
Build command:
CUDA_HOST_COMPILER=gcc-6 RUST_BACKTRACE=1 cargo build
Error:
error: failed to run custom build command for cuckoo_miner v4.0.0 (/home/hedgey/grin-miner/cuckoo-miner)
End of the output is:
running: cd "/home/hedgey/grin-miner/target/debug/build/cuckoo_miner-d3a5ecc6b7401bde/out/build" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "cmake" "--build" "." "--target" "" "--config" "Debug" "--"
--- stderr
Usage: cmake --build <dir> [options] [-- [native-options]]
cmake --build --preset <preset> [options] [-- [native-options]]
Options:
<dir> = Project binary directory to be built.
--preset <preset>, --preset=<preset>
= Specify a build preset.
--list-presets
= List available build presets.
--parallel [<jobs>], -j [<jobs>]
= Build in parallel using the given number of jobs.
If <jobs> is omitted the native build tool's
default number is used.
The CMAKE_BUILD_PARALLEL_LEVEL environment variable
specifies a default parallel level when this option
is not given.
--target <tgt>..., -t <tgt>...
= Build <tgt> instead of default targets.
--config <cfg> = For multi-configuration tools, choose <cfg>.
--clean-first = Build target 'clean' first, then build.
(To clean only, use --target 'clean'.)
--verbose, -v = Enable verbose output - if supported - including
the build commands to be executed.
-- = Pass remaining options to the native tool.
thread 'main' panicked at '
command did not execute successfully, got: exit status: 1
build script failed, must exit now', /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.44/src/lib.rs:885:5
stack backtrace:
0: rust_begin_unwind
at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/std/src/panicking.rs:578:5
1: core::panicking::panic_fmt
at /build/rustc-wAuwbs/rustc-1.70.0+dfsg0ubuntu1~bpo2/library/core/src/panicking.rs:67:14
2: cmake::fail
3: cmake::run
4: cmake::Config::build
5: build_script_build::main
6: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Can you please help me. I’m so tired for this few days. It’s like one of a circle of hell. I feel like I’m going give up soon.
If it’s necessary to provide you any additional information just tell me.