mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2023-04-06, 07:09   #1
madderhatter
 
Apr 2023

24 Posts
Default Compile/build guide?

I want to play around with some of the algorithms and understand the program better. Is there a build guide anywhere? I'm having so much difficulty. I have some building experience but this program has so many requirements it seems and no documentation I can find, I just run into one fault after another.

I would prefer to build the visual studio installation, but have also been trying to build the linux64 instance.
madderhatter is offline   Reply With Quote
Old 2023-04-06, 07:54   #2
S485122
 
S485122's Avatar
 
"Jacob"
Sep 2006
Brussels, Belgium

2·977 Posts
Default

Quote:
Originally Posted by madderhatter View Post
...
the program
...
Which program ?
S485122 is offline   Reply With Quote
Old 2023-04-06, 08:55   #3
madderhatter
 
Apr 2023

208 Posts
Default

Prime95...I guess I accidently originally posted in a software section for other programs.
madderhatter is offline   Reply With Quote
Old 2023-04-06, 13:12   #4
charybdis
 
charybdis's Avatar
 
Apr 2020

3·353 Posts
Default

Quote:
Originally Posted by madderhatter View Post
Prime95...I guess I accidently originally posted in a software section for other programs.
Moved to a more appropriate subforum.
charybdis is offline   Reply With Quote
Old 2023-04-06, 16:28   #5
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

Quote:
Originally Posted by madderhatter View Post
I want to play around with some of the algorithms and understand the program better. Is there a build guide anywhere? I'm having so much difficulty. I have some building experience but this program has so many requirements it seems and no documentation I can find, I just run into one fault after another.

I would prefer to build the visual studio installation, but have also been trying to build the linux64 instance.
Why try to build prime95 anew, when you can simply download it prebuilt for any of several common target OSes? https://www.mersenne.org/download/ I for one have been using prime95 since 1996 and never built it myself from source code, although I've built some of the other GIMPS apps repeatedly.

Quote:
Originally Posted by S485122 View Post
Which program ?
+100

@OP: Welcome to the forum. Check out the GIMPS computing reference info compilation at https://mersenneforum.org/showthread.php?t=24607. Including https://www.mersenneforum.org/showpo...77&postcount=1 for why custom builds of prime95 are less desirable.

Last fiddled with by kriesel on 2023-04-06 at 16:29
kriesel is offline   Reply With Quote
Old 2023-04-06, 21:37   #6
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2×112×47 Posts
Default

Quote:
Originally Posted by kriesel View Post
Why try to build prime95 anew, when you can simply download it prebuilt for any of several common target OSes?
There are actually many reasons to do this.

Prove the code works. George encourages this.

To share... I find it a bit amazing how much everyone fights between people who are actually on the same side.

It is almost like many haven't read the prior art... And those who *have* read hope no one else has read...

I feel blessed being alive.
chalsall is offline   Reply With Quote
Old 2023-04-07, 04:11   #7
madderhatter
 
Apr 2023

24 Posts
Default

Quote:
Originally Posted by kriesel View Post
Why try to build prime95 anew, when you can simply download it prebuilt for any of several common target OSes? https://www.mersenne.org/download/ I for one have been using prime95 since 1996 and never built it myself from source code, although I've built some of the other GIMPS apps repeatedly.

+100

@OP: Welcome to the forum. Check out the GIMPS computing reference info compilation at https://mersenneforum.org/showthread.php?t=24607. Including https://www.mersenneforum.org/showpo...77&postcount=1 for why custom builds of prime95 are less desirable.

Well I want to play with the algorithms. I've done some math I want to try to study to maybe improve it to prove if my math is correct as well, as well as just study how the program works and allows for working with massive numbers and such. Also I like that it automatically reports if a new large prime is found right? If I'm able to adjust the algorithms to my math and my math is more efficient it will at once prove my math and prove my understanding. But stuck on this relatively simple stuff...because apparently there's no documentation I can find?

I'm stuck though I can't figure out the dependencies and libraries necessary. I encounter errors related to processor and definitions not being correct currently and no idea how to proceed in both visualstudio and linux.

My linux build attempts end with:

/usr/bin/ld: i386 architecture of input file `../gwnum/gwnum.a(gianthlp.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../gwnum/gwnum.a(cpuidhlp.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../gwnum/gwnum.a(ymult3a_core.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../gwnum/gwnum.a(ymult3ax.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../gwnum/gwnum.a(ymult3.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../gwnum/gwnum.a(ymult1ax_core.o)' is incompatible with i386:x86-64 output

ect, a huge error list...

And my visualstudio errors end with missing ; ) fatal errors.

Last fiddled with by madderhatter on 2023-04-07 at 04:19
madderhatter is offline   Reply With Quote
Old 2023-04-07, 04:30   #8
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

5·937 Posts
Default

Quote:
Originally Posted by madderhatter View Post
.

My linux build attempts end with:

/usr/bin/ld: i386 architecture of input file `../gwnum/gwnum.a(gianthlp.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../gwnum/gwnum.a(cpuidhlp.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../gwnum/gwnum.a(ymult3a_core.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../gwnum/gwnum.a(ymult3ax.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../gwnum/gwnum.a(ymult3.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `../gwnum/gwnum.a(ymult1ax_core.o)' is incompatible with i386:x86-64 output
Is your Linux operating system 64 bits? If so run make in the linux64 directory of the prime95 distribution -- I think that's the place!
paulunderwood is offline   Reply With Quote
Old 2023-04-07, 05:34   #9
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

468510 Posts
Default

Quote:
Originally Posted by madderhatter View Post
Well I want to play with the algorithms. I've done some math I want to try to study to maybe improve it to prove if my math is correct as well, as well as just study how the program works and allows for working with massive numbers and such. Also I like that it automatically reports if a new large prime is found right? If I'm able to adjust the algorithms to my math and my math is more efficient it will at once prove my math and prove my understanding. But stuck on this relatively simple stuff...because apparently there's no documentation I can find?
I strongly recommend you start with the Pari/GP interpreter for prototyping your mathematical ideas. Then move onto learning to program C with the GMP library. Finally have a look at gwnum/gwnum.h and gwnum/giants.h with prime95 for FFT use. you might also like to look at OpenPFGW (sourceforge) which can test very large numbers for (probable) primality.

I have just given up with trying to compile mprime!

Last fiddled with by paulunderwood on 2023-04-07 at 05:42
paulunderwood is offline   Reply With Quote
Old 2023-04-07, 08:27   #10
madderhatter
 
Apr 2023

24 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Is your Linux operating system 64 bits? If so run make in the linux64 directory of the prime95 distribution -- I think that's the place!
Yes, that's where I am. I get these errors after making the cwnum library and installing all the required libraries I can find, but there's something in the code that wants to use older like 486 architecture for some reason? or something? I don't understand these errors at all.
madderhatter is offline   Reply With Quote
Old 2023-04-07, 08:29   #11
madderhatter
 
Apr 2023

208 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
I strongly recommend you start with the Pari/GP interpreter for prototyping your mathematical ideas. Then move onto learning to program C with the GMP library. Finally have a look at gwnum/gwnum.h and gwnum/giants.h with prime95 for FFT use. you might also like to look at OpenPFGW (sourceforge) which can test very large numbers for (probable) primality.

I have just given up with trying to compile mprime!
Yes I think the gmp libary is one of the requirements for building right, I looked at that already a bit.
madderhatter is offline   Reply With Quote
Reply

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

All times are UTC. The time now is 14:05.


Fri Jul 7 14:05:42 UTC 2023 up 323 days, 11:34, 0 users, load averages: 1.41, 1.20, 1.16

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔