Re: 6.2.0 build failure on x86_64 Skylake PC - FIX

2020-11-10 Thread Marco Bodrato

Il 2020-06-08 21:52 Marc Glisse ha scritto:

[handle *-*-msys exactly the same as *-*-mingw* in configure.ac]



configfsf.guess does mention a triple *-pc-msys, so I guess it makes
sense to handle it (or replace it with something we already handle). I
don't really know in what ways it differs from mingw, probably not
that much as far as GMP is concerned.


To build and test a static library, this seems enough.

A test with
./configure --enable-cxx&& check& check-mini-gmp
worked smoothly.


I notice in a generated file:

aclocal.m4:  *-*-mingw* ) # actually msys

Should automake also be taught about the msys triple?


You are right. If I understand it correctly, automake does not know how 
to build shared libraries under *-pc-msys. So that ./configure 
--enable-shared --disable-static outputs


checking if libtool supports shared libraries... no
checking whether to build shared libraries... no

and then make check fails.


But msys and mingw are somehow different wrt shared libraries...
./configure --build=$(./config.guess|sed 's/-msys/-mingw64/') 
--enable-shared
builds a library that passes "make check-mini-gmp" but the Makefiles are 
not able to build the tests for "make check"...


It would be nice to know if there are other libraries using the 
autotools that build a shared dll under msys...


Ĝis,
m
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: 6.2.0 build failure on x86_64 Skylake PC - FIX

2020-11-01 Thread Marco Bodrato

Ciao Ralph,

Il 2020-05-30 21:12 tsurzin ha scritto:
The PC is running Msys2 under Windows 10 and without change GMP failed 
to build.


Can you test if the latest available snapshot is working in your 
environment?


You can download it at:
https://gmplib.org/download/snapshot/gmp-6.2/gmp-6.2.0-20201101220635.tar.zst


With very limited understanding of the Gnu-tools I was unable to make
a shared (.dll) version although Msys2 provides a generic one.


I'm not sure it will work (I don't have Windows, and it seems hard to 
make Msys2 work under wine), but you can try what happen with:

configure --enable-shared --disable-static

Ĝis,
m
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: 6.2.0 build failure on x86_64 Skylake PC - FIX

2020-06-08 Thread Marc Glisse

On Sat, 30 May 2020, tsurzin wrote:


This change worked to build test and run a version of GMP-6.2.0 for my PC.


[handle *-*-msys exactly the same as *-*-mingw* in configure.ac]

The PC is running Msys2 under Windows 10 and without change GMP failed 
to build.


configfsf.guess does mention a triple *-pc-msys, so I guess it makes sense 
to handle it (or replace it with something we already handle). I don't 
really know in what ways it differs from mingw, probably not that much as 
far as GMP is concerned.


I notice in a generated file:

aclocal.m4:  *-*-mingw* ) # actually msys

Should automake also be taught about the msys triple?

--
Marc Glisse
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


6.2.0 build failure on x86_64 Skylake PC - FIX

2020-05-30 Thread tsurzin

This change worked to build test and run a version of GMP-6.2.0 for my PC.
The PC is running Msys2 under Windows 10 and without change GMP failed 
to build.


The following change and:
    autoconf
    ./configure
    make
    make check
    make install
built a working static version of GMP for my x86_64 Skylake PC.
With very limited understanding of the Gnu-tools I was unable to make a 
shared (.dll) version although Msys2 provides a generic one.


$ diff -u old/configure.ac gmp-6.2.0/configure.ac
--- old/configure.ac    2020-05-30 11:42:19.002324200 -0500
+++ gmp-6.2.0/configure.ac  2020-05-30 11:43:57.507601600 -0500
@@ -2011,7 +2011,7 @@
    # Sun cc.
    cc_64_cflags="-xO3 -m64"
    ;;
- *-*-mingw* | *-*-cygwin)
+ *-*-mingw* | *-*-cygwin | *-*-msys )
    limb_64=longlong
    CALLING_CONVENTIONS_OBJS_64=""
    AC_DEFINE(HOST_DOS64,1,[Define to 1 for Windos/64])
@@ -2037,7 +2037,7 @@
 # x86s, but allow any CPU here so as to catch "none" too.
 #
 case $host in
-  *-*-mingw*)
+  *-*-mingw* | *-*-msys )
 gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
 gcc_cflags_nocygwin="-mno-cygwin"
 ;;
@@ -2664,7 +2664,7 @@

 AC_SUBST(LIBGMP_DLL,0)
 case $host in
-  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+  *-*-cygwin* | *-*-mingw* | *-*-msys* | *-*-pw32* | *-*-os2*)
 # By default, build only static.
 if test -z "$enable_shared"; then
   enable_shared=no
@@ -3795,7 +3795,7 @@
  case $host in
    *-*-darwin*)
  GMP_INCLUDE_MPN(x86_64/darwin.m4) ;;
-   *-*-mingw* | *-*-cygwin)
+   *-*-mingw* | *-*-cygwin | *-*-msys )
  GMP_INCLUDE_MPN(x86_64/dos64.m4) ;;
    *-openbsd*)
  GMP_DEFINE_RAW(["define(,1)"]) ;;

Thanks for the great GMP support.
Regards,
Ralph Peterson

___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs