Re: gcc 4.6.1 compile fails in linking stage - libgmp.so in wrong format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I put the src trees of gmp, mpfr, and mpc under the gcc tree, linked "gmp", "mpfr", "mpc" directories to each of these src trees. Then called configure, in a separate tree, as recommended.

But I'm getting:

checking for recent MPFR... no
configure: error: MPFR version >= 2.3.1 required

The MPFR version in the GCC tree is 3.1.0.

What do you recommend I do?

TIA,
Steve



----- Original Message -----
From: Jonathan Wakely <jwakely.gcc@xxxxxxxxx>
To: steve kirby <thin_runner@xxxxxxxxx>
Cc: GCC HELP <gcc-help@xxxxxxxxxxx>
Sent: Tuesday, October 25, 2011 4:42 PM
Subject: Re: gcc 4.6.1 compile fails in linking stage - libgmp.so in wrong format

On 25 October 2011 23:35, steve kirby wrote:
> Here's what I did for setup:
>
> (1) I compiled GMP, MPFR, and MPC.  As far as I can tell, all the libs created are 64-bit.
>
>
> (2) set LD_LIBRARY_PATH=/home/smith/GMP/lib:/home/smith/MPFR/lib:/home/smith/MPC/lib:

Is there a good reason you didn't put the GMP, MPFR and MPC sources in
the GCC source tree and just let GCC build them itself?

There's a script to do that in the gcc source dir, just run
./contrib/download_prerequisites

> (3) ./configure --prefix=/home/smith/GCC461 --with-gmp=/home/smith/GMP --with-mpfr=/home/smith/mpfr --with-mpc=/home/smith/mpc

Do not run ./configure, see http://gcc.gnu.org/wiki/FAQ#configure

> gmake
>
> but the -m32's are creeping in somehow.

Probably when building 32-bit libs, x86_64 is a multilib platform,
meaning it builds 32-bit and 64-bit libs.  You could stop it building
the 32-bit ones with --disable-multilib but that;s probably not what
you want to do.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux