PlasmaPower / nano-vanity

A NANO vanity address generator (supports OpenCL)
BSD 2-Clause "Simplified" License
92 stars 31 forks source link

Windows Error - fatal error LNK1181: cannot open input file 'OpenCL.lib' #9

Closed caseyscarborough closed 6 years ago

caseyscarborough commented 6 years ago

I receive the following error on a fresh install of Windows 10. I have the build tools from here installed. Any idea how to resolve it?

C:\Users\casey\Documents\Development\nano-vanity>cargo install --verbose
  Installing nano-vanity v0.3.4 (file:///C:/Users/casey/Documents/Development/nano-vanity)
       Fresh unicode-width v0.1.4
       Fresh arrayref v0.3.4
       Fresh constant_time_eq v0.1.3
       Fresh libc v0.2.36
       Fresh cc v1.0.4
       Fresh crossbeam v0.3.2
       Fresh rustc-serialize v0.3.24
       Fresh cfg-if v0.1.2
       Fresh byte-tools v0.2.0
       Fresh subtle v0.5.1
       Fresh vec_map v0.8.0
       Fresh nodrop v0.1.12
       Fresh num-traits v0.2.0
       Fresh hex v0.3.1
       Fresh rustc-demangle v0.1.5
       Fresh semver v0.1.20
       Fresh futures v0.1.18
       Fresh strsim v0.7.0
       Fresh bitflags v1.0.1
       Fresh textwrap v0.9.0
       Fresh num_cpus v1.8.0
       Fresh num-complex v0.1.42
       Fresh num-integer v0.1.36
       Fresh num-traits v0.1.43
       Fresh rustc_version v0.1.7
       Fresh qutex v0.2.0
       Fresh winapi v0.3.4
       Fresh num-iter v0.1.35
       Fresh enum_primitive v0.1.1
       Fresh subtle v0.3.0
       Fresh cl-sys v0.4.0
       Fresh typenum v1.9.0
       Fresh rand v0.4.2
       Fresh atty v0.2.6
       Fresh backtrace v0.3.5
       Fresh clear_on_drop v0.2.3
       Fresh generic-array v0.9.0
       Fresh num-bigint v0.1.43
       Fresh rand v0.3.22
       Fresh clap v2.30.0
       Fresh failure v0.1.1
       Fresh crypto-mac v0.5.2
       Fresh digest v0.7.2
       Fresh num-rational v0.1.42
       Fresh blake2 v0.7.0
       Fresh num v0.1.42
       Fresh ocl-core-vector v0.1.0
       Fresh curve25519-dalek v0.14.4
       Fresh ocl-core v0.7.0
       Fresh ed25519-dalek v0.6.1
       Fresh ocl v0.16.0
   Compiling nano-vanity v0.3.4 (file:///C:/Users/casey/Documents/Development/nano-vanity)
     Running `rustc --crate-name nano_vanity src\main.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=712667d6acba450c -C extra-filename=-712667d6acba450c --out-dir C:\Users\casey\Documents\Development\nano-vanity\target\release\deps -L dependency=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps --extern num_bigint=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libnum_bigint-f411eb8ae6ecb9de.rlib --extern ocl_core=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libocl_core-5b9033774547e116.rlib --extern hex=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libhex-b6b520324b899dca.rlib --extern num_traits=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libnum_traits-18ac497ca6efcf51.rlib --extern digest=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libdigest-e5901f0a5ecb978a.rlib --extern clap=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libclap-cc9b1dafb0c7e65b.rlib --extern blake2=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libblake2-c66db1b04532aa40.rlib --extern ocl=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libocl-4c28c029872ae12e.rlib --extern rand=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\librand-88d68ddc6bb54f5a.rlib --extern num_cpus=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libnum_cpus-6d3133cb552e2268.rlib --extern ed25519_dalek=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libed25519_dalek-85e5f4c676e39504.rlib -L native=C:\Users\casey\Documents\Development\nano-vanity\target\release\build\clear_on_drop-0c31754f9fbbe439\out`
error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.12.25827\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity0-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity1-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity10-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity11-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity12-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity13-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity14-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity15-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity2-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity3-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity4-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity5-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity6-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity7-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity8-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.nano_vanity9-8b240a95007d5922e3d0b4b0c0588d54.rs.rcgu.o" "/OUT:C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.exe" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\nano_vanity-712667d6acba450c.crate.allocator.rcgu.o" "/OPT:REF,ICF" "/DEBUG" "/NATVIS:C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/LIBPATH:C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps" "/LIBPATH:C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\build\\clear_on_drop-0c31754f9fbbe439\\out" "/LIBPATH:C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libclap-cc9b1dafb0c7e65b.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libstrsim-87172970a0ee1d1d.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libvec_map-c56be344bb54e1e0.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libblake2-c66db1b04532aa40.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libbyte_tools-30ea367c490fd762.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libnum_cpus-6d3133cb552e2268.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libed25519_dalek-85e5f4c676e39504.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libsubtle-f3c2186edb82999e.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libcurve25519_dalek-97cb1e296133d6e8.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libsubtle-27ef7d8df68e2725.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libdigest-e5901f0a5ecb978a.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libclear_on_drop-8925996a6b25ac1d.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libfailure-8bf38fd17cbe343a.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libbacktrace-caa587d04210c86d.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libcfg_if-e987c9ad8a4b17a4.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\librustc_demangle-6cf6462f07a69d99.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libcrypto_mac-60f3e4ebe2e0b354.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libgeneric_array-8c0caf03b165fec7.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libtypenum-c3dd495998ad2619.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libconstant_time_eq-67da61502985aa61.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libatty-9e06c157068926cb.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libtextwrap-62593ca603d73304.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libunicode_width-42ff7d5058597ced.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libhex-b6b520324b899dca.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libocl-4c28c029872ae12e.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libnodrop-c4d8d8911e5c0663.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libocl_core-5b9033774547e116.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libcl_sys-6c360987251c7a98.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libocl_core_vector-13962c373abbb680.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\librand-b5c4fb1884122db1.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libenum_primitive-e3d8fb37ef08568e.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libnum_traits-0ec498f46f639416.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libbitflags-2c050cb4199b50d4.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libnum-5019077b50990372.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libnum_rational-70bb46cc8b254ae3.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libnum_bigint-f411eb8ae6ecb9de.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\librand-88d68ddc6bb54f5a.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libwinapi-5f27828cc250bba2.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libnum_complex-241adc4767139bd0.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\librustc_serialize-68a83c17c907530b.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libnum_iter-32855407275e079e.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libnum_integer-97f8d4892f0f61f5.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libnum_traits-18ac497ca6efcf51.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\liblibc-9547bcd980def228.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libqutex-2e8ad109f53c23b7.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libfutures-0b3c52f281e85233.rlib" "C:\\Users\\casey\\Documents\\Development\\nano-vanity\\target\\release\\deps\\libcrossbeam-2c440f1f6a53f463.rlib" "C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-e4012f32ed49dbd4.rlib" "C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-e06b44655de3deec.rlib" "C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-bb7b44a2c820c759.rlib" "C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-7a58eced25824fd9.rlib" "C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc_system-274f63b9d93efba7.rlib" "C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-42d3f88d7348fdd5.rlib" "C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_unicode-0d9e538325cba131.rlib" "C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-a373617f7ef4ae90.rlib" "C:\\Users\\casey\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-5d9fbbf902f0a218.rlib" "OpenCL.lib" "OpenCL.lib" "OpenCL.lib" "OpenCL.lib" "gdi32.lib" "dbghelp.lib" "winspool.lib" "setupapi.lib" "advapi32.lib" "user32.lib" "kernel32.lib" "secur32.lib" "msimg32.lib" "opengl32.lib" "credui.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "shell32.lib" "msvcrt.lib"
  = note: LINK : fatal error LNK1181: cannot open input file 'OpenCL.lib'

error: aborting due to previous error

error: failed to compile `nano-vanity v0.3.4 (file:///C:/Users/casey/Documents/Development/nano-vanity)`, intermediate artifacts can be found at `C:\Users\casey\Documents\Development\nano-vanity\target`

Caused by:
  Could not compile `nano-vanity`.

Caused by:
  process didn't exit successfully: `rustc --crate-name nano_vanity src\main.rs --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=712667d6acba450c -C extra-filename=-712667d6acba450c --out-dir C:\Users\casey\Documents\Development\nano-vanity\target\release\deps -L dependency=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps --extern num_bigint=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libnum_bigint-f411eb8ae6ecb9de.rlib --extern ocl_core=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libocl_core-5b9033774547e116.rlib --extern hex=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libhex-b6b520324b899dca.rlib --extern num_traits=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libnum_traits-18ac497ca6efcf51.rlib --extern digest=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libdigest-e5901f0a5ecb978a.rlib --extern clap=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libclap-cc9b1dafb0c7e65b.rlib --extern blake2=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libblake2-c66db1b04532aa40.rlib --extern ocl=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libocl-4c28c029872ae12e.rlib --extern rand=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\librand-88d68ddc6bb54f5a.rlib --extern num_cpus=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libnum_cpus-6d3133cb552e2268.rlib --extern ed25519_dalek=C:\Users\casey\Documents\Development\nano-vanity\target\release\deps\libed25519_dalek-85e5f4c676e39504.rlib -L native=C:\Users\casey\Documents\Development\nano-vanity\target\release\build\clear_on_drop-0c31754f9fbbe439\out` (exit code: 101)
PlasmaPower commented 6 years ago

Are you attempting to use this with a GPU? If so, what manufacturer?

caseyscarborough commented 6 years ago

I don't currently have a GPU installed, just integrated graphics with an Intel 8700K.

PlasmaPower commented 6 years ago

I need to add an option to disable building with GPU support then, because your system likely doesn't have OpenCL libraries.

caseyscarborough commented 6 years ago

That would be great! I attempted to install the OpenCL drivers for Windows from this page, but running the installation gives me the following:

image

I tried uninstalling the Intel HD driver and went ahead with the OpenCL installation but unfortunately that didn't resolve the issue.

PlasmaPower commented 6 years ago

Okay I just made GPU support optional (and disabled by default). Try building again.

caseyscarborough commented 6 years ago

That fixed it! Thanks for the quick fix!