[MacPorts] #61976: mame: update to 0.227
MacPorts
noreply at macports.org
Sun Jan 3 20:10:55 UTC 2021
#61976: mame: update to 0.227
----------------------+----------------------
Reporter: mascguy | Owner: mascguy
Type: update | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: mame |
----------------------+----------------------
Comment (by mascguy):
The update looked like it might go smoothly, until building on MacOS
10.12: Compilation errors were encountered due to the use of C++ 2017's
new aligned allocation support. (Via `align_value_t` and friends.) And
apparently this is not supported in MacOS libc++ prior to 10.13. Ugh!
Reached out to the Mame devs, and Mame 0.227 onward is only supported for
MacOS 10.14 and later:
[https://github.com/mamedev/mame/issues/7629]
In terms of workarounds, compiler flag `-fno-aligned-allocation` could be
used. Unfortunately, that means certain features will cause Mame to crash,
due to misaligned memory structures. So that's not really acceptable.
However, at least for Mame 0.227, aligned allocs are only being used in a
single source file. So our own patch might be practical for now. But as
C++ 2017 features are used more broadly, that could be problematic in the
future.
An option I'm considering is the use of C++ Aspects, which would allow
compile-time translation for situations like this. And it's reasonably
robust, without the brittle nature of file-specific patches.
Thoughts/comments welcome, as always.
--
Ticket URL: <https://trac.macports.org/ticket/61976#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list