There is a strange issue with the MacOS version of MAME that has been going on since at least the 209 timeframe. Specifically, using the HLSL effect crashes MAME when I build it on my computer. It also crashes the build at https://choccyhobnob.com/
, but does NOT crash the build created at http://sdlmame.lngn.net/.
This is the error that occurs (for both my build and the choccyhobnob build):
RHILDING-M-26W8:mame rhilding$ ./mame_galaga_64 galaga -window -nomax -video bgfx -bgfx_screen_chains hlsl
2019-11-05 17:53:33.455 mame_galaga_64[68895:490990] ../../../../../3rdparty/bgfx/src/renderer_mtl.mm (2465): BGFX 0x00000001: Failed to create Fragment shader.
Abort trap: 6
Note: I'm compiling on MacOS Mojave 10.14.6, and here is the relevant compile information:
Build version: 0.215 (mame0215)
Build defines 1: SDLMAME_UNIX=1 SDLMAME_MACOSX=1 SDLMAME_DARWIN=1
Build defines 1: LSB_FIRST=1 PTR64=1
SDL/OpenGL defines: SDL_COMPILEDVERSION=2009 USE_OPENGL=1
Compiler defines A: __GNUC__=4 __GNUC_MINOR__=2 __GNUC_PATCHLEVEL__=1 __VERSION__="4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.3)"
Compiler defines B: __amd64__=1 __x86_64__=1
Compiler defines C: _FORTIFY_SOURCE=2