public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "trevor at corevx dot com" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-50697-4@http.gcc.gnu.org/bugzilla/> (raw)

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50697

             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 
/* Definitions for GNU multiple precision functions.   -*- mode: c -*-

  ./configure --prefix=/swadm/local CFLAGS=-fPIC -I/swadm/local/include
LDFLAGS=-L/swadm/local/lib --with-gmp-include=/swadm/local/include

or

  ./configure --prefix=/swadm/local CFLAGS=-fPIC -I/swadm/local/include
LDFLAGS=-L/swadm/local/lib --with-gmp-include=/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   conftest.c
>&5
configure:5374: $? = 0
configure:5392: gcc -c -fPIC -I/swadm/local/include -I/swadm/local   conftest.c
>&5
configure:5392: $? = 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-attribute
-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 
-DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include
-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 ‘)’ before ‘double_int’
../.././gcc/double-int.h:317: error: expected declaration specifiers or ‘...’
before ‘mpz_t’
In file included from ../.././gcc/c-lang.c:27:
../.././gcc/tree.h:5190: error: expected declaration specifiers or ‘...’ before
‘mpz_t’
../.././gcc/tree.h:5190: error: expected declaration specifiers or ‘...’ before
‘mpz_t’
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---


             reply	other threads:[~2011-10-12  4:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-12  4:55 trevor at corevx dot com [this message]
2011-10-12 10:53 ` [Bug bootstrap/50697] " redi at gcc dot gnu.org
2011-10-13  5:38 ` trevor at corevx dot com
2011-10-13  5:39 ` trevor at corevx dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-50697-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).