This is the mail archive of the
mailing list for the GCC project.
Re: r117933: cross-bootstrap issue: cross-GMP/MPFR needed?
- From: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- To: Jan-Benedict Glaw <jbglaw at lug-owl dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 22 Oct 2006 15:49:22 -0400 (EDT)
- Subject: Re: r117933: cross-bootstrap issue: cross-GMP/MPFR needed?
- References: <20061022190020.GE26271@lug-owl.de>
On Sun, 22 Oct 2006, Jan-Benedict Glaw wrote:
> r117933 had a side-effect: when cross-compiling a C-only gcc to run on
> a target machine, it seems that you now have to cross-bulid gmp/mpfr
> before building the target-hosted compiler.
No you shouldn't need to cross-build gmp/mpfr. These libs are only linked
in with "host" programs, not "build" or "target" programs. I.e. they're
meant to be linked with cc1. If you're building a cross-compiler, (even a
canadian-cross) it should make no difference. Just specify the location
of the libraries using one of the existing --with-gmp/--with-mpfr options.
If you do have host versions of these libs and that's not working please
let me know.
> Was this intentional,
> given that this stuff seems to be not needed for the C frontend?
> MfG, JBG
Yes it was intentional. These libs will be used from the middle-end
hopefully very shortly. See:
The consensus was to go ahead and require them.
If you don't have the appropriate versions of GMP and MPFR installed, you
need to get them (even if you're just building C) as per the new
prerequisites I documented in the manual:
Kaveh R. Ghazi email@example.com