This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Re: Problem with building gcc 4.9.0 (libstdc++)
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Kirill Voronin <kvoronin at labchem dot sscc dot ru>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Fri, 8 Aug 2014 12:33:36 +0100
- Subject: Re: Re: Problem with building gcc 4.9.0 (libstdc++)
- Authentication-results: sourceware.org; auth=none
- References: <CAH6eHdRCBcLyu3DrbVitc0=RUpQDOLM+4DWcCHaaSTZs_PsySA at mail dot gmail dot com> <3c0a74bf59884203f5d4ada056b31054 dot squirrel at mx dot sscc dot ru>
On 8 August 2014 12:13, Kirill Voronin wrote:
>
> OK, thanks for you responses.
>
> Can you please make it a bit more clear about how to build gcc after using
> download_prerequisites script ?
I don't know what isn't clear about the steps at the bottom of the
http://gcc.gnu.org/wiki/InstallingGCC page.
> Running
>
> ../gcc-4.9.0/configure
> --prefix=/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_install
> --enable-shared
>
> fails with the error
>
> checking for the correct version of gmp.h... no
> configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
> Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
> their locations.
>
> since there is no gmp, mpc and mpfr built.
I'm guessing you ran download_prerequisites in the wrong directory.
> As far as i understand, the download_prerequisites script just downloads
> the source files.
No, it downloads them, unpacks them and renames the directories. GCC
will then build those prerequisites automatically and will know how to
link to them correctly.
> How should I build it?
As it says at http://gcc.gnu.org/wiki/InstallingGCC
If you do that correctly it works, so apparently you are not doing it correctly.