On Mon, 21 Jun 2010 08:50:03 +0200, Thibaud Fabre <fabre.thib...@gmail.com> 
wrote:

> I tried compiling using --with-gmp-include (as suggested as suggested by
> V. Lefevre on http://gcc.gnu.org/ml/gcc/2010-06/msg00280.html), then with
> --with-gmp, successfully with both options.

I'm obviously doing something daft, as it's failing to build with those options
for me.  Here's my full configure command:

../gcc-4.5.0/configure \
    --target=$LFS_TGT --prefix=/tools \
    --disable-nls --disable-shared --disable-multilib \
    --disable-decimal-float --disable-threads \
    --disable-libmudflap --disable-libssp \
    --disable-libgomp --enable-languages=c \
    --with-gmp-include=/mnt/lfs/sources/gcc-build/gmp \
    --with-gmp-lib=/mnt/lfs/sources/gcc-build/gmp

Here's some gmp-related bits that results:

checking for gmp.h... yes
...
checking for recent GMP... yes
checking for __gmpz_init in -lgmp... no
configure: error: libgmp not found or uses a different ABI.

And here's what's in /mnt/lfs/sources/gcc-build/mpfr/config.log:

configure:13376: checking for __gmpz_init in -lgmp
configure:13401: gcc -o conftest -g -O2 -ffloat-store  
-I/mnt/lfs/sources/gcc-build/gmp   -L/mnt/lfs/sources/gcc-build/gmp conftest.c 
-lgmp   >&5
/usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status

What parameters, exactly, did you pass to get a successful build of GCC
with MPFR-3.0.0 in-tree?

Thanks,

Matt.

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to