Pages:
Author

Topic: [XPM] Primecoin High Performance Linux Compilation Guide - page 3. (Read 43545 times)

sr. member
Activity: 476
Merit: 250
One quick question: how do I tell how many coins I've mined?

Hi,

just watch 'primecoind getbalance' or 'primecoind listtransactions' or both...
I don't know if immature coins are listed though.

edit :

primecoind listaccounts will show all coins immature or not.
legendary
Activity: 1008
Merit: 1007
This guide is awesome; I tried to get this running on centos myself for ages without success; now it's up and running!

One quick question: how do I tell how many coins I've mined?
hero member
Activity: 840
Merit: 1000
For CentOS if you installed Boost from an rpm distribution you'll probably have to edit the makefile to include boost_thread-mt instead of boost_thread.

Or just do this, as the guide points out:

Quote
make -f makefile.unix BOOST_LIB_SUFFIX=-mt
sr. member
Activity: 462
Merit: 250
Thanks for the comprehensive instructions. Smiley

I have got a bit stuck though and I'm hoping someone can help. I got HP5 working and am now trying HP7. I am trying under three different distros: Debian 6, Ubuntu 12.4 and Centos 6.

I was getting some failures due to this bug, but got around that using the recommended s/TIME_UTC/TIME_UTC_/g.

CentOS

This one fails not finding lib boost I think, but the latest versions are installed:

Code:
# make -f makefile.unix USE_UPNP=-
/bin/sh ../share/genbuild.sh obj/build.h
which: no git in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
g++ -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin-0.1.1-hp7/src -I/root/primecoin-0.1.1-hp7/src/obj -I/usr/local/include -DUSE_IPV6=1 -I/root/primecoin-0.1.1-hp7/src/leveldb/include -I/root/primecoin-0.1.1-hp7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -o primecoind leveldb/libleveldb.a obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/hash.o obj/bloom.o obj/noui.o obj/leveldb.o obj/txdb.o obj/prime.o obj/checkpointsync.o -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/usr/local/lib  -L/usr/local/lib -Wl,-Bdynamic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l db_cxx -l ssl -l crypto -l gmp -Wl,-Bdynamic -l z -l dl -l pthread /root/primecoin-0.1.1-hp7/src/leveldb/libleveldb.a /root/primecoin-0.1.1-hp7/src/leveldb/libmemenv.a
/usr/bin/ld: cannot find -lboost_thread
collect2: ld returned 1 exit status
make: *** [primecoind] Error 1

Ubuntu

Compiler crashes without any particularly helpful info:

Code:
# make -f makefile.unix
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin-0
p7/src -I/root/primecoin-0.1.1-hp7/src/obj -I/usr/local/include -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/primecoin-0.1.1-hp7/src/leveldb/include -I/root/primecoi
1-hp7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/main.d -o obj/m
main.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make: *** [obj/main.o] Error 4

Debian

Similar to Ubuntu in terms of compiler crash, but the message about git might be helpful to someone more clueful than me?

Code:
# make -f makefile.unix
/bin/sh ../share/genbuild.sh obj/build.h
fatal: Not a git repository (or any of the parent directories): .git
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin-0.1.1-hp7/src -I/root/primecoin-0.1.1-hp7/src/obj -I/usr/local/include -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/primecoin-0.1.1-hp7/src/leveldb/include -I/root/primecoin-0.1.1-hp7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/main.d -o obj/main.o main.cpp
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See for instructions.
make: *** [obj/main.o] Error 1

Any suggestions welcome! Smiley

Kate.

PS. I expect my guys will fix this in the next day or so but I was having a go while they are busy with the main mining estate. Since I've got stuck I expect others will too!


the Ubuntu problem is caused by too little RAM. I think the debian error has the same cause.
sr. member
Activity: 476
Merit: 250
Have no problem compiling on Ubuntu 13.04 x 64... Compiled today several time without a flaw
full member
Activity: 153
Merit: 100
Thanks for the comprehensive instructions. Smiley

I have got a bit stuck though and I'm hoping someone can help. I got HP5 working and am now trying HP7. I am trying under three different distros: Debian 6, Ubuntu 12.4 and Centos 6.

I was getting some failures due to this bug, but got around that using the recommended s/TIME_UTC/TIME_UTC_/g.

CentOS

This one fails not finding lib boost I think, but the latest versions are installed:

Code:
# make -f makefile.unix USE_UPNP=-
/bin/sh ../share/genbuild.sh obj/build.h
which: no git in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
g++ -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin-0.1.1-hp7/src -I/root/primecoin-0.1.1-hp7/src/obj -I/usr/local/include -DUSE_IPV6=1 -I/root/primecoin-0.1.1-hp7/src/leveldb/include -I/root/primecoin-0.1.1-hp7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -o primecoind leveldb/libleveldb.a obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/hash.o obj/bloom.o obj/noui.o obj/leveldb.o obj/txdb.o obj/prime.o obj/checkpointsync.o -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/usr/local/lib  -L/usr/local/lib -Wl,-Bdynamic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l db_cxx -l ssl -l crypto -l gmp -Wl,-Bdynamic -l z -l dl -l pthread /root/primecoin-0.1.1-hp7/src/leveldb/libleveldb.a /root/primecoin-0.1.1-hp7/src/leveldb/libmemenv.a
/usr/bin/ld: cannot find -lboost_thread
collect2: ld returned 1 exit status
make: *** [primecoind] Error 1

Ubuntu

Compiler crashes without any particularly helpful info:

Code:
# make -f makefile.unix
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin-0
p7/src -I/root/primecoin-0.1.1-hp7/src/obj -I/usr/local/include -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/primecoin-0.1.1-hp7/src/leveldb/include -I/root/primecoi
1-hp7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/main.d -o obj/m
main.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make: *** [obj/main.o] Error 4

Debian

Similar to Ubuntu in terms of compiler crash, but the message about git might be helpful to someone more clueful than me?

Code:
# make -f makefile.unix
/bin/sh ../share/genbuild.sh obj/build.h
fatal: Not a git repository (or any of the parent directories): .git
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin-0.1.1-hp7/src -I/root/primecoin-0.1.1-hp7/src/obj -I/usr/local/include -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/primecoin-0.1.1-hp7/src/leveldb/include -I/root/primecoin-0.1.1-hp7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/main.d -o obj/main.o main.cpp
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See for instructions.
make: *** [obj/main.o] Error 1

Any suggestions welcome! Smiley

Kate.

PS. I expect my guys will fix this in the next day or so but I was having a go while they are busy with the main mining estate. Since I've got stuck I expect others will too!
sr. member
Activity: 378
Merit: 255
git pull
fatal: Not a git repository (or any of the parent directories): .git

I tried even using git pull https://bitbucket.org/mikaelh/primecoin-hp.git
and git pull alone

for the make part it compiled too fast and got this error:

make -f makefile.unix USE_UPNP=-
/bin/sh ../share/genbuild.sh obj/build.h
fatal: Not a git repository (or any of the parent directories): .git


Run git clone in a fresh directory.
sr. member
Activity: 294
Merit: 250
 git pull
fatal: Not a git repository (or any of the parent directories): .git

I tried even using git pull https://bitbucket.org/mikaelh/primecoin-hp.git
and git pull alone

for the make part it compiled too fast and got this error:

make -f makefile.unix USE_UPNP=-
/bin/sh ../share/genbuild.sh obj/build.h
fatal: Not a git repository (or any of the parent directories): .git

wget http://sourceforge.net/projects/primecoin-hp/files/0.1.1-hp6/primecoin-0.1.1-hp6.tar.bz2/download -O primecoin-0.1.1-hp6.tar.bz2
tar xjvf primecoin-0.1.1-hp6.tar.bz2
sr. member
Activity: 378
Merit: 255
Code:
git pull
make -f makefile.unix
primecoind stop
sudo mv /usr/local/bin/primecoind /usr/local/bin/primecoind_723
sudo mv primecoind /usr/local/bin/primecoind
primecoind --daemon

You are always there when quick help is needed. Thanks!
Do I need make -f makefile.unix clean before hand? and during make -f makefile.unit (should I be at cd ) or cd ~/primecoin/src ?

You don't need a clean, and yes, in the src directory.

I tried with both primecoind running and primecoind stopped but I get the following during make.

/usr/bin/ld: cannot find -lminiupnpc
collect2: ld returned 1 exit status
make: *** [primecoind] Error 1


Code:
make -f makefile.unix USE_UPNP=-
sr. member
Activity: 378
Merit: 255
Code:
git pull
make -f makefile.unix
primecoind stop
sudo mv /usr/local/bin/primecoind /usr/local/bin/primecoind_723
sudo mv primecoind /usr/local/bin/primecoind
primecoind --daemon

You are always there when quick help is needed. Thanks!
Do I need make -f makefile.unix clean before hand? and during make -f makefile.unit (should I be at cd ) or cd ~/primecoin/src ?

You don't need a clean, and yes, in the src directory.
sr. member
Activity: 294
Merit: 250
Code:
git pull
make -f makefile.unix
primecoind stop
sudo mv /usr/local/bin/primecoind /usr/local/bin/primecoind_723
sudo mv primecoind /usr/local/bin/primecoind
primecoind --daemon

You are always there when quick help is needed. Thanks!
Do I need make -f makefile.unix clean before hand? and during make -f makefile.unit (should I be at cd ) or cd ~/primecoin/src ?
sr. member
Activity: 378
Merit: 255
If I want to use the new fix you posted here: https://bitbucket.org/mikaelh/primecoin-hp

I am using these directories from the wget HP6 download:  /primecoin/src folder and did sudo mv primecoind /usr/local/bin/.

Do I just git clone the url and sudo mv primecoind /usr/local/bin/.

or how would you go about upgrading it?


Code:
git pull
make -f makefile.unix
primecoind stop
sudo mv /usr/local/bin/primecoind /usr/local/bin/primecoind_723
sudo mv primecoind /usr/local/bin/primecoind
primecoind --daemon
hero member
Activity: 756
Merit: 501
i7 930 doesn't have 7 cores, it has 4 cores plus 4 HT threads.
You're right of course, thanks! I use genproclimit 6 or 7 though in Linux or the CPU won't be used fully, that's what made me think 8 cores. My pps went far down too btw, chainspermin is stable. Grin
hero member
Activity: 518
Merit: 502
followed all of this but now the dual xeon l5420 is only getting 8 PPS

what could be wrong with that? should be more like 8000 not 8 right?

Many people are currently reporting very low PPS. There seems to be a problem with the network. Wait for mikaelh to fix it, then redownload & recompile.
hero member
Activity: 518
Merit: 502
thanks for trying to help however after running that command i see this

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/raring-backports/universe/i18n/Translation-en  Something wicked happened resolving 'us.archive.ubuntu.com:http' (-11 - System error)

Your network configuration is broken, so you cannot download new packages. Fix it first:
https://help.ubuntu.com/12.04/serverguide/network-configuration.html
legendary
Activity: 2100
Merit: 1167
MY RED TRUST LEFT BY SCUMBAGS - READ MY SIG
followed all of this but now the dual xeon l5420 is only getting 8 PPS

what could be wrong with that? should be more like 8000 not 8 right?
hero member
Activity: 840
Merit: 1000
For comparison: 7 cores of an i7 930 get ~2100pps on Debianx64. Core2Duo 2.13GHz gets ~600pps on Win7 x64. Interestingly about the same performance per core although the i7 should be a faster. I set the sievesize of the i7 to 4096000 and the C2D to 2048000, not sure if those are good values, in testnet they seemed pretty fine. i7 got no blocks for over a week while the Core2Duo just found one tonight, so it's still got a lot to do with luck.

edit: Great, now you replaced your question with nvm and my post is pretty much useless.  Tongue
i7 930 doesn't have 7 cores, it has 4 cores plus 4 HT threads.
newbie
Activity: 29
Merit: 0
Thanks

How to  on Centos 5?
legendary
Activity: 2100
Merit: 1167
MY RED TRUST LEFT BY SCUMBAGS - READ MY SIG
thanks for trying to help however after running that command i see this


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/raring-backports/universe/i18n/Translation-en  Something wicked happened resolving 'us.archive.ubuntu.com:http' (-11 - System error)
newbie
Activity: 29
Merit: 0
Run:

apt-get update

This will update the package lists, and after that the packages should be installable.
Pages:
Jump to: