Bug 1168 - qt4-tools-nativesdk does not build
Summary: qt4-tools-nativesdk does not build
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: Beagleboard arm
: Undecided normal
Target Milestone: ---
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-06-15 10:49 UTC by Paul Eggleton
Modified: 2011-06-24 10:06 UTC (History)
3 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 Paul Eggleton 2011-06-15 10:49:54 UTC
After fixing a do_unpack issue (see first patch in contrib branch qt4-nativesdk-fix1) I have found that qt4-tools-nativesdk fails at compile with the following error:

-------- snip --------
ccache x86_64-pokysdk-linux-g++  --sysroot=/media/large/tmp/sysroots/x86_64-nativesdk-pokysdk-linux -c -isystem/media/large/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/include -O2 -pipe -I/media/large/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/include -I/media/large/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/include/freetype2 -I/media/large/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/include/dbus-1.0 -I/media/large/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/dbus-1.0/include -I/media/large/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/include/c++ -I/media/large/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/include/c++/x86_64-pokysdk-linux -fno-exceptions -I/media/large/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/include/dbus-1.0 -I/media/large/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/1.0+snapshot/sysroots/x86_64-pokysdk-linux/usr/lib/dbus-1.0/include -Wall -W -D_REENTRANT -fPIC -DQT_BUILD_DBUS_LIB -DDBUS_API_SUBJECT_TO_CHANGE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_XML_LIB -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 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtXml -I../../include -I../../include/QtDBus -I.rcc/release-static-emb-auto -I.moc/release-static-emb-auto -o .obj/release-static-emb-auto/qdbusinternalfilters.o qdbusinternalfilters.cpp
qdbusintegrator.cpp: In member function 'void QDBusConnectionPrivate::deliverCall(QObject*, int, const QDBusMessage&, const QList<int>&, int)':
qdbusintegrator.cpp:908:10: warning: variable 'takesMessage' set but not used [-Wunused-but-set-variable]
In file included from ../../include/QtCore/qatomic_generic.h:1:0,
                 from ../../include/QtCore/../../src/corelib/arch/qatomic_arch.h:62,
                 from ../../include/QtCore/qatomic_arch.h:1,
                 from ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:227,
                 from ../../include/QtCore/qbasicatomic.h:1,
                 from ../../include/QtCore/../../src/corelib/thread/qatomic.h:46,
                 from ../../include/QtCore/qatomic.h:1,
                 from ../../include/QtCore/../../src/corelib/tools/qbytearray.h:45,
                 from ../../include/QtCore/qbytearray.h:1,
                 from ../../include/QtCore/../../src/corelib/tools/qstring.h:46,
                 from ../../include/QtCore/qstring.h:1,
                 from ../../include/QtCore/../../src/corelib/kernel/qobject.h:48,
                 from ../../include/QtCore/qobject.h:1,
                 from ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:45,
                 from ../../include/QtCore/qcoreapplication.h:1,
                 from qdbusintegrator.cpp:42:
../../include/QtCore/../../src/corelib/arch/qatomic_generic.h: In member function 'bool QBasicAtomicPointer<T>::testAndSetOrdered(T*, T*) [with T = const QString]':
qdbusintegrator.cpp:74:374:   instantiated from here
../../include/QtCore/../../src/corelib/arch/qatomic_generic.h:197:88: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
../../include/QtCore/../../src/corelib/arch/qatomic_generic.h:108:7: error:   initializing argument 2 of 'bool QBasicAtomicPointer_testAndSetOrdered(void* volatile*, void*, void*)' [-fpermissive]
../../include/QtCore/../../src/corelib/arch/qatomic_generic.h:197:88: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
../../include/QtCore/../../src/corelib/arch/qatomic_generic.h:108:7: error:   initializing argument 3 of 'bool QBasicAtomicPointer_testAndSetOrdered(void* volatile*, void*, void*)' [-fpermissive]
make: *** [.obj/release-static-emb-auto/qdbusintegrator.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: oe_runmake failed
ERROR: Function 'do_compile' failed (see /media/large/tmp/work/x86_64-nativesdk-pokysdk-linux/qt4-tools-nativesdk-4.7.3-r3.0/temp/log.do_compile.9427 for further information)
-------- snip --------


I found the same error message in two separate bug reports:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=623281
http://bugreports.qt.nokia.com/browse/QTBUG-17962

I'm not sure that the first is relevant given that the configure log is reporting:
-------- snip --------
Determining system architecture... (Linux:2.6.35.13-92.fc14.x86_64:x86_64)
    64-bit AMD 80x86 (x86_64)
    'arm' is supported
    'x86_64' is supported
System architecture: 'arm'
Host architecture: 'x86_64'
-------- snip --------

So there is apparently no issue with an unsupported architecture. The second bug report has an attached patch but seems to have been rejected for procedural reasons so the correctness of the patch is unclear.
Comment 1 Paul Eggleton 2011-06-23 02:39:23 UTC
Fix merged in 0aad8f3f608683e2760cfc3afc8a3c8f05e4ef15 (and do_unpack issue fixed in 4d7108f7afd3940da4597b2ad694754d0fe0b9d1).