installing with gmp on host system

Doug Ronne vextorspace at gmail.com
Wed Nov 2 09:04:23 PST 2005


There is a chance this should go to the alfs list since that is where
I first ran into the trouble, but I got the error by hand too.  During
the second pass of gcc, I get a bunch of errors and the first error
that shows up is with /usr/included/gmp.h (a huge pile of syntax
errors).  Now I didn't think it should even be looking at the includes
on my host at that point.  The configure command is:

../gcc-3.4.3/configure --prefix=/tools \
    --libexecdir=/tools/lib --with-local-prefix=/tools \
    --enable-clocale=gnu --enable-shared \
    --enable-threads=posix --enable-__cxa_atexit \
    --enable-languages=c,c++ --disable-libstdcxx-pch

and the beginning of the configure log is:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1808: checking for gcc
configure:1921: checking whether the C compiler
(gcc/usr/include/gmp.h:1262:   ) works
configure:1937: gcc -o conftest    conftest.c  1>&5
configure:1963: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1968: checking whether we are using GNU C
configure:1977: gcc -E conftest.c
configure:1996: checking whether gcc accepts -g
configure:2063: checking for gnatbind
configure:2128: checking whether compiler driver understands Ada
configure:2160: checking how to compare bootstrapped objects
configure:2258: checking for correct version of gmp.h
configure:2271: gcc -c -g -O2 -Ino/include -Ino/include  conftest.c 1>&5
In file included from configure:2261:
/usr/include/gmp.h:54:40: error: stddef.h: No such file or directory
In file included from configure:2261:
/usr/include/gmp.h:465: error: syntax error before 'size_t'
/usr/include/gmp.h:465: error: syntax error before 'size_t'
/usr/include/gmp.h:465: error: syntax error before 'size_t'
/usr/include/gmp.h:482: error: syntax error before 'size_t'
/usr/include/gmp.h:483: error: syntax error before 'size_t'
/usr/include/gmp.h:541: error: syntax error before 'size_t'
/usr/include/gmp.h:721: error: syntax error before 'size_t'
/usr/include/gmp.h:818: error: syntax error before 'size_t'
/usr/include/gmp.h:1001: error: syntax error before '__gmpz_size'
/usr/include/gmp.h:1005: error: syntax error before '__gmpz_sizeinbase
error: syntax error before 'size_t'
/usr/include/gmp.h:1353: error: syntax error before '__gmpf_size'
/usr/include/gmp.h:1439: error: syntax error before '__gmpn_get_str'
/usr/include/gmp.h:1488: error: syntax error before 'size_t'
/usr/include/gmp.h:1681: error: syntax error before '__gmpz_size'
configure: failed program was:
#line 2260 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {


Now it seems to me the problem is that it is trying to include gmp, so
I added --without-gmp in my configure, but it still included gmp.  How
do I keep it from including gmp.h?

Thank you,
-Doug



More information about the lfs-support mailing list