Closed sirgarfieldc closed 1 year ago
This compilation issue isn't solved by switching to a GPU instance and installing opencl.
paperspace@psl1upbmf:~/create2crunch$ /usr/bin/clinfo -l
Platform #0: NVIDIA CUDA
`-- Device #0: NVIDIA Quadro M4000
But still can't compile
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/rustc1adS21/symbols.o" "/home/paperspace/create2crunch/target/release/deps/create2crunch-fc05e4d032fb3ba4.create2crunch.f3fd57fc-cgu.0.rcgu.o" "/home/paperspace/create2crunch/target/release/deps/create2
crunch-fc05e4d032fb3ba4.create2crunch.f3fd57fc-cgu.1.rcgu.o" "/home/paperspace/create2crunch/target/release/deps/create2crunch-fc05e4d032fb3ba4.create2crunch.f3fd57fc-cgu.2.rcgu.o" "/home/paperspace/create2crunch/target/release/de
ps/create2crunch-fc05e4d032fb3ba4.create2crunch.f3fd57fc-cgu.3.rcgu.o" "/home/paperspace/create2crunch/target/release/deps/create2crunch-fc05e4d032fb3ba4.create2crunch.f3fd57fc-cgu.4.rcgu.o" "/home/paperspace/create2crunch/target/
release/deps/create2crunch-fc05e4d032fb3ba4.create2crunch.f3fd57fc-cgu.5.rcgu.o" "/home/paperspace/create2crunch/target/release/deps/create2crunch-fc05e4d032fb3ba4.create2crunch.f3fd57fc-cgu.6.rcgu.o" "/home/paperspace/create2crun
ch/target/release/deps/create2crunch-fc05e4d032fb3ba4.create2crunch.f3fd57fc-cgu.7.rcgu.o" "/home/paperspace/create2crunch/target/release/deps/create2crunch-fc05e4d032fb3ba4.5a85092eu66otgsj.rcgu.o" "-Wl,--as-needed" "-L" "/home/p
aperspace/create2crunch/target/release/deps" "-L" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/paperspace/create2crunch/target/release/deps/li
bcreate2crunch-955329d4a61a11dc.rlib" "/home/paperspace/create2crunch/target/release/deps/libtiny_keccak-8cbdacca48780406.rlib" "/home/paperspace/create2crunch/target/release/deps/libcrunchy-8ed4542e8e9073dd.rlib" "/home/paperspac
e/create2crunch/target/release/deps/libterminal_size-7339680918a3533c.rlib" "/home/paperspace/create2crunch/target/release/deps/libseparator-d5646d2c80ba4905.rlib" "/home/paperspace/create2crunch/target/release/deps/librayon-f2cd5
bc3cd74f529.rlib" "/home/paperspace/create2crunch/target/release/deps/librayon_core-01437d052e3089db.rlib" "/home/paperspace/create2crunch/target/release/deps/librand-fac540551f3b6672.rlib" "/home/paperspace/create2crunch/target/release/deps/libocl_extras-6e9bec59c66bf244.rlib" "/home/paperspace/create2crunch/target/release/deps/libfailure-c67c0bca86e8435e.rlib" "/home/paperspace/create2crunch/target/release/deps/libbacktrace-a1df3464eb1dbdcf.rlib" "/home/
paperspace/create2crunch/target/release/deps/libminiz_oxide-3909702363b95dbe.rlib" "/home/paperspace/create2crunch/target/release/deps/libadler-6689936b4e00e214.rlib" "/home/paperspace/create2crunch/target/release/deps/libobject-bbe8b8dc5790a18a.rlib" "/home/paperspace/create2crunch/target/release/deps/libaddr2line-04925f4ba1a6dff9.rlib" "/home/paperspace/create2crunch/target/release/deps/libgimli-e4f8a4fce9f585df.rlib" "/home/paperspace/create2crunch/targ
et/release/deps/librustc_demangle-858f7f2a2246392c.rlib" "/home/paperspace/create2crunch/target/release/deps/libfutures-d886a66b79216f91.rlib" "/home/paperspace/create2crunch/target/release/deps/libfutures_stable-8cb1bcd40edafdfb.rlib" "/home/paperspace/create2crunch/target/release/deps/libfutures_executor-5b3fc6608e5c5627.rlib" "/home/paperspace/create2crunch/target/release/deps/libnum_cpus-a3d674aea59e3014.rlib" "/home/paperspace/create2crunch/target/release/deps/libfutures_util-4bf8dc43705fd5c7.rlib" "/home/paperspace/create2crunch/target/release/deps/libfutures_sink-a8c94101f9c30543.rlib" "/home/paperspace/create2crunch/target/release/deps/libfutures_io-c37381aedb3be2e3.rlib" "/home/paperspace/create2crunch/target/release/deps/libiovec-c0ca5601bededad9.rlib" "/home/paperspace/create2crunch/target/release/deps/libfutures_channel-6d326cdcf83beaf1.rlib" "/home/paperspace/create2crunch/target/release/deps/libfutures_core-06ba83d4e0f67ce5.rlib" "/home/paperspace/create2crunch/target/release/deps/libfutures_async_runtime-d7fb33496368c0b1.rlib" "/home/paperspace/create2crunch/target/release/deps/librand-e6006167e9860401.rlib" "/home/paperspace/create2crunch/target/release/deps/libocl-1760a8657cbc386d.rlib" "/home/paperspace/create2crunch/target/release/deps/libqutex-5892804024405262.rlib" "/home/paperspace/create2crunch/target/release/deps/libcrossbeam-ab48245803e411e2.rlib" "/home/paperspace/create2crunch/target/release/deps/libcrossbeam_channel-3918c138f8963cb6.rlib" "/home/paperspace/create2crunch/target/release/deps/libcrossbeam_deque-84305c26735eb821.rlib" "/home/paperspace/create2crunch/target/release/deps/libcrossbeam_queue-a5c679d5b654ba77.rlib" "/home/paperspace/create2crunch/target/release/deps/libcrossbeam_epoch-893af24248a23a2c.rlib" "/home/paperspace/create2crunch/target/release/deps/libmemoffset-2f1e02184ce7ff1b.rlib" "/home/paperspace/create2crunch/target/release/deps/libcrossbeam_utils-28373aade40d1814.rlib" "/home/paperspace/create2crunch/target/release/deps/libnodrop-b4279f266757258a.rlib" "/home/paperspace/create2crunc
h/target/release/deps/libocl_core-0caa5e05009829af.rlib" "/home/paperspace/create2crunch/target/release/deps/libthiserror-fddd7375e0151251.rlib" "/home/paperspace/create2crunch/target/release/deps/libcl_sys-9998a1314c202906.rlib"
"/home/paperspace/create2crunch/target/release/deps/libocl_core_vector-b5402b2a9cd70a4d.rlib" "/home/paperspace/create2crunch/target/release/deps/libnum_complex-534e79cb7455cef9.rlib" "/home/paperspace/create2crunch/target/release/deps/libenum_primitive-821c3539f49e1f75.rlib" "/home/paperspace/create2crunch/target/release/deps/libnum_traits-05bc32742b862470.rlib" "/home/paperspace/create2crunch/target/release/deps/libbitflags-7bf00ee3903ae29e.rlib" "/home/paperspace/create2crunch/target/release/deps/libfutures-9b62ff3d1added82.rlib" "/home/paperspace/create2crunch/target/release/deps/libnum_traits-91d0c265ae774935.rlib" "/home/paperspace/create2crunch/target/release/deps/libitertools-cc06e513dad8a63c.rlib" "/home/paperspace/create2crunch/target/release/deps/libeither-1920315c1cb19e4d.rlib" "/home/paperspace/create2crunch/target/release/deps/libhex-7d440b04a38264f4.rlib" "/home/paperspace/create2crunch/target/release/deps/libfs2-c798a5bcee32f621.rlib" "/home/paperspace/create2crunch/target/release/deps/libconsole-2a3bed15f7f7aebb.rlib" "/home/paperspace/create2crunch/target/release/deps/libunicode_width-10cd2a8344da8ff9.rlib" "/home/
paperspace/create2crunch/target/release/deps/libregex-0557e26a10fba713.rlib" "/home/paperspace/create2crunch/target/release/deps/libaho_corasick-aca21e51ead7839f.rlib" "/home/paperspace/create2crunch/target/release/deps/libmemchr-7731d5704fdaffb5.rlib" "/home/paperspace/create2crunch/target/release/deps/libregex_syntax-8698bad22cc2dcf8.rlib" "/home/paperspace/create2crunch/target/release/deps/libparking_lot-38b9ec925f93af62.rlib" "/home/paperspace/create2crunch/target/release/deps/libparking_lot_core-2c37ebfa61a932e2.rlib" "/home/paperspace/create2crunch/target/release/deps/libcfg_if-f0529e133a8d43d7.rlib" "/home/paperspace/create2crunch/target/release/deps/libsmallvec-70cd6ec108efea9c.rlib" "/home/paperspace/create2crunch/target/release/deps/liblock_api-7c24c1709996cfcd.rlib" "/home/paperspace/create2crunch/target/release/deps/libscopeguard-76d4133848713fb3.rlib" "/home/paperspace/create2crunch/target/release/deps/libclicolors_control-430baa5f61f9a954.rlib" "/home/paperspace/create2crunch/target/release/deps/libatty-a24e6ecb84bfffcf.rlib" "/home/paperspace/create2crunch/target/release/deps/liblazy_static-ab9cebf21f3f06a8.rlib" "/home/paperspace/create2crunch/target/release/deps/libtermios-95fa2d07157fd423.rlib" "/home/paperspace/create2crunch/target/release/deps/liblibc-49002545b392edab.rlib" "/home/paperspace/create2crunch/target/release/deps/libbyteorder-27e8459b180742f3.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-a11e3ca400b3ed09.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-3e82a3fced649488.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-53a4330185981bcb.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-2a8b57667b4852b5.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unkn
own-linux-gnu/lib/libaddr2line-9370462deca12c5a.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-7da763b8d3620472.rlib" "/home/paperspace/.rustup/toolchai
ns/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-5bde27582a7f5af7.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/lib
std_detect-1204e05b2d47e3d7.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-43987de2766b6923.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-un
known-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-d6499a0705316aa5.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-c9a27c90d8fb
f11e.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-8f159929cbfdfaf1.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rust
lib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-d2f1e8f3bb5cba95.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-9862f486269f442f.rlib" "/
home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-0434381f2f012ae2.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-u
nknown-linux-gnu/lib/liblibc-68549403a59fd02e.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-4cefb2045f924a5b.rlib" "/home/paperspace/.rustup/toolchains
/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-272615fc4f10c50d.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu
/lib/libcore-860619b93700e7eb.rlib" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b73e5b4656934876.rlib" "-Wl,-Bdynamic" "-lOpenCL" "-lc" "-lgcc_
s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/paperspace/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/paperspace/
create2crunch/target/release/deps/create2crunch-fc05e4d032fb3ba4" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs"
= note: /usr/bin/ld: cannot find -lOpenCL
BTW, I also tried to go back to previous commit where gpu wasn't supported yet. But commit 5aac9f62c68a81658445a97ff856cd0ec6178c54 doesn't support 3rd and 4th argument to specify leading and total zero. So the tool is still un-usable for my purpose.
Have solved the issue my self.
Solution
sudo apt update
sudo apt install ocl-icd-opencl-dev
closing
Command:
Error is related to opencl. But my host doesn't have a gpu. Can I use the software in this case ?
Full error dump: