gmp-4.2.1 with enable-cxx=detect doesn't build with fresh MinGW

Wolfgang Boiger Wolfgang.Boiger at
Mon Sep 18 21:16:48 CEST 2006

Hi everyone,

I'm not sure what I am doing wrong (maybe it's a bug?). When I try to build gmp 4.2.1 with the option --enable-cxx with MinGW, "make check" gives an error. Here is what exactly happened:

* Started with: Win2kSP4 (never touched by MinGW & Co before)
* Execute MinGW-5.0.3.exe, which installs previously
  downloaded files to "C:\MinGW":
    * binutils-2.15.91-20040904-1.tar.gz
    * gcc-ada-3.4.2-20040916-1.tar.gz
    * gcc-core-3.4.2-20040916-1.tar.gz
    * gcc-g++-3.4.2-20040916-1.tar.gz
    * gcc-g77-3.4.2-20040916-1.tar.gz
    * gcc-java-3.4.2-20040916-1.tar.gz
    * gcc-objc-3.4.2-20040916-1.tar.gz
    * mingw32-make-3.80.0-3.tar.gz
    * mingw-runtime-3.10.tar.gz
    * w32api-3.7.tar.gz
* Execute MSys-1.0.10.exe, which installs itself into
  "C:\msys\1.0". After that "post install":
    * "Do you have MinGW installed?" -> "y"
    * "Where is your MinGW installation?" -> "C:/MinGW"
    * "You do not have C:/MinGW/bin/make.exe.
       Keep it that way."
* Copy "gmp-4.2.1.tar.gz" to "C:\msys\1.0\home\Administrator\"
* Start MSYS
* Execute "make --version" gives "GNU Make version 3.79.1"
* Execute "tar xzvf gmp-4.2.1.tar.gz"
* Execute "cd gmp-4.2.1"
* Execute "./config.guess" gives "pentium4-pc-mingw32"

$ ./configure  --enable-cxx=detect
$ make
$ make check
give (only the last few lines)
Making check in cxx
make[3]: Entering directory `/home/Administrator/gmp-4.2.1/tests/cxx'
make  t-assign.exe t-binary.exe t-cast.exe t-constr.exe t-headers.exe t-istream.exe t-locale.exe t-misc.exe t-ops.exe t-ostream.exe t-prec.exe t-rand.exe t-ternary.exe t-unary.exe
make[4]: Entering directory `/home/Administrator/gmp-4.2.1/tests/cxx'
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../tests    -m32 -O2 -fomit-frame-pointer -mtune=pentium3 -march=pentium3 -mno-cygwin -c -o t-assign.o
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/strstream:51,
                 from ../../tests/tests.h:425,
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from
../../tests/tests.h:429: error: `string' does not name a type
make[4]: *** [t-assign.o] Error 1
make[4]: Leaving directory `/home/Administrator/gmp-4.2.1/tests/cxx'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/Administrator/gmp-4.2.1/tests/cxx'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/Administrator/gmp-4.2.1/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/Administrator/gmp-4.2.1'
make: *** [check] Error 2

Most interesting, configuring (and 'make','make check','make install') without options, or with --enable-cxx (without the "detect") work fine, and executing instead
$ ./configure  --build=pentium-pc-mingw32  --enable-cxx  --enable-threads  --enable-mpfr
$ make
give (only the last few lines)
Making all in cxx
make[2]: Entering directory `/home/Administrator/gmp-4.2.1/cxx'
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMPXX -I..    -m32 -O2 -fomit-frame-pointer -mtune=pentium -march=pentium -mno-cygwin -c -o isfuns.lo
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[2]: *** [isfuns.lo] Error 1
make[2]: Leaving directory `/home/Administrator/gmp-4.2.1/cxx'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Administrator/gmp-4.2.1'
make: *** [all] Error 2

I'm new to gmp, so I don't know
- if this is the right mailing list
- the information provided is usefull

Does anyone know why these errors occur?

Thanks for your help in advance,
sorry for my crappy english.

"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen:

More information about the gmp-discuss mailing list