[GCC] How can I make gcc run on my OS ?
Posted: Sun Jan 01, 2012 11:16 am
Hello,
Having built a cross-compiler for my OS (this compiler runs on Linux), I would now like to become self-hosting by compiling GCC for my own OS. Then I have run the configure script exactly as I did to build GCC for Linux, except that I have added the option --host, with the same value as --target. I have also specified GMP, MPFR and MPC locations (/tmp/gcc).
However, when I do this, I get an error from configure saying that GMP, MPFR and MPC libraries cannot be found (the headers can) :
And as soon as I remove the --host option, it works.
Should GMP, MPFR and MPC be built again to get it work ?
Thanks for your help.
Having built a cross-compiler for my OS (this compiler runs on Linux), I would now like to become self-hosting by compiling GCC for my own OS. Then I have run the configure script exactly as I did to build GCC for Linux, except that I have added the option --host, with the same value as --target. I have also specified GMP, MPFR and MPC locations (/tmp/gcc).
However, when I do this, I get an error from configure saying that GMP, MPFR and MPC libraries cannot be found (the headers can) :
Code: Select all
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
Should GMP, MPFR and MPC be built again to get it work ?
Thanks for your help.