WolfMAME 0.163 not compiling on OS X

General discussion on MAME, MARP, or whatever else that doesn't belong in any of the other forums

Moderators: mahlemiut, seymour, QRS

Post Reply
anningmay
Button Slapper
Button Slapper
Posts: 3
Joined: Fri Jun 26, 2015 10:27 pm

WolfMAME 0.163 not compiling on OS X

Post by anningmay »

Hi Barry-

Thanks for all your hard work over the years on this. Much appreciated!

I am unable to compile 0.163 from the source code found at your github page. I am running OS X Yosemite 10.10.4, Xcode 6.4, and Command Line Tools 6.4.

The errors I'm getting are:
In file included from ../../../../../src/osd/modules/render/drawsdl.c:20:
In file included from ../../../../../src/emu/rendersw.inc:14:
In file included from ../../../../../src/emu/video/rgbutil.h:17:
../../../../../src/emu/video/rgbsse.h:205:13: error: argument to '__builtin_ia32_pslldqi128'
must be a constant integer
m_value = _mm_slli_si128(m_value, shift >> 3);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/include/emmintrin.h:832:12: note:
expanded from macro '_mm_slli_si128'
(__m128i)__builtin_ia32_pslldqi128(__a, (count)*8); })
^ ~~~~~~~~~
In file included from ../../../../../src/osd/modules/render/drawsdl.c:20:
In file included from ../../../../../src/emu/rendersw.inc:14:
In file included from ../../../../../src/emu/video/rgbutil.h:17:
../../../../../src/emu/video/rgbsse.h:205:11: error: assigning to '__m128i' (vector of 2
'long long' values) from incompatible type 'void'
m_value = _mm_slli_si128(m_value, shift >> 3);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../src/emu/video/rgbsse.h:220:13: error: argument to '__builtin_ia32_psrldqi128'
must be a constant integer
m_value = _mm_srli_si128(m_value, shift >> 3);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/include/emmintrin.h:899:12: note:
expanded from macro '_mm_srli_si128'
(__m128i)__builtin_ia32_psrldqi128(__a, (count)*8); })
^ ~~~~~~~~~
In file included from ../../../../../src/osd/modules/render/drawsdl.c:20:
In file included from ../../../../../src/emu/rendersw.inc:14:
In file included from ../../../../../src/emu/video/rgbutil.h:17:
../../../../../src/emu/video/rgbsse.h:220:11: error: assigning to '__m128i' (vector of 2
'long long' values) from incompatible type 'void'
m_value = _mm_srli_si128(m_value, shift >> 3);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 errors generated.
I did try searching for this specific set of errors, and came across the following thread at the sdlmame message board:

http://forums.bannister.org/ubbthreads. ... 3&page=all

It appears that they are aware of the problem and have fixed it in the latest svn builds of MAME.

Let me know if I can give you any more info, and thanks again for your time!

Dave
User avatar
mahlemiut
Editor
Posts: 4183
Joined: Mon Feb 04, 2002 10:05 pm
Location: New Zealand
Contact:

Re: WolfMAME 0.163 not compiling on OS X

Post by mahlemiut »

Is this the patch you are referring to?
https://github.com/mamedev/mame/commit/ ... 85e9e3fa10

I don't have Clang or OS X to test it on, can you test this patch to see if it works for you?
- Barry Rodewald
MARP Assistant Web Maintainer
Image
anningmay
Button Slapper
Button Slapper
Posts: 3
Joined: Fri Jun 26, 2015 10:27 pm

Re: WolfMAME 0.163 not compiling on OS X

Post by anningmay »

I was able to build WolfMAME successfully after applying the patch.

Thanks again for your help!

Dave
Post Reply