mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > GMP-ECM

Reply
 
Thread Tools
Old 2013-02-19, 16:31   #34
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

A release candidate for 6.4.4 is available at http://www.loria.fr/~kruppaal/ecm-6.4.4.tar.gz
If you like, please give it a try and report success or failure. Thanks!
akruppa is offline   Reply With Quote
Old 2013-02-19, 18:12   #35
Ralf Recker
 
Ralf Recker's Avatar
 
Oct 2010

191 Posts
Default

Thanks. 'make check' (gmp-ecm 6.4.4 / gmp 5.1.1) reports no errors.
Ralf Recker is offline   Reply With Quote
Old 2013-02-19, 18:58   #36
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

I have just updated the tarball again. The new tarball includes a patch for PowerPC64 assembly code (under powerpc64/) when a dynamic libaray is built. No other code was changed.
akruppa is offline   Reply With Quote
Old 2013-02-20, 03:12   #37
PhilF
 
PhilF's Avatar
 
Feb 2005
Colorado

7×73 Posts
Default

Compiles, checks, and works fine for me on a 32-bit P4, Linux, and GMP 5.1.1.

Thanks!
PhilF is online now   Reply With Quote
Old 2013-02-20, 20:33   #38
Ralf Recker
 
Ralf Recker's Avatar
 
Oct 2010

191 Posts
Default

Quote:
Originally Posted by Ralf Recker View Post
Thanks. 'make check' (gmp-ecm 6.4.4 / gmp 5.1.1) reports no errors.
A Windows 64 build with gmp 5.1.1 seems to work too (I have not fixed the t-printf failure that occurs when I run make check...):

Code:
[ralf@quadriga ecm-6.4.4]$ wine64 ecm.exe -sigma 140642477 3e6 < /home/ralf/Faktorisierung/ECM-Testdaten/GMP-ECM-Testcase-GW_7_583_C463-3M-Sigma-140642477 
GMP-ECM 6.4.4 [configured with GMP 5.1.1, --enable-asm-redc] [ECM]
Input number is 9419637902294591003764706452592267326726375972060771118922019946663693693759112212705454606413445474942262035668813026111589665589874842002549018009614917617850511946725729554590232906577559784190618314709182818510846516594338093150279244690919895977755275618920780071836272126626961841307419703986612506790743382751292313153100490267482670046132843485368016968530438763568389772557863007216523390523643415365284374260407190171241424198205553658590574339011923219 (463 digits)
Using B1=3000000, B2=5706890290, polynomial Dickson(6), sigma=140642477
Step 1 took 49010ms
********** Factor found in step 1: 42321464520869757241201743459403331
Found probable prime factor of 35 digits: 42321464520869757241201743459403331
Composite cofactor 222573533523385878832599590459915258046775784943734419539381430321379898782949341682812266134738709057771160360470984257143995778652743149018805829131494371987980298855763262475628671509742419862342168285190063614897010489539602346091397983156734239156958618013872470635038096122817820916014065416816906367560357164340632712253032080746508364371439786893163857329678155871342808426289249050108727758398954187629188336892442360049 has 429 digits

Last fiddled with by Ralf Recker on 2013-02-20 at 20:55 Reason: ./test.ecm ./test.pm1 and ./test.pp1 worked for a win64 build with gmp 5.1.1
Ralf Recker is offline   Reply With Quote
Old 2013-02-28, 17:16   #39
M0CZY
 
M0CZY's Avatar
 
May 2005
Brutal Police State, UK

2×59 Posts
Default

I can confirm that ecm-6.4.4 compiles with gmp-5.1.1 and passes 'make check' on both Windows XP and Ubuntu 10.04.4, 32 bit.
M0CZY is offline   Reply With Quote
Old 2013-02-28, 22:02   #40
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

3,347 Posts
Default

This is getting ridiculous! I just tried to compile 6.4.4 on one of my 32-bit AntiX machines and have hit the following troubles:

First, I have never had gmp 5.0.5 on this machine. I started with gmp 5.1.1. Yet, I get:
Code:
checking if gmp.h version and libgmp version are the same... (5.1.1/5.0.5) no
configure: error: 'gmp.h' and 'libgmp' have different versions, you have to reinstall GMP properly.
So, using "whereis libgmp" I get:
Code:
libgmp: /usr/local/lib/libgmp.la /usr/local/lib/libgmp.a /usr/local/lib/libgmp.so
Using "./configure LIBS=/usr/local/lib/libgmp.a" it seems happy:
Code:
...
checking whether we can link against GMP... yes
checking if gmp.h version and libgmp version are the same... (5.1.1/5.1.1) yes
checking for __gmpn_add_nc... yes
...
However,
Code:
GMP-ECM 6.4.4 [configured with GMP 5.0.5] [P+1]
Input number is 6054018161*10^400+417727253109 (410 digits)
Using B1=2000, B2=2352760, polynomial x^1, x0=4
./ecm: symbol lookup error: ./ecm: undefined symbol: __gmpn_add_nc
############### ERROR ###############
Expected return code 14 but got 127
make: *** [check] Error 1
OK, remarking out the "#define HAVE___GMPN_ADD_NC 1" as referenced before:
Code:
GMP-ECM 6.4.4 [configured with GMP 5.0.5] [ECM]
Input number is 212252637915375215854013140804296246361 (39 digits)
Using B1=63421, B2=1822795201-1822795212, polynomial x^1, sigma=781683988
Step 1 took 324ms
Step 2 took 4ms
############### ERROR ###############
Expected return code 8 but got 0
make: *** [check] Error 1
Why is it configured with gmp 5.0.5 if my first install was gmp 5.1.1? And, is that what's causing the error?

Thanks to all...

Edit: Apparently, there is a libgmp10 from the repository that is tied to 48 packages. Could that be causing this?

Last fiddled with by EdH on 2013-02-28 at 22:08 Reason: addition of more info
EdH is offline   Reply With Quote
Old 2013-03-01, 00:14   #41
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

246710 Posts
Default

What happens if you use "./configure --with-gmp=/usr/local/" instead of supplying the LIBS variable directly?

Last fiddled with by akruppa on 2013-03-01 at 00:14 Reason: ./
akruppa is offline   Reply With Quote
Old 2013-03-01, 02:53   #42
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

334710 Posts
Default

Quote:
Originally Posted by akruppa View Post
What happens if you use "./configure --with-gmp=/usr/local/" instead of supplying the LIBS variable directly?
Thanks! It works 100%:
Code:
GMP-ECM 6.4.4 [configured with GMP 5.1.1] [ECM]
Input number is 10000000000000000000000000000000000000121 (41 digits)
Using B1=4372759, B2=8561918830, polynomial Dickson(6), sigma=291
Step 1 took 23825ms
********** Factor found in step 1: 10000000000000000000000000000000000000121
Found input number N
All ECM tests are ok.
Thanks for the fix. I'll go away again, at least for a little while...
EdH is offline   Reply With Quote
Old 2013-03-01, 09:49   #43
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

Glad to hear it works! I guess we should print the suggestion of trying --with-gmp= along with the GMP version mismatch error message. That error happens very frequently since most distros come with a GMP library, and many GMP-ECM users then also install their self-compiled GMP with optimization for their particular CPU. The configure script usually finds the headers of the distro-GMP, and the library of the self-compiled one; if those differ in version, the version mismatch error happens.
akruppa is offline   Reply With Quote
Old 2013-03-01, 14:27   #44
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

1101000100112 Posts
Default

Quote:
Originally Posted by akruppa View Post
Glad to hear it works! I guess we should print the suggestion of trying --with-gmp= along with the GMP version mismatch error message. That error happens very frequently since most distros come with a GMP library, and many GMP-ECM users then also install their self-compiled GMP with optimization for their particular CPU. The configure script usually finds the headers of the distro-GMP, and the library of the self-compiled one; if those differ in version, the version mismatch error happens.
I've swapped over to --with-gmp in my "Steps..." instructions as well.

Thanks for all the work!
EdH is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Prone Machines PageFault Data 17 2012-04-10 01:40
Scalability of Glucas on large machines: A future //ed prime 95 ? T.Rex Software 29 2006-12-13 21:40
Start and Stop Prime 95 on Large Groups of Windows XP Machines MarcGetty Software 3 2006-03-07 07:54
Putting prime 95 on a large number of machines moo Software 10 2004-12-15 13:25
Team_Prime_Rib error-prone machines GP2 Data 10 2003-10-05 18:34

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

Sun Sep 27 01:20:08 UTC 2020 up 16 days, 22:31, 0 users, load averages: 1.45, 1.72, 1.59

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.