forked from primecoin/primecoin
-
Notifications
You must be signed in to change notification settings - Fork 9
cmake compilation failed #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Ticonderoga
wants to merge
138
commits into
mikaelh2:master
Choose a base branch
from
thbaumbach:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
looks like the original client needs some love regarding 'getwork'
more network code & miner merging, almost done TODO: integrate the mining loop from mikaelh's main.cpp
do-not-touch unless you know what you're doing
added mining code, but it's not working yet at least: compilable :-)
not (much) tested yet, experimental, use on your own risk ;)
Fixing Undefined reference to clock_gettime on RHEL6 Linux
* removed chainstats (the old style will come back soon) * fixed poolshare parameter * break on share found & todo added
- minor fixes
…xperimental Conflicts: aka REMOVED bitcoin-qt.pro contrib/macdeploy/fancy.plist doc/README.md doc/README_windows.txt doc/changes-hp.txt share/qt/clean_mac_info_plist.py src/main.cpp src/makefile.mingw src/net.cpp src/qt/bitcoin.cpp src/version.cpp
* time offset fix in mining code
* added thread priority argument (-threadprio=<#>)
* pushed version to 1.0a * added developer fee parameter (-devfeeid=X)
Merge branch 'master' of https://github.com/mikaelh2/primecoin into experimental Resolved Conflicts: src/prime.cpp src/prime.h
added missing `
Fix a typo in the README
disclaimer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I tried to compile xolominer locally with my own version of gcc / gmp / boost ... installed in
src-install/local-lib so I did
mkdir bin
cd bin
cmake ../ -DCMAKE_FIND_ROOT_PATH=/home/username/src-install/local-lib/
OpenSSL information: found
OpenSSL_INCLUDE_DIR: /home/username/src-install/local-lib/include
OpenSSL_LIBRARIES: /home/username/src-install/local-lib/lib/libssl.a;/home/username/src-install/local-lib/lib/libcrypto.a
-- Found GMP: /home/username/src-install/local-lib/lib/libgmp.so and /home/username/src-install/local-lib/lib/libgmpxx.so
libGMP information: found
GMP_INCLUDE_DIR: /home/username/src-install/local-lib/include
GMP(XX)_LIBRARIES: /home/username/src-install/local-lib/lib/libgmp.so (/home/username/src-install/local-lib/lib/libgmpxx.so)
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
-- thread
-- timer
-- chrono
Boost information: found 1.55.0
Boost_INCLUDE_DIRS: /home/username/src-install/local-lib/include
Boost_LIBRARY_DIRS: /home/username/src-install/local-lib/lib
Boost_LIBRARIES: /home/username/src-install/local-lib/lib/libboost_system.a;/home/username/src-install/local-lib/lib/libboost_thread.a;/home/username/src-install/local-lib/lib/libboost_timer.a;/home/username/src-install/local-lib/lib/libboost_chrono.a
-- Configuring done
-- Generating done
-- Build files have been written to: /home/username/src-install/primecoin-master/bin
then make
[ 33%] Building CXX object CMakeFiles/xolominer.dir/src/prime.cpp.o
[ 66%] Building CXX object CMakeFiles/xolominer.dir/src/main_mining.cpp.o
[100%] Building CXX object CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o
Linking CXX executable xolominer
CMakeFiles/xolominer.dir/src/prime.cpp.o: In function
MineProbablePrimeChain(CBlock&, __gmp_expr<__mpz_struct [1], __mpz_struct [1]>&, bool&, unsigned int&, unsigned int&, __gmp_expr<__mpz_struct [1], __mpz_struct [1]>&, int*, unsigned int*, CSieveOfEratosthenes&, CPrimalityTestParams&)': prime.cpp:(.text+0x8e67): undefined reference to
__gmp_get_memory_functions'prime.cpp:(.text+0x9727): undefined reference to
__gmp_get_memory_functions' prime.cpp:(.text+0x9792): undefined reference to
__gmp_get_memory_functions'prime.cpp:(.text+0x9895): undefined reference to
__gmp_get_memory_functions' prime.cpp:(.text+0x98f3): undefined reference to
_gmp_get_memory_functions'CMakeFiles/xolominer.dir/src/prime.cpp.o:prime.cpp:(.text+0x9eaf): more undefined references to
__gmp_get_memory_functions' follow CMakeFiles/xolominer.dir/src/main_mining.cpp.o: In function
void primecoin_mine<(CPUMODE)0>(CBlockProvider, unsigned int)':main_mining.cpp:(.text._Z14primecoin_mineIL7CPUMODE0EEvP14CBlockProviderj[_Z14primecoin_mineIL7CPUMODE0EEvP14CBlockProviderj]+0x9a1): undefined reference to
boost::this_thread::interruption_point()' main_mining.cpp:(.text._Z14primecoin_mineIL7CPUMODE0EEvP14CBlockProviderj[_Z14primecoin_mineIL7CPUMODE0EEvP14CBlockProviderj]+0x1279): undefined reference to
boost::this_thread::hiden::sleep_until(timespec const&)'CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function
boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, CWorkerThread>, boost::_bi::list1<boost::_bi::value<CWorkerThread_> > > >::~thread_data()': main_poolminer.cpp:(.text._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13CWorkerThreadEENS2_5list1INS2_5valueIPS6_EEEEEEED2Ev[_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13CWorkerThreadEENS2_5list1INS2_5valueIPS6_EEEEEEED5Ev]+0x8): undefined reference to
boost::detail::thread_data_base::~thread_data_base()'CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function
boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, CWorkerThread>, boost::_bi::list1boost::_bi::value<CWorkerThread* > > >::~thread_data()': main_poolminer.cpp:(.text._ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13CWorkerThreadEENS2_5list1INS2_5valueIPS6_EEEEEEED0Ev[_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13CWorkerThreadEENS2_5list1INS2_5valueIPS6_EEEEEEED0Ev]+0xc): undefined reference to
boost::detail::thread_data_base::~thread_data_base()'CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function
boost::condition_variable::wait(boost::unique_lockboost::mutex&)': main_poolminer.cpp:(.text._ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE[_ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE]+0x15): undefined reference to
boost::detail::get_current_thread_data()'main_poolminer.cpp:(.text._ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE[_ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE]+0xd5): undefined reference to
boost::this_thread::interruption_point()' CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function
boost::shared_lockboost::shared_mutex::lock()':main_poolminer.cpp:(.text._ZN5boost11shared_lockINS_12shared_mutexEE4lockEv[_ZN5boost11shared_lockINS_12shared_mutexEE4lockEv]+0x23): undefined reference to
boost::this_thread::disable_interruption::disable_interruption()' main_poolminer.cpp:(.text._ZN5boost11shared_lockINS_12shared_mutexEE4lockEv[_ZN5boost11shared_lockINS_12shared_mutexEE4lockEv]+0x7b): undefined reference to
boost::this_thread::disable_interruption::~disable_interruption()'main_poolminer.cpp:(.text._ZN5boost11shared_lockINS_12shared_mutexEE4lockEv[_ZN5boost11shared_lockINS_12shared_mutexEE4lockEv]+0xcf): undefined reference to
boost::this_thread::disable_interruption::~disable_interruption()' CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function
boost::unique_lockboost::shared_mutex::lock()':main_poolminer.cpp:(.text._ZN5boost11unique_lockINS_12shared_mutexEE4lockEv[_ZN5boost11unique_lockINS_12shared_mutexEE4lockEv]+0x27): undefined reference to
boost::this_thread::disable_interruption::disable_interruption()' main_poolminer.cpp:(.text._ZN5boost11unique_lockINS_12shared_mutexEE4lockEv[_ZN5boost11unique_lockINS_12shared_mutexEE4lockEv]+0x88): undefined reference to
boost::this_thread::disable_interruption::~disable_interruption()'main_poolminer.cpp:(.text._ZN5boost11unique_lockINS_12shared_mutexEE4lockEv[_ZN5boost11unique_lockINS_12shared_mutexEE4lockEv]+0xdc): undefined reference to
boost::this_thread::disable_interruption::~disable_interruption()' CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function
void boost::this_thread::sleepboost::posix_time::seconds(boost::posix_time::seconds const&)':main_poolminer.cpp:(.text.ZN5boost11this_thread5sleepINS_10posix_time7secondsEEEvRKT[ZN5boost11this_thread5sleepINS_10posix_time7secondsEEEvRKT]+0x20d): undefined reference to
boost::this_thread::hiden::sleep_until(timespec const&)' CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o: In function
CMasterThread::run()':main_poolminer.cpp:(.text._ZN13CMasterThread3runEv[_ZN13CMasterThread3runEv]+0xcf): undefined reference to
boost::thread::start_thread_noexcept()' main_poolminer.cpp:(.text._ZN13CMasterThread3runEv[_ZN13CMasterThread3runEv]+0x170): undefined reference to
vtable for boost::detail::thread_data_base'CMakeFiles/xolominer.dir/src/main_poolminer.cpp.o:(.rodata._ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13CWorkerThreadEENS2_5list1INS2_5valueIPS6_EEEEEEEE[_ZTIN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf0Iv13CWorkerThreadEENS2_5list1INS2_5valueIPS6_EEEEEEEE]+0x10): undefined reference to
typeinfo for boost::detail::thread_data_base' /usr/lib/../lib64/libcrypto.a(fips.o): In function
FIPSCHECK_verify':(.text+0x8da): undefined reference to
dlopen' /usr/lib/../lib64/libcrypto.a(fips.o): In function
FIPSCHECK_verify':(.text+0x8f1): undefined reference to
dlsym' /usr/lib/../lib64/libcrypto.a(fips.o): In function
FIPSCHECK_verify':(.text+0x903): undefined reference to
dladdr' /usr/lib/../lib64/libcrypto.a(fips.o): In function
FIPSCHECK_verify':(.text+0x90f): undefined reference to
dlclose' /usr/lib/../lib64/libcrypto.a(fips.o): In function
FIPSCHECK_verify':(.text+0x98a): undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
make[2]: *** [xolominer] Error 1
make[1]: *** [CMakeFiles/xolominer.dir/all] Error 2
make: *** [all] Error 2
any clue to fix this ?