[packagekit] QT bindings compilation fails on arm and sparc

Adrien BUSTANY madcat at mymadcat.com
Thu Feb 19 09:18:00 PST 2009


Hi Sebastian
thank you for the feedback, I see the line "cc1plus: warnings being 
treated as errors", does it pass without Werror ?
Anyway, I'd rather advocate for a Qt bug, as I don't see any of my 
functions involved in the error message. I'd be interested to see what 
the Qt guys say about that.

Cheers

Adrien


Sebastian Heinlein a écrit :
> Hello,
>
> the qt bindings of libpackagekit fail to build on arm and sparc:
>
> http://launchpadlibrarian.net/22415226/buildlog_ubuntu-jaunty-armel.packagekit_0.3.14-0ubuntu1_FAILEDTOBUILD.txt.gz
>
> [...]
> g++ -DHAVE_CONFIG_H -I. -I../../.. -DQT_SHARED -I/usr/include/qt4
> -I/usr/include/qt4/QtCore -DQT_SHARED -I/usr/include/qt4
> -I/usr/include/qt4/QtDBus -I/usr/include/PolicyKit
> -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -Wcast-align
> -Wno-uninitialized -Wall -Wreturn-type -Werror
> -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES
> -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
> -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -g -O2 -g -Wall -O2 -c
> client.cpp  -fPIC -DPIC -o .libs/client.o
> cc1plus: warnings being treated as errors
> In file included from client.cpp:582:
> /usr/include/qt4/QtCore/qmap.h: In static member function 'static QMap<Key, T>::Node* QMap<Key, T>::concrete(QMapData::Node*) [with Key = QString, T = QVariant]':
> /usr/include/qt4/QtCore/qmap.h:280:   instantiated from 'const Key& QMap<Key, T>::const_iterator::key() const [with Key = QString, T = QVariant]'
> /usr/include/qt4/QtDBus/qdbusargument.h:303:   instantiated from here
> /usr/include/qt4/QtCore/qmap.h:140: error: cast from 'char*' to 'QMap<QString, QVariant>::Node*' increases required alignment of target type
> /usr/include/qt4/QtCore/qmap.h: In static member function 'static QMap<Key, T>::Node* QMap<Key, T>::concrete(QMapData::Node*) [with Key = int, T = QtConcurrent::ResultItem]':
> /usr/include/qt4/QtCore/qmap.h:585:   instantiated from 'void QMap<Key, T>::freeData(QMapData*) [with Key = int, T = QtConcurrent::ResultItem]'
> /usr/include/qt4/QtCore/qmap.h:147:   instantiated from 'QMap<Key, T>::~QMap() [with Key = int, T = QtConcurrent::ResultItem]'
> /usr/include/qt4/QtCore/qtconcurrentresultstore.h:133:   instantiated from here
> /usr/include/qt4/QtCore/qmap.h:140: error: cast from 'char*' to 'QMap<int, QtConcurrent::ResultItem>::Node*' increases required alignment of target type
> /usr/include/qt4/QtCore/qlist.h: In member function 'void QList<T>::node_destruct(QList<T>::Node*, QList<T>::Node*) [with T = QVariant]':
> /usr/include/qt4/QtCore/qlist.h:551:   instantiated from 'void QList<T>::free(QListData::Data*) [with T = QVariant]'
> /usr/include/qt4/QtCore/qlist.h:526:   instantiated from 'QList<T>::~QList() [with T = QVariant]'
> /usr/include/qt4/QtDBus/qdbusmessage.h:79:   instantiated from here
> /usr/include/qt4/QtCore/qlist.h:361: error: cast from 'QList<QVariant>::Node*' to 'QVariant*' increases required alignment of target type
> /usr/include/qt4/QtCore/qlist.h: In member function 'void QList<T>::node_construct(QList<T>::Node*, const T&) [with T = QVariant]':
> /usr/include/qt4/QtCore/qlist.h:418:   instantiated from 'void QList<T>::append(const T&) [with T = QVariant]'
> /usr/include/qt4/QtCore/qlist.h:296:   instantiated from 'QList<T>& QList<T>::operator<<(const T&) [with T = QVariant]'
> /usr/include/qt4/QtDBus/qdbusmessage.h:81:   instantiated from here
> /usr/include/qt4/QtCore/qlist.h:334: error: cast from 'QList<QVariant>::Node*' to 'QVariant*' increases required alignment of target type
> /usr/include/qt4/QtCore/qlist.h: In member function 'void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QVariant]':
> /usr/include/qt4/QtCore/qlist.h:517:   instantiated from 'void QList<T>::detach_helper() [with T = QVariant]'
> /usr/include/qt4/QtCore/qlist.h:115:   instantiated from 'void QList<T>::detach() [with T = QVariant]'
> /usr/include/qt4/QtCore/qlist.h:416:   instantiated from 'void QList<T>::append(const T&) [with T = QVariant]'
> /usr/include/qt4/QtCore/qlist.h:296:   instantiated from 'QList<T>& QList<T>::operator<<(const T&) [with T = QVariant]'
> /usr/include/qt4/QtDBus/qdbusmessage.h:81:   instantiated from here
> /usr/include/qt4/QtCore/qlist.h:352: error: cast from 'QList<QVariant>::Node*' to 'QVariant*' increases required alignment of target type
> make[5]: *** [client.lo] Error 1
> make[5]: Leaving directory `/build/buildd/packagekit-0.3.14/lib/packagekit-qt/src'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory `/build/buildd/packagekit-0.3.14/lib/packagekit-qt'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/build/buildd/packagekit-0.3.14/lib'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/build/buildd/packagekit-0.3.14'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/build/buildd/packagekit-0.3.14'
> make: *** [debian/stamp-makefile-build] Error 2
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2
> ******************************************************************************
>
>
> Cheers,
>
> Sebastian
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/packagekit/attachments/20090219/7a60ef1d/attachment-0001.htm 


More information about the PackageKit mailing list