On 12/14/06, Eric Botcazou <[EMAIL PROTECTED]> wrote:
> So, my question is this: Do I need to have libgmp and libmpfr
> available as both 32 and 64 bit variants?
No if you use only one compiler (i.e. the multilibbed 32-bit compiler).
let me come back to this.... using a concrete example to examplify my thougts.
Now, I have an UltraSPARC system, capable of running both 32 bit and
64 bit applications.
The system is such that I configure and build the gcc compiler like this:
../gcc/configure --enable-__cxa_atexit --enable-shared --with-cpu=v7
--with-gmp=/usr/local/gmp-mpfr --with-mpfr=/usr/local/gmp-mpfr
--enable-languages=c,c++,fortran,java,objc,obj-c++,treelang
which means I get a sparc64-unknown-linux-gnu multilibbed compiler.
That is, the compiler itself is 32 bit (due to the --with-cpu=v7 flag)
and the libraries that support multilibbed variants come in a default
32 bit variant (again, due to the --with-cpu=v7 flag) and a 64 bit
variant.
So, returning to my question here. The way I see it, should the
multilibbed enabled libraries use and gmp and/or mpfr routines, then
the gmp and mpfr libraries are needed in both 32 and 64 bit variants.
If, on the other hand, the gmp and mpfr libraries are only needed in
the compiler itself and the libraries that are not multilibbed
enabled, then gmp and mpfr are only needed as 32 bit variants.
So, again, if I have a 32 bit compiler multilibbed enabled, then only
32 bit variants of gmp and mpfr libraries requires that gmp and/or
mpfr routines are not used by the multilibbed libraries at all.
Correct?
If gcc development would eventually make use of gmp and/or mpfr in the
multilibbed libraries, that would require both 32 bit and 64 bit
variants installed. If so, I wonder if the header files support
multilibbed, 32 bit and 64 bit, install and use... in other words, I
suppose gmp and mpfr should be multilibbed :)
--
Cheers,
/ChJ