mersenneforum.org Factor5 revamping
 User Name Remember Me? Password
 Register FAQ Search Today's Posts Mark Forums Read

 2017-08-01, 19:12 #12 wombatman I moo ablest echo power!     May 2013 23×223 Posts I can try compiling on an actual Ubuntu installation tonight and see if the same issue comes up. If not, that might help narrow down the actual problem.
 2017-08-01, 19:31 #13 rogue     "Mark" Apr 2003 Between here and the 11001000001102 Posts The first character of the file is '*' instead of a "/". Remove it.
 2017-08-01, 20:00 #14 wombatman I moo ablest echo power!     May 2013 23×223 Posts Ok, so 5.02 (with Rogue's fix) compiled on my work computer's Windows 10 Ubuntu shell. GCC version is the same as at home, so I'll see if it works there tonight.
 2017-08-01, 22:46 #15 wombatman I moo ablest echo power!     May 2013 178410 Posts Sorry about double-posting, but confirming that 5.02 works at home as well. I looked at the previous factor5.c file, and it had the same * at the beginning as 5.02, so that's probably what the errors were from. To be clear, you can compile in the Windows 10 Ubuntu shell using: Code:  gcc factor5.c -std=c99 -lm -lgmp -lpthread -ofactor5 As a note, the Ubuntu shell did not come with any of the basic stuff (even gcc) installed by default when I set it up long ago. Still, with the apt system, it's trivial to do that installation.
2017-08-02, 09:39   #16
ET_
Banned

"Luigi"
Aug 2002
Team Italia

52×193 Posts

Quote:
 Originally Posted by rogue The first character of the file is '*' instead of a "/". Remove it.

Shame on me...

2017-08-02, 09:48   #17
ET_
Banned

"Luigi"
Aug 2002
Team Italia

52×193 Posts

Quote:
 Originally Posted by wombatman Sorry about double-posting, but confirming that 5.02 works at home as well. I looked at the previous factor5.c file, and it had the same * at the beginning as 5.02, so that's probably what the errors were from. To be clear, you can compile in the Windows 10 Ubuntu shell using: Code:  gcc factor5.c -std=c99 -lm -lgmp -lpthread -ofactor5 As a note, the Ubuntu shell did not come with any of the basic stuff (even gcc) installed by default when I set it up long ago. Still, with the apt system, it's trivial to do that installation.
Thank you Ben.

To avoid duplicates, "my" 5.02 also includes the add of the new Mersenne primes on the array and modifies the version string, while correcting the posible bug hinted by Mark. Here it is.

Luigi
Attached Files
 factor5.zip (16.0 KB, 291 views)

2017-09-22, 00:24   #18
storm5510
Random Account

Aug 2009

1,973 Posts

Quote:
 Originally Posted by ET_ Hi all. I decided to put my Mersenne factorization program (factor5) back online here. I would like to add the nice feature of RES64 on the final result: would anybody help me teach how to achieve it? Luigi
Would it be possible for someone to provide a link to the old Factor5 Windows executable?

2017-09-22, 15:18   #19
ET_
Banned

"Luigi"
Aug 2002
Team Italia

52·193 Posts

Quote:
 Originally Posted by storm5510 Would it be possible for someone to provide a link to the old Factor5 Windows executable?
Factor5 uses pthreads library, it will be hard to compile it under MinGW.
You could try using the new bash shell under Windows10

2017-09-22, 16:02   #20
storm5510
Random Account

Aug 2009

1,973 Posts

Quote:
 Originally Posted by ET_ You could try using the new bash shell under Windows10
That's fascinating, and I found a how-to on activating it. I know virtually nothing about Unix/Linux. I could run the factor5.c program under this?

2017-09-22, 16:35   #21
wombatman
I moo ablest echo power!

May 2013

23×223 Posts

Quote:
 Originally Posted by storm5510 That's fascinating, and I found a how-to on activating it. I know virtually nothing about Unix/Linux. I could run the factor5.c program under this?
Use my command line from above. Note that you'll need to install pretty much everything, including stuff like gcc. But the Ubuntu shell uses the apt-get system, so it's pretty straightforward to pick up on (or you can just google when you run into an issue and find the correct lines to use).

2017-09-22, 18:39   #22
storm5510
Random Account

Aug 2009

197310 Posts

Quote:
 Originally Posted by wombatman Use my command line from above. Note that you'll need to install pretty much everything, including stuff like gcc. But the Ubuntu shell uses the apt-get system, so it's pretty straightforward to pick up on (or you can just google when you run into an issue and find the correct lines to use).
I had to look up few commands. but I am having problems navigating. Then I will have to get the contents of the archive in the folder. All of this seems confined to a single parent folder that I cannot find with Windows Explorer. Life goes on.
Attached Thumbnails

 Similar Threads Thread Thread Starter Forum Replies Last Post Rodrigo Operation Billion Digits 4 2011-01-02 04:50 ET_ Operation Billion Digits 60 2009-08-26 08:02 ET_ Operation Billion Digits 10 2008-09-17 12:28

All times are UTC. The time now is 01:40.

Wed Sep 22 01:40:37 UTC 2021 up 60 days, 20:09, 0 users, load averages: 1.76, 1.41, 1.38