mersenneforum.org  

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

Reply
 
Thread Tools
Old 2022-03-31, 21:05   #1
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2×11×191 Posts
Default 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.]
.....
There is no "configure" file. Please help us compile gmp-ecm.

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
paulunderwood is offline   Reply With Quote
Old 2022-03-31, 21:51   #2
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2×3×13×59 Posts
Default

I think the most current development code is referenced in this post. This is the one I'm running.
EdH is offline   Reply With Quote
Old 2022-03-31, 22:55   #3
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

2DD816 Posts
Default

Quote:
Originally Posted by EdH View Post
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
...
ewmayer is offline   Reply With Quote
Old 2022-03-31, 23:21   #4
WraithX
 
WraithX's Avatar
 
Mar 2006

3×173 Posts
Default

Quote:
Originally Posted by ewmayer View Post
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.
WraithX is offline   Reply With Quote
Old 2022-04-01, 00:12   #5
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

101101110110002 Posts
Default

Quote:
Originally Posted by WraithX View Post
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
ewmayer is offline   Reply With Quote
Old 2022-04-01, 02:10   #6
axn
 
axn's Avatar
 
Jun 2003

150016 Posts
Default

autoreconf or autoconf ?
axn is offline   Reply With Quote
Old 2022-04-01, 02:43   #7
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·3·13·59 Posts
Default

Quote:
Originally Posted by axn View Post
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
EdH is offline   Reply With Quote
Old 2022-04-01, 04:15   #8
WraithX
 
WraithX's Avatar
 
Mar 2006

3×173 Posts
Default

Quote:
Originally Posted by ewmayer View Post
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 View Post
autoreconf or autoconf ?
autoreconf -i is the simlpest way to do this.

Quote:
Originally Posted by EdH View Post
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.
WraithX is offline   Reply With Quote
Old 2022-04-01, 04:20   #9
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

420210 Posts
Default

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
paulunderwood is offline   Reply With Quote
Old 2022-04-01, 12:05   #10
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2×3×13×59 Posts
Default

Quote:
Originally Posted by WraithX View Post
. . .
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?
EdH is offline   Reply With Quote
Old 2022-04-01, 15:54   #11
chris2be8
 
chris2be8's Avatar
 
Sep 2009

44548 Posts
Default

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).
chris2be8 is offline   Reply With Quote
Reply

Thread Tools


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

All times are UTC. The time now is 10:18.


Tue Jun 28 10:18:36 UTC 2022 up 75 days, 8:19, 1 user, load averages: 0.80, 0.93, 0.98

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔