Bug 6371

Summary: Cross-compile with python native on 64bits host machine
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Diego Sueiro <diego.sueiro>
Component: devtools / tool chainAssignee: Saul Wold <sgw>
Status: RESOLVED NOTABUG QA Contact:
Severity: critical    
Priority: Medium CC: Martin.Jansa, meta.mr.watcher, meta.watcher, raj.khem, sgw
Version: 1.6   
Target Milestone: 1.6.1   
Hardware: All   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Diego Sueiro 2014-05-23 12:49:57 UTC
When inherit python3native/pythonnative and cross compile for 32bits from 64bits host this compile error is raised:


| In file included from /<snip>/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:
| /<snip>/sysroots/x86_64-linux/usr/include/python3.3m/pyport.h:820:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
|  #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
|   ^
Comment 1 Saul Wold 2014-05-29 14:42:19 UTC
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.
Comment 2 Diego Sueiro 2014-05-29 15:12:08 UTC
(In reply to comment #1)
> 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.

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


Recipe:

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

PV = "1.2+git${SRCPV}"

SRCREV = "87e5eaf4707261dfcb37d7daadef018266c83d5a"

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

PACKAGES += "${PN}-tests"

S = "${WORKDIR}/git"

DEPENDS = "qtdeclarative python3 "
RDEPENDS_${PN} = "qtdeclarative-qmlplugins"

inherit python3native qmake5
Comment 3 Saul Wold 2014-05-30 00:22:36 UTC
Is this failure on the pyotherside recipe?  If so we need to get this narrowed down to what'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.
Comment 4 Diego Sueiro 2014-06-06 12:03:16 UTC
(In reply to comment #3)
> Is this failure on the pyotherside recipe?  If so we need to get this
> narrowed down to what'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.

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 =""
PACKAGECONFIG_append = " linuxfb  examples libs tslib evdev widgets tests tools accessibility"

I tried to build it from a new build environment and now I'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        = "1.22.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "qemuarm"
DISTRO            = "poky"
DISTRO_VERSION    = "1.6"
TUNE_FEATURES     = "armv5 thumb dsp"
TARGET_FPU        = "soft"
meta              
meta-yocto        
meta-yocto-bsp    
meta-foodservice  = "daisy:b8f6c7c794438fcfacef4fed8a9285f5dd2cb663"
meta-qt5          = "master:05ed65d22578296d5ef145ec20e6e7bb7b434c9b"

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/ && ( 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 ) && 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'
| 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=\"1.2.0\" -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=\"1.2.0\" -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 "Python.h"
|                     ^
| 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 "Python.h"
|                     ^
| 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'
| 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 '1'
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'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 ("python3: Revert python-config to distutils.sysconfig") I'm getting this error for pyotherside:
Build Configuration:
BB_VERSION        = "1.22.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "qemuarm"
DISTRO            = "poky"
DISTRO_VERSION    = "1.6"
TUNE_FEATURES     = "armv5 thumb dsp"
TARGET_FPU        = "soft"
meta              
meta-yocto        
meta-yocto-bsp    
meta-foodservice  = "daisy:fbcf3ee8af1d25d0eac5f38e3c93352263adda65"
meta-qt5          = "master:05ed65d22578296d5ef145ec20e6e7bb7b434c9b"

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/ && ( 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 ) && 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'
| 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=\"1.2.0\" -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=\"1.2.0\" -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 "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
|  #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
|   ^
| 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 "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
|  #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
|   ^
| make[1]: *** [qpython_imageprovider.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| ../../git/src/pyotherside_plugin.cpp:43:1: warning: unused parameter 'uri' [-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'
| 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 '1'
NOTE: Tasks Summary: Attempted 1682 tasks of which 1675 didn'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.




> 
> This is native and should remain same bit size unless you are changing
> 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.
Comment 5 Saul Wold 2014-06-06 19:33:12 UTC
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 'QRegularExpressionMatchPrivate* 
QRegularExpressionPrivate::doMatch(const QString&, int, 
QRegularExpression::MatchType, QRegularExpression::MatchOptions, bool, const 
QRegularExpressionMatchPrivate*) const':
| 
/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 'const QAtomicPointer<pcre16_extra>' as 'this' argument of 'T* 
QBasicAtomicPointer<T>::loadAcquire() [with T = pcre16_extra]' 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
Comment 6 Diego Sueiro 2014-06-06 19:46:52 UTC
(In reply to comment #5)
> 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 'QRegularExpressionMatchPrivate* 
> QRegularExpressionPrivate::doMatch(const QString&, int, 
> QRegularExpression::MatchType, QRegularExpression::MatchOptions, bool, const 
> QRegularExpressionMatchPrivate*) const':
> | 
> /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 'const QAtomicPointer<pcre16_extra>' as 'this' argument of
> 'T* 
> QBasicAtomicPointer<T>::loadAcquire() [with T = pcre16_extra]' discards 
> qualifiers [-fpermissive]
> |      const pcre16_extra * const currentStudyData = studyData.loadAcquire();
> |                                                                          ^
> 
Which machine are u using? I'm using qemuarm now.

> 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
I'm going to take a look at pyotherside recipe and see if I need to add extra arguments do get Python.h found.
Comment 7 Diego Sueiro 2014-06-06 20:12:19 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > 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 'QRegularExpressionMatchPrivate* 
> > QRegularExpressionPrivate::doMatch(const QString&, int, 
> > QRegularExpression::MatchType, QRegularExpression::MatchOptions, bool, const 
> > QRegularExpressionMatchPrivate*) const':
> > | 
> > /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 'const QAtomicPointer<pcre16_extra>' as 'this' argument of
> > 'T* 
> > QBasicAtomicPointer<T>::loadAcquire() [with T = pcre16_extra]' discards 
> > qualifiers [-fpermissive]
> > |      const pcre16_extra * const currentStudyData = studyData.loadAcquire();
> > |                                                                          ^
> > 
> Which machine are u using? I'm using qemuarm now.
> 
> > 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
> I'm going to take a look at pyotherside recipe and see if I need to add
> extra arguments do get Python.h found.

Ok. I've put commit 361ddb10de ("python3: Revert python-config to distutils.sysconfig") 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?
Comment 8 Saul Wold 2014-06-09 16:39:21 UTC
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.