[KDE/Mac] Qt 5.4 build error on OS X 10.7

Jeremy Whiting jpwhiting at kde.org
Wed Feb 11 12:37:44 UTC 2015


Rene, Ian,

On Wed, Feb 11, 2015 at 3:59 AM, René J.V. <rjvbertin at gmail.com> wrote:

> Hello all,
>
> 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.
>
> The build halts with an error that neither he nor I can make sense of -
> how can a ctor be deleted?
>
> {{{
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
> -c -Os -ffunction-secti
> ons -fPIC -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
>  -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -fno-exceptions -Wall
> -W -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EV
> DEV -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII
> -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_N
> O_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES
> -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO
> _TRANSLATION
> -DQT_QMAKE_LOCATION=\"/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-m
> ac-devel/qt5-mac-devel/work/build/qtbase/bin/qmake\"
> -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_CAST_FROM_ASCII -DQT_BUI
> LD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT
> -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WAR
> NINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS
> -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEB
> UG
> -I/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt
> -everywhere-opensource-src-5.4.0/qtbase/mkspecs/macx-clang
> -I/Users/ianw/.macports/opt/local/var/macports/build/_opt_l
> ocal_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/src/tools/bootstrap
> -I
>
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-ever
> ywhere-opensource-src-5.4.0/qtbase/include
> -I/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_
> aqua_qt5-mac-devel/qt5-mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore
> -I/Users/ianw/.macports
>
> /opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-everywhere-opensource-src
> -5.4.0/qtbase/include/QtXml
> -I/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-de
> vel/qt5-mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/5.4.0
> -I/Users/ianw/.macports/opt/loca
>
> l/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-everywhere-opensource-src-5.4.0/qt
> base/include/QtCore/5.4.0/QtCore
> -I/Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-m
> ac-devel/qt5-mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtXml/5.4.0
> -I/Users/ianw/.macports/opt/
>
> local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-everywhere-opensource-src-5.4.
> 0/qtbase/include/QtXml/5.4.0/QtXml -I../../../include
> -I../../../include/QtCore -I/Users/ianw/.macports/opt/local/var/
> macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/build/qtbase/include/QtXml
> -I. -o .obj/qlog
> ging.o
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/
> qt-everywhere-opensource-src-5.4.0/qtbase/src/corelib/global/qlogging.cpp
>
> In file included from
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-
>
> mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/src/corelib/global/qlogging.cpp:41:
> In file included from
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-
>
> mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/qdebug.h:1:
> In file included from
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-
>
> mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/io/qdebug.h:42:
> In file included from
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-
>
> mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/qtextstream.h:1:
> In file included from
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-
>
> mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/io/qtextstream.h:40:
> In file included from
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-
>
> mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/qlocale.h:1:
> In file included from
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-
>
> mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/tools/qlocale.h:37:
> In file included from
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-
>
> mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/qvariant.h:1:
> In file included from
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-
>
> mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/kernel/qvariant.h:40:
> In file included from
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-
>
> mac-devel/work/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/qmetatype.h:1:
>
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-ever
> ywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1943:1:
> error: copying variable
>  of type 'QBasicAtomicInt' (aka 'QBasicAtomicInteger<int>') invokes
> deleted constructor
> Q_DECLARE_METATYPE_TEMPLATE_2ARG(QPair)
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-ever
> ywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1808:32:
> note: expanded from ma
> cro 'Q_DECLARE_METATYPE_TEMPLATE_2ARG'
>         static QBasicAtomicInt metatype_id =
> Q_BASIC_ATOMIC_INITIALIZER(0); \
>                                ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-ever
> ywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1509:82:
> note: in instantiation
>  of member function 'QMetaTypeId<QPair<QVariant, QVariant>
> >::qt_metatype_id' requested here
>     static inline Q_DECL_CONSTEXPR int qt_metatype_id() { return
> QMetaTypeId<T>::qt_metatype_id(); }
>
>        ^
>
> /Users/ianw/.macports/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel/work/qt-ever
> ywhere-opensource-src-5.4.0/qtbase/include/QtCore/../../src/corelib/thread/qbasicatomic.h:229:5:
> note: function has be
> en explicitly marked deleted here
>     QBasicAtomicInteger(const QBasicAtomicInteger &) = delete;
>     ^
> 1 error generated.
> make[3]: *** [.obj/qlogging.o] Error 1
> }}}
>
> Can anyone here make sense of the error and indicate how to avoid it, or
> should I ask this on a Qt ML?
>
> 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.
>
> @Jeremy W: you're running 10.7 too, no?
>

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?

>
> @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.
>
> R.
> _______________________________________________
> kde-mac at kde.org
> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> KDE/Mac Information: http://community.kde.org/Mac
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-mac/attachments/20150211/74ab7046/attachment.html>


More information about the kde-mac mailing list