[MacPorts] #55382: cmake @3.10.0: Cannot find a C++ compiler supporting C++11 on this system
MacPorts
noreply at macports.org
Thu Nov 30 20:14:24 UTC 2017
#55382: cmake @3.10.0: Cannot find a C++ compiler supporting C++11 on this system
-------------------------+-------------------------------------------------
Reporter: ryandesign | Owner: michaelld
Type: defect | Status: new
Priority: High | Milestone:
Component: ports | Version:
Resolution: | Keywords: tiger leopard snowleopard lion
Port: cmake | mountainlion
-------------------------+-------------------------------------------------
Comment (by ryandesign):
The attached patches works for me on 10.8 and 10.7, and on 10.6 provided
#55441 is implemented. I think these are good to commit but want to attach
them for review first.
Note I changed the conditional at the top of the cxx11-1.1 portgroup from
`${cxx_stdlib}` to `${configure.cxx_stdlib}` because I didn't understand
why the first was used, and it prevented me from overriding it in the
cmake portfile like I wanted to. Michael said on the mailing list that
`${cxx_stdlib}` is the ''default'' value (e.g. set by MacPorts base or by
the user in macports.conf) while `${configure.cxx_stdlib}` is the
''current'' value; seems like we want to check the current value.
On 10.5 i386 I am having other problems: #55442, #55443. On 10.5 ppc, the
port already builds successfully with gcc6. We could just give up on
libc++ for 10.5 and make the portgroup use gcc6 on 10.5 i386 too.
The libcxx port prevents its installation on 10.4 any arch, so I modified
cxx11-1.1 to use gcc6 there as well. I have not tested building on 10.4
yet but can do so tomorrow. But I feel like 10.4 and 10.5 issues are less
important and investigating those needn't hold up committing a fix for
10.6-10.8.
I'm going to stop working on this for now and may come back to it
tomorrow, if anyone wants to do any other testing or investigations in the
mean time.
--
Ticket URL: <https://trac.macports.org/ticket/55382#comment:40>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list