<div dir="ltr">Rene, Ian,<div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 11, 2015 at 3:59 AM, René J.V. <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
Ian has been trying to build my qt5-mac-devel port for Qt 5.4.0. If I understand correctly he runs 10.7 and seems to be using the system clang compiler.<br>
<br>
The build halts with an error that neither he nor I can make sense of - how can a ctor be deleted?<br>
<br>
{{{<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -Os -ffunction-secti<br>
ons -fPIC -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk<br>
 -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -fno-exceptions -Wall -W -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EV<br>
DEV -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_N<br>
O_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO<br>
_TRANSLATION -DQT_QMAKE_LOCATION=\"/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-m<br>
ac-devel/qt5-mac-devel/work/build/qtbase/bin/qmake\" -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_CAST_FROM_ASCII -DQT_BUI<br>
LD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WAR<br>
NINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEB<br>
UG -I/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt<br>
-everywhere-opensource-src-5.4.0/qtbase/mkspecs/macx-clang -I/Users/ianw/.macports/opt/local/var/macports/build/_opt_l<br>
ocal_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/src/tools/bootstrap -I<br>
/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-ever<br>
ywhere-opensource-src-5.4.0/qtbase/include -I/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_<br>
aqua_qt5-mac-devel/qt5-mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore -I/Users/ianw/.macports<br>
/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-everywhere-opensource-src<br>
-5.4.0/qtbase/include/QtXml -I/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-de<br>
vel/qt5-mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/5.4.0 -I/Users/ianw/.macports/opt/loca<br>
l/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-everywhere-opensource-src-5.4.0/qt<br>
base/include/QtCore/5.4.0/QtCore -I/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-m<br>
ac-devel/qt5-mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtXml/5.4.0 -I/Users/ianw/.macports/opt/<br>
local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-everywhere-opensource-src-5.4.<br>
0/qtbase/include/QtXml/5.4.0/QtXml -I../../../include -I../../../include/QtCore -I/Users/ianw/.macports/opt/local/var/<br>
macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/build/qtbase/include/QtXml -I. -o .obj/qlog<br>
ging.o /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/<br>
qt-everywhere-opensource-src-5.4.0/qtbase/src/corelib/global/qlogging.cpp<br>
<br>
In file included from /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-<br>
mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/src/corelib/global/qlogging.cpp:41:<br>
In file included from /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-<br>
mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/qdebug.h:1:<br>
In file included from /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-<br>
mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/io/qdebug.h:42:<br>
In file included from /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-<br>
mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/qtextstream.h:1:<br>
In file included from /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-<br>
mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/io/qtextstream.h:40:<br>
In file included from /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-<br>
mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/qlocale.h:1:<br>
In file included from /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-<br>
mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/tools/qlocale.h:37:<br>
In file included from /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-<br>
mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/qvariant.h:1:<br>
In file included from /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-<br>
mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:40:<br>
In file included from /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-<br>
mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/qmetatype.h:1:<br>
/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-ever<br>
ywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1943:1: error: copying variable<br>
 of type 'QBasicAtomicInt' (aka 'QBasicAtomicInteger<int>') invokes deleted constructor<br>
Q_DECLARE_METATYPE_TEMPLATE_2ARG(QPair)<br>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-ever<br>
ywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1808:32: note: expanded from ma<br>
cro 'Q_DECLARE_METATYPE_TEMPLATE_2ARG'<br>
        static QBasicAtomicInt metatype_id = Q_BASIC_ATOMIC_INITIALIZER(0); \<br>
                               ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-ever<br>
ywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1509:82: note: in instantiation<br>
 of member function 'QMetaTypeId<QPair<QVariant, QVariant> >::qt_metatype_id' requested here<br>
    static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return QMetaTypeId<T>::qt_metatype_id(); }<br>
                                                                                 ^<br>
/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-ever<br>
ywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/thread/qbasicatomic.h:229:5: note: function has be<br>
en explicitly marked deleted here<br>
    QBasicAtomicInteger(const QBasicAtomicInteger &) = delete;<br>
    ^<br>
1 error generated.<br>
make[3]: *** [.obj/qlogging.o] Error 1<br>
}}}<br>
<br>
Can anyone here make sense of the error and indicate how to avoid it, or should I ask this on a Qt ML?<br>
<br>
AFAIK Qt 5.4.0 *can* be built on 10.7 and I presume that means with the system clang, but doing so may require special precautions that my port does not currently take.<br>
<br>
@Jeremy W: you're running 10.7 too, no?<br></blockquote><div><br></div><div>Yes, I have a macbook running 10.7 currently. I used the system clang to build Qt 5.4, though I didn't download and apply all the patches you have in your macports trac ticket. I only cloned Qt5 5.4 branch, added the QSP patch and built it fine here. I built it outside of the source tree in a qt5build folder. I built it twice actually, once with -developer-build and once without (to install it into /usr/local/Qt-5.4.2 so I can build qtspeech against it). Does one of the patches on the trac ticket change QBasicAtomiciInt in any way? </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
@Ian: if you feel like perusing Qt's building documentation for clues, by all means do so, if not, please put this on hold until we figure it out. I sadly don't have access to a 10.7 machine so cannot test things directly.<br>
<br>
R.<br>
_______________________________________________<br>
<a href="mailto:kde-mac@kde.org">kde-mac@kde.org</a><br>
List Information: <a href="https://mail.kde.org/mailman/listinfo/kde-mac
KDE/Mac" target="_blank">https://mail.kde.org/mailman/listinfo/kde-mac<br>
KDE/Mac</a> Information: <a href="http://community.kde.org/Mac" target="_blank">http://community.kde.org/Mac</a><br>
</blockquote></div><br></div></div>