From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16398 invoked by alias); 12 Oct 2011 04:55:38 -0000 Received: (qmail 16381 invoked by uid 22791); 12 Oct 2011 04:55:36 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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, 12 Oct 2011 04:55:21 +0000 From: "trevor at corevx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/50697] New: gcc compile fails when gmp is in non-standard location Date: Wed, 12 Oct 2011 04:55:00 -0000 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: trevor at corevx dot com 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 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-10/txt/msg01073.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D50697 Bug #: 50697 Summary: gcc compile fails when gmp is in non-standard location Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned@gcc.gnu.org ReportedBy: trevor@corevx.com head -1 /swadm/local/include/gmp.h=20 /* Definitions for GNU multiple precision functions. -*- mode: c -*- ./configure --prefix=3D/swadm/local CFLAGS=3D-fPIC -I/swadm/local/include LDFLAGS=3D-L/swadm/local/lib --with-gmp-include=3D/swadm/local/include or ./configure --prefix=3D/swadm/local CFLAGS=3D-fPIC -I/swadm/local/include LDFLAGS=3D-L/swadm/local/lib --with-gmp-include=3D/swadm/local log: ---begin--- configure:5354: checking for the correct version of gmp.h configure:5374: gcc -c -fPIC -I/swadm/local/include -I/swadm/local confte= st.c >&5 configure:5374: $? =3D 0 configure:5392: gcc -c -fPIC -I/swadm/local/include -I/swadm/local confte= st.c >&5 configure:5392: $? =3D 0 configure:5393: result: yes ---end--- make error: ---begin--- gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attri= bute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -L/swadm/local/lib \ build/gcov-iov.o -o build/gcov-iov build/gcov-iov '4.6.1' '' \ > tmp-gcov-iov.h /bin/sh ../.././gcc/../move-if-change tmp-gcov-iov.h gcov-iov.h echo timestamp > s-iov gcc -c -DIN_GCC_FRONTEND -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common=20 -DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../incl= ude -I../.././gcc/../libcpp/include -I../.././gcc/../libdecnumber -I../.././gcc/../libdecnumber/bid -I../libdecnumber ../.././gcc/c-lang.c= -o c-lang.o In file included from ../.././gcc/tree.h:31, from ../.././gcc/c-lang.c:27: ../.././gcc/double-int.h:24:17: error: gmp.h: No such file or directory In file included from ../.././gcc/tree.h:31, from ../.././gcc/c-lang.c:27: ../.././gcc/double-int.h:316: error: expected =E2=80=98)=E2=80=99 before = =E2=80=98double_int=E2=80=99 ../.././gcc/double-int.h:317: error: expected declaration specifiers or =E2= =80=98...=E2=80=99 before =E2=80=98mpz_t=E2=80=99 In file included from ../.././gcc/c-lang.c:27: ../.././gcc/tree.h:5190: error: expected declaration specifiers or =E2=80= =98...=E2=80=99 before =E2=80=98mpz_t=E2=80=99 ../.././gcc/tree.h:5190: error: expected declaration specifiers or =E2=80= =98...=E2=80=99 before =E2=80=98mpz_t=E2=80=99 make[3]: *** [c-lang.o] Error 1 make[3]: Leaving directory `/swadm/local/Gmowa/gcc-4.6.1/host-x86_64-unknown-linux-gnu/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/swadm/local/Gmowa/gcc-4.6.1' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/swadm/local/Gmowa/gcc-4.6.1' make: *** [all] Error 2 ---end---