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]

 



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