[MacPorts] #60769: svn2git @1.0.18: error: Qt requires a C++11 compiler and yours does not seem to be that.

MacPorts noreply at macports.org
Fri Jul 3 10:28:08 UTC 2020


#60769: svn2git @1.0.18: error: Qt requires a C++11 compiler and yours does not
seem to be that.
------------------------------------+------------------------
 Reporter:  ryandesign              |      Owner:  ryandesign
     Type:  defect                  |     Status:  assigned
 Priority:  Normal                  |  Milestone:
Component:  ports                   |    Version:  2.6.2
 Keywords:  mountainlion mavericks  |       Port:  svn2git
------------------------------------+------------------------
 [https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/121894/steps
 /install-port/logs/stdio svn2git doesn't build on 10.9] and 10.8:

 {{{
 error: Qt requires a C++11 compiler and yours does not seem to be that.
 }}}

 I've already added `compiler.cxx_standard 2011` so a C++11-capable
 compiler is available, but the one on 10.8 and 10.9 doesn't ''default'' to
 C++11 and the build isn't setting a `-std` flag of its own.

 I've already added `configure.cxxflags-append -std=c++11` but this does
 nothing. It appears that the qmake5-1.0 portgroup ignores what ports set
 in `configure.cxxflags` and it has a `qt5.cxxflags` option instead.
 (Why???)

 Oddly on 10.10 and later the build succeeds because it ''does'' set the
 `-std=gnu++11` flag. I can't figure out what's setting that on 10.10 and
 later or why it's not being set on 10.9 and earlier.

 The build succeeds on 10.7 and 10.6 because they use an older version of
 qt that I guess didn't require C++11.

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


More information about the macports-tickets mailing list