On Thu, 2013-04-04 at 17:19 +0000, John Burrell wrote:
> Building on LFS-SVN-20130401
>  
> I get this when compiling pygobject-3.4.2:
>  
> In file included from /usr/include/python2.7/Python.h:126:0,
>                  from pyglib.c:26:
> /usr/include/python2.7/modsupport.h:27:1: error: '_PyArg_ParseTuple_SizeT' is 
> an unr
> ecognized format function type [-Werror=format=]
>  PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) 
> Py_FORMAT_PARSETUPL
> E(PyArg_ParseTuple, 2, 3);
>  ^
> cc1: some warnings being treated as errors
> make[3]: *** [libpyglib_gi_2_0_python_la-pyglib.lo] Error 1
> pygobject-3.4.2/gi/_glib'
>  
> There doesn't seem to be an option in ./configure --help to stop treating
> warnings as errors. I got warnings in x7app with luit and xmodmap but could 
> use
> --disable-selective-werror to overcome the problem.
>  
> Do you know of any option with ./configure that I can use to get this to 
> compile?

>From the output above, CFLAGS="-Wno-error=format" ./configure... *might*
do the trick.  If not, you could grep for '-Werror=format' in the source
tree to see where it's being set and whether there are additional
arguments to the 'format' parameter (see
http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Warning-Options.html#Warning-Options
 for the upstream docs).

Regards,

Matt.

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to