[MacPorts] #59822: cmake @3.16.1: error: no matching constructor for initialization of 'const std::vector<ExpectedSpec>'
MacPorts
noreply at macports.org
Sat Dec 14 10:34:38 UTC 2019
#59822: cmake @3.16.1: error: no matching constructor for initialization of 'const
std::vector<ExpectedSpec>'
----------------------+------------------------------------
Reporter: letaage | Owner: michaelld
Type: defect | Status: assigned
Priority: High | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords: mountainlion mavericks
Port: cmake |
----------------------+------------------------------------
Comment (by Ionic):
The initial issue presented here is not (immediately) happening because
the system `clang` version on 10.9 is too old to support initializer lists
(which would be weird, since it's roughly based upon `clang` 3.4), but
because `cmake` supplies `-std=gnu++1y`, which it doesn't understand and
just silently ignores. Instead of enabling the C++11 mode, it just stays
in the default C++03 mode, leading to the failure seen here.
Now... does `cmake` actually need C++14? If not, we could switch to
something like `-std=gnu++11`.
--
Ticket URL: <https://trac.macports.org/ticket/59822#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list