View Single Post
Old 2017-01-02, 12:37   #56
M0CZY's Avatar
May 2005
England, UK

22×31 Posts

Ever since ECM-7 was introduced, I've been unable to successfully compile GMP-ECM using MinGW/MinSys under Windows.
GMP is correctly installed, and passes 'make check'.
I am using the standard commands of
./configure --with-gmp=/usr/local
but it always ends in error. I am now trying to use GMP-6.1.2 and ECM-7.0.4
Here is the last few lines of the output of my latest attempt. I can't tell what I did wrong.
 -march=pentium4 -mno-sse2 -MT ecm-main.o -MD -MP -MF .deps/ecm-main.Tpo -c -o e
cm-main.o `test -f 'main.c' || echo './'`main.c
main.c: In function 'main':
main.c:1352:32: warning: ISO C does not support the 'I64' ms_printf length modif
ier [-Wformat=]
               fprintf (stdout, "Reading batch product (of %"PRIu64" bits) of "
main.c:1352:32: warning: format '%I64u' expects argument of type 'long long unsi
gned int', but argument 3 has type 'size_t {aka unsigned int}' [-Wformat=]
mv -f .deps/ecm-main.Tpo .deps/ecm-main.Po
gcc -DHAVE_CONFIG_H -I.  -DOUTSIDE_LIBECM -I/usr/local/include -I/usr/local/incl
ude  -g -W -Wall -Wundef -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentium4
 -march=pentium4 -mno-sse2 -MT ecm-resume.o -MD -MP -MF .deps/ecm-resume.Tpo -c
-o ecm-resume.o `test -f 'resume.c' || echo './'`resume.c
mv -f .deps/ecm-resume.Tpo .deps/ecm-resume.Po
gcc -DHAVE_CONFIG_H -I.  -DOUTSIDE_LIBECM -I/usr/local/include -I/usr/local/incl
ude  -g -W -Wall -Wundef -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentium4
 -march=pentium4 -mno-sse2 -MT ecm-getprime_r.o -MD -MP -MF .deps/ecm-getprime_r
.Tpo -c -o ecm-getprime_r.o `test -f 'getprime_r.c' || echo './'`getprime_r.c
mv -f .deps/ecm-getprime_r.Tpo .deps/ecm-getprime_r.Po
gcc -DHAVE_CONFIG_H -I.  -DOUTSIDE_LIBECM -I/usr/local/include -I/usr/local/incl
ude  -g -W -Wall -Wundef -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentium4
 -march=pentium4 -mno-sse2 -MT aprtcle/ecm-mpz_aprcl.o -MD -MP -MF aprtcle/.deps
/ecm-mpz_aprcl.Tpo -c -o aprtcle/ecm-mpz_aprcl.o `test -f 'aprtcle/mpz_aprcl.c'
|| echo './'`aprtcle/mpz_aprcl.c
mv -f aprtcle/.deps/ecm-mpz_aprcl.Tpo aprtcle/.deps/ecm-mpz_aprcl.Po
gcc -DHAVE_CONFIG_H -I.  -DOUTSIDE_LIBECM -I/usr/local/include -I/usr/local/incl
ude  -g -W -Wall -Wundef -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentium4
 -march=pentium4 -mno-sse2 -MT ecm-memusage.o -MD -MP -MF .deps/ecm-memusage.Tpo
 -c -o ecm-memusage.o `test -f 'memusage.c' || echo './'`memusage.c
mv -f .deps/ecm-memusage.Tpo .deps/ecm-memusage.Po
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -g -W -Wall -Wundef -m32 -O2 -ped
antic -fomit-frame-pointer -mtune=pentium4 -march=pentium4 -mno-sse2   -o ecm.ex
e ecm-auxi.o ecm-b1_ainc.o ecm-candi.o ecm-eval.o ecm-main.o ecm-resume.o ecm-ge
tprime_r.o aprtcle/ecm-mpz_aprcl.o ecm-memusage.o /usr/local/lib/libgm
p.a -lm -lm -lm -lm -lm
libtool: link: gcc -g -W -Wall -Wundef -m32 -O2 -pedantic -fomit-frame-pointer -
mtune=pentium4 -march=pentium4 -mno-sse2 -o ecm.exe ecm-auxi.o ecm-b1_ainc.o ecm
-candi.o ecm-eval.o ecm-main.o ecm-resume.o ecm-getprime_r.o aprtcle/ecm-mpz_apr
cl.o ecm-memusage.o  ./.libs/libecm.a /usr/local/lib/libgmp.a
ecm-memusage.o: In function `PeakMemusage':
C:\MinGW\msys\1.0\home\User\ecm-7.0.4/memusage.c:72: undefined reference to `Get
collect2.exe: error: ld returned 1 exit status
make[2]: *** [ecm.exe] Error 1
make[2]: Leaving directory `/home/User/ecm-7.0.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/User/ecm-7.0.4'
make: *** [all] Error 2

User@User-test ~/ecm-7.0.4
M0CZY is offline   Reply With Quote