MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

casm
Cinematronics > *
Reged: 08/27/07
Posts: 668
Send PM


Unable to build MAME 0.150 under Xcode 5 on OS X 10.8.5
#315113 - 09/28/13 02:18 AM


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.



Sune
Connected
Reged: 09/21/03
Posts: 5648
Loc: Lagoa Santa, Brasil
Send PM


Re: Unable to build MAME 0.150 under Xcode 5 on OS X 10.8.5 new [Re: casm]
#315121 - 09/28/13 08:24 AM


> 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.

It works for me, but I build from svn.

S



Firehawke
Manual Meister
Reged: 08/12/06
Posts: 665
Send PM


Re: Unable to build MAME 0.150 under Xcode 5 on OS X 10.8.5 new [Re: Sune]
#315140 - 09/29/13 12:03 PM


Yep. Some changes were made post-0.150 by RB that fixes compilation on the new Xcode 5. You'll have to build from SVN until 0.151 comes out.



---
Try checking the MAME manual at http://docs.mamedev.org



casm
Cinematronics > *
Reged: 08/27/07
Posts: 668
Send PM


Re: Unable to build MAME 0.150 under Xcode 5 on OS X 10.8.5 new [Re: Firehawke]
#315156 - 09/29/13 11:03 PM


> Yep. Some changes were made post-0.150 by RB that fixes compilation on the new Xcode
> 5. You'll have to build from SVN until 0.151 comes out.

Got it, and thanks. The addition of the web server has piqued my interest, so checking the source out from SVN makes sense.


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 576 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1770