Fwd: Re: Assembler error (invert_limb_table.asm) using gcc/x86_64-pc-msys/5.3.0

David Deharbe david.deharbe at clearsy.com
Thu Jan 5 09:55:17 UTC 2017


Le 22/12/2016 10:09, nisse at lysator.liu.se a écrit :

Thanks for your reply.

> 
> I think the problem is in the GMP configure script. On windows, the m4
> include files are supposed to include mpn/x86_64/dos64.m4, which
> overrides the definition of PROTECT.
> 

Yes, that makes sense to me.

> I think you need to add a pattern in config.ac around line 3710 to
> recognize a native window build using msys (which is what you are 
> doing,
> iirc), here:
> 
>         64|x32)
>           GMP_INCLUDE_MPN(x86_64/x86_64-defs.m4)
>           AC_DEFINE(HAVE_HOST_CPU_FAMILY_x86_64)
> 	  case $host in
> 	    *-*-darwin*)
> 	      GMP_INCLUDE_MPN(x86_64/darwin.m4) ;;
> 	    *-*-mingw* | *-*-cygwin)
> 	      GMP_INCLUDE_MPN(x86_64/dos64.m4) ;;
> 	    *-openbsd*)
> 	      GMP_DEFINE_RAW(["define(<OPENBSD>,1)"]) ;;
> 	    *-linux*)
> 	      GMP_DEFINE_RAW(["define(<LINUX>,1)"]) ;;
> 	  esac
>           ;;
> 

I suppose that you suggest adding a case in the following line:
> 	    *-*-mingw* | *-*-cygwin)

Yet, it seems that with the build options reported by configure the 
existing configure.ac file should work.
Here they are:

   Version:           GNU MP 6.1.1
   Host type:         x86_64-w64-mingw32
   ABI:               64
   Install prefix:    /mingw64
   Compiler:          gcc
   Static libraries:  yes
   Shared libraries:  no

The host type matches *-*-mingw*. The nesting conditions mention 
variables X86_64_PATTERN (x86_64-*-*) and ABI (64).

So I do not see what I could do to fix the problem. Any further idea?

Regards,

-- 
David Deharbe
ClearSy System Engineering
320, avenue Archimède
Les Pléiades III, Bât. A
13857 AIX EN PROVENCE Cedex 3 - FRANCE
Tel : +33 (0)4 42 37 96 40



More information about the gmp-bugs mailing list