Possible issue on windows build (mingw)

Torbjorn Granlund tg at gmplib.org
Mon Apr 2 15:04:47 CEST 2012

Vlad Gabriel <clampi at yahoo.com> writes:

  While building the latest gmp (from Mercurial repository) I ran the following commands:
Unfortunately, "the latest" gmp is not a unique description of the
source tree.

It is probably a better strategy to take one of the daily snapshots,
since then we can work with the exact same sources when trying to
reproduce problems.

  ../gmp-hg/configure --enable-maintainer-mode --enable-cxx --enable-shared --disable-static --enable-assert
  [...configure runs, correctly detects my processor as I7 Sandy Bridge, which is correct ...]

Unfortunately, I have no windos system using that processor.  I have a
i7 nehalem (virtualised) system where I seem to fail with reproducing
this massive problem.
(We have reproduced the 2nd problem, and a fix is about to be checked
  Either configure picks up the wrong assembler routines, or the
  routines are not designed to work with windows calling convention.

I agree with this analysis.  Probably one the the files in
mpn/x86_64/coreisbr claims to work for "DOS64" but actually doesn't.

Could you please try the following for us:

0. Grab a snapshot, to put us on the same source code.

1. Hide all ".asm" files from mpn/x86_64/coreisbr in, say,

2. Repeat your configure+build procedure.  I assume things will now work.

3. Replace file after file from mpn/x86_64/hidden to mpn/x86_64/coreisbr,
   then rebuild from scratch.  When you see the massive failures again,
   you've found the culprit.  Please give us the name...


More information about the gmp-bugs mailing list