danaj / Math-Prime-Util-GMP

Perl prime number module using XS/GMP
Other
17 stars 9 forks source link

not complied under strawberry perl #10

Closed zdm closed 2 years ago

zdm commented 7 years ago

hi, here is the log:

Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have base 0 ... Yes (2.26)
Checking if you have Carp 0 ... Yes (1.42)
Checking if you have Fcntl 0 ... Yes (1.13)
Checking if you have XSLoader 0.01 ... Yes (0.27)
Checking if you have Exporter 5.57 ... Yes (5.72)
Checking if you have Math::BigInt 1.88 ... Yes (1.999811)
Checking if you have Test::More 0.45 ... Yes (1.302113)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.30)
Building and testing Math-Prime-Util-GMP-0.49 ... cp lib/Math/Prime/Util/GMP.pm blib\lib\Math\Prime\Util\GMP.pm
Running Mkbootstrap for GMP ()
"D:\devel\perl\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "GMP.bs"
"D:\devel\perl\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- GMP.bs blib\arch\auto\Math\Prime\Util\GMP\GMP.bs 644
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   prime_iterator.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   utility.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   primality.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   factor.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   pbrent63.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   squfof126.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   ecm.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   tinyqs.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   simpqs.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   bls75.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   ecpp.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   aks.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   gmp_main.c
gcc -c   -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.49\" -DXS_VERSION=\"0.49\"  "-ID:\devel\perl\perl\lib\CORE"   real.c
real.c:1109:7: error: conflicting types for 'eulerconst'
 char* eulerconst(unsigned long prec) {
       ^~~~~~~~~~
In file included from real.c:6:0:
real.h:28:14: note: previous declaration of 'eulerconst' was here
 extern char* eulerconst(UV n);
              ^~~~~~~~~~
real.c:1121:7: error: conflicting types for 'piconst'
 char* piconst(unsigned long prec) {
       ^~~~~~~
In file included from real.c:6:0:
real.h:29:14: note: previous declaration of 'piconst' was here
 extern char* piconst(UV n);
              ^~~~~~~
gmake: *** [Makefile:385: real.o] Error 1
FAIL
! Installing D/DA/DANAJ/Math-Prime-Util-GMP-0.49.tar.gz failed. See C:\Users\zdm\AppData\Local\Temp\.cpanm\work\1511869071.2360\build.log for details. Retry with --force to force install it.
danaj commented 7 years ago

Thanks. I saw that yesterday in the cpan testers results and fixed it, but wasn't able to release until now. Should be fixed in v0.50 which just went out.