cavemanloverboy / cavemanloverboy/vanity

building problem

Open
#1 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
136
Forks
49
Avg merge
4d 4h
Merged PRs (30d)
4

Description

i have a gpu build problem :C my cuda version:

`
C:\solvanidity>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Wed_Nov_22_10:30:42_Pacific_Standard_Time_2023
Cuda compilation tools, release 12.3, V12.3.107
Build cuda_12.3.r12.3/compiler.33567101_0
#`

my problem:

`
C:\solvanidity>cargo install vanity --features=gpu
Updating crates.io index
Installing vanity v0.2.0
Updating crates.io index
Compiling windows_x86_64_msvc v0.52.5
Compiling version_check v0.9.4
Compiling typenum v1.17.0
Compiling crossbeam-utils v0.8.20
Compiling proc-macro2 v1.0.86
Compiling unicode-ident v1.0.12
Compiling cfg-if v1.0.0
Compiling autocfg v1.3.0
Compiling anstyle v1.0.7
Compiling utf8parse v0.2.2
Compiling is_terminal_polyfill v1.70.0
Compiling rayon-core v1.12.1
Compiling getrandom v0.2.15
Compiling anstyle-parse v0.2.4
Compiling colorchoice v1.0.1
Compiling clap_lex v0.7.1
Compiling ppv-lite86 v0.2.17
Compiling rand_core v0.6.4
Compiling heck v0.5.0
Compiling cc v1.0.102
Compiling strsim v0.11.1
Compiling windows-targets v0.52.5
Compiling generic-array v0.14.7
Compiling windows-sys v0.52.0
Compiling num-traits v0.2.19
Compiling either v1.13.0
Compiling simplicio v0.1.3
Compiling itoa v1.0.11
Compiling rand_chacha v0.3.1
Compiling dekor v0.2.2
Compiling lazy_static v1.5.0
Compiling arrayvec v0.7.4
Compiling cpufeatures v0.2.12
Compiling fd_bs58 v0.1.0
Compiling rand v0.8.5
Compiling num-format v0.4.4
Compiling crossbeam-epoch v0.9.18
Compiling quote v1.0.36
Compiling crossbeam-deque v0.8.5
Compiling syn v2.0.68
Compiling anstyle-wincon v3.0.3
Compiling anstyle-query v1.1.0
Compiling anstream v0.6.14
Compiling chrono v0.4.38
Compiling clap_builder v4.5.8
Compiling vanity v0.2.0
Compiling rayon v1.10.0
Compiling block-buffer v0.10.4
Compiling crypto-common v0.1.6
Compiling digest v0.10.7
Compiling sha2 v0.10.8
Compiling logfather v0.2.6
Compiling clap_derive v4.5.8
Compiling clap v4.5.8
The following warnings were emitted during compilation:

warning: vanity@0.2.0: Compiler family detection failed since it does not define `__clang__`, `__GNUC__` or `_MSC_VER`, fallback to treating it as GNU
warning: vanity@0.2.0: Compiler family detection failed due to error: ToolFamilyMacroNotFound: Expects macro `__clang__`, `__GNUC__` or `_MSC_VER`, but found none
warning: vanity@0.2.0: Compiler family detection failed since it does not define `__clang__`, `__GNUC__` or `_MSC_VER`, fallback to treating it as GNU
warning: vanity@0.2.0: Compiler family detection failed due to error: ToolFamilyMacroNotFound: Expects macro `__clang__`, `__GNUC__` or `_MSC_VER`, but found none
warning: vanity@0.2.0: Compiler family detection failed since it does not define `__clang__`, `__GNUC__` or `_MSC_VER`, fallback to treating it as GNU
warning: vanity@0.2.0: Compiler family detection failed due to error: ToolFamilyMacroNotFound: Expects macro `__clang__`, `__GNUC__` or `_MSC_VER`, but found none

error: failed to run custom build command for `vanity v0.2.0`

Caused by:
process didn't exit successfully: `C:\Users\Xavier\AppData\Local\Temp\cargo-installqZ3rqB\release\build\vanity-d892d83bef0ecf6c\build-script-build` (exit code: 1)
--- stderr

error occurred: Command "nvcc" "-ccbin=C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX64\\x64\\cl.exe" "-Xcompiler" "-nologo" "-Xcompiler" "-MD" "-Xcompiler" "-O2" "-Xcompiler" "-Brepro" "-Xcompiler" "-W4" "-cudart=static" "-gencode=arch=compute_89,code=sm_89" "-gencode=arch=compute_89,code=compute_89" "-o" "C:\\Users\\Xavier\\AppData\\Local\\Temp\\cargo-installqZ3rqB\\release\\build\\vanity-88dfd19e8efac2fa\\out\\74b167934ea8af5b-base58.o" "-c" "--device-c" "kernels/base58.cu" with args nvcc did not execute successfully (status code exit code: 2).

warning: build failed, waiting for other jobs to finish...
error: failed to compile `vanity v0.2.0`, intermediate artifacts can be found at `C:\Users\Xavier\AppData\Local\Temp\cargo-installqZ3rqB`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce `cargo install vanity --features=gpu` on the reported Windows and CUDA 12.3 setup, then inspect the GPU build entry point and `kernels/base58.cu`, which is named in the failing command. Compare the `nvcc` and MSVC invocation with the reported compiler warnings and exit code; done means the GPU-enabled install completes successfully on the affected setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, rust
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.