gmp build fails on x86_64-pc-mingw32

NightStrike nightstrike at gmail.com
Wed Feb 6 16:19:26 CET 2008


To continue the porting effort of gcc to the x86_64-pc-mingw32
platform, we require gmp and mpfr to work for the native platform.
When cross compiling gcc from x86_64-pc-linux as the build machine,
gcc will configure gmp and mpfr by default using the following
configure commands:

/tmp/build/gcc-svn/gcc/gmp/configure --cache-file=./config.cache
--prefix=/tmp/root --with-sysroot=/tmp/root --enable-languages=c,c++
--program-transform-name=s,y,y, --build=x86_64-unknown-linux-gnu
--host=none-pc-mingw32 --target=none-pc-mingw32
--srcdir=/tmp/build/gcc-svn/gcc/gmp --disable-shared


/tmp/build/gcc-svn/gcc/mpfr/configure --cache-file=./config.cache
--prefix=/tmp/root --with-sysroot=/tmp/root --enable-languages=c,c++
--program-transform-name=s,y,y, --build=x86_64-unknown-linux-gnu
--host=none-pc-mingw32 --target=none-pc-mingw32
--srcdir=/tmp/build/gcc-svn/gcc/mpfr --disable-shared
--with-gmp-build=/tmp/buildw64/gcc/./gmp



The host and target of "none-pc-mingw32" produces a gcc that does not
function in the native environment.  Therefore, I tried compiling gmp
myself, starting with this simple command:

../gmp/configure --host=x86_64-pc-mingw32

The result is:

checking how to define a 32-bit word... .long
checking if .align assembly directive is logarithmic... no
checking if the .align directive accepts an 0x90 fill in .text... yes
checking for unsigned short... yes
checking size of unsigned short... 2
checking for unsigned... yes
checking size of unsigned... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for mp_limb_t... yes
checking size of mp_limb_t... 4
configure: error: Oops, mp_limb_t is 32 bits, but the assembler code
in this configuration expects 64 bits.


configure then dies there.  I am attaching config.log.  Any help in
fixing this for the x86_64-pc-mingw32 would be greatly appreciated, so
as to remove what is for us a very high priority blocker.

Thank you all for your time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: builddir.tar.bz2
Type: application/x-bzip2
Size: 60523 bytes
Desc: not available
Url : http://gmplib.org/list-archives/gmp-discuss/attachments/20080206/14552b07/attachment-0001.bin 


More information about the gmp-discuss mailing list