Bitcoin Forum
May 27, 2024, 09:59:31 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 4 5 6 7 8 »  All
  Print  
Author Topic: [XPM] Primecoin High Performance Linux Compilation Guide  (Read 43533 times)
gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
July 19, 2013, 06:09:53 PM
 #21

ran this guide on one of my new ubuntu 12.x servers and when running the command to start it i get these errors

gateway@a:~/work$ ./run-primecoind: line 1: 14844 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14847 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14850 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14853 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14856 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1

You can type killall run-primecoind to kill the script if you haven't already.

GCC is misdetecting your CPU and compiling wrong set of instructions into the binary. I removed the -march=native compiler flag from the instructions. I guess I'll have to leave it out if it's causing too many problems.

Ok ill try again, this is my cpu's

processor       : 4
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
stepping        : 7
microcode       : 0x70d
cpu MHz         : 2600.072
cache size      : 20480 KB
physical id     : 0
siblings        : 8
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 10
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl nonstop_tsc pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes hypervisor lahf_lm ida arat epb pln pts dtherm
bogomips        : 5200.14
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:
Entz
Full Member
***
Offline Offline

Activity: 210
Merit: 100


I not use any kind of messenger beware of scammers


View Profile
July 19, 2013, 06:11:31 PM
 #22

Good guide. Always best to compile your own, Once you learn how it empowers you for the future (especially on windows)

I have been using mpir (natively compiled) instead of libgmp on both windows and linux. The PPS is higher than the pre-compiled libgmp (~5%, varies), not sure how it will stack up against the natively compiled libgmp (I would expect similar)

mikaelh (OP)
Sr. Member
****
Offline Offline

Activity: 301
Merit: 250


View Profile
July 19, 2013, 06:19:49 PM
 #23

I managed to compile Primecoin on CentOS 6.4. I added some extra steps and notes to the guide.
gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
July 19, 2013, 06:28:13 PM
 #24

ran this guide on one of my new ubuntu 12.x servers and when running the command to start it i get these errors

gateway@a:~/work$ ./run-primecoind: line 1: 14844 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14847 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14850 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14853 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14856 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1

You can type killall run-primecoind to kill the script if you haven't already.

GCC is misdetecting your CPU and compiling wrong set of instructions into the binary. I removed the -march=native compiler flag from the instructions. I guess I'll have to leave it out if it's causing too many problems.

ok great that worked, but seems slower than yesterday.. cheers for your work

btw those you want something better than ps command install htop

sudo apt-get install htop

then run it..

bidji29
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250


View Profile
July 19, 2013, 07:02:04 PM
 #25

ran this guide on one of my new ubuntu 12.x servers and when running the command to start it i get these errors

gateway@a:~/work$ ./run-primecoind: line 1: 14844 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14847 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14850 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14853 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14856 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1

You can type killall run-primecoind to kill the script if you haven't already.

GCC is misdetecting your CPU and compiling wrong set of instructions into the binary. I removed the -march=native compiler flag from the instructions. I guess I'll have to leave it out if it's causing too many problems.

I get the same error.
But the process is still active, and show the same amount of pps.
It's bad if i let run like that?

http://www.freebieservers.com/  100% FREE GAME SERVERS
gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
July 19, 2013, 07:59:13 PM
 #26

ran this guide on one of my new ubuntu 12.x servers and when running the command to start it i get these errors

gateway@a:~/work$ ./run-primecoind: line 1: 14844 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14847 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14850 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14853 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14856 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1

You can type killall run-primecoind to kill the script if you haven't already.

GCC is misdetecting your CPU and compiling wrong set of instructions into the binary. I removed the -march=native compiler flag from the instructions. I guess I'll have to leave it out if it's causing too many problems.

I get the same error.
But the process is still active, and show the same amount of pps.
It's bad if i let run like that?

re go though the steps, if you did this earlier a change was made to remove something that might cause this, the error should go away then

maco
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
July 19, 2013, 08:19:22 PM
 #27

mikaelh, can you provide the same steps for UBU 12.04 LTS?
dego
Sr. Member
****
Offline Offline

Activity: 399
Merit: 250



View Profile
July 19, 2013, 08:23:10 PM
 #28

mikaelh, can you provide the same steps for UBU 12.04 LTS?

Did you at least try it with exactly the same steps? Ubu13 is not that different from Ubu12..
mikaelh (OP)
Sr. Member
****
Offline Offline

Activity: 301
Merit: 250


View Profile
July 19, 2013, 09:35:53 PM
 #29

sudo make install
command gets me this...  is this normal?

Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(Cool manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 gmp.h '/usr/local/include'
 /bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 gmpxx.h '/usr/local/include'
make  install-data-hook
make[4]: Entering directory `/root/gmp-5.1.2'

+-------------------------------------------------------------+
| CAUTION:                                                    |
|                                                             |
| If you have not already run "make check", then we strongly  |
| recommend you do so.                                        |
|                                                             |
| GMP has been carefully tested by its authors, but compilers |
| are all too often released with serious bugs.  GMP tends to |
| explore interesting corners in compilers and has hit bugs   |
| on quite a few occasions.                                   |
|                                                             |
+-------------------------------------------------------------+


make[4]: Leaving directory `/root/gmp-5.1.2'
make[3]: Leaving directory `/root/gmp-5.1.2'
make[2]: Leaving directory `/root/gmp-5.1.2'
make[1]: Leaving directory `/root/gmp-5.1.2'


Looks perfectly normal.
maco
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
July 19, 2013, 09:42:48 PM
 #30

Also, I am getting a blank screen when I run the RPC commands:

root@nc-ph-0105-03:~# primecoind getprimespersec

doesn't go back to # I have to use CTRL + C

and when I use the command line to watch, its blank.

Note: I am using ubu 12.04


or even when I do this. Run is fine, it goes to the next command line, but ./stop-primecoind goes to a blank section

root@nc-ph-0105-03:~# ./run-primecoind
root@nc-ph-0105-03:~# ./stop-primecoind

Solved: killall -9 primecoind
then redo it. thanks mikaelh
gateway
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
July 19, 2013, 10:08:10 PM
 #31

mikaelh, can you provide the same steps for UBU 12.04 LTS?

I used the steps on my ubuntu server 12.0x
ivanlabrie
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000



View Profile
July 19, 2013, 10:45:16 PM
 #32

Having trouble compiling primecoind...I get the following:

make: *** [bitcoinrpc.o] Error 4

It's a vps, 512mb ram, and 1gb swap, fresh boot. Ubuntu 12.10
I could compile it with ecoinomist's guide previously, but this one won't budge.
mikaelh (OP)
Sr. Member
****
Offline Offline

Activity: 301
Merit: 250


View Profile
July 19, 2013, 10:49:42 PM
 #33

Having trouble compiling primecoind...I get the following:

make: *** [bitcoinrpc.o] Error 4

It's a vps, 512mb ram, and 1gb swap, fresh boot. Ubuntu 12.10
I could compile it with ecoinomist's guide previously, but this one won't budge.

What's the full error message before that?
eCoinomist
Member
**
Offline Offline

Activity: 112
Merit: 10


Independent Analyst


View Profile WWW
July 19, 2013, 11:02:17 PM
 #34

Having trouble compiling primecoind...I get the following:

make: *** [bitcoinrpc.o] Error 4

It's a vps, 512mb ram, and 1gb swap, fresh boot. Ubuntu 12.10
I could compile it with ecoinomist's guide previously, but this one won't budge.
Updated the guide, it also works with hp5 version.
http://ecoinomist.com/xpm-primecoin-mining-guide-on-linux

ivanlabrie
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000



View Profile
July 19, 2013, 11:03:10 PM
 #35

Having trouble compiling primecoind...I get the following:

make: *** [bitcoinrpc.o] Error 4

It's a vps, 512mb ram, and 1gb swap, fresh boot. Ubuntu 12.10
I could compile it with ecoinomist's guide previously, but this one won't budge.

What's the full error message before that?

Can't copy from tightvnc (couldn't manage to use putty with this vps provider) -I did type the commands 100% right though-



In the other server, which is running hp5, compiled using ecoinomist's guide, I get constant crashes. The program either closes itself, and after a few hours I get an error and I have to reboot to be able to mine again.
Don't have the error message atm, I'll post it later.
mikaelh (OP)
Sr. Member
****
Offline Offline

Activity: 301
Merit: 250


View Profile
July 19, 2013, 11:29:39 PM
 #36

Well, it certainly looks like an out of memory issue. Not sure how that's possible with a swap file. And yes, there are still bugs causing random crashes. They were present in Sunny King's original release and I haven't had the time to iron them out.
nabworth
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
July 19, 2013, 11:43:29 PM
 #37

on the first step, I am getting this :
The following packages have unmet dependencies:
 libminiupnpc-dev : Depends: libminiupnpc8 (= 1.6-3ubuntu1) but 1.6-precise2 is to be installed

I guess i already have libminiupnpc8 installed but just the wrong version? someone know what i need to do to correct it ?

thanks in advance
ivanlabrie
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000



View Profile
July 19, 2013, 11:48:23 PM
 #38

Well, it certainly looks like an out of memory issue. Not sure how that's possible with a swap file. And yes, there are still bugs causing random crashes. They were present in Sunny King's original release and I haven't had the time to iron them out.

I'll keep trying, had the same kind of problems with the other methods I tried, and eventually I managed to compile succesfully.
nabworth
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
July 19, 2013, 11:59:59 PM
 #39

Here's what I get:

Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
libssl-dev is already the newest version.
libboost-all-dev is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libdb++-dev : Depends: libdb5.1++-dev (>= 5.1.25-2~) but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.

How do I fix this? o.O


libdb++-dev  without a version number assumes version 5.1 but if you're on ubuntu 13.10 , you'll want version 5.3  so just change libdb++-dev to libdb5.3++-dev and you're golden
Entz
Full Member
***
Offline Offline

Activity: 210
Merit: 100


I not use any kind of messenger beware of scammers


View Profile
July 20, 2013, 12:00:23 AM
 #40

I'll keep trying, had the same kind of problems with the other methods I tried, and eventually I managed to compile succesfully.
1GB swap is likely not enough, try moving to 2GB (just add another swap file) . From what I understand the optimize flag -O2 can easily eat up 2GB of free ram by itself.

Pages: « 1 [2] 3 4 5 6 7 8 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!