[MacPorts] #55382: cmake @3.10.0: Cannot find a C++ compiler supporting C++11 on this system
MacPorts
noreply at macports.org
Wed Nov 22 18:51:20 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):
Perhaps something like this:
{{{
# when using libc++, require Clang 3.4 or newer; Clang 3.3 produces
# bad stream reading code. See also MP ticket #44129:
# < https://trac.macports.org/ticket/44129 >
# cmake no longer bootstraps with a non-c++11 compiler so force clang-3.7
on
# older systems (last clang that builds without cmake) and require libc++
# to enable c++11 features
platform darwin i386 {
compiler.blacklist-append {clang < 500} macports-clang-3.3 *gcc*
if {${os.version} < 13} {
compiler.blacklist
compiler.whitelist macports-clang-3.7
depends_build-append port:libcxx
configure.cxx_stdlib libc++
}
}
platform darwin powerpc {
compiler.blacklist
compiler.whitelist macports-gcc-6
}
}}}
There are various compiler and stdlib forces in the cmake Portfile that
might need to be cleaned up to make sure this works out, including a part
where the stdlib is forced back to libstdc++ later on in the portfile
(which I've had to delete out of each cmake portfile to build it, btw).
--
Ticket URL: <https://trac.macports.org/ticket/55382#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list