nicehash / nheqminer

Equihash miner for NiceHash
https://www.nicehash.com
MIT License
768 stars 583 forks source link

can't compile #318

Open shine4 opened 6 years ago

shine4 commented 6 years ago

I'm getting this on 100% :

[100%] Linking CXX executable nheqminer /usr/bin/ld: /usr/lib/x86_64-linux-gnu/librt.a(shm_open.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: /usr/lib/x86_64-linux-gnu/librt.a(shm_unlink.o): relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status CMakeFiles/nheqminer.dir/build.make:502: recipe for target 'nheqminer' failed make[2]: [nheqminer] Error 1 CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/nheqminer.dir/all' failed make[1]: [CMakeFiles/nheqminer.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

etopylight commented 6 years ago

I encountered a similar problem on Ubuntu 16.04 and found out that the default boost version installed from libboost-all-dev was lower than the required version 1.62.

Was able to solve the problem after compiling a newer version of boost.

BOOST_ROOT=/usr/local cmake ../nheqminer