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

building problem #1

Open
miyumiyuv opened this issue Jun 30, 2024 · 3 comments
Open

building problem #1

miyumiyuv opened this issue Jun 30, 2024 · 3 comments

Comments

@miyumiyuv
Copy link

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: [email protected]: Compiler family detection failed since it does not define __clang__, __GNUC__ or _MSC_VER, fallback to treating it as GNU
warning: [email protected]: Compiler family detection failed due to error: ToolFamilyMacroNotFound: Expects macro __clang__, __GNUC__ or _MSC_VER, but found none
warning: [email protected]: Compiler family detection failed since it does not define __clang__, __GNUC__ or _MSC_VER, fallback to treating it as GNU
warning: [email protected]: Compiler family detection failed due to error: ToolFamilyMacroNotFound: Expects macro __clang__, __GNUC__ or _MSC_VER, but found none
warning: [email protected]: Compiler family detection failed since it does not define __clang__, __GNUC__ or _MSC_VER, fallback to treating it as GNU
warning: [email protected]: 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.

@AzothZephyr
Copy link

do you have gcc installed? i believe it should install these missing macros

@miyumiyuv
Copy link
Author

i have gcc + cuda 12.5 :(

@AzothZephyr
Copy link

if you dont want to track down the cause, my best advice would be to ditch windows. my second best advice is to investigate docker.

i have made docker containers and added to this pull request. your commands may differ from the commands i've added to the readme, due to windows as the build os, but this should containerize the build process so you dont need to worry about local deps. downside is you might see some performance hit compared to running directly on a machine.

do let me know if they work for you

#2

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

2 participants