I could kick myself for letting this happen, but it did.
Took a bunch of system updates. Xcode 5 was one of them, and it updated the commandline tools. You can probably see where this is headed - unfortunately, MAME no longer builds successfully post-upgrade.
This is happening under OS X 10.8.5 with a freshly-unzipped MAME source tree; the only makefile changes were to set PTR64=1, LTO=1, and USE_NETWORK=1.
Code:
Compiling src/lib/util/cdrom.c... src/lib/util/aviio.c:922:24: error: cast from 'UINT8 *' (aka 'unsigned char *') to 'const INT16 *' (aka 'const short *') increases required alignment from 1 to 2 [-Werror,-Wcast-align] ...const INT16 *base = (const INT16 *)(file->tempbuffer + 8); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lib/util/aviio.c:2397:26: error: cast from 'const UINT8 *' (aka 'const unsigned char *') to 'const UINT16 *' (aka 'const unsigned short *') increases required alignment from 1 to 2 [-Werror,-Wcast-align] const UINT16 *dataend = (const UINT16 *)(data + numbytes); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lib/util/aviio.c:2403:26: error: cast from 'const UINT8 *' (aka 'const unsigned char *') to 'const UINT16 *' (aka 'const unsigned short *') increases required alignment from 1 to 2 [-Werror,-Wcast-align] const UINT16 *source = (const UINT16 *)data + y * stream->width; ^~~~~~~~~~~~~~~~~~~~ src/lib/util/aviio.c:2436:26: error: cast from 'UINT8 *' (aka 'unsigned char *') to 'const UINT16 *' (aka 'const unsigned short *') increases required alignment from 1 to 2 [-Werror,-Wcast-align] const UINT16 *dataend = (const UINT16 *)(data + numbytes); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/lib/util/aviio.c:2443:18: error: cast from 'UINT8 *' (aka 'unsigned char *') to 'UINT16 *' (aka 'unsigned short *') increases required alignment from 1 to 2 [-Werror,-Wcast-align] UINT16 *dest = (UINT16 *)data + y * stream->width; ^~~~~~~~~~~~~~ 5 errors generated. make: *** [obj/sdl64/lib/util/aviio.o] Error 1 make: *** Waiting for unfinished jobs.... src/osd/sdl/sdlsocket.c:75:19: error: cast from 'char *' to 'struct in_addr *' increases required alignment from 1 to 4 [-Werror,-Wcast-align] sai.sin_addr = *((struct in_addr *)localhost->h_addr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [obj/sdl64/osd/sdl/sdlsocket.o] Error 1 herpaderp:mame casm$
Just thought I'd bring it up in case anyone else had run into it. My other box still has Xcode 4.whatever installed, so I can build over there, but it's only a Core2 Duo with 2GB RAM vs. the i7 with 16GB on the MacBook Pro so builds take *much* longer.
|