[MacPorts] #60643: pyotherside: error: Qt requires a C++11 compiler and yours does not seem to be that

MacPorts noreply at macports.org
Sat Jun 13 13:48:06 UTC 2020


#60643: pyotherside: error: Qt requires a C++11 compiler and yours does not seem to
be that
------------------------+-------------------------
 Reporter:  ryandesign  |      Owner:  amake
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.2
 Keywords:              |       Port:  pyotherside
------------------------+-------------------------
 [https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/120853/steps
 /install-port/logs/stdio pyotherside fails to build] at least on
 Mavericks:

 {{{
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
 -c -pipe -stdlib=libc++ -arch x86_64 -isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
 -mmacosx-version-min=10.9  -Os -Wall -W -fPIC
 -DQUICK_TEST_SOURCE_DIR="\"/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_pyotherside/pyotherside/work
 /thp-pyotherside-373cac2/qtquicktests\"" -DQT_NO_DEBUG -DQT_QMLTEST_LIB
 -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB
 -DQT_TESTLIB_LIB -DQT_CORE_LIB
 -DQT_TESTCASE_BUILDDIR='"/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_pyotherside/pyotherside/work
 /thp-pyotherside-373cac2/qtquicktests"' -I.
 -I/opt/local/libexec/qt5/lib/QtQuickTest.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtWidgets.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtQml.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtTest.framework/Headers
 -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers -I.
 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/OpenGL.framework/Headers
 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/AGL.framework/Headers
 -I/opt/local/libexec/qt5/mkspecs/macx-clang -F/opt/local/libexec/qt5/lib
 -o qtquicktests.o qtquicktests.cpp
 In file included from qtquicktests.cpp:1:
 In file included from
 /opt/local/libexec/qt5/lib/QtQuickTest.framework/Headers/quicktest.h:43:
 In file included from
 /opt/local/libexec/qt5/lib/QtQuickTest.framework/Headers/quicktestglobal.h:43:
 In file included from
 /opt/local/libexec/qt5/lib/QtCore.framework/Headers/qglobal.h:97:
 /opt/local/libexec/qt5/lib/QtCore.framework/Headers/qcompilerdetection.h:562:6:
 error: Qt requires a C++11 compiler and yours does not seem to be that.
 #    error Qt requires a C++11 compiler and yours does not seem to be
 that.
      ^
 }}}

 clang++ on Mavericks does indeed support C++11 but is not in C++11 mode by
 default. You have to put it into C++11 mode by using the `-std=c++11` flag
 in CXXFLAGS.

 The port also needs `compiler.cxx_standard 2011` to tell MacPorts to
 ensure that a C++11-capable compiler is used.

-- 
Ticket URL: <https://trac.macports.org/ticket/60643>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list