![]() |
![]() |
#1 |
Banned
"Luigi"
Aug 2002
Team Italia
2·3·17·47 Posts |
![]()
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 Last fiddled with by ET_ on 2017-07-19 at 10:11 |
![]() |
![]() |
![]() |
#2 |
"Daniel Jackson"
May 2011
14285714285714285714
72×13 Posts |
![]()
Any chance you could upload a Windows version? Not all OBD participants use Linux/Ubuntu.
|
![]() |
![]() |
![]() |
#3 |
"Mark"
Apr 2003
Between here and the
11·563 Posts |
![]() |
![]() |
![]() |
![]() |
#4 |
I moo ablest echo power!
May 2013
1,741 Posts |
![]() |
![]() |
![]() |
![]() |
#5 | |
Banned
"Luigi"
Aug 2002
Team Italia
2×3×17×47 Posts |
![]() Quote:
Code:
gcc factor5.c -lm -lgmp -lpthread -O3 -ofactor5 ![]() Anyway I will put the program back online (probably on DoubleMersennes website) once you provide the Windows10 version, thank you! Last fiddled with by ET_ on 2017-07-31 at 08:05 |
|
![]() |
![]() |
![]() |
#6 |
I moo ablest echo power!
May 2013
110110011012 Posts |
![]()
Unfortunately, it looks like there is an issue related to the size_t definition? Error log is attached.
GCC version is 4.8.4. |
![]() |
![]() |
![]() |
#7 |
"Mark"
Apr 2003
Between here and the
11000001100012 Posts |
![]()
Change the line to this:
if (strcmp(argv[1], "--resume") != 0) { Apparently your compiler doesn't like using "!" for an integer value. |
![]() |
![]() |
![]() |
#8 |
I moo ablest echo power!
May 2013
1,741 Posts |
![]()
Still throwing size_t related errors (new error log is attached). Most likely culprit would seem to be this line:
Code:
In file included from /usr/include/stdio.h:33:0, from factor5.c:21: /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h:212:1: error: expected identifier or ‘(’ before ‘typedef’ typedef __SIZE_TYPE__ size_t; Last fiddled with by wombatman on 2017-08-01 at 02:17 Reason: Might help if I actually attached the log... |
![]() |
![]() |
![]() |
#9 | |
Banned
"Luigi"
Aug 2002
Team Italia
2×3×17×47 Posts |
![]() Quote:
Try adding the flag -std=c99 on the compile line |
|
![]() |
![]() |
![]() |
#10 |
Mar 2007
2638 Posts |
![]()
I see the array... unsigned long int mexp[]
could have a few members added. ![]() |
![]() |
![]() |
![]() |
#11 |
Banned
"Luigi"
Aug 2002
Team Italia
2·3·17·47 Posts |
![]()
The array has been corrected in today's version 5.02
![]() The problem is that when I tried to recompile the code, I had the same list of errors Ben had. The compilation for code v5.01 was successful less than 1 month ago, on both Intel and ARM platforms. Something weird is happening under the hood... I did not restart the PC after a series of updates, maybe some library needs a reboot? Here is version 5.02 with the version update, the strcmp update and the array update. Last fiddled with by ET_ on 2017-08-01 at 18:23 |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
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 |