nervosnetwork / ckb-miner

ckb miner for avx2 cpu, avx512 cpu and GPU
MIT License
31 stars 13 forks source link

build failed with error: Undefined symbols for architecture x86_64: "_RAND_bytes" #7

Open lite opened 5 years ago

lite commented 5 years ago

➜ ckb-miner git:(develop) cc -v Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin Found CUDA installation: /Developer/NVIDIA/CUDA-10.1, version unknown

= note: Undefined symbols for architecture x86_64: "_RAND_bytes", referenced from: _c_solve in libminer-3da0fdf4c29639a1.rlib(eaglesong.o) _c_solve_avx2 in libminer-3da0fdf4c29639a1.rlib(eaglesong_avx2.o) _c_solve_avx512 in libminer-3da0fdf4c29639a1.rlib(eaglesong_avx512.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

kilb commented 5 years ago

you should install OpenSSL first.

lite commented 5 years ago

➜ openssl openssl OpenSSL> version OpenSSL 1.1.1c 28 May 2019

openssl already install succeeded. https://www.cnblogs.com/lianshuiwuyi/p/7857399.html

kilb commented 5 years ago

try: export LDFLAGS=-L/usr/local/opt/openssl/lib export CPPFLAGS=-I/usr/local/opt/openssl/include