[Bug bootstrap/37330] New: mpfr & 32/64 multilib issue
olivier dot raoult at st dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 2 13:41:00 GMT 2008
Hi,
My mpfr and gmp 32/64 bits libraries are installed respectively in $PREFIX/lib
and $PREFIX/lib64.
'configure' is called as following:
configure .. --with-gmp-lib=$PREFIX/lib --with-mpfr-lib=$PREFIX/lib ...
It produces a Makefile with the following line:
HOST_GMPLIBS = -L$PREFIX/lib -L$PREFIX/lib -lmpfr -lgmp
As far as I can see, there is no specific management of multilib context and
'make bootstrap' fails on mpfr link error.
As a workaround, I used the 64bits path for gmp and the 32bits path for mpfr:
configure .. --with-gmp-lib=$PREFIX/lib64 --with-mpfr-lib=$PREFIX/lib ...
The Makefile line becomes:
HOST_GMPLIBS = -L$PREFIX/lib64 -L$PREFIX/lib -lmpfr -lgmp
Then it works, even on a full 32 bits context (ie. i686-unknown-pc-linux) but
it's ugly, doesn't it? ;-)
Rgds,
Olivier
--
Summary: mpfr & 32/64 multilib issue
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: olivier dot raoult at st dot com
GCC build triplet: x86_64-unknown-linux-gnu (RedHat 3/4)
GCC host triplet: x86_64-unknown-linux-gnu (RedHat 3/4)
GCC target triplet: x86_64-unknown-linux-gnu (RedHat 3/4)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37330
More information about the Gcc-bugs
mailing list