Bug 1768 - qt-mobility-x11-1.2.0-r0: task do_compile: Failed
Summary: qt-mobility-x11-1.2.0-r0: task do_compile: Failed
Status: RESOLVED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low normal
Target Milestone: 1.3
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-11-16 11:44 UTC by Joshua Lock - Disabled
Modified: 2012-07-30 13:59 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Lock - Disabled 2011-11-16 11:44:54 UTC
Running a world build for qemux86 compiling an example fails.

| cd videographicsitem/ && make -f Makefile
| make[2]: Entering directory `/srv/yocto/openembedded-core/clutter/tmp-eglibc/work/i586-oe-linux/qt-mobility-x11-1.2.0-r0/qt-mobility-opensource-src-1.2.0/examples/videographicsitem'
| i586-oe-linux-g++  -m32   -march=i586 --sysroot=/srv/yocto/openembedded-core/clutter/tmp-eglibc/sysroots/qemux86 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-rpath-link,/srv/yocto/openembedded-core/clutter/tmp-eglibc/work/i586-oe-linux/qt-mobility-x11-1.2.0-r0/qt-mobility-opensource-src-1.2.0/lib -Wl,-rpath-link,/srv/yocto/openembedded-core/clutter/tmp-eglibc/sysroots/qemux86/usr/lib -Wl,-rpath-link,/usr/lib -Wl,-rpath-link,/usr/lib -o videographicsitem ../../build/Debug/videographicsitem/main.o ../../build/Debug/videographicsitem/videoplayer.o ../../build/Debug/videographicsitem/videoitem.o ../../build/Debug/videographicsitem/moc_videoplayer.o ../../build/Debug/videographicsitem/moc_videoitem.o    -L/srv/yocto/openembedded-core/clutter/tmp-eglibc/work/i586-oe-linux/qt-mobility-x11-1.2.0-r0/qt-mobility-opensource-src-1.2.0/lib -L/srv/yocto/openembedded-core/clutter/tmp-eglibc/sysroots/qemux86/usr/lib -lQtMultimediaKit -lQtGui -L/srv/yocto/openembedded-core/clutter/tmp-eglibc/sysroots/qemux86/usr/lib -L/usr/lib -lQtNetwork -lQtCore -lpthread
| /srv/yocto/openembedded-core/clutter/tmp-eglibc/sysroots/x86_64-linux/usr/libexec/i586-oe-linux/gcc/i586-oe-linux/4.6.2/ld: warning: library search path "/usr/lib" is unsafe for cross-compilation
| ../../build/Debug/videographicsitem/videoplayer.o: In function `VideoPlayer':
| /srv/yocto/openembedded-core/clutter/tmp-eglibc/work/i586-oe-linux/qt-mobility-x11-1.2.0-r0/qt-mobility-opensource-src-1.2.0/examples/videographicsitem/videoplayer.cpp:64: undefined reference to `QGLWidget::QGLWidget(QWidget*, QGLWidget const*, QFlags<Qt::WindowType>)'
| collect2: ld returned 1 exit status
| make[2]: *** [videographicsitem] Error 1
| make[2]: Leaving directory `/srv/yocto/openembedded-core/clutter/tmp-eglibc/work/i586-oe-linux/qt-mobility-x11-1.2.0-r0/qt-mobility-opensource-src-1.2.0/examples/videographicsitem'
| make[1]: *** [sub-videographicsitem-make_default] Error 2
| make[1]: Leaving directory `/srv/yocto/openembedded-core/clutter/tmp-eglibc/work/i586-oe-linux/qt-mobility-x11-1.2.0-r0/qt-mobility-opensource-src-1.2.0/examples'
| make: *** [sub-examples-make_default-ordered] Error 2
Comment 1 Paul Eggleton 2012-02-21 09:08:50 UTC
I can't make this happen in a normal (non-world) build; I can only assume that somehow Qt got built with GL disabled. There is an explicit QT_GLFLAGS_qemux86 = "-opengl" which should enable it for any qemux86 build so I'm not sure how this could have occurred.
Comment 2 Paul Eggleton 2012-07-30 13:59:29 UTC
We have been building "world" regularly for qemux86 on the autobuilders for some time now and have not seen this, so I'm going to assume it is no longer an issue. If it does occur again we can reopen the bug and investigate.