This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gmp.h not found, even though sources are found
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Eric Neblock <c_eric at sbcglobal dot net>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 20 Jun 2016 11:56:32 +0100
- Subject: Re: gmp.h not found, even though sources are found
- Authentication-results: sourceware.org; auth=none
- References: <5763E0C0 dot 6070504 at sbcglobal dot net>
On 17 June 2016 at 12:36, Eric Neblock wrote:
> Hello,
> I know this thread title is similar to a previous one; however, my
> situation is different.
>
> I'm using a build script from here:
> https://github.com/vedderb/summon-arm-toolchain/ and when trying to
> compile, I was getting errors about not finding pre-req headers.
>
> This isn't my first rodeo with gcc, so I went to the contrib folder
> and ./download_prerequisites, which worked as expected.
That will download the prerequisites into the contrib directory.
You need to run contrib/download_prerequisites i.e. run it in the
parent directory, so the sources are put in the parent directory, not
in the contrib directory.
https://gcc.gnu.org/wiki/InstallingGCC
> However, when trying to configure again, it failed on gmp.h. I tried
> to specify --with-gmp, but that still didn't find it.
That won't work, --with-gmp is used to point to an installed set of
headers and libs, not the sources.