nicehash / nheqminer

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

Error to make -j $(nproc) #270

Closed smileday2k closed 7 years ago

smileday2k commented 7 years ago

I encountered error at the final make command. The detail is as below. Any help is appreciated.

nheqminer-0.5c OS: CentOS 7.3 Boost version: 1.64 gcc version: 4.8.5 CMake version: 3.8.2 CMakeLists.txt The server doesn't have GPU so I only set CPU_XENONCAT to ON option(USE_CPU_XENONCAT "USE CPU_XENONCAT" ON)

The error occured while trying to execute the final make command. The log is below.

root@host [/home/eric/Downloads/nheqminer-0.5c/build]# make -j $(nproc) Scanning dependencies of target cpu_xenoncat [ 5%] Building CXX object cpu_xenoncat/CMakeFiles/cpu_xenoncat.dir/xenoncat.cpp.o [ 10%] Linking CXX static library libcpu_xenoncat.a [ 10%] Built target cpu_xenoncat Scanning dependencies of target nheqminer [ 15%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/amount.cpp.o [ 21%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/arith_uint256.cpp.o [ 26%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/api.cpp.o [ 31%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/crypto/sha256.cpp.o [ 36%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/json/json_spirit_reader.cpp.o [ 42%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/json/json_spirit_value.cpp.o [ 47%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/json/json_spirit_writer.cpp.o [ 52%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/libstratum/ZcashStratum.cpp.o [ 57%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/main.cpp.o [ 63%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/speed.cpp.o [ 68%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/uint256.cpp.o [ 73%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/utilstrencodings.cpp.o [ 84%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/primitives/block.cpp.o [ 84%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/libstratum/StratumClient.cpp.o [ 89%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/MinerFactory.cpp.o make[2]: No rule to make target ../nheqminer/cpu_xenoncat/asm_linux/equihash_avx1.o', needed bynheqminer'. Stop. make[2]: Waiting for unfinished jobs.... [ 94%] Building CXX object CMakeFiles/nheqminer.dir/blake2/blake2bx.cpp.o c++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See http://bugzilla.redhat.com/bugzilla for instructions. make[2]: [CMakeFiles/nheqminer.dir/nheqminer/libstratum/StratumClient.cpp.o] Error 4 make[1]: [CMakeFiles/nheqminer.dir/all] Error 2 make: *** [all] Error 2

smileday2k commented 7 years ago

Found the solution! The problem is the wrong path.

Solution. When you untar the nheqminer-0.5c.tar.gz file, usually it extracts to directory "nheqminer-0.5c". This will not work. YOU MUST EXTRACT IT TO "nheqminer" directory.

Then it will work.

Plus, I found something weird is that the "build" directory is actually outside the "nheqminer" folder. Most software building process will place it inside the software directory(Ex. nheqminer/build) but this time we have to put "build" directory outside. Weird....