This is the mail archive of the
mailing list for the GCC project.
Re: ANN: gcc-python-plugin 0.14
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Mikhail Maltsev <maltsevm at gmail dot com>
- Cc: David Malcolm <dmalcolm at redhat dot com>, python-announce-list at python dot org, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, gcc-python-plugin at lists dot fedorahosted dot org
- Date: Thu, 7 May 2015 17:13:02 +0100
- Subject: Re: ANN: gcc-python-plugin 0.14
- Authentication-results: sourceware.org; auth=none
- References: <1430937828 dot 32584 dot 277 dot camel at surprise> <554B39DD dot 8080500 at gmail dot com>
On 7 May 2015 at 11:09, Mikhail Maltsev wrote:
> I tried to compile it with current trunk on x86_64-unknown-linux-gnu
> (CentOS7) with Python 2.7.5 (It's default in CentOS7), but unfortunately
> the build failed. The reason is that the plugin #include's <Python.h>
> before GCC's headers.
> gcc/system.h #define's __STDC_FORMAT_MACROS in order to get PRId64 and
> other similar macros defined by inttypes.h. Probably Python.h includes
> it earlier without this definition. The recommended way
> (https://gcc.gnu.org/onlinedocs/gccint/Plugin-API.html#Plugin-API) is
> always include gcc-plugin.h first.
And Python.h thinks it has the right to insist that it should always be first:
(I won't say what I think about that requirement as this is a family
friendly list ;-)