Open coolsd opened 7 years ago
I also have the same error, can you check /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeError.log
and post the content.
/root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeError.log
Determining if the pthread_create exist failed with the following output: Change Dir: /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec1442566073/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1442566073.dir/build.make CMakeFiles/cmTryCompileExec1442566073.dir/build
make[1]: Entering directory /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1442566073.dir/CheckSymbolExists.c.o /usr/bin/cc -o CMakeFiles/cmTryCompileExec1442566073.dir/CheckSymbolExists.c.o -c /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTryCompileExec1442566073 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1442566073.dir/link.txt --verbose=1 /usr/bin/cc CMakeFiles/cmTryCompileExec1442566073.dir/CheckSymbolExists.c.o -o cmTryCompileExec1442566073 -rdynamic CMakeFiles/cmTryCompileExec1442566073.dir/CheckSymbolExists.c.o: In function
main':
CheckSymbolExists.c:(.text+0x16): undefined reference to pthread_create' collect2: error: ld returned 1 exit status make[1]: *** [cmTryCompileExec1442566073] Error 1 make[1]: Leaving directory
/root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp'
make: *\ [cmTryCompileExec1442566073/fast] Error 2
File /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */
int main(int argc, char\ argv) { (void)argv;
return ((int*)(&pthread_create))[argc];
(void)argc; return 0;
}
Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec1355109593/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1355109593.dir/build.make CMakeFiles/cmTryCompileExec1355109593.dir/build
make[1]: Entering directory /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1355109593.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec1355109593.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.2/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec1355109593 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1355109593.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec1355109593.dir/CheckFunctionExists.c.o -o cmTryCompileExec1355109593 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status make[1]: *** [cmTryCompileExec1355109593] Error 1 make[1]: Leaving directory
/root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeTmp'
make: *\ [cmTryCompileExec1355109593/fast] Error 2
I added config4cpp to setup instruction. Before build pool_frontend_zcash you must download sources and build 'libp2p' and 'poolcore' libraries.
root@iZj6cgsnrlfzjxvqxjtstpZ:~/pool_frontend_zcash/x86_64-Linux# make -j5
[ 14%] [ 28%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/zcashpool.cpp.o
Building CXX object CMakeFiles/pool_frontend_zcash.dir/main.cpp.o
In file included from /root/pool_frontend_zcash/src/main.cpp:1:0:
/root/pool_frontend_zcash/src/zcashpool.h:83:3: error: ‘set’ in namespace ‘std’ does not name a type
std::set
error: ‘set’ in namespace ‘std’ does not name a type Hmm.. add #include
?
#include <set>
make -j5
[ 12%] Running C++ protocol buffer compiler on /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/protocol.proto
Scanning dependencies of target pool_frontend_zcash
[ 25%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/main.cpp.o
[ 37%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/zcashpool.cpp.o
[ 50%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/zmtp.cpp.o
[ 62%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/equihash_original.cpp.o
[ 75%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/stratum.cpp.o
[ 87%] Building CXX object CMakeFiles/pool_frontend_zcash.dir/protocol.pb.cc.o
In file included from /root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/main.cpp:1:0:
/root/tmp/coins/zec/_build-pool/pool_frontend_zcash/src/zcashpool.h:85:3: error: ‘set’ in namespace ‘std’ does not name a type
std::set
Hello,
I'm having problem here can anyone help me about ?
User@Userpool:~/ZEC/poolcore/x86_64-Linux$ cmake ../src -DROOT_SOURCE_DIR=/home/user/ZEC -DZCASH_ENABLED=1 -- Boost version: 1.58.0 -- Found the following Boost libraries: -- thread -- system -- chrono -- date_time -- atomic /home/user/ZEC/zcash CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: AIO_LIBRARY linked by target "poolrpccmd" in directory /home/user/ZEC/poolcore/src/poolrpccmd P2P_LIBRARY linked by target "poolrpccmd" in directory /home/user/ZEC/poolcore/src/poolrpccmd
-- Configuring incomplete, errors occurred! See also "/home/user/ZEC/poolcore/x86_64-Linux/CMakeFiles/CMakeOutput.log". See also "/home/user/ZEC/poolcore/x86_64-Linux/CMakeFiles/CMakeError.log".
any update on the error above?
root@iZj6c2wgxq1l7b5yeipaz4Z:~/pool_frontend_zcash/x86_64-Linux# cmake ../src -DROOT_SOURCE_DIR=/root -- The C compiler identification is GNU 4.8.4 -- The CXX compiler identification is GNU 4.8.4 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Boost version: 1.54.0 -- Found the following Boost libraries: -- filesystem -- thread -- system -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found PROTOBUF: /usr/lib/x86_64-linux-gnu/libprotobuf.so -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1f") CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: AIO_INCLUDE_DIR used as include directory in directory /root/pool_frontend_zcash/src AIO_LIBRARY linked by target "pool_frontend_zcash" in directory /root/pool_frontend_zcash/src CONFIG4CPP_INCLUDE_DIR used as include directory in directory /root/pool_frontend_zcash/src CONFIG4CPP_LIBRARY linked by target "pool_frontend_zcash" in directory /root/pool_frontend_zcash/src P2PUTILS_LIBRARY linked by target "pool_frontend_zcash" in directory /root/pool_frontend_zcash/src P2P_LIBRARY linked by target "pool_frontend_zcash" in directory /root/pool_frontend_zcash/src POOLCOMMON_LIBRARY linked by target "pool_frontend_zcash" in directory /root/pool_frontend_zcash/src POOLCORE_INCLUDE_DIR used as include directory in directory /root/pool_frontend_zcash/src POOLCORE_LIBRARY linked by target "pool_frontend_zcash" in directory /root/pool_frontend_zcash/src
-- Configuring incomplete, errors occurred! See also "/root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeOutput.log". See also "/root/pool_frontend_zcash/x86_64-Linux/CMakeFiles/CMakeError.log".