http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49502
Summary: Unable to build gcc with gmp/mpc/mpfr in its tree and flag "--enable-cxx" Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: franck.z.bugzi...@orange.fr *** the exact version of GCC; configure:4184: gcc --version >&5 gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) *** the system type; uname -m = i686 uname -r = 1.7.9(0.237/5/3) uname -s = CYGWIN_NT-5.1 uname -v = 2011-03-29 10:10 My Cygwin is recent (one week old). My Cygwin version of libtool is 2.4-1. It was run on a Dual Core, Windows XP SP 3, with Cygwin environment. *** the options given when GCC was configured/built; $ /cygdrive/c/gcc-4.6.0/configure --enable-cxx *** the complete command line that triggers the bug; $ make more precisely: It's a failure with a tag passed to libtool. Took place in objdir/gmp/mpn. With the command: /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/cygdrive/c/gcc-4.6.0/gmp/mpn -I.. -D__GMP_WITHIN_GMP -I/cygdrive/c/gcc-4.6.0/gmp -DOPERATION_`echo fib_table | sed 's/_$//'` -DNO_ASM -g -fkeep-inline-functions -c -o fib_table.lo fib_table.c *** the compiler output (error messages, warnings, etc.); and messages sent: libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' backtraces from "make"s rewinding from /home/Défaut/objdir/gmp/mpn (make[5]) to /home/Défaut/objdir (make): [fib_table.lo] Error 1 (in mpn) [all-recursive] Error 1 (in gmp) [all] Error 2 (in gmp) [all-stage1-gmp] Error 2 (in objdir) [stage1-bubble] Error 2 (in objdir) [all] Error 2 *** the preprocessed file (*.i*) that triggers the bug, generated by adding -save-temps to the complete compilation command, or, in the case of a bug report for the GNAT front end, a complete set of source files (see below). not relevant (?) it's an issue with how the "libtool" utility was generated by gmp's "configure" script with the parameters it got from gcc's makefile. Namely, as found in gmp/config.log : $ /cygdrive/c/gcc-4.6.0/gmp/configure --cache-file=./config.cache --enable-cxx --enable-languages=c,c++,fortran,java,lto,objc --program-transform-name=s,y,y, --disable-option-checking --build=i686-pc-cygwin --host=none-pc-cygwin --target=none-pc-cygwin --srcdir=/cygdrive/c/gcc-4.6.0/gmp --disable-intermodule --enable-checking=yes,types --disable-coverage --enable-languages=c,lto --disable-shared *** Extra-precision about the source compiled. I have the same source tree for gcc, gcc/gmp, gcc/mpc and gcc/mpfr as the one advised in the pre-requisite web page at gcc.gnu.org (4.6.0, 4.3.2, 0.9 and 3.0.1). (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49072 , for history, but all the information for reproduceability has been reproduced here.) gcc output is in an "objdir" directory separate from my gcc source directory. As far as I can remember from my various attempts, a configure command with --enable-cxx flag when I built gmp separately from gcc worked. I'll try it again if you wish so as to make sure it's not a gmp issue.