Opened 7 months ago

Last modified 7 months ago

#60769 reopened defect

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

Reported by: ryandesign (Ryan Schmidt) Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: mountainlion mavericks Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: svn2git

Description

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.

Change History (2)

comment:1 Changed 7 months ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: assignedclosed

In 91a7c0a27ba8f08273e0509b340a37b24c298ded/macports-ports (master):

svn2git: Add -std=gnu++11 on 10.8 and 10.9

Closes: #60769

comment:2 Changed 7 months ago by ryandesign (Ryan Schmidt)

Cc: MarcusCalhoun-Lopez added
Resolution: fixed
Status: closedreopened

That didn't work. I can't understand the qmake5 portgroup. Help?

Note: See TracTickets for help on using tickets.