[MacPorts] #55382: cmake @3.10.0: Cannot find a C++ compiler supporting C++11 on this system

MacPorts noreply at macports.org
Fri Dec 1 16:59:22 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):

 From a 10.8 system, with cmake 3.10.0 installed using my patches, here is
 the complete list of libraries cmake's files link with:

 {{{
 $ port -q contents cmake | sed -E 's/^ +//' | file -e apptype -e ascii -e
 cdf -e compress -e elf -e encoding -e tar -e tokens --mime-type --no-
 buffer --no-pad --files-from - | sed -E -n 's,: *application/(octet-
 stream|x-(archive|mach-binary))$,,p' | tr '\n' '\000' | xargs -0 otool -L
 | grep -v 'is not an object file'
 /opt/local/bin/ccmake:
         /opt/local/lib/libform.6.dylib (compatibility version 6.0.0,
 current version 6.0.0)
         /opt/local/lib/libncurses.6.dylib (compatibility version 6.0.0,
 current version 6.0.0)
         /opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0,
 current version 8.7.0)
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.11)
         /opt/local/lib/libarchive.13.dylib (compatibility version 17.0.0,
 current version 17.2.0)
         /opt/local/lib/libcurl.4.dylib (compatibility version 10.0.0,
 current version 10.0.0)
         /opt/local/lib/libuv.1.dylib (compatibility version 2.0.0, current
 version 2.0.0)
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 (compatibility version 150.0.0, current version 744.19.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 65.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /opt/local/bin/cmake:
         /opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0,
 current version 8.7.0)
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.11)
         /opt/local/lib/libarchive.13.dylib (compatibility version 17.0.0,
 current version 17.2.0)
         /opt/local/lib/libcurl.4.dylib (compatibility version 10.0.0,
 current version 10.0.0)
         /opt/local/lib/libuv.1.dylib (compatibility version 2.0.0, current
 version 2.0.0)
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 (compatibility version 150.0.0, current version 744.19.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 65.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /opt/local/bin/cmakexbuild:
         /opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0,
 current version 8.7.0)
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.11)
         /opt/local/lib/libarchive.13.dylib (compatibility version 17.0.0,
 current version 17.2.0)
         /opt/local/lib/libcurl.4.dylib (compatibility version 10.0.0,
 current version 10.0.0)
         /opt/local/lib/libuv.1.dylib (compatibility version 2.0.0, current
 version 2.0.0)
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 (compatibility version 150.0.0, current version 744.19.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 65.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /opt/local/bin/cpack:
         /opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0,
 current version 8.7.0)
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.11)
         /opt/local/lib/libarchive.13.dylib (compatibility version 17.0.0,
 current version 17.2.0)
         /opt/local/lib/libcurl.4.dylib (compatibility version 10.0.0,
 current version 10.0.0)
         /opt/local/lib/libuv.1.dylib (compatibility version 2.0.0, current
 version 2.0.0)
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 (compatibility version 150.0.0, current version 744.19.0)
 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
 (compatibility version 1.0.0, current version 57.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 65.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /opt/local/bin/ctest:
         /opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0,
 current version 8.7.0)
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.11)
         /opt/local/lib/libarchive.13.dylib (compatibility version 17.0.0,
 current version 17.2.0)
         /opt/local/lib/libuv.1.dylib (compatibility version 2.0.0, current
 version 2.0.0)
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 (compatibility version 150.0.0, current version 744.19.0)
         /opt/local/lib/libcurl.4.dylib (compatibility version 10.0.0,
 current version 10.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 65.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /opt/local/share/cmake-3.10/Modules/CPack.OSXScriptLauncher.in
 (architecture ppc):
 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
 (compatibility version 1.0.0, current version 27.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 106.1.0)
 /opt/local/share/cmake-3.10/Modules/CPack.OSXScriptLauncher.in
 (architecture i386):
 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
 (compatibility version 1.0.0, current version 27.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 106.1.0)
 }}}

 Here is the complete list of libraries those libraries link with:

 {{{
 bash-3.2$ port -q contents cmake | sed -E 's/^ +//' | file -e apptype -e
 ascii -e cdf -e compress -e elf -e encoding -e tar -e tokens --mime-type
 --no-buffer --no-pad --files-from - | sed -E -n 's,: *application/(octet-
 stream|x-(archive|mach-binary))$,,p' | tr '\n' '\000' | xargs -0 otool -L
 | grep -E -v '(^/|is not an object file)' | awk '{print $1}' | sort -u |
 xargs otool -L
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation:
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 (compatibility version 150.0.0, current version 744.19.0)
         /usr/lib/libauto.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /usr/lib/libDiagnosticMessagesClient.dylib (compatibility version
 1.0.0, current version 1.0.0)
         /usr/lib/libicucore.A.dylib (compatibility version 1.0.0, current
 version 49.1.0)
         /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current
 version 228.0.0)
         /usr/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.5)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices:
 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
 (compatibility version 1.0.0, current version 57.0.0)
 /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
 (compatibility version 1.0.0, current version 595.1.0)
 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
 (compatibility version 1.0.0, current version 1037.0.0)
 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
 (compatibility version 1.0.0, current version 705.0.0)
 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
 (compatibility version 1.0.0, current version 555.0.0)
 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
 (compatibility version 1.0.0, current version 200.1.0)
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 (compatibility version 150.0.0, current version 742.0.0)
 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
 (compatibility version 1.0.0, current version 644.0.0)
 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
 (compatibility version 1.0.0, current version 535.0.0)
 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
 (compatibility version 1.0.0, current version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /opt/local/lib/libarchive.13.dylib:
         /opt/local/lib/libarchive.13.dylib (compatibility version 17.0.0,
 current version 17.2.0)
         /opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0,
 current version 9.0.0)
         /opt/local/lib/liblzo2.2.dylib (compatibility version 3.0.0,
 current version 3.0.0)
         /opt/local/lib/liblzma.5.dylib (compatibility version 8.0.0,
 current version 8.3.0)
         /opt/local/lib/liblz4.1.dylib (compatibility version 1.0.0,
 current version 1.8.0)
         /opt/local/lib/libcharset.1.dylib (compatibility version 2.0.0,
 current version 2.0.0)
         /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0,
 current version 1.0.6)
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.11)
         /opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0,
 current version 12.5.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /opt/local/lib/libcurl.4.dylib:
         /opt/local/lib/libcurl.4.dylib (compatibility version 10.0.0,
 current version 10.0.0)
         /opt/local/lib/libidn2.0.dylib (compatibility version 4.0.0,
 current version 4.3.0)
         /opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0,
 current version 1.0.0)
         /opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0,
 current version 1.0.0)
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.11)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /opt/local/lib/libexpat.1.dylib:
         /opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0,
 current version 8.7.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /opt/local/lib/libform.6.dylib:
         /opt/local/lib/libform.6.dylib (compatibility version 6.0.0,
 current version 6.0.0)
         /opt/local/lib/libncurses.6.dylib (compatibility version 6.0.0,
 current version 6.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /opt/local/lib/libncurses.6.dylib:
         /opt/local/lib/libncurses.6.dylib (compatibility version 6.0.0,
 current version 6.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /opt/local/lib/libuv.1.dylib:
         /opt/local/lib/libuv.1.dylib (compatibility version 2.0.0, current
 version 2.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /opt/local/lib/libz.1.dylib:
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.11)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 /usr/lib/libSystem.B.dylib:
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
         /usr/lib/system/libcache.dylib (compatibility version 1.0.0,
 current version 57.0.0)
         /usr/lib/system/libcommonCrypto.dylib (compatibility version
 1.0.0, current version 50000.0.0)
         /usr/lib/system/libcompiler_rt.dylib (compatibility version 1.0.0,
 current version 30.0.0)
         /usr/lib/system/libcopyfile.dylib (compatibility version 1.0.0,
 current version 89.0.0)
         /usr/lib/system/libdispatch.dylib (compatibility version 1.0.0,
 current version 228.23.0)
         /usr/lib/system/libdnsinfo.dylib (compatibility version 1.0.0,
 current version 453.19.0)
         /usr/lib/system/libdyld.dylib (compatibility version 1.0.0,
 current version 210.2.3)
         /usr/lib/system/libkeymgr.dylib (compatibility version 1.0.0,
 current version 25.0.0)
         /usr/lib/system/liblaunch.dylib (compatibility version 1.0.0,
 current version 442.26.2)
         /usr/lib/system/libmacho.dylib (compatibility version 1.0.0,
 current version 829.0.0)
         /usr/lib/system/libquarantine.dylib (compatibility version 1.0.0,
 current version 52.1.0)
         /usr/lib/system/libremovefile.dylib (compatibility version 1.0.0,
 current version 23.2.0)
         /usr/lib/system/libsystem_blocks.dylib (compatibility version
 1.0.0, current version 59.0.0)
         /usr/lib/system/libsystem_c.dylib (compatibility version 1.0.0,
 current version 825.40.1)
         /usr/lib/system/libsystem_dnssd.dylib (compatibility version
 1.0.0, current version 1.0.0)
         /usr/lib/system/libsystem_info.dylib (compatibility version 1.0.0,
 current version 1.0.0)
         /usr/lib/system/libsystem_kernel.dylib (compatibility version
 1.0.0, current version 2050.48.12)
         /usr/lib/system/libsystem_m.dylib (compatibility version 1.0.0,
 current version 1.0.0)
         /usr/lib/system/libsystem_network.dylib (compatibility version
 1.0.0, current version 1.0.0)
         /usr/lib/system/libsystem_notify.dylib (compatibility version
 1.0.0, current version 98.5.0)
         /usr/lib/system/libsystem_sandbox.dylib (compatibility version
 1.0.0, current version 1.0.0)
         /usr/lib/system/libunc.dylib (compatibility version 1.0.0, current
 version 25.0.0)
         /usr/lib/system/libunwind.dylib (compatibility version 1.0.0,
 current version 35.1.0)
         /usr/lib/system/libxpc.dylib (compatibility version 1.0.0, current
 version 140.43.0)
 /usr/lib/libc++.1.dylib:
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 65.1.0)
         /usr/lib/libc++abi.dylib (compatibility version 1.0.0, current
 version 24.2.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 169.3.0)
 }}}

 So yes, cmake's programs link with libc++. But none of the libraries those
 programs use link with libc++. So it seems clear to me that cmake's
 programs are not exchanging C++ objects with any of the libraries they
 use. Therefore it is fine to force cmake to use libc++ even when other
 ports are using libstdc++.

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


More information about the macports-tickets mailing list