[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 17:46:12 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):

 Replying to [comment:31 kencu]:
 > > So you would like to force 10.8 and earlier to use gcc6 to build
 cmake?
 >
 > No. But 10.4 to 10.8, using the cxx11 1.1 PG, currently get a c++11
 libstdc++ from libgcc. On PPC, gcc6 builds against that. On Intel on older
 systems, clang-5.0 builds against it.

 Ah, ok, we're already not-using-libc++ when using cxx11 1.1. My question
 about why sharing data between FSF GCC libstdc++ and Apple GCC libstdc++
 now works when it caused crashes before remain.

 Can the macports-libstdc++ stuff be brought back to clang-3.7?

 > So as I see it, there are two choices:
 > 1. put a peg in the cmake portfile as you suggested initially, and see
 how long it lasts until it breaks someday. Easy. Done.
 > 1. make a cmake39 port, and then figure out how to use it properly. For
 now, using a block similar to the one I mentioned, serve it up to older
 systems that don't have cmake installed. Older Intel systems that do have
 cmake installed probably also have clang-5.0 installed, and can build
 cmake 3.10. If they don't have clang-5.0 installed, they should be able
 build it with the cmake they have installed already, unless `port` won't
 let them do that.

 You're right that `port` won't let them do that. If clang-5.0 depends on
 cmake, and cmake is installed but outdated, MacPorts will try to upgrade
 cmake first, which would be a circular dependency back to clang-5.0 and
 will fail with an unintelligible error message.

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


More information about the macports-tickets mailing list