![]() |
|
|
#12 | |
|
Apr 2023
1610 Posts |
Quote:
|
|
|
|
|
|
|
#13 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
17·487 Posts |
For a 64-bit build:
In the gwnum directory, "make -f make64". In the linux directory, simply "make". |
|
|
|
|
|
#14 | |
|
Apr 2020
3×353 Posts |
Quote:
|
|
|
|
|
|
|
#15 | |
|
Apr 2023
24 Posts |
Quote:
Is it possible to build it in visualstudio on windows? Ok when I go to the linux directory, I think i was in the linux64 directory before...same thing though issues with the processor/instruction set of some sort? "[ ! -e ../security.h ] && touch ../security.h || true [ ! -e ../security.c ] && touch ../security.c || true [ ! -e ../secure5.c ] && touch ../secure5.c || true gcc -I.. -I../gwnum -I/usr/local/include -std=gnu99 -Wno-unused-result -march=i486 -malign-double -O2 -DPORT=2 -c prime.c cc1: error: CPU you selected does not support x86-64 instruction set cc1: error: ‘-fcf-protection=full’ is not supported for this target make: *** [makefile:66: prime.o] Error 1 " in the linux64 directory appears to be fine until I get: _GWDATA 0x0000000001f57300 0x8800 ../gwnum/gwnum.a(mult.o) collect2: error: ld returned 1 exit status make: *** [makefile:38: mprime] Error 1 Last fiddled with by madderhatter on 2023-04-07 at 14:08 |
|
|
|
|
|
|
#16 |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
7,823 Posts |
For a change of pace try Mlucas on linux. Build directions and more at http://www.mersenneforum.org/mayer/README.html Many have succeeded in building from this. On Ubuntu, Centos, Canonical Ubuntu/WSL, etc.
Back to mprime: linux64 makefile includes the following: Code:
# Ugh, different linux variants require different makefiles. # The current makefile is for CentOS 7. We prefer to link against older Linux versions because linking on the latest, greatest version # creates an mprime executable that will not run on older Linux versions because of glibc incompatibilites. # # Some linux versions require some of the variations below: # "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" # CFLAGS = -I.. -I../gwnum -DX86_64 -O2 -Wno-unused-result # LFLAGS = -Wl,-M # LIBS = ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -Wl,-Bstatic $(shell pkg-config --static --libs libhwloc) -Wl,-Bstatic $(shell pkg-config --static --libs libcurl) -lstdc++ -Wl,-Bdynamic -ldl Last fiddled with by kriesel on 2023-04-07 at 15:37 |
|
|
|
|
|
#17 | |
|
Apr 2023
24 Posts |
Quote:
|
|
|
|
|
|
|
#18 | |
|
Apr 2023
24 Posts |
Quote:
Oh ok I wasn't aware of that I was just trying ubuntu since I've used it a lot in the past. You think it would build with no problems in centOS7? |
|
|
|
|
|
|
#19 |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
11110100011112 Posts |
I think installing CentOS 7 would be difficult at this point. When I tried it a year ago, because of a great deal of content having been retired from required repositories, I ended up at CentOS 8 stream instead. Linux is not my forte, but help from assorted Linux fans in the forum did not enable successful install of CentOS 7.9 that I was aiming for.
Last fiddled with by kriesel on 2023-04-07 at 17:06 |
|
|
|
|
|
#20 |
|
Sep 2002
Database er0rr
5×937 Posts |
madderhatter, why are you trying to compile mprime? If it is to test your ideas and the numbers involved are far to high for Pari/GP to address in a reasonable amount of time, then I suggest you learn to use the GMP and GWNUM libraries.
If you could be a little more specific about your goals it might make helping you out a little easier. Are your ideas Mersenne related, Fermat PRP related or FFT related? Last fiddled with by paulunderwood on 2023-04-07 at 17:22 |
|
|
|
|
|
#21 | |
|
Apr 2023
208 Posts |
Quote:
Yeah interesting reading on that site, I guess this is the problem I've been facing, basically prime95 wants to see a 32 bit operating system am I reading that right? " George Woltman's Prime95 program (a.k.a. mprime for the linux version), but that program is not 100% open-source. Prime95 is also only available for platforms based on the x86 processor architecture." Ok I'll switch to trying to build that then. Are there disadvantages to it vs prime95 though? Like if you discover a prime in prime95 it like automatically reports it or something, I'm not sure how exactly that works but that's what I was given to understand, does that program have the same functionality? Last fiddled with by madderhatter on 2023-04-08 at 10:29 |
|
|
|
|
|
|
#22 | |
|
Apr 2023
1016 Posts |
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I can no longer compile with GMP | EdH | Programming | 23 | 2023-02-04 01:04 |
| GGNFS won't compile? | pakaran | Factoring | 14 | 2015-09-05 23:36 |
| Compile v26 on Windows | Brain | Software | 1 | 2010-11-24 00:34 |
| Anyone want to compile an OS X ecm for yoyo? | jasong | GMP-ECM | 1 | 2009-03-14 11:22 |
| help to compile.... | em99010pepe | Programming | 8 | 2006-12-06 17:11 |