<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6371</bug_id>
          
          <creation_ts>2014-05-23 12:49:57 +0000</creation_ts>
          <short_desc>Cross-compile with python native on 64bits host machine</short_desc>
          <delta_ts>2014-06-09 16:39:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.6</version>
          <rep_platform>All</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Sueiro">diego.sueiro</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>Martin.Jansa</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43555</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Sueiro">diego.sueiro</who>
    <bug_when>2014-05-23 12:49:57 +0000</bug_when>
    <thetext>When inherit python3native/pythonnative and cross compile for 32bits from 64bits host this compile error is raised:


| In file included from /&lt;snip&gt;/tmp/sysroots/x86_64-linux/usr/include/python3.3m/Python.h:50:0,
|                  from ../../git/src/qpython_priv.h:22,
|                  from moc_qpython_priv.cpp:9:
| /&lt;snip&gt;/sysroots/x86_64-linux/usr/include/python3.3m/pyport.h:820:2: error: #error &quot;LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).&quot;
|  #error &quot;LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).&quot;
|   ^</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43650</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-05-29 14:42:19 +0000</bug_when>
    <thetext>Can you give us more details about what exactly you are trying to build such as MACHINE target, including SDK_MACHINE and any other changes to your local.conf that might be helpful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43659</commentid>
    <comment_count>2</comment_count>
    <who name="Diego Sueiro">diego.sueiro</who>
    <bug_when>2014-05-29 15:12:08 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Can you give us more details about what exactly you are trying to build such
&gt; as MACHINE target, including SDK_MACHINE and any other changes to your
&gt; local.conf that might be helpful.

BB_VERSION        = &quot;1.22.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;cubietruck&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.6&quot;
TUNE_FEATURES     = &quot;armv7a vfp neon callconvention-hard vfpv4 cortexa7&quot;
TARGET_FPU        = &quot;vfp-vfpv4-neon&quot;
meta              
meta-yocto        
meta-yocto-bsp    
meta-sunxi        = &quot;master:620311104b12f28a39c693064f85dd26c9e32dce&quot;
meta-qt5          = &quot;master:05ed65d22578296d5ef145ec20e6e7bb7b434c9b&quot;
meta-webserver    = &quot;daisy:dca466c074c9a35bc0133e7e0d65cca0731e2acf&quot;


Recipe:

SUMMARY = &quot;&quot;
DESCRIPTION = &quot;&quot;
HOMEPAGE = &quot;http://thp.io/2011/pyotherside/&quot;
LICENSE = &quot;MIT&quot;
LIC_FILES_CHKSUM =&quot;file://LICENSE;md5=be0b40cd97283f76c0db7db5137787b5&quot;

PV = &quot;1.2+git${SRCPV}&quot;

SRCREV = &quot;87e5eaf4707261dfcb37d7daadef018266c83d5a&quot;

SRC_URI = &quot;git://github.com/thp/pyotherside.git;branch=master;protocol=git \
          &quot;

PACKAGES += &quot;${PN}-tests&quot;

S = &quot;${WORKDIR}/git&quot;

DEPENDS = &quot;qtdeclarative python3 &quot;
RDEPENDS_${PN} = &quot;qtdeclarative-qmlplugins&quot;

inherit python3native qmake5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43678</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-05-30 00:22:36 +0000</bug_when>
    <thetext>Is this failure on the pyotherside recipe?  If so we need to get this narrowed down to what&apos;s going wrong in oe-core.  I tried to do a build and got a qt5/qtbase failure.  If you can do some additional, we need to understand where LONG_BIT is getting set prior to the pyport.h, possible miss-configuration or host contamination.

This is native and should remain same bit size unless you are changing SDK_MACHINE.  32bit would be for the target.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43806</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Sueiro">diego.sueiro</who>
    <bug_when>2014-06-06 12:03:16 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Is this failure on the pyotherside recipe?  If so we need to get this
&gt; narrowed down to what&apos;s going wrong in oe-core.  I tried to do a build and
&gt; got a qt5/qtbase failure.  If you can do some additional, we need to
&gt; understand where LONG_BIT is getting set prior to the pyport.h, possible
&gt; miss-configuration or host contamination.

Yes, this failure comes from pyotherside recipe.

What failure did you get on qt5/qtbase. If it helps here is my qtbase.bbappend:
PACKAGECONFIG_X11 =&quot;&quot;
PACKAGECONFIG_append = &quot; linuxfb  examples libs tslib evdev widgets tests tools accessibility&quot;

I tried to build it from a new build environment and now I&apos;m getting the following error:
builder@builder-note:~/yocto/build-daisy$ bitbake pyotherside
Loading cache: 100% |############################################################################################################| ETA:  00:00:00
Loaded 1281 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.22.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;qemuarm&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.6&quot;
TUNE_FEATURES     = &quot;armv5 thumb dsp&quot;
TARGET_FPU        = &quot;soft&quot;
meta              
meta-yocto        
meta-yocto-bsp    
meta-foodservice  = &quot;daisy:b8f6c7c794438fcfacef4fed8a9285f5dd2cb663&quot;
meta-qt5          = &quot;master:05ed65d22578296d5ef145ec20e6e7bb7b434c9b&quot;

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: QA Issue: qtbase-examples-dev: found library in wrong location: /usr/share/qt5/examples/widgets/tools/styleplugin/styles/libsimplestyleplugin.so
qtbase-examples-dev: found library in wrong location: /usr/share/qt5/examples/widgets/tools/echoplugin/plugin/libechoplugin.so
qtbase-examples-dev: found library in wrong location: /usr/share/qt5/examples/widgets/tools/plugandpaint/plugins/libpnp_extrafilters.so
qtbase-examples-dbg: found library in wrong location: /usr/share/qt5/examples/widgets/tools/styleplugin/styles/.debug/libsimplestyleplugin.so
qtbase-examples-dbg: found library in wrong location: /usr/share/qt5/examples/widgets/tools/echoplugin/plugin/.debug/libechoplugin.so
qtbase-examples-dbg: found library in wrong location: /usr/share/qt5/examples/widgets/tools/plugandpaint/plugins/.debug/libpnp_extrafilters.so
ERROR: Function failed: do_compile (log file is located at /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/temp/log.do_compile.24457)
ERROR: Logfile of failure stored in: /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/temp/log.do_compile.24457
Log data follows:
| DEBUG: Executing shell function do_compile
| /home/builder/yocto/build-daisy
| /home/builder/yocto/build-daisy
| /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/build
| NOTE: make -j 2 MAKEFLAGS=-j 2 OE_QMAKE_COMPILER=arm-poky-linux-gnueabi-gcc  -march=armv5te -marm -mthumb-interwork --sysroot=/home/builder/yocto/build-daisy/tmp/sysroots/qemuarm OE_QMAKE_CC=arm-poky-linux-gnueabi-gcc  -march=armv5te -marm -mthumb-interwork --sysroot=/home/builder/yocto/build-daisy/tmp/sysroots/qemuarm OE_QMAKE_CXX=arm-poky-linux-gnueabi-g++  -march=armv5te -marm -mthumb-interwork --sysroot=/home/builder/yocto/build-daisy/tmp/sysroots/qemuarm OE_QMAKE_CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types OE_QMAKE_CXXFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden OE_QMAKE_LINK=arm-poky-linux-gnueabi-g++  -march=armv5te -marm -mthumb-interwork --sysroot=/home/builder/yocto/build-daisy/tmp/sysroots/qemuarm OE_QMAKE_LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed OE_QMAKE_AR=arm-poky-linux-gnueabi-ar OE_QMAKE_STRIP=echo OE_QMAKE_WAYLAND_SCANNER=/home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/bin/wayland-scanner
| cd src/ &amp;&amp; ( test -e Makefile || /home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/bin/qt5/qmake /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/git/src/src.pro -o Makefile ) &amp;&amp; make -f Makefile
| make[1]: Entering directory `/home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/build/src&apos;
| arm-poky-linux-gnueabi-g++  -march=armv5te -marm -mthumb-interwork --sysroot=/home/builder/yocto/build-daisy/tmp/sysroots/qemuarm -c -pipe -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden -O2 -D_REENTRANT -Wall -W -fPIC -DPYOTHERSIDE_VERSION=\&quot;1.2.0\&quot; -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../../../sysroots/qemuarm/usr/lib/qt5/mkspecs/linux-oe-g++ -I../../git/src -I../../git/src -I../../../../../../sysroots/qemuarm/usr/include/qt5 -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtQuick -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtQml -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtNetwork -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtGui -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtCore -I/home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/build/src -I. -o pyotherside_plugin.o ../../git/src/pyotherside_plugin.cpp
| arm-poky-linux-gnueabi-g++  -march=armv5te -marm -mthumb-interwork --sysroot=/home/builder/yocto/build-daisy/tmp/sysroots/qemuarm -c -pipe -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden -O2 -D_REENTRANT -Wall -W -fPIC -DPYOTHERSIDE_VERSION=\&quot;1.2.0\&quot; -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../../../sysroots/qemuarm/usr/lib/qt5/mkspecs/linux-oe-g++ -I../../git/src -I../../git/src -I../../../../../../sysroots/qemuarm/usr/include/qt5 -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtQuick -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtQml -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtNetwork -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtGui -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtCore -I/home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/build/src -I. -o qpython_imageprovider.o ../../git/src/qpython_imageprovider.cpp
| In file included from ../../git/src/pyotherside_plugin.cpp:19:0:
| ../../git/src/qpython_priv.h:22:20: fatal error: Python.h: No such file or directory
|  #include &quot;Python.h&quot;
|                     ^
| In file included from ../../git/src/qpython_imageprovider.cpp:19:0:
| ../../git/src/qpython_priv.h:22:20: fatal error: Python.h: No such file or directory
|  #include &quot;Python.h&quot;
|                     ^
| compilation terminated.
| compilation terminated.
| make[1]: *** [qpython_imageprovider.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make[1]: *** [pyotherside_plugin.o] Error 1
| make[1]: Leaving directory `/home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/build/src&apos;
| make: *** [sub-src-make_first] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/temp/log.do_compile.24457)
ERROR: Task 7 (/home/builder/yocto/build-daisy/../poky-daisy/meta-foodservice/recipes-qt/qt5/pyotherside_1.2.bb, do_compile) failed with exit code &apos;1&apos;
WARNING: QA Issue: qtdeclarative-examples-dev: found library in wrong location: /usr/share/qt5/examples/quick/imageprovider/ImageProviderCore/libqmlimageproviderplugin.so
qtdeclarative-examples-dev: found library in wrong location: /usr/share/qt5/examples/quick/customitems/painteditem/TextBalloonPlugin/libqmltextballoonplugin.so
qtdeclarative-examples-dev: found library in wrong location: /usr/share/qt5/examples/qml/qmlextensionplugins/imports/TimeExample/libqmlqtimeexampleplugin.so
qtdeclarative-examples-dbg: found library in wrong location: /usr/share/qt5/examples/quick/imageprovider/ImageProviderCore/.debug/libqmlimageproviderplugin.so
qtdeclarative-examples-dbg: found library in wrong location: /usr/share/qt5/examples/quick/customitems/painteditem/TextBalloonPlugin/.debug/libqmltextballoonplugin.so
qtdeclarative-examples-dbg: found library in wrong location: /usr/share/qt5/examples/qml/qmlextensionplugins/imports/TimeExample/.debug/libqmlqtimeexampleplugin.so
NOTE: Tasks Summary: Attempted 1680 tasks of which 1655 didn&apos;t need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /home/builder/yocto/build-daisy/../poky-daisy/meta-foodservice/recipes-qt/qt5/pyotherside_1.2.bb, do_compile
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Reverting commit 361ddb10de (&quot;python3: Revert python-config to distutils.sysconfig&quot;) I&apos;m getting this error for pyotherside:
Build Configuration:
BB_VERSION        = &quot;1.22.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;qemuarm&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.6&quot;
TUNE_FEATURES     = &quot;armv5 thumb dsp&quot;
TARGET_FPU        = &quot;soft&quot;
meta              
meta-yocto        
meta-yocto-bsp    
meta-foodservice  = &quot;daisy:fbcf3ee8af1d25d0eac5f38e3c93352263adda65&quot;
meta-qt5          = &quot;master:05ed65d22578296d5ef145ec20e6e7bb7b434c9b&quot;

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_compile (log file is located at /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/temp/log.do_compile.26194)
ERROR: Logfile of failure stored in: /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/temp/log.do_compile.26194
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 2 MAKEFLAGS=-j 2 OE_QMAKE_COMPILER=arm-poky-linux-gnueabi-gcc  -march=armv5te -marm -mthumb-interwork --sysroot=/home/builder/yocto/build-daisy/tmp/sysroots/qemuarm OE_QMAKE_CC=arm-poky-linux-gnueabi-gcc  -march=armv5te -marm -mthumb-interwork --sysroot=/home/builder/yocto/build-daisy/tmp/sysroots/qemuarm OE_QMAKE_CXX=arm-poky-linux-gnueabi-g++  -march=armv5te -marm -mthumb-interwork --sysroot=/home/builder/yocto/build-daisy/tmp/sysroots/qemuarm OE_QMAKE_CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types OE_QMAKE_CXXFLAGS= -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden OE_QMAKE_LINK=arm-poky-linux-gnueabi-g++  -march=armv5te -marm -mthumb-interwork --sysroot=/home/builder/yocto/build-daisy/tmp/sysroots/qemuarm OE_QMAKE_LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed OE_QMAKE_AR=arm-poky-linux-gnueabi-ar OE_QMAKE_STRIP=echo OE_QMAKE_WAYLAND_SCANNER=/home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/bin/wayland-scanner
| cd src/ &amp;&amp; ( test -e Makefile || /home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/bin/qt5/qmake /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/git/src/src.pro -o Makefile ) &amp;&amp; make -f Makefile
| make[1]: Entering directory `/home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/build/src&apos;
| arm-poky-linux-gnueabi-g++  -march=armv5te -marm -mthumb-interwork --sysroot=/home/builder/yocto/build-daisy/tmp/sysroots/qemuarm -c -pipe -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden -I/home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/include/python3.3m -I/home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/include/python3.3m -O2 -D_REENTRANT -Wall -W -fPIC -DPYOTHERSIDE_VERSION=\&quot;1.2.0\&quot; -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../../../sysroots/qemuarm/usr/lib/qt5/mkspecs/linux-oe-g++ -I../../git/src -I../../git/src -I../../../../../../sysroots/qemuarm/usr/include/qt5 -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtQuick -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtQml -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtNetwork -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtGui -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtCore -I/home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/build/src -I. -o pyotherside_plugin.o ../../git/src/pyotherside_plugin.cpp
| arm-poky-linux-gnueabi-g++  -march=armv5te -marm -mthumb-interwork --sysroot=/home/builder/yocto/build-daisy/tmp/sysroots/qemuarm -c -pipe -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden -I/home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/include/python3.3m -I/home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/include/python3.3m -O2 -D_REENTRANT -Wall -W -fPIC -DPYOTHERSIDE_VERSION=\&quot;1.2.0\&quot; -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../../../sysroots/qemuarm/usr/lib/qt5/mkspecs/linux-oe-g++ -I../../git/src -I../../git/src -I../../../../../../sysroots/qemuarm/usr/include/qt5 -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtQuick -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtQml -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtNetwork -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtGui -I../../../../../../sysroots/qemuarm/usr/include/qt5/QtCore -I/home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/build/src -I. -o qpython_imageprovider.o ../../git/src/qpython_imageprovider.cpp
| In file included from /home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/include/python3.3m/Python.h:50:0,
|                  from ../../git/src/qpython_priv.h:22,
|                  from ../../git/src/pyotherside_plugin.cpp:19:
| /home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/include/python3.3m/pyport.h:820:2: error: #error &quot;LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).&quot;
|  #error &quot;LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).&quot;
|   ^
| In file included from /home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/include/python3.3m/Python.h:50:0,
|                  from ../../git/src/qpython_priv.h:22,
|                  from ../../git/src/qpython_imageprovider.cpp:19:
| /home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/include/python3.3m/pyport.h:820:2: error: #error &quot;LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).&quot;
|  #error &quot;LONG_BIT definition appears wrong for platform (bad gcc/glibc config?).&quot;
|   ^
| make[1]: *** [qpython_imageprovider.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| ../../git/src/pyotherside_plugin.cpp:43:1: warning: unused parameter &apos;uri&apos; [-Wunused-parameter]
|  PyOtherSideExtensionPlugin::initializeEngine(QQmlEngine *engine, const char *uri)
|  ^
| make[1]: *** [pyotherside_plugin.o] Error 1
| make[1]: Leaving directory `/home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/build/src&apos;
| make: *** [sub-src-make_first] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/pyotherside/1.2+gitAUTOINC+87e5eaf470-r0/temp/log.do_compile.26194)
ERROR: Task 7 (/home/builder/yocto/build-daisy/../poky-daisy/meta-foodservice/recipes-qt/qt5/pyotherside_1.2.bb, do_compile) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 1682 tasks of which 1675 didn&apos;t need to be rerun and 1 failed.
No currently running tasks (1682 of 1688)

Summary: 1 task failed:
  /home/builder/yocto/build-daisy/../poky-daisy/meta-foodservice/recipes-qt/qt5/pyotherside_1.2.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.




&gt; 
&gt; This is native and should remain same bit size unless you are changing
&gt; SDK_MACHINE.  32bit would be for the target.

I did not changed SDK_MACHINE config.


Please, let me know what can I do to help to debug this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43817</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-06-06 19:33:12 +0000</bug_when>
    <thetext>I understand you are having troubles with building pyotherside which requires 
qt5, I am currently failing to build qtbase_5.2.1, which is blocking me,

My errors are:

| 
/srv/hdd/builds/world/tmp/work/ppc7400-poky-linux/qtbase/5.2.1-r0/qtbase-opensource-src-5.2.1/src/corelib/tools/qregularexpression.cpp: 
In member function &apos;QRegularExpressionMatchPrivate* 
QRegularExpressionPrivate::doMatch(const QString&amp;, int, 
QRegularExpression::MatchType, QRegularExpression::MatchOptions, bool, const 
QRegularExpressionMatchPrivate*) const&apos;:
| 
/srv/hdd/builds/world/tmp/work/ppc7400-poky-linux/qtbase/5.2.1-r0/qtbase-opensource-src-5.2.1/src/corelib/tools/qregularexpression.cpp:1242:73: 
error: passing &apos;const QAtomicPointer&lt;pcre16_extra&gt;&apos; as &apos;this&apos; argument of &apos;T* 
QBasicAtomicPointer&lt;T&gt;::loadAcquire() [with T = pcre16_extra]&apos; discards 
qualifiers [-fpermissive]
|      const pcre16_extra * const currentStudyData = studyData.loadAcquire();
|                                                                          ^

Regarding the first issue in comment #5, it seems that might be an issue with 
your pyotherside recipe configuration. The reverting of a patch causing a 
failure  does not make sense, the patch was reverted for a reason</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43818</commentid>
    <comment_count>6</comment_count>
    <who name="Diego Sueiro">diego.sueiro</who>
    <bug_when>2014-06-06 19:46:52 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; I understand you are having troubles with building pyotherside which
&gt; requires 
&gt; qt5, I am currently failing to build qtbase_5.2.1, which is blocking me,
&gt; 
&gt; My errors are:
&gt; 
&gt; | 
&gt; /srv/hdd/builds/world/tmp/work/ppc7400-poky-linux/qtbase/5.2.1-r0/qtbase-
&gt; opensource-src-5.2.1/src/corelib/tools/qregularexpression.cpp: 
&gt; In member function &apos;QRegularExpressionMatchPrivate* 
&gt; QRegularExpressionPrivate::doMatch(const QString&amp;, int, 
&gt; QRegularExpression::MatchType, QRegularExpression::MatchOptions, bool, const 
&gt; QRegularExpressionMatchPrivate*) const&apos;:
&gt; | 
&gt; /srv/hdd/builds/world/tmp/work/ppc7400-poky-linux/qtbase/5.2.1-r0/qtbase-
&gt; opensource-src-5.2.1/src/corelib/tools/qregularexpression.cpp:1242:73: 
&gt; error: passing &apos;const QAtomicPointer&lt;pcre16_extra&gt;&apos; as &apos;this&apos; argument of
&gt; &apos;T* 
&gt; QBasicAtomicPointer&lt;T&gt;::loadAcquire() [with T = pcre16_extra]&apos; discards 
&gt; qualifiers [-fpermissive]
&gt; |      const pcre16_extra * const currentStudyData = studyData.loadAcquire();
&gt; |                                                                          ^
&gt; 
Which machine are u using? I&apos;m using qemuarm now.

&gt; Regarding the first issue in comment #5, it seems that might be an issue
&gt; with 
&gt; your pyotherside recipe configuration. The reverting of a patch causing a 
&gt; failure  does not make sense, the patch was reverted for a reason
I&apos;m going to take a look at pyotherside recipe and see if I need to add extra arguments do get Python.h found.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43819</commentid>
    <comment_count>7</comment_count>
    <who name="Diego Sueiro">diego.sueiro</who>
    <bug_when>2014-06-06 20:12:19 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; I understand you are having troubles with building pyotherside which
&gt; &gt; requires 
&gt; &gt; qt5, I am currently failing to build qtbase_5.2.1, which is blocking me,
&gt; &gt; 
&gt; &gt; My errors are:
&gt; &gt; 
&gt; &gt; | 
&gt; &gt; /srv/hdd/builds/world/tmp/work/ppc7400-poky-linux/qtbase/5.2.1-r0/qtbase-
&gt; &gt; opensource-src-5.2.1/src/corelib/tools/qregularexpression.cpp: 
&gt; &gt; In member function &apos;QRegularExpressionMatchPrivate* 
&gt; &gt; QRegularExpressionPrivate::doMatch(const QString&amp;, int, 
&gt; &gt; QRegularExpression::MatchType, QRegularExpression::MatchOptions, bool, const 
&gt; &gt; QRegularExpressionMatchPrivate*) const&apos;:
&gt; &gt; | 
&gt; &gt; /srv/hdd/builds/world/tmp/work/ppc7400-poky-linux/qtbase/5.2.1-r0/qtbase-
&gt; &gt; opensource-src-5.2.1/src/corelib/tools/qregularexpression.cpp:1242:73: 
&gt; &gt; error: passing &apos;const QAtomicPointer&lt;pcre16_extra&gt;&apos; as &apos;this&apos; argument of
&gt; &gt; &apos;T* 
&gt; &gt; QBasicAtomicPointer&lt;T&gt;::loadAcquire() [with T = pcre16_extra]&apos; discards 
&gt; &gt; qualifiers [-fpermissive]
&gt; &gt; |      const pcre16_extra * const currentStudyData = studyData.loadAcquire();
&gt; &gt; |                                                                          ^
&gt; &gt; 
&gt; Which machine are u using? I&apos;m using qemuarm now.
&gt; 
&gt; &gt; Regarding the first issue in comment #5, it seems that might be an issue
&gt; &gt; with 
&gt; &gt; your pyotherside recipe configuration. The reverting of a patch causing a 
&gt; &gt; failure  does not make sense, the patch was reverted for a reason
&gt; I&apos;m going to take a look at pyotherside recipe and see if I need to add
&gt; extra arguments do get Python.h found.

Ok. I&apos;ve put commit 361ddb10de (&quot;python3: Revert python-config to distutils.sysconfig&quot;) back and added the following on pyotherside recipe:
export BUILD_SYS
export HOST_SYS

export STAGING_LIBDIR
export STAGING_INCDIR


Now, pyotherside is building without any errors.

Could you please explain me why these exports are needed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43826</commentid>
    <comment_count>8</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-06-09 16:39:21 +0000</bug_when>
    <thetext>They are needed for cross compiling the python libraries correctly, some 
recipes need them and others do not.

Since you have it working now, I am going to close this as not a bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>