mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2013-09-22, 09:17   #1
mohamed
 
Jul 2013

F16 Posts
Question Source Code for msieve ?

I am studying integer factorization nowadays and I was wandering if msieve's source code is available ( I want to compile it because I want to make some changes in the code from what I've learnt and see what's the results are) , so anyone can guide me where to find it ?
I found this link before https://github.com/radii/msieve but this version is too old and besides that I didn't know how to compile it successfully.

Any help in finding the source code to compile it on windows platform ?
mohamed is offline   Reply With Quote
Old 2013-09-22, 09:21   #2
debrouxl
 
debrouxl's Avatar
 
Sep 2009

97710 Posts
Default

The msieve source code is on SourceForge.net, as usual
For me, the msieve SF.net project is the first search engine result

Last fiddled with by debrouxl on 2013-09-22 at 09:22
debrouxl is offline   Reply With Quote
Old 2013-09-22, 09:21   #3
fivemack
(loop (#_fork))
 
fivemack's Avatar
 
Feb 2006
Cambridge, England

6,323 Posts
Default

To get the code out of source control, do

svn checkout svn://svn.code.sf.net/p/msieve/code/trunk msieve-code

(you might want to download TortoiseSVN if you don't have an SVN client installed)
fivemack is offline   Reply With Quote
Old 2013-09-22, 10:54   #4
mohamed
 
Jul 2013

3×5 Posts
Default

Thanks i've installed TortoiseSVN and downloaded the code,
Could you please do me another favor and tell me how to build these files because i got stuck again ,, should i install some libraries first ?
i am using VS2010 and didn't install GMP-ECM (i think those are optional) ,, but when i load the project from build.vc10 and (3. Open each of the four project configurations in turn and remove the 'gmp_ecm_config' item (right click and select 'Remove'). as said in the readme file there are errors for files not found.

could you please state exactly which libraries should i install first or what to do to build this project successfully ?

errors :

Error 2 error C1083: Cannot open include file: 'pthread.h': No such file or directory c:\code\common\thread.c 15
Error 3 error C1083: Cannot open include file: 'gmp.h': No such file or directory c:\code\include\gmp_xface.h 19




Thank you very much

Last fiddled with by mohamed on 2013-09-22 at 11:03
mohamed is offline   Reply With Quote
Old 2013-09-22, 15:19   #5
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

1101101000012 Posts
Default

You need to build either the GMP or MPIR libraries for big-integer support, and you also need to find a pthreads library for use in windows. Brian Gladman and Jeff Gilchrist can provide more information; the win32 binary on the sourceforge site has always used the Makefile to build from MinGW, where GMP is straightforward to build from source and pthreads are available natively.
jasonp is offline   Reply With Quote
Old 2013-12-12, 19:32   #6
humanoid
 
Dec 2013

2 Posts
Default

Hi, I'm trying to build msieve 1.51 with VS2010 as well but I'm getting this output error
Code:
1>\msieve-1.51\common\smallfact\gmp_ecm.c(35): fatal error C1083: Cannot open include file: 'ecm.h': No such file or directory
I already compiled a static mpir 2.6.0 lib and added the include directories to the project (for some reason relative paths didn't work, I had to use absolute paths).
As for the pthreads library, I used this one -> https://www.sourceware.org/pthreads-win32/

I can't really find any information about that missing header though, maybe someone here can tell me what I'm missing?
humanoid is offline   Reply With Quote
Old 2013-12-13, 22:20   #7
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3·1,163 Posts
Default

You need to build GMP-ECM, which is the library that provides ecm.h; if you don't care about using ECM then you remove the definition of HAVE_GMP_ECM and the missing header will be ignored.
jasonp is offline   Reply With Quote
Old 2013-12-13, 23:58   #8
humanoid
 
Dec 2013

2 Posts
Default

Thanks, the website for the GMP-ECM library was a little hard to find for me (its this one, right? -> https://gforge.inria.fr/projects/ecm/ )

But after I compiled it and linked it to the msieve solution I was able to build everything :)

Last fiddled with by humanoid on 2013-12-13 at 23:59
humanoid is offline   Reply With Quote
Old 2013-12-14, 01:04   #9
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3·1,163 Posts
Default

That's the one. Happy factoring...
jasonp is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Source code to mprime 289 out there somewhere? graysky Linux 6 2016-04-25 23:03
Contributions to msieve source code mickfrancis Msieve 23 2014-05-15 16:52
Source code for my program Sam Kennedy Factoring 7 2012-11-22 18:24
PrimeNet source code? ixfd64 PrimeNet 8 2009-12-11 14:26
llrnet - source code? reezer Prime Sierpinski Project 11 2009-09-11 10:47

All times are UTC. The time now is 23:24.

Wed Nov 25 23:24:24 UTC 2020 up 76 days, 20:35, 3 users, load averages: 1.18, 1.35, 1.33

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.