Details
-
Bug
-
Resolution: Won't Do
-
P4: Low
-
None
-
5.12.3, 5.12.4, 5.13.0
-
None
-
macOS 10.13 (High Sierra), Xcode 10.1
Description
I tried building Qt 5.13 on macOS (high sierra) with Xcode 10.1 forcing c++ 11 and it fails.
I tried it also via editing the homebrew formula to add the above switch (and skip all repos apart from qtbase, qttools, qtmacextras) and it still failed.
The error I get when I build manually without homebrew:
cd testlib/ && ( test -e Makefile || /Users/ham/Desktop/qt-everywhere-src-5.13.0/qtbase/bin/qmake -o Makefile /Users/ham/Desktop/qt-everywhere-src-5.13.0/qtbase/src/testlib/testlib.pro ) && /Applications/Xcode10.1.app/Contents/Developer/usr/bin/make -f Makefile /Applications/Xcode10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -include.pch/QtTest/c++_x86_64 -pipe -stdlib=libc++ -Os -std=c++11 -fapplication-extension -arch x86_64 -isysroot /Applications/Xcode10.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.12 -fvisibility=hidden -fvisibility-inlines-hidden -flto -Wall -W -Winconsistent-missing-override -Wobjc-interface-ivars -Wobjc-method-access -Wobjc-multiple-method-names -Werror=unguarded-availability -Werror=unguarded-availability-new -Werror=unsupported-availability-guard -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_FOREACH -DQT_NO_DATASTREAM -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_TESTLIB_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I../../include -I../../include/QtTest -I../../include/QtTest/5.13.0 -I../../include/QtTest/5.13.0/QtTest -I../../include/QtCore/5.13.0 -I../../include/QtCore/5.13.0/QtCore -I../../include/QtCore -I.moc -I/usr/local/Cellar/openssl/1.0.2s/include -I../../mkspecs/macx-clang -F/Users/ham/Desktop/qt-everywhere-src-5.13.0/qtbase/lib -o .obj/qappletestlogger.o qappletestlogger.cpp qappletestlogger.cpp:107:20: error: no matching constructor for initialization of 'MessageData' return MessageData{QtInfoMsg, "pass"}; ^ ~~~~~~~~~~~~~~~~~~~ qappletestlogger.cpp:86:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided struct MessageData ^ qappletestlogger.cpp:86:8: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 2 were provided qappletestlogger.cpp:86:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 2 were provided qappletestlogger.cpp:109:20: error: no matching constructor for initialization of 'MessageData' return MessageData{QtInfoMsg, "xfail"}; ^ ~~~~~~~~~~~~~~~~~~~~ qappletestlogger.cpp:86:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided struct MessageData ^ qappletestlogger.cpp:86:8: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 2 were provided qappletestlogger.cpp:86:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 2 were provided qappletestlogger.cpp:111:20: error: no matching constructor for initialization of 'MessageData' return MessageData{QtCriticalMsg, "fail"}; ^ ~~~~~~~~~~~~~~~~~~~~~~~ qappletestlogger.cpp:86:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided struct MessageData ^ qappletestlogger.cpp:86:8: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 2 were provided qappletestlogger.cpp:86:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 2 were provided
Full command given when building manually without homebrew:
PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig/:/usr/local/opt/openssl/lib/pkgconfig/:$PKG_CONFIG_PATH \ ./configure -prefix /Users/ham/Desktop/qt5/5.13.0 \ "$(PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig/:$PKG_CONFIG_PATH pkg-config --cflags-only-I zlib openssl)" \ "$(PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig/:$PKG_CONFIG_PATH pkg-config --libs-only-L zlib openssl)" \ -release -opensource -confirm-license \ -system-zlib -qt-libpng -qt-libjpeg -qt-freetype -qt-pcre -nomake tests -no-rpath -pkg-config -c++std c++11 \ -openssl-linked -strip -optimize-size -ltcg -make libs -make tools -nomake examples -no-compile-examples \ -no-icu -no-cups -no-dbus -no-sql-sqlite -no-sql-odbc -no-sqlite -no-gtk -skip qt3d -skip qtactiveqt \ -skip qtandroidextras -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc \ -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtlottie \ -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 \ -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport \ -skip qtspeech -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine \ -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras \ -skip qtxmlpatterns OPENSSL_LIBS="-lssl -lcrypto"