Bug 2355

Summary: [multilib] lib64 core-sato-sdk build against qemux86 fails at qt4-x11-free
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Jiajun Xu <jiajun.xu>
Component: meta-yoctoAssignee: Dongxiao Xu <dongxiao.xu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: hongnax.xu, lianhao.lu, poky.bs.watcher, poky.watcher, scott.a.garman, sgw
Version: unspecified   
Target Milestone: 1.2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
error log when qt failed none

Description Jiajun Xu 2012-04-20 05:25:35 UTC
Created attachment 493 [details]
error log when qt failed

tree/branch: poky/denzil
commit: 2c3d4f5beee8f57a74244495511b9294df1085ea

With denzil branch, I find that a lib64 core-image-sato-sdk build against qemux86 fails to build with error during do_compile for qt4-x11-free. Meanwhile, lib64 core-image-sato build could pass.
Error log as below:

#######
/src -I../3rdparty/md5 -I../3rdparty/md4 -I.moc/release-shared -o .obj/release-shared/qthreadstorage.o thread/qthreadstorage.cpp
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: Assembler messages:
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:177: Error: incorrect register `%rbx' used with `l' suffix
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: Assembler messages:
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:177: Error: incorrect register `%rbx' used with `l' suffix
| make[1]: *** [.obj/release-shaERROR: Function failed: do_compile (see /home/jxu49/osel/poky/lib64-sato-qemux86/tmp/work/x86_64-pokymllib64-linux/lib64-qt4-x11-free-4.7.4-r41.8/temp/log.do_compile.5577 for further information)
| red/qglobal.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: Assembler messages:
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:177: Error: incorrect register `%rbx' used with `l' suffix
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:177: Error: incorrect register `%r12' used with `l' suffix
| make[1]: *** [.obj/release-shared/qmutexpool.o] Error 1
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: Assembler messages:
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:177: Error: incorrect register `%rbp' used with `l' suffix
| make[1]: *** [.obj/release-shared/qthreadpool.o] Error 1
| make[1]: *** [.obj/release-shared/qabstractanimation.o] Error 1
| make[1]: *** [.obj/release-shared/qvariantanimation.o] Error 1
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: Assembler messages:
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:177: Error: incorrect register `%rbx' used with `l' suffix
| make[1]: *** [.obj/release-shared/qlibraryinfo.o] Error 1
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h: Assembler messages:
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:177: Error: incorrect register `%rbx' used with `l' suffix
| ../../include/QtCore/../../src/corelib/arch/qatomic_i386.h:177: Error: incorrect register `%rbp' used with `l' suffix
| make[1]: *** [.obj/release-shared/qthreadstorage.o] Error 1
| make[1]: Leaving directory `/home/jxu49/osel/poky/lib64-sato-qemux86/tmp/work/x86_64-pokymllib64-linux/lib64-qt4-x11-free-4.7.4-r41.8/qt-everywhere-opensource-src-4.7.4/src/corelib'
| make: *** [sub-corelib-make_default-ordered] Error 2
| ERROR: oe_runmake failed
NOTE: package lib64-qt4-x11-free-4.7.4-r41.8: task do_compile: Failed
NOTE: package lib64-binutils-2.22-r6: task do_populate_sysroot: Started
ERROR: Task 2855 (virtual:multilib:lib64:/home/jxu49/osel/poky/meta/recipes-qt/qt4/qt4-x11-free_4.7.4.bb, do_compile) failed with exit code '1'
#######

The configure I use is as below:
#######
MACHINE = "qemux86"
require conf/multilib.conf
MULTILIBS = "multilib:lib64"
DEFAULTTUNE_virtclass-multilib-lib64 = "x86-64"
#######
Comment 1 Jiajun Xu 2012-04-20 16:17:17 UTC
The same issue also makes the lib64 core-image-lsb-sdk multilib build failed against qemux86.
Comment 2 Edwin Zhai 2012-04-25 02:45:54 UTC
Dongxiao already have a fix.
Comment 4 Hongna Xu 2012-07-11 06:15:16 UTC
verify it as fixed on Tree/Branch: poky/denzil with commit id: 73cdebf60df225ee10f2eb215935be3b61e1b831