mersenneforum.org Compiling gmp-ecm
 Register FAQ Search Today's Posts Mark Forums Read

2022-03-31, 21:05   #1
paulunderwood

Sep 2002
Database er0rr

34×53 Posts
Compiling gmp-ecm

I have a copy of the latest source. However the README says:

Quote:
 [note: this file is outdated now that GMP-ECM moved to gitlab.] .....

At worst, how to install it on Centos when it isn't being listed with sudo dnf search gmp-ecm.

Edit: The answer is in this post.

Last fiddled with by paulunderwood on 2022-04-02 at 09:26

 2022-03-31, 21:51 #2 EdH     "Ed Hall" Dec 2009 Adirondack Mtns 52×197 Posts I think the most current development code is referenced in this post. This is the one I'm running.
2022-03-31, 22:55   #3
ewmayer
2ω=0

Sep 2002
República de California

34·5·29 Posts

Quote:
 Originally Posted by EdH I think the most current development code is referenced in this post. This is the one I'm running.
That's where Paul and I got the source just now, only to find after unpacking it, that the 'configure' file is missing:
Code:
[ewmayer@localhost ~]$ll ecm-master total 2468 -rw-rw-r--. 1 ewmayer ewmayer 21582 Mar 17 10:59 acinclude.m4 -rw-rw-r--. 1 ewmayer ewmayer 36281 Mar 17 10:59 addlaws.c -rw-rw-r--. 1 ewmayer ewmayer 2672 Mar 17 10:59 addlaws.h drwxrwxr-x. 2 ewmayer ewmayer 98 Mar 17 10:59 aprtcle drwxrwxr-x. 2 ewmayer ewmayer 22 Mar 17 10:59 arm drwxrwxr-x. 2 ewmayer ewmayer 4096 Mar 17 10:59 athlon -rw-rw-r--. 1 ewmayer ewmayer 1835 Mar 17 10:59 AUTHORS -rw-rw-r--. 1 ewmayer ewmayer 2149 Mar 17 10:59 auxarith.c -rw-rw-r--. 1 ewmayer ewmayer 8124 Mar 17 10:59 auxi.c -rw-rw-r--. 1 ewmayer ewmayer 7390 Mar 17 10:59 auxlib.c -rw-rw-r--. 1 ewmayer ewmayer 1081 Mar 17 10:59 b1_ainc.c -rw-rw-r--. 1 ewmayer ewmayer 4589 Mar 17 10:59 basicdefs.h -rw-rw-r--. 1 ewmayer ewmayer 12925 Mar 17 10:59 batch.c -rw-rw-r--. 1 ewmayer ewmayer 17783 Mar 17 10:59 bench_mulredc.c -rw-rw-r--. 1 ewmayer ewmayer 10874 Mar 17 10:59 bestd.c drwxrwxr-x. 9 ewmayer ewmayer 4096 Mar 17 10:59 build.vc12 drwxrwxr-x. 10 ewmayer ewmayer 4096 Mar 17 10:59 build.vc14 drwxrwxr-x. 10 ewmayer ewmayer 4096 Mar 17 10:59 build.vc15 drwxrwxr-x. 10 ewmayer ewmayer 4096 Mar 17 10:59 build.vs -rw-rw-r--. 1 ewmayer ewmayer 156 Mar 17 10:59 c155 -rw-rw-r--. 1 ewmayer ewmayer 271 Mar 17 10:59 c270 -rw-rw-r--. 1 ewmayer ewmayer 6626 Mar 17 10:59 candi.c -rw-rw-r--. 1 ewmayer ewmayer 30545 Mar 17 10:59 cgbn_stage1.cu -rw-rw-r--. 1 ewmayer ewmayer 1191 Mar 17 10:59 cgbn_stage1.h -rw-rw-r--. 1 ewmayer ewmayer 717 Mar 17 10:59 champions.h -rw-rw-r--. 1 ewmayer ewmayer 618332 Mar 17 10:59 ChangeLog -rw-rw-r--. 1 ewmayer ewmayer 15429 Mar 17 10:59 check_gpuecm.sage -rw-rw-r--. 1 ewmayer ewmayer 18455 Mar 17 10:59 check.mpl -rwxrwxr-x. 1 ewmayer ewmayer 444 Mar 17 10:59 checkprob -rw-rw-r--. 1 ewmayer ewmayer 3496 Mar 17 10:59 check.sage -rw-rw-r--. 1 ewmayer ewmayer 25940 Mar 17 10:59 configure.ac -rw-rw-r--. 1 ewmayer ewmayer 35147 Mar 17 10:59 COPYING -rw-rw-r--. 1 ewmayer ewmayer 7639 Mar 17 10:59 COPYING.LIB -rwxrwxr-x. 1 ewmayer ewmayer 870 Mar 17 10:59 coverage_gpu.sh -rwxrwxr-x. 1 ewmayer ewmayer 1755 Mar 17 10:59 coverage.sh -rw-rw-r--. 1 ewmayer ewmayer 3691 Mar 17 10:59 cudacommon.cu -rw-rw-r--. 1 ewmayer ewmayer 933 Mar 17 10:59 cudacommon.h -rw-rw-r--. 1 ewmayer ewmayer 6580 Mar 17 10:59 cudakernel.cu -rw-rw-r--. 1 ewmayer ewmayer 7239 Mar 17 10:59 cudakernel_default.cu -rw-rw-r--. 1 ewmayer ewmayer 659 Mar 17 10:59 cudakernel.h -rw-rw-r--. 1 ewmayer ewmayer 22704 Mar 17 10:59 cudawrapper.c -rw-rw-r--. 1 ewmayer ewmayer 51 Mar 17 10:59 dummy2.save -rwxrwxr-x. 1 ewmayer ewmayer 843 Mar 17 10:59 dummy.save -rw-rw-r--. 1 ewmayer ewmayer 15419 Mar 17 10:59 ecm.1 -rw-rw-r--. 1 ewmayer ewmayer 29105 Mar 17 10:59 ecm2.c -rwxrwxr-x. 1 ewmayer ewmayer 950 Mar 17 10:59 ecmbench -rw-rw-r--. 1 ewmayer ewmayer 53238 Mar 17 10:59 ecm.c -rw-rw-r--. 1 ewmayer ewmayer 7567 Mar 17 10:59 ecm-ecm.h -rw-rw-r--. 1 ewmayer ewmayer 3045 Mar 17 10:59 ecmfactor.c -rw-rw-r--. 1 ewmayer ewmayer 6740 Mar 17 10:59 ecm-gmp.h -rw-rw-r--. 1 ewmayer ewmayer 1444 Mar 17 10:59 ecm-gpu.h -rw-rw-r--. 1 ewmayer ewmayer 8167 Mar 17 10:59 ecm.h.in -rw-rw-r--. 1 ewmayer ewmayer 29373 Mar 17 10:59 ecm-impl.h -rw-rw-r--. 1 ewmayer ewmayer 528 Mar 17 10:59 ecm_int.h -rw-rw-r--. 1 ewmayer ewmayer 12066 Mar 17 10:59 ecm_ntt.c -rw-rw-r--. 1 ewmayer ewmayer 3047 Mar 17 10:59 ecm-params.h -rw-rw-r--. 1 ewmayer ewmayer 2959 Mar 17 10:59 ecmprob.magma -rw-rw-r--. 1 ewmayer ewmayer 24393 Mar 17 10:59 ecm.xml -rw-rw-r--. 1 ewmayer ewmayer 26521 Mar 17 10:59 eval.c -rw-rw-r--. 1 ewmayer ewmayer 6110 Mar 17 10:59 factor.c ... -rw-rw-r--. 1 ewmayer ewmayer 38955 Mar 17 10:59 torsions.c -rw-rw-r--. 1 ewmayer ewmayer 1479 Mar 17 10:59 torsions.h -rw-rw-r--. 1 ewmayer ewmayer 15985 Mar 17 10:59 tune.c drwxrwxr-x. 2 ewmayer ewmayer 22 Mar 17 10:59 x86 drwxrwxr-x. 5 ewmayer ewmayer 217 Mar 17 10:59 x86_64 -rw-rw-r--. 1 ewmayer ewmayer 2215 Mar 17 10:59 Z2102.n There is a 'configure.ac', but that appears to be something quite different: Code: [ewmayer@localhost ecm-master]$ head configure.ac
m4_define([ECM_VERSION_AC], [7.0.5-dev])

AC_PREREQ([2.57])
AC_INIT([ecm], ECM_VERSION_AC, [ecm-discuss@inria.fr])

AC_CONFIG_MACRO_DIR([m4])
GMP_INIT([config.m4])
AM_INIT_AUTOMAKE
AC_CANONICAL_HOST
...

2022-03-31, 23:21   #4
WraithX

Mar 2006

2·32·29 Posts

Quote:
 Originally Posted by ewmayer That's where Paul and I got the source just now, only to find after unpacking it, that the 'configure' file is missing:
When you download the source straight from the repository, you need to run autoreconf -i first, and then you will have a configure file.

Only the Release versions come with their own configure file. You can find release versions here:
https://gitlab.inria.fr/zimmerma/ecm/-/tags

... Actually, now that I look at the release files, I see they don't have a configure file in them. I thought they used to. I'll mention this to PaulZ and see if this is an issue with the git release files, or if autoreconf will just be a requirement from now on.

2022-04-01, 00:12   #5
ewmayer
2ω=0

Sep 2002
República de California

34×5×29 Posts

Quote:
 Originally Posted by WraithX When you download the source straight from the repository, you need to run autoreconf -i first, and then you will have a configure file. Only the Release versions come with their own configure file. You can find release versions here: https://gitlab.inria.fr/zimmerma/ecm/-/tags ... Actually, now that I look at the release files, I see they don't have a configure file in them. I thought they used to. I'll mention this to PaulZ and see if this is an issue with the git release files, or if autoreconf will just be a requirement from now on.
Where is 'autoreconf" supposed to be? Is that a command in some Linux distros, or a gmp-ecm script? I don't see either on my CentOS system:

[ewmayer@localhost ecm-master]$autoreconf -i bash: autoreconf: command not found... [ewmayer@localhost ecm-master]$ ./autoreconf -i
-bash: ./autoreconf: No such file or directory

 2022-04-01, 02:10 #6 axn     Jun 2003 5,407 Posts autoreconf or autoconf ?
2022-04-01, 02:43   #7
EdH

"Ed Hall"
Dec 2009

52×197 Posts

Quote:
 Originally Posted by axn autoreconf or autoconf ?
I forgot that part.

I use both libtoolize and autoreconf -i when I compile GMP-ECM. But I don't see libtoolize mentioned. Maybe I don't need that?

I had to install autoconf to get autoreconf.

Last fiddled with by EdH on 2022-04-01 at 02:48

2022-04-01, 04:15   #8
WraithX

Mar 2006

2×32×29 Posts

Quote:
 Originally Posted by ewmayer Where is 'autoreconf" supposed to be? Is that a command in some Linux distros, or a gmp-ecm script? I don't see either on my CentOS system:
autoreconf is a command that can be installed in Linux. It is included when you install the autoconf package. I am currently using autoconf 2.69. You will also need to install m4 when using autoreconf with gmp-ecm.

Quote:
 Originally Posted by axn autoreconf or autoconf ?
autoreconf -i is the simlpest way to do this.

Quote:
 Originally Posted by EdH I use both libtoolize and autoreconf -i when I compile GMP-ECM. But I don't see libtoolize mentioned. Maybe I don't need that?
I'm not sure what each command does, but I do know that you can use autoreconf -i by itself.
From the README.dev file included with gmp-ecm:
Code:
To use the autotools:

$libtoolize$ autoheader
$aclocal$ automake -c -a
$autoconf$ ./configure --with-gmp=<directory_where_gmp_is_installed>
$make$ make check

Alternatively, you can simply type:

$autoreconf -i$ ./configure --with-gmp=<directory_where_gmp_is_installed>
$make$ make check
I've sent an email to PaulZ asking about release versions having the configure file bundled (and therefore no need for autoreconf/m4). I'll let you all know when I hear back about that.

 2022-04-01, 04:20 #9 paulunderwood     Sep 2002 Database er0rr 34×53 Posts Thanks people. On his Centos sytem I guess Ernst has to do the following: Code: sudo dnf install autoconf cd ecm-master [where ever that is] autoreconf -i ./configure make make check sudo make install Then ecm is available to use. Last fiddled with by paulunderwood on 2022-04-01 at 04:33
2022-04-01, 12:05   #10
EdH

"Ed Hall"
Dec 2009

114758 Posts

Quote:
 Originally Posted by WraithX . . . I'm not sure what each command does, but I do know that you can use autoreconf -i by itself. . . .
Thanks. I'll run this a couple times and then change my "How I . . ." thread. I had also forgotten that in my thread, I include installation of several things, including m4, autoconf, g++, etc. But, I'm also using an earlier source for GMP-ECM. I need to revisit and update that thread. Is the above link the current "official development" source, or is there another?

 2022-04-01, 15:54 #11 chris2be8     Sep 2009 1001010110012 Posts I have suggested in another thread that INSTALL-ecm should tell people to run autoreconf -i (or autoreconf -si if the configure file is missing. And it probably should say you may need to install autoconf and m4 if you don't already have them. This probably belongs in section 0).

 Similar Threads Thread Thread Starter Forum Replies Last Post dozba GPU Computing 23 2017-10-03 19:50 ATH GMP-ECM 69 2017-01-04 12:03 M0CZY GMP-ECM 76 2009-09-29 15:48 rogue Sierpinski/Riesel Base 5 142 2009-01-09 03:42 CBoland Software 6 2007-08-01 00:11

All times are UTC. The time now is 14:29.

Thu Oct 6 14:29:25 UTC 2022 up 49 days, 11:57, 0 users, load averages: 1.41, 1.37, 1.31