mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2020-09-04, 21:52   #12
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

2·32·173 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
It looks like make is not finding gmp. Maybe you should set the paths correctly. Is gmp installed locally? You might need gmp-dev.
GMP was installed per Ed's guide, the GMP section. The source is in ../gmp/ relative to the yafu directory source directory I'm trying to compile. I redid the gmp section just in case I missed something the first time (but I don't think I did). Same result as above with makeing yafu.

You mention "set the paths correctly" -- can you be more specific as to where I should be setting them?

ls -l /usr/local/lib
Code:
total 59600
 3618442 Sep  3 15:45 libecm.a
     874 Sep  3 15:45 libecm.la
 1318856 Sep  4 17:47 libgmp.a
     913 Sep  4 17:47 libgmp.la
      16 Sep  4 17:47 libgmp.so -> libgmp.so.10.4.0
      16 Sep  4 17:47 libgmp.so.10 -> libgmp.so.10.4.0
  535137 Sep  4 17:47 libgmp.so.10.4.0
 1333084 Nov 23  2018 liblzma.a
     944 Nov 23  2018 liblzma.la
      16 Nov 23  2018 liblzma.so -> liblzma.so.5.2.4
      16 Nov 23  2018 liblzma.so.5 -> liblzma.so.5.2.4
  708676 Nov 23  2018 liblzma.so.5.2.4
      16 Aug 28  2014 libpari.so -> libpari.so.2.7.1
 5694955 Aug 28  2014 libpari.so.2.7.1
      16 Aug 28  2014 libpari.so.4 -> libpari.so.2.7.1
      22 Mar  1  2016 libwkhtmltox.so -> libwkhtmltox.so.0.13.0
      22 Mar  1  2016 libwkhtmltox.so.0 -> libwkhtmltox.so.0.13.0
      22 Mar  1  2016 libwkhtmltox.so.0.13 -> libwkhtmltox.so.0.13.0
47782840 Apr 12  2015 libwkhtmltox.so.0.13.0
    4096 May 13  2019 p7zip
    4096 Aug 28  2014 pari
    4096 Sep  4 17:47 pkgconfig

Last fiddled with by James Heinrich on 2020-09-04 at 21:52
James Heinrich is online now   Reply With Quote
Old 2020-09-04, 22:06   #13
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

65618 Posts
Default

In Makefile, try commenting out:

Code:
 
       INC += -I../gmp/include
        LIBS += -L../gmp/lib/linux/x86_64
and add in its place:

Code:
       INC += -I/usr/local/include
       LIBS += -L/usr/local/lib
Is gmp.h in /usr/local/include/ ?

Last fiddled with by paulunderwood on 2020-09-04 at 22:08
paulunderwood is offline   Reply With Quote
Old 2020-09-04, 22:15   #14
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

2·32·173 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Is gmp.h in /usr/local/include/ ?
Yes.
ls -l /usr/local/include
Code:
-rw-r--r--  8159 Sep  3 15:45 ecm.h
-rw-r--r-- 83978 Sep  4 17:47 gmp.h
drwxr-xr-x  4096 Nov 23  2018 lzma
-rw-r--r--  9817 Nov 23  2018 lzma.h
drwxr-xr-x  4096 Aug 28  2014 pari
drwxr-xr-x  4096 Mar  1  2016 wkhtmltox
Quote:
Originally Posted by paulunderwood View Post
In Makefile, try commenting out ... and add in its place
Oh my, I think that's done it!


At least, yafu "tune" is running right now! Thank you Paul!
James Heinrich is online now   Reply With Quote
Old 2020-09-04, 22:22   #15
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3×31×37 Posts
Default

My pleasure. I think the local include/link caught ecm too
paulunderwood is offline   Reply With Quote
Old 2020-09-05, 00:00   #16
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

22×3×281 Posts
Default

I do need to change something on my YAFU page. Thanks for pointing it out. Only the "wip" Makefile has the 7.0.3 reference:
Code:
 CC = gcc-7.3.0
The "trunk" version does not.

Glad to read that you are up and running.
EdH is offline   Reply With Quote
Old 2020-09-05, 00:36   #17
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

2×32×173 Posts
Default

Quote:
Originally Posted by EdH View Post
Glad to read that you are up and running.
Indeed, it appears that I am, thanks to your comprehensive guide, and some pointers from Paul & Chris.

I threw my pet number (I came across it last week in an automated too-big-to-factor-quickly report from mersenne.ca, I think it's a k from a composite factor, don't remember which exponent from one 350-bit 8of9 composite factor of M9532331) at my new yafu and it did its thing with ecm and nfs and came up with the answer for me:
Code:
>> factor(122516985909244517881828509074071415559791900903255048509694468186063012576476804164857444126360193)
fac: factoring 122516985909244517881828509074071415559791900903255048509694468186063012576476804164857444126360193
fac: using pretesting plan: normal
fac: no tune info: using qs/gnfs crossover of 95 digits
div: primes less than 10000
fmt: 1000000 iterations
rho: x^2 + 3, starting 1000 iterations on C98
rho: x^2 + 2, starting 1000 iterations on C98
rho: x^2 + 1, starting 1000 iterations on C98
nfs: searching for brent special forms...
nfs: searching for homogeneous cunningham special forms...
nfs: searching for XYYXF special forms...
nfs: couldn't find special form
pm1: starting B1 = 150K, B2 = gmp-ecm default on C98
ecm: 32/32 curves on C98, B1=2K, B2=gmp-ecm default
ecm: 80/80 curves on C98, B1=11K, B2=gmp-ecm default
ecm: 216/216 curves on C98, B1=50K, B2=gmp-ecm default, ETA: 1 sec
pm1: starting B1 = 3750K, B2 = gmp-ecm default on C98
ecm: 408/408 curves on C98, B1=250K, B2=gmp-ecm default, ETA: 3 sec
nfs: commencing nfs on c98: 40838995303081505960609503024690471853263966967751682836564822728687670858825601388285814708786731
...
linear algebra completed 190209 of 190470 dimensions (99.9%, ETA 0h 0m)
nfs: commencing msieve sqrt
NFS elapsed time = 2501.1627 seconds.
Total factoring time = 2658.3809 seconds
***factors found***
P1 = 3
P59 = 56778227132612889065677008632219351134855595667964207526657
P39 = 719272111256604635831656054993527440683
So I'm happy!
James Heinrich is online now   Reply With Quote
Old 2020-09-05, 02:05   #18
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

337210 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
. . .
So I'm happy!
Excellent! Glad I could be of help. (And, thanks for letting me know I needed to make an edit.)

Actually, I needed to make several edits today. The msieve source code has been updated to incorporate the GMP-6.2.0 change also, so I had to edit that note out of my instructions.
EdH is offline   Reply With Quote
Old 2020-09-09, 08:21   #19
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

8,837 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
***factors found***
P1 = 3
So I'm happy!
Haha!
LaurV is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling Msieve with GPU support LegionMammal978 Msieve 6 2017-02-09 04:28
Problem compiling msieve with gcc 4.4.2 chris2be8 Msieve 5 2010-02-22 18:35
Error compiling msieve Wishper Msieve 2 2009-12-09 01:31
msieve linux compiling Trevil Msieve 2 2009-12-06 19:49
Compiling Msieve 1.39 on Windows Jeff Gilchrist Msieve 20 2009-02-21 22:43

All times are UTC. The time now is 04:44.

Thu Oct 22 04:44:27 UTC 2020 up 42 days, 1:55, 0 users, load averages: 1.19, 1.23, 1.32

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.