nicehash / nheqminer

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

Error [100%] Linking CXX executable nheqminer #283

Open perezdann opened 7 years ago

perezdann commented 7 years ago

Environment:

Debian stable (stretch 9) GCC 4.9 G++ 4.9

Procedure:

sudo apt install nvidia-opencl-dev nvidia-cuda-toolkit gcc-4.9 git clone https://github.com/nicehash/nheqminer.git cd nheqminer/cpu_xenoncat/asm_linux/;chmod a+x *;sh assemble.sh;cd ../../../ mkdir build && cd build; export CC=/usr/bin/gcc-4.9; export CXX=/usr/bin/g++-4.9; cmake ../nheqminer; make -j $(nproc)

Log:

danny@TMCPETPC15:~/temp$ mkdir build && cd build; export CC=/usr/bin/gcc-4.9; export CXX=/usr/bin/g++-4.9; cmake ../nheqminer; make -j $(nproc)
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/gcc-4.9
-- Check for working C compiler: /usr/bin/gcc-4.9 -- 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/g++-4.9
-- Check for working CXX compiler: /usr/bin/g++-4.9 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- USE_CPU_XENONCAT DEFINED
-- USE_CUDA_DJEZO DEFINED
-- Looking for pthread.h
-- Looking for 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  
-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   system
--   log_setup
--   log
--   date_time
--   filesystem
--   thread
--   regex
--   chrono
--   atomic
-- CXXFLAGS:  -std=c++11 -m64 -msse2
-- LIBS: /usr/lib/x86_64-linux-gnu/libboost_system.a;/usr/lib/x86_64-linux-gnu/libboost_log_setup.a;/usr/lib/x86_64-linux-gnu/libboost_log.a;/usr/lib/x86_64-linux-gnu/libboost_date_time.a;/usr/lib/x86_64-linux-gnu/libboost_filesystem.a;/usr/lib/x86_64-linux-gnu/libboost_thread.a;/usr/lib/x86_64-linux-gnu/libboost_regex.a;/usr/lib/x86_64-linux-gnu/libboost_chrono.a;/usr/lib/x86_64-linux-gnu/libboost_atomic.a;/usr/lib/x86_64-linux-gnu/libpthread.a
-- Found CUDA: /usr (found version "8.0") 
CUDA FOUND
-- CUDA_NVCC_FLAGS: -gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60
-- Configuring done
-- Generating done
-- Build files have been written to: /home/danny/temp/build
[  4%] Building NVCC (Device) object cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o
Scanning dependencies of target cpu_xenoncat
[  9%] Building CXX object cpu_xenoncat/CMakeFiles/cpu_xenoncat.dir/xenoncat.cpp.o
[ 13%] Linking CXX static library libcpu_xenoncat.a
[ 13%] Built target cpu_xenoncat
Scanning dependencies of target cuda_djezo
[ 18%] Building CXX object cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo.cpp.o
[ 22%] Linking CXX static library libcuda_djezo.a
[ 22%] Built target cuda_djezo
Scanning dependencies of target nheqminer
[ 27%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/arith_uint256.cpp.o
[ 31%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/json/json_spirit_value.cpp.o
[ 36%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/libstratum/ZcashStratum.cpp.o
[ 40%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/json/json_spirit_writer.cpp.o
[ 45%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/json/json_spirit_reader.cpp.o
[ 50%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/api.cpp.o
[ 54%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/amount.cpp.o
[ 59%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/crypto/sha256.cpp.o
[ 63%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/main.cpp.o
[ 68%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/primitives/block.cpp.o
[ 72%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/speed.cpp.o
[ 77%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/uint256.cpp.o
[ 81%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/utilstrencodings.cpp.o
[ 86%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/libstratum/StratumClient.cpp.o
[ 90%] Building CXX object CMakeFiles/nheqminer.dir/blake2/blake2bx.cpp.o
[ 95%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/MinerFactory.cpp.o
[100%] Linking CXX executable nheqminer
CMakeFiles/nheqminer.dir/nheqminer/main.cpp.o: En la función `void boost::log::v2s_mt_posix::basic_formatting_ostream<char, std::char_traits<char>, std::allocator<char> >::aligned_write<wchar_t>(wchar_t const*, long)':
main.cpp:(.text._ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIcSt11char_traitsIcESaIcEE13aligned_writeIwEEvPKT_l[_ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIcSt11char_traitsIcESaIcEE13aligned_writeIwEEvPKT_l]+0xc3): referencia a `boost::log::v2s_mt_posix::aux::code_convert_impl(wchar_t const*, unsigned long, std::string&, unsigned long, std::locale const&)' sin definir
main.cpp:(.text._ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIcSt11char_traitsIcESaIcEE13aligned_writeIwEEvPKT_l[_ZN5boost3log12v2s_mt_posix24basic_formatting_ostreamIcSt11char_traitsIcESaIcEE13aligned_writeIwEEvPKT_l]+0x1f4): referencia a `boost::log::v2s_mt_posix::aux::code_convert_impl(wchar_t const*, unsigned long, std::string&, unsigned long, std::locale const&)' sin definir
CMakeFiles/nheqminer.dir/nheqminer/main.cpp.o: En la función `void boost::log::v2s_mt_posix::type_dispatcher::callback_base::trampoline<boost::log::v2s_mt_posix::binder1st<boost::log::v2s_mt_posix::output_fun, boost::log::v2s_mt_posix::expressions::aux::stream_ref<boost::log::v2s_mt_posix::basic_formatting_ostream<char, std::char_traits<char>, std::allocator<char> > >&>, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >(void*, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)':
main.cpp:(.text._ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stINS1_10output_funERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEEEESbIwSB_IwESaIwEEEEvPvRKT0_[_ZN5boost3log12v2s_mt_posix15type_dispatcher13callback_base10trampolineINS1_9binder1stINS1_10output_funERNS1_11expressions3aux10stream_refINS1_24basic_formatting_ostreamIcSt11char_traitsIcESaIcEEEEEEESbIwSB_IwESaIwEEEEvPvRKT0_]+0xa1): referencia a `boost::log::v2s_mt_posix::aux::code_convert_impl(wchar_t const*, unsigned long, std::string&, unsigned long, std::locale const&)' sin definir
CMakeFiles/nheqminer.dir/nheqminer/main.cpp.o: En la función `void boost::log::v2s_mt_posix::sinks::basic_formatting_sink_frontend<char>::feed_record<boost::log::v2s_mt_posix::aux::fake_mutex, boost::log::v2s_mt_posix::sinks::basic_text_ostream_backend<char> >(boost::log::v2s_mt_posix::record_view const&, boost::log::v2s_mt_posix::aux::fake_mutex&, boost::log::v2s_mt_posix::sinks::basic_text_ostream_backend<char>&)':
main.cpp:(.text._ZN5boost3log12v2s_mt_posix5sinks30basic_formatting_sink_frontendIcE11feed_recordINS1_3aux10fake_mutexENS2_26basic_text_ostream_backendIcEEEEvRKNS1_11record_viewERT_RT0_[_ZN5boost3log12v2s_mt_posix5sinks30basic_formatting_sink_frontendIcE11feed_recordINS1_3aux10fake_mutexENS2_26basic_text_ostream_backendIcEEEEvRKNS1_11record_viewERT_RT0_]+0xeb): referencia a `boost::log::v2s_mt_posix::sinks::basic_text_ostream_backend<char>::consume(boost::log::v2s_mt_posix::record_view const&, std::string const&)' sin definir
CMakeFiles/nheqminer.dir/nheqminer/main.cpp.o: En la función `void boost::log::v2s_mt_posix::sinks::basic_formatting_sink_frontend<char>::feed_record<boost::recursive_mutex, boost::log::v2s_mt_posix::sinks::basic_text_ostream_backend<char> >(boost::log::v2s_mt_posix::record_view const&, boost::recursive_mutex&, boost::log::v2s_mt_posix::sinks::basic_text_ostream_backend<char>&)':
main.cpp:(.text._ZN5boost3log12v2s_mt_posix5sinks30basic_formatting_sink_frontendIcE11feed_recordINS_15recursive_mutexENS2_26basic_text_ostream_backendIcEEEEvRKNS1_11record_viewERT_RT0_[_ZN5boost3log12v2s_mt_posix5sinks30basic_formatting_sink_frontendIcE11feed_recordINS_15recursive_mutexENS2_26basic_text_ostream_backendIcEEEEvRKNS1_11record_viewERT_RT0_]+0xfb): referencia a `boost::log::v2s_mt_posix::sinks::basic_text_ostream_backend<char>::consume(boost::log::v2s_mt_posix::record_view const&, std::string const&)' sin definir
collect2: error: ld returned 1 exit status
CMakeFiles/nheqminer.dir/build.make:502: fallo en las instrucciones para el objetivo 'nheqminer'
make[2]: *** [nheqminer] Error 1
CMakeFiles/Makefile2:68: fallo en las instrucciones para el objetivo 'CMakeFiles/nheqminer.dir/all'
make[1]: *** [CMakeFiles/nheqminer.dir/all] Error 2
Makefile:127: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
danny@TMCPETPC15:~/temp/build$ 
tiferrei commented 7 years ago

Hey @dannyperez, I hit the same wall, have you figured out what was wrong?

Cheers, tiferrei

tiferrei commented 7 years ago

@dannyperez If fixed this by installing boost from source, and making sure to use the default boost locations + passing the location to the compiler.

perezdann commented 6 years ago

@tiferrei Thanks!! i solved!! installed all boost library: sudo apt install libboost-all-dev

Thanks!!