Bug 3457

Summary: qt4-x11 build failure
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jessica <jessica.zhang>
Component: graphicsAssignee: Ross Burton <ross.burton>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: liang.li2, meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: 1.4 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jessica 2012-11-16 18:29:44 UTC
The nightly build failed with the following errors.  Seems is caused by glib upgrade.
========================================================= 
Build Reason: Triggerable(nightly-x86) 
Build Source Stamp: [branch master] 9e0d3c0faa9cc80ce8f2ce0eb31dcd20ef875955 
 
| i586-poky-linux-g++ -m32 -march=i586 --sysroot=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86 -c -O2 -pipe -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/freetype2 -Wall -Wextra -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -Werror -Wno-c++0x-compat -fno-stack-protector -Wno-c++0x-compat -O3 -pthread -fPIC -fPIC -fPIC -D_REENTRANT -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -DBUILDING_JavaScriptCore -DBUILDING_WTF -DENABLE_GLIB_SUPPORT=1 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -DQT_SHARED -I../../../../../mkspecs/linux-g++ -I. -I../../../../../include/QtCore -I../../../../../include -I. -I../../Source -I../ThirdParty -Iassembler -Ibytecode -Ibytecompiler -Iheap -Idfg -Idebugger -Iinterpreter -Ijit -Iparser -Iprofiler -Iruntime -Iwtf -Iwtf/gobject -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/qt4-x11-free-4.8.1-r48.1/qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/Source/JavaScriptCore/wtf/symbian -Iwtf/unicode -Iyarr -IAPI -IForwardingHeaders -Igenerated -I../../Source -I../../include -I/include/QtWebKit -I/include -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/freetype2 -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/freetype2 -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/glib-2.0 -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/lib/glib-2.0/include -I.moc/release-static -o .obj/release-static/PageAllocationAligned.o wtf/PageAllocationAligned.cpp
| i586-poky-linux-g++ -m32 -march=i586 --sysroot=/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86 -c -O2 -pipe -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/freetype2 -Wall -Wextra -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -Werror -Wno-c++0x-compat -fno-stack-protector -Wno-c++0x-compat -O3 -pthread -fPIC -fPIC -fPIC -D_REENTRANT -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -DBUILDING_JavaScriptCore -DBUILDING_WTF -DENABLE_GLIB_SUPPORT=1 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -DQT_SHARED -I../../../../../mkspecs/linux-g++ -I. -I../../../../../include/QtCore -I../../../../../include -I. -I../../Source -I../ThirdParty -Iassembler -Ibytecode -Ibytecompiler -Iheap -Idfg -Idebugger -Iinterpreter -Ijit -Iparser -Iprofiler -Iruntime -Iwtf -Iwtf/gobject -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/qt4-x11-free-4.8.1-r48.1/qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/Source/JavaScriptCore/wtf/symbian -Iwtf/unicode -Iyarr -IAPI -IForwardingHeaders -Igenerated -I../../Source -I../../include -I/include/QtWebKit -I/include -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/freetype2 -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/freetype2 -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/glib-2.0 -I/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/lib/glib-2.0/include -I.moc/release-static -o .obj/release-static/PageBlock.o wtf/PageBlock.cpp
| wtf/gobject/GOwnPtr.cpp: In function 'void WTF::freeOwnedGPtr(T*) [with T = _GCond]':
| wtf/gobject/GOwnPtr.cpp:43:9: error: 'void g_cond_free(GCond*)' is deprecated (declared at /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/glib-2.0/glib/deprecated/gthread.h:277) [-Werror=deprecated-declarations]
| wtf/gobject/GOwnPtr.cpp:43:24: error: 'void g_cond_free(GCond*)' is deprecated (declared at /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/glib-2.0/glib/deprecated/gthread.h:277) [-Werror=deprecated-declarations]
| wtf/gobject/GOwnPtr.cpp: In function 'void WTF::freeOwnedGPtr(T*) [with T = _GMutex]':
| wtf/gobject/GOwnPtr.cpp:49:9: error: 'void g_mutex_free(GMutex*)' is deprecated (declared at /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/glib-2.0/glib/deprecated/gthread.h:273) [-Werror=deprecated-declarations]
| wtf/gobject/GOwnPtr.cpp:49:25: error: 'void g_mutex_free(GMutex*)' is deprecated (declared at /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86/usr/include/glib-2.0/glib/deprecated/gthread.h:273) [-Werror=deprecated-declarations]
| cc1plus: all warnings being treated as errors
| make[2]: *** [.obj/release-static/GOwnPtr.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: Leaving directory `/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/qt4-x11-free-4.8.1-r48.1/qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/Source/JavaScriptCore'
| make[1]: *** [sub-JavaScriptCore-JavaScriptCore-pro-make_default-ordered] Error 2
| make[1]: *** Waiting for unfinished jobs....
| make[1]: Leaving directory `/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/qt4-x11-free-4.8.1-r48.1/qt-everywhere-opensource-src-4.8.1/src/3rdparty/webkit/Source'
| make: *** [sub-webkit-make_default-ordered] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/qt4-x11-free-4.8.1-r48.1/temp/log.do_compile.17837 for further information)
ERROR: Task 4111 (/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-x86/build/meta/recipes-qt/qt4/qt4-x11-free_4.8.1.bb, do_compile) failed with exit code '1'
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Comment 1 Ross Burton 2012-11-19 14:24:38 UTC
I've got a patch for 4.8.1, but it turns out 4.8.3 doesn't have the problem.

I've just sent a patch series to drop 4.8.1 and make 4.8.3 the default.
Comment 2 Ross Burton 2012-11-20 15:42:28 UTC
Merged to master, poky 1f71583dacaf2abde4930815b3415c3af104f514.
Comment 3 liang li 2012-11-27 03:11:14 UTC
build a qemux86 sato-sdk image, there is no such error when build.then check log from dir "tmp/log/cooker/qemux86",logs below:
...
NOTE: Running task 6122 of 6149 (ID: 3405, /buildarea/poky.ubuntu.new/meta/recipes-qt/qt4/qt4-x11-free_4.8.3.bb, do_compile)
NOTE: recipe qt4-x11-free-4.8.3-r48.0: task do_compile: Succeeded
NOTE: Running task 6123 of 6149 (ID: 3400, /buildarea/poky.ubuntu.new/meta/recipes-qt/qt4/qt4-x11-free_4.8.3.bb, do_install)
NOTE: recipe qt4-x11-free-4.8.3-r48.0: task do_install: Succeeded
...

git commit: 9be83df144a1675c8e7c9f0962e7e9e61ff767fd
git branch: poky/master
test env: 
hosts: ubuntu 12.04 x86_64