FTR: I have mention this issue to Stephen on #kde-devel, and he fixed instantly. Forgot to mention here due to my filters...<br><br>Laszlo<br><br><div class="gmail_quote">On Tue, Sep 11, 2012 at 8:12 AM, Laszlo Papp <span dir="ltr"><<a href="mailto:lpapp@kde.org" target="_blank">lpapp@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>Trying to build the kde-frameworks branch on ARM, but I am facing the issue below. I had the impression the reduce_relocations changes in Qt5 is managed by cmake from the version 2.8.9 which I have been using in this environment. I have been using the Qt Beta 1 packages.<br>

<br>Any help welcome. Thank you in advance. :)<br><br>Laszlo<br><br>make<br>[  0%] Automoc for target kdeqt5staging<br>[  0%] Built target kdeqt5staging_automoc<br>[  0%] Built target kdeqt5staging<br>[  0%] Automoc for target tst_qsavefile<br>

[  0%] Built target tst_qsavefile_automoc<br>[  0%] Building CXX object libkdeqt5staging/autotests/CMakeFiles/tst_qsavefile.dir/tst_qsavefile.cpp.o<br>In file included from /scratchbox/users/lpapp/home/lpapp/git/kdelibs/libkdeqt5staging/autotests/../../kde_qt5_compat.h:23,<br>

                 from /scratchbox/users/lpapp/home/lpapp/git/kdelibs/libkdeqt5staging/autotests/tst_qsavefile.cpp:43:<br>/opt/qt5/include/QtCore/qglobal.h:1084: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC or -fPIE."<br>

In file included from /opt/qt5/include/QtCore/qobject.h:50,<br>                 from /opt/qt5/include/QtCore/qabstractanimation.h:45,<br>                 from /opt/qt5/include/QtCore/QtCore:4,<br>                 from /opt/qt5/include/QtTest/QtTest:4,<br>

                 from /scratchbox/users/lpapp/home/lpapp/git/kdelibs/libkdeqt5staging/autotests/tst_qsavefile.cpp:44:<br>/opt/qt5/include/QtCore/qlist.h: In member function 'void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QVariant]':<br>

/opt/qt5/include/QtCore/qlist.h:728:   instantiated from 'QList<T>::QList(const QList<T>&) [with T = QVariant]'<br>/opt/qt5/include/QtCore/qstatemachine.h:80:   instantiated from here<br>/opt/qt5/include/QtCore/qlist.h:402: warning: cast from 'QList<QVariant>::Node*' to 'QVariant*' increases required alignment of target type<br>

/opt/qt5/include/QtCore/qlist.h:408: warning: cast from 'QList<QVariant>::Node*' to 'QVariant*' increases required alignment of target type<br>/opt/qt5/include/QtCore/qlist.h: In member function 'void QList<T>::node_destruct(QList<T>::Node*, QList<T>::Node*) [with T = QVariant]':<br>

/opt/qt5/include/QtCore/qlist.h:763:   instantiated from 'void QList<T>::dealloc(QListData::Data*) [with T = QVariant]'<br>/opt/qt5/include/QtCore/qlist.h:739:   instantiated from 'QList<T>::~QList() [with T = QVariant]'<br>

/opt/qt5/include/QtCore/qstatemachine.h:80:   instantiated from here<br>/opt/qt5/include/QtCore/qlist.h:423: warning: cast from 'QList<QVariant>::Node*' to 'QVariant*' increases required alignment of target type<br>

/opt/qt5/include/QtCore/qlist.h: In member function 'void QList<T>::node_destruct(QList<T>::Node*) [with T = QVariant]':<br>/opt/qt5/include/QtCore/qlist.h:517:   instantiated from 'void QList<T>::append(const T&) [with T = QVariant]'<br>

/opt/qt5/include/QtCore/qlist.h:326:   instantiated from 'QList<T>& QList<T>::operator<<(const T&) [with T = QVariant]'<br>/opt/qt5/include/QtTest/qsignalspy.h:151:   instantiated from here<br>

/opt/qt5/include/QtCore/qlist.h:379: warning: cast from 'QList<QVariant>::Node*' to 'QVariant*' increases required alignment of target type<br>make[2]: *** [libkdeqt5staging/autotests/CMakeFiles/tst_qsavefile.dir/tst_qsavefile.cpp.o] Error 1<br>

make[1]: *** [libkdeqt5staging/autotests/CMakeFiles/tst_qsavefile.dir/all] Error 2<br>make: *** [all] Error 2<br><br>
</blockquote></div><br>