<div dir="ltr"><div><div>Yep, seen this a couple of times.<br><br></div>You're building for an x86 target, but you're including the host Python's Python.h file.<br></div>Any idea why this happens ? Or if you're include paths are ok ?<br><div><div><br></div><div>It could also [very likely] be a regression with the Python package.<br></div><div>If you want, you could show me your Makefile and I can try to figure out what's wrong.<br></div><div></div><div><br></div><div>An example of a Python package that builds as  C extension is this:<br><a href="https://github.com/wlanslovenija/firmware-packages-opkg/blob/master/lang/python-greenlet/Makefile">https://github.com/wlanslovenija/firmware-packages-opkg/blob/master/lang/python-greenlet/Makefile</a><br><br></div><div>Here's a similar issue [a Github link] which is closed:<br><a href="https://github.com/openwrt/packages/issues/518">https://github.com/openwrt/packages/issues/518</a><br></div><div><br></div><div>Cheers<br></div><div>Alex</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 18, 2015 at 2:08 AM, W. Michael Petullo <span dir="ltr"><<a href="mailto:mike@flyn.org" target="_blank">mike@flyn.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to create a new gobject-introspection package for<br>
OpenWrt. This package builds some code using Python.h. However, the<br>
configuration of gobject-introspection fails with the following appearing<br>
in config.log:<br>
<br>
configure:14641: i486-openwrt-linux-musl-gcc -E -I/home/mike/Source/openwrt/openwrt/staging_dir/target-i386_pentium4_musl-1.1.11/usr/include -I/home/mike/Source/openwrt/openwrt/staging_dir/target-i386_pentium4_musl-1.1.11/include -I/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-i386_pentium4_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-i386_pentium4_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-i386_pentium4_gcc-4.8-linaro_musl-1.1.11/include -I/home/mike/Source/openwrt/openwrt/staging_dir/target-i386_pentium4_musl-1.1.11/usr/lib/libiconv-stub/include -I/home/mike/Source/openwrt/openwrt/staging_dir/target-i386_pentium4_musl-1.1.11/usr/lib/libintl-stub/include  -I/home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7 -I/home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7 conftest.c<br>
In file included from /home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7/Python.h:8:0,<br>
                 from conftest.c:42:<br>
/home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7/pyconfig.h:1019:0: warning: "SIZEOF_LONG" redefined [enabled by default]<br>
 #define SIZEOF_LONG 8<br>
 ^<br>
conftest.c:30:0: note: this is the location of the previous definition<br>
 #define SIZEOF_LONG 4<br>
 ^<br>
In file included from /home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7/Python.h:58:0,<br>
                 from conftest.c:42:<br>
/home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7/pyport.h:886:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."<br>
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."<br>
  ^<br>
<br>
Has anyone else seen this LONG_BIT check causing a problem when building<br>
a Python-related package?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Mike<br>
<br>
:wq<br>
_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
</font></span></blockquote></div><br></div>