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

Build fails #18

Open
Incognify opened this issue Oct 22, 2024 · 0 comments
Open

Build fails #18

Incognify opened this issue Oct 22, 2024 · 0 comments

Comments

@Incognify
Copy link

Purchased a GPU server to mess around with this, and am completely unfamiliar with rust, cuda, and quite frankly anything GPU specific. Unable to proceed after the cargo +nightly install --path . step per the instructions. See output below.

Debian 12

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Apr_17_19:19:55_PDT_2024
Cuda compilation tools, release 12.5, V12.5.40
Build cuda_12.5.r12.5/compiler.34177558_0
rustc 1.82.0 (f6e511eec 2024-10-15)
root@onion-generator:~/tor-v3-vanity# cargo +nightly install --path .
  Installing tor-v3-vanity v0.1.0 (/root/tor-v3-vanity)
    Updating crates.io index
     Locking 120 packages to latest compatible versions
      Adding base32 v0.4.0 (available: v0.5.1)
      Adding clap v2.34.0 (available: v4.5.20)
      Adding crossbeam-channel v0.4.4 (available: v0.5.13)
      Adding ed25519-dalek v1.0.1 (available: v2.1.1)
      Adding rand v0.7.3 (available: v0.8.5)
      Adding sha3 v0.9.1 (available: v0.10.8)
      Adding zeroize v1.3.0 (available: v1.8.1)
  Downloaded block-padding v0.2.1
  Downloaded byteorder v1.5.0
  Downloaded block-buffer v0.9.0
  Downloaded autocfg v1.4.0
  Downloaded base32 v0.4.0
  Downloaded cuda-config v0.1.0
  Downloaded opaque-debug v0.3.1
  Downloaded is-terminal v0.4.13
  Downloaded keccak v0.1.5
  Downloaded signature v1.6.4
  Downloaded zeroize v1.3.0
  Downloaded subtle v2.6.1
  Downloaded zeroize_derive v1.4.2
  Downloaded sha2 v0.9.9
  Downloaded zerocopy-derive v0.7.35
  Downloaded chrono v0.4.38
  Downloaded zerocopy v0.7.35
  Downloaded sha3 v0.9.1
  Downloaded rand v0.7.3
  Downloaded typenum v1.17.0
  Downloaded rand_chacha v0.2.2
  Downloaded num-traits v0.2.19
  Downloaded ed25519-dalek v1.0.1
  Downloaded crossbeam-utils v0.7.2
  Downloaded maybe-uninit v2.0.0
  Downloaded iana-time-zone v0.1.61
  Downloaded getrandom v0.1.16
  Downloaded version_check v0.9.5
  Downloaded ppv-lite86 v0.2.20
  Downloaded generic-array v0.14.7
  Downloaded num_cpus v1.16.0
  Downloaded glob v0.3.1
  Downloaded digest v0.9.0
  Downloaded cpufeatures v0.2.14
  Downloaded ed25519 v1.5.3
  Downloaded crossbeam-channel v0.4.4
  Downloaded rand_core v0.5.1
  Downloaded thread_local v0.3.6
  Downloaded utf8-ranges v1.0.5
  Downloaded cfg-if v0.1.10
  Downloaded rustacuda_core v0.1.2
  Downloaded rustacuda_derive v0.1.2
  Downloaded ptx-builder v0.5.3
  Downloaded ucd-util v0.1.10
  Downloaded aho-corasick v0.6.10
  Downloaded cuda-driver-sys v0.3.0
  Downloaded toml v0.4.10
  Downloaded colored v1.9.4
  Downloaded ed25519-compact v0.1.11
  Downloaded rustacuda v0.1.3
  Downloaded regex-syntax v0.5.6
  Downloaded regex v0.2.11
  Downloaded curve25519-dalek v3.2.1
  Downloaded 53 crates (2.9 MB) in 0.74s
   Compiling proc-macro2 v1.0.89
   Compiling unicode-ident v1.0.13
   Compiling libc v0.2.161
   Compiling syn v1.0.109
   Compiling version_check v0.9.5
   Compiling serde v1.0.212
   Compiling cfg-if v1.0.0
   Compiling typenum v1.17.0
   Compiling autocfg v1.4.0
   Compiling memchr v2.7.4
   Compiling getrandom v0.1.16
   Compiling unicode-xid v0.2.6
   Compiling byteorder v1.5.0
   Compiling failure_derive v0.1.8
   Compiling adler2 v2.0.0
   Compiling lazy_static v1.5.0
   Compiling gimli v0.31.1
   Compiling miniz_oxide v0.8.0
   Compiling regex v0.2.11
   Compiling generic-array v0.14.7
   Compiling ucd-util v0.1.10
   Compiling glob v0.3.1
   Compiling rustc-demangle v0.1.24
   Compiling object v0.36.5
   Compiling aho-corasick v0.6.10
   Compiling regex-syntax v0.5.6
   Compiling quote v1.0.37
   Compiling cuda-config v0.1.0
   Compiling syn v2.0.82
   Compiling is-terminal v0.4.13
   Compiling thread_local v0.3.6
   Compiling semver-parser v0.7.0
   Compiling utf8-ranges v1.0.5
   Compiling rand_core v0.5.1
   Compiling block-padding v0.2.1
   Compiling semver v0.9.0
   Compiling colored v1.9.4
   Compiling cuda-driver-sys v0.3.0
   Compiling num-traits v0.2.19
   Compiling crossbeam-utils v0.7.2
   Compiling digest v0.9.0
   Compiling block-buffer v0.9.0
   Compiling maybe-uninit v2.0.0
   Compiling opaque-debug v0.3.1
   Compiling cfg-if v0.1.10
   Compiling subtle v2.6.1
   Compiling bitflags v1.3.2
   Compiling rustacuda_core v0.1.2
   Compiling addr2line v0.24.2
   Compiling unicode-width v0.1.14
   Compiling signature v1.6.4
   Compiling cpufeatures v0.2.14
   Compiling synstructure v0.12.6
   Compiling sha2 v0.9.9
   Compiling textwrap v0.11.0
   Compiling toml v0.4.10
   Compiling ed25519 v1.5.3
   Compiling backtrace v0.3.74
   Compiling rustacuda_derive v0.1.2
   Compiling failure v0.1.8
   Compiling atty v0.2.14
   Compiling ptx-builder v0.5.3
   Compiling keccak v0.1.5
   Compiling ansi_term v0.12.1
   Compiling ed25519-compact v0.1.11
   Compiling vec_map v0.8.2
   Compiling strsim v0.8.0
   Compiling iana-time-zone v0.1.61
   Compiling clap v2.34.0
   Compiling tor-v3-vanity-core v0.1.0 (/root/tor-v3-vanity/core)
   Compiling chrono v0.4.38
warning: unexpected `cfg` condition value: `nvptx`
 --> core/src/lib.rs:3:9
  |
3 |     any(target_arch = "nvptx", target_arch = "nvptx64"),
  |         ^^^^^^^^^^^^^^^^^^^^^
  |
  = note: expected values for `target_arch` are: `aarch64`, `arm`, `arm64ec`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`, and `xtensa`
  = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
  = note: `#[warn(unexpected_cfgs)]` on by default

warning: unexpected `cfg` condition value: `nvptx`
  --> core/src/lib.rs:10:11
   |
10 | #[cfg(any(target_arch = "nvptx", target_arch = "nvptx64"))]
   |           ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: expected values for `target_arch` are: `aarch64`, `arm`, `arm64ec`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`, and `xtensa`
   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

   Compiling sha3 v0.9.1
warning: `tor-v3-vanity-core` (lib) generated 2 warnings
   Compiling rustacuda v0.1.3
   Compiling tor-v3-vanity v0.1.0 (/root/tor-v3-vanity)
error: failed to run custom build command for `tor-v3-vanity v0.1.0 (/root/tor-v3-vanity)`

Caused by:
  process didn't exit successfully: `/root/tor-v3-vanity/target/release/build/tor-v3-vanity-d28d697c405a2578/build-script-build` (exit status: 1)
  --- stdout
  cargo:rustc-link-search=native=/usr/local/cuda/lib64/

  --- stderr
  [PTX] Command not found in PATH: 'rust-ptx-linker'. You can install it with: 'cargo install ptx-linker'.
  [PTX]
  [PTX] caused by:
  [PTX]   No such file or directory (os error 2)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `tor-v3-vanity v0.1.0 (/root/tor-v3-vanity)`, intermediate artifacts can be found at `/root/tor-v3-vanity/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

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

1 participant