mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Operation Billion Digits

Reply
 
Thread Tools
Old 2017-08-01, 19:12   #12
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

173610 Posts
Default

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.
wombatman is offline   Reply With Quote
Old 2017-08-01, 19:31   #13
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

10101111100012 Posts
Default

The first character of the file is '*' instead of a "/". Remove it.
rogue is offline   Reply With Quote
Old 2017-08-01, 20:00   #14
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

23×7×31 Posts
Default

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.
wombatman is offline   Reply With Quote
Old 2017-08-01, 22:46   #15
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

23·7·31 Posts
Default

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.
wombatman is offline   Reply With Quote
Old 2017-08-02, 09:39   #16
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

4,751 Posts
Default

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


Shame on me...
ET_ is offline   Reply With Quote
Old 2017-08-02, 09:48   #17
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

128F16 Posts
Default

Quote:
Originally Posted by wombatman View Post
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
File Type: zip factor5.zip (16.0 KB, 73 views)
ET_ is offline   Reply With Quote
Old 2017-09-22, 00:24   #18
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

1,103 Posts
Default

Quote:
Originally Posted by ET_ View Post
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?
storm5510 is offline   Reply With Quote
Old 2017-09-22, 15:18   #19
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

4,751 Posts
Default

Quote:
Originally Posted by storm5510 View Post
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
ET_ is offline   Reply With Quote
Old 2017-09-22, 16:02   #20
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

1,103 Posts
Default

Quote:
Originally Posted by ET_ View Post
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?
storm5510 is offline   Reply With Quote
Old 2017-09-22, 16:35   #21
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

110110010002 Posts
Default

Quote:
Originally Posted by storm5510 View Post
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).
wombatman is offline   Reply With Quote
Old 2017-09-22, 18:39   #22
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

1,103 Posts
Default

Quote:
Originally Posted by wombatman View Post
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
Click image for larger version

Name:	Capture.JPG
Views:	48
Size:	55.6 KB
ID:	16874  
storm5510 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Factor5 on Multicore Machines Rodrigo Operation Billion Digits 4 2011-01-02 04:50
Factor5 ! ET_ Operation Billion Digits 60 2009-08-26 08:02
Factor5 source code thread ET_ Operation Billion Digits 10 2008-09-17 12:28

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

Wed Apr 1 05:51:05 UTC 2020 up 7 days, 3:24, 0 users, load averages: 1.43, 1.33, 1.27

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.