[MacPorts] #64629: Update needed for mac m1 max
MacPorts
noreply at macports.org
Tue Feb 8 21:46:23 UTC 2022
#64629: Update needed for mac m1 max
--------------------+-----------------------
Reporter: SiggyF | Owner: (none)
Type: update | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: | Port: protozero
--------------------+-----------------------
This ports needs an update to 1.7.1 to get working with m1 mac, as
described in https://github.com/mapbox/protozero/issues/107.
There is also another issue, which I could fix by editing the cmake
settings. The problem is that by default `-werror` is used combined with
-std=c++11.
{{{
/opt/local/include/google/protobuf/parse_context.h:365:3: error: use of
the 'nodiscard' attribute is a C++17 extension
[-Werror,-Wc++17-extensions]
PROTOBUF_NODISCARD const char* AppendString(const char* ptr,
}}}
If I set `WERROR:BOOL=OFF` the build completes with clang++ . Another
option would be to change the -std=c++11 to -std=c++17, but I could not
find where to put that in the cmake settings.
--
Ticket URL: <https://trac.macports.org/ticket/64629>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list