[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 16:57:28 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 kencu):

 Sadly, clang-3.7 doesn't understand stdlib=macports-libstdc++, so it can't
 build c++11 unless libc++ is used. That requires manual steps.

 we should not be talking about libc++ really -- all the systems from 10.4
 to 10.8 currently get access to c++11 from gcc's libstdc++.

 10.4 can't build cmake 3.10.0 due to libuv incompatibilities that we may
 never figure out. libuv has said they are 10.7+, so we can expect further
 troubles there in the future.

 cmake 3.9.6 should be able to build software that needs cmake for many
 years. A cmake39 port offers the chance of bootstrapping up to 3.10.x
 later, either manually or automatically once we figure out how to do that
 safely (per Marcus). It also would be immune to any future changes in the
 cmake portfile that Michael might come up that could break cmake 3.9.6.

 But we would have years to figure that out, as cmake 3.9.6 will work for a
 very long time I think.

 If we did this in the cmake PortGroup:
 {{{
 if {${os.version} > 12} {
     depends_build-append path:bin/cmake:cmake
 } else {
     depends_build-append path:bin/cmake:cmake39
 }
 }}}
 and made a cmake39 port, we're done with that for some years.

--
Ticket URL: <https://trac.macports.org/ticket/55382#comment:28>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list