This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 5/5] add libcc1
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 28 Oct 2014 13:19:23 +0000
- Subject: Re: [PATCH 5/5] add libcc1
- Authentication-results: sourceware.org; auth=none
- References: <1400254001-12038-1-git-send-email-tromey at redhat dot com> <87oayx4l0x dot fsf at fleche dot redhat dot com> <87bntobp1f dot fsf at fleche dot redhat dot com> <53D9CA7B dot 3040709 at redhat dot com> <5436504B dot 8060902 at redhat dot com> <54385676 dot 4000004 at redhat dot com> <5449FC98 dot 1060404 at redhat dot com> <544A8162 dot 1090107 at redhat dot com> <544E9CE5 dot 602 at redhat dot com>
I'm seeing a different bootstrap failure from those already discussed:
In file included from
/scratch/jmyers/fsf/gcc-mainline/libcc1/../gcc/gcc-plugin.h:28:0,
from
/scratch/jmyers/fsf/gcc-mainline/libcc1/plugin.cc:34:
/scratch/jmyers/fsf/gcc-mainline/libcc1/../gcc/system.h:653:17: fatal error: gmp.h: No such file or directory
It appears the build is ignoring the --with-gmp option passed to
configure. Since <gmp.h> is included in system.h, if you include system.h
you have to pass the right -I option corresponding to --with-gmp /
--with-gmp-include. (There are several other such configure options for
MPFR, MPC, CLooG, ISL, libiconv at least - whether they are relevant
depends on whether your code ends up including the relevant headers.)
--
Joseph S. Myers
joseph@codesourcery.com