From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21903 invoked by alias); 22 Jun 2011 12:56:38 -0000 Received: (qmail 21888 invoked by uid 22791); 22 Jun 2011 12:56:36 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_GD X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 22 Jun 2011 12:56:22 +0000 From: "franck.z.bugzilla at orange dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/49502] New: Unable to build gcc with gmp/mpc/mpfr in its tree and flag "--enable-cxx" X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: franck.z.bugzilla at orange dot fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Wed, 22 Jun 2011 12:56:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg01965.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49502 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: unassigned@gcc.gnu.org ReportedBy: franck.z.bugzilla@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;=20 uname -m =3D i686 uname -r =3D 1.7.9(0.237/5/3) uname -s =3D CYGWIN_NT-5.1 uname -v =3D 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;=20 $ /cygdrive/c/gcc-4.6.0/configure --enable-cxx *** the complete command line that triggers the bug;=20 $ 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=3Dcompile 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/_$//'`=20 -DNO_ASM -g -fkeep-inline-functions -c -o fib_table.lo fib_table.c *** the compiler output (error messages, warnings, etc.); and=20 messages sent: libtool: compile: unable to infer tagged configuration libtool: compile: specify a tag with `--tag' backtraces from "make"s rewinding from /home/D=C3=A9faut/objdir/gmp/mpn (ma= ke[5]) to /home/D=C3=A9faut/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).= =20 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=3D./config.cache --enab= le-cxx --enable-languages=3Dc,c++,fortran,java,lto,objc --program-transform-name= =3Ds,y,y, --disable-option-checking --build=3Di686-pc-cygwin --host=3Dnone-pc-cygwin --target=3Dnone-pc-cygwin --srcdir=3D/cygdrive/c/gcc-4.6.0/gmp --disable-intermodule --enable-checking=3Dyes,types --disable-coverage --enable-languages=3Dc,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 o= ne 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=3D49072 , for history, but= all the information for reproduceability has been reproduced here.) gcc output is in an "objdir" directory separate from my gcc source director= y. 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.