[Bug bootstrap/50697] New: gcc compile fails when gmp is in non-standard location

2011-10-11 Thread trevor at corevx dot com
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: unassig...@gcc.gnu.org
ReportedBy: tre...@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---


[Bug bootstrap/50697] gcc compile fails when gmp is in non-standard location

2011-10-12 Thread trevor at corevx dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50697

--- Comment #2 from trevor at corevx dot com 2011-10-13 05:38:40 UTC ---
(In reply to comment #1)
> Why not just use --with-gmp=/swadm/local ?

right .. thank you, that worked nicely.

sorry for the noise.


[Bug bootstrap/50697] gcc compile fails when gmp is in non-standard location

2011-10-12 Thread trevor at corevx dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50697

trevor at corevx dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID

--- Comment #3 from trevor at corevx dot com 2011-10-13 05:39:22 UTC ---
resolved