Note that there are some explanatory texts on larger screens.

plurals
  1. POBuild GMP on 64bit Windows
    primarykey
    data
    text
    <p>I have followed the instruction on the <a href="http://www.cs.nyu.edu/exact/core/gmp/" rel="noreferrer">"GMP Install Instruction for Windows Platform"</a>. I could build a 32bit version of GMP which can be used for Visual Studio.</p> <pre><code>./configure --prefix=${gmp-install} --disable-static --enable-shared make make install </code></pre> <p>Then I installed mingw_w64 and msys on another machine (which is running 64bit Windows) and rerun the commands.</p> <p>./configure was run without any problem. However, when I run "make", I got the following.</p> <pre><code>m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_add_n -DDLL_EXPORT -DPIC add_n.asm &gt;tmp-add_n.s gcc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_add_n -O2 -pedantic -fomit-frame-pointer -mno-cygwin tmp-add_n.s -DDLL_EXPORT -DPIC -o .libs/add_n.o tmp-add_n.s: Assembler messages: tmp-add_n.s:84: Error: operand type mismatch for `push' tmp-add_n.s:85: Error: operand type mismatch for `push' tmp-add_n.s:86: Error: operand type mismatch for `push' tmp-add_n.s:107: Error: operand type mismatch for `jmp' tmp-add_n.s:114: Error: operand type mismatch for `pop' tmp-add_n.s:115: Error: operand type mismatch for `pop' tmp-add_n.s:116: Error: operand type mismatch for `pop' make[2]: *** [add_n.lo] Error 1 make[2]: Leaving directory `/d/Temp/gmp-5.0.1/mpn' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/d/Temp/gmp-5.0.1' make: *** [all] Error 2 </code></pre> <p>If I used "gmake" instead, the following error was shown.</p> <pre><code>m4 gcc -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_add_n -DDLL_EXPORT -DPIC add_n.asm &gt;tmp-add_n.s m4: gcc: No such file or directory gmake[2]: *** [add_n.lo] Error 1 gmake[2]: Leaving directory `d:/Temp/gmp-5.0.1/mpn' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `d:/Temp/gmp-5.0.1' gmake: *** [all] Error 2 </code></pre> <p>I am not familiar with C++ make. Do I need to specify any flag in order to notify mingw_w64 that I am building for 64bit? Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload