Previous Thread
Next Thread
Print Thread
Mac compile 0.201 fails #113869
08/30/18 12:32 PM
08/30/18 12:32 PM
Joined: Sep 2000
Posts: 197
DC, USA
W
will Offline OP
Senior Member
will  Offline OP
Senior Member
W
Joined: Sep 2000
Posts: 197
DC, USA
Greetings, when trying to clean compile MAME 0.201 on my Mac it fails:

Compiling src/devices/machine/ie15.cpp...
Archiving liboptional.a...
make: *** [macosx_x64_clang] Error 2

Running 10.13.6 on a 2017 model iMac.
Is this a known issue? Any suggestions or fixes?


=will=
Re: Mac compile 0.201 fails [Re: will] #113870
08/30/18 12:43 PM
08/30/18 12:43 PM
Joined: May 1999
Posts: 531
Luxembourg
Carbon Offline
Senior Member
Carbon  Offline
Senior Member
Joined: May 1999
Posts: 531
Luxembourg
Hey will,

compiling works fine for me with a similar set-up.Redownload the source to make sure nothing happened there.

Re: Mac compile 0.201 fails [Re: will] #113872
08/30/18 01:32 PM
08/30/18 01:32 PM
Joined: Feb 2004
Posts: 1,986
Sydney, Australia
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member
Joined: Feb 2004
Posts: 1,986
Sydney, Australia
You'll need to give us more detail if you want us to help you diagnose it:
  • OS version
  • Xcode version
  • Output of "clang --version" (without the quotes)
  • The actual error message


You need to search the output for the first place you see a line with "***" in it to find the error that caused the build to fail.

Re: Mac compile 0.201 fails [Re: will] #113873
08/30/18 06:24 PM
08/30/18 06:24 PM
Joined: Jul 2007
Posts: 211
California
M
Monotremata Offline
Senior Member
Monotremata  Offline
Senior Member
M
Joined: Jul 2007
Posts: 211
California
Build of both MAME and NegaMAME 0.201 went without a hitch on my Mac Pro running 10.13.6 yesterday..

Re: Mac compile 0.201 fails [Re: will] #113874
08/31/18 01:02 AM
08/31/18 01:02 AM
Joined: Sep 2000
Posts: 197
DC, USA
W
will Offline OP
Senior Member
will  Offline OP
Senior Member
W
Joined: Sep 2000
Posts: 197
DC, USA
macOS 10.13.6, Xcode 9.4.1
clang --version
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Compiling 3rdparty/softfloat3/source/f128M_to_f16.c...
In file included from ../../../../../src/osd/modules/input/input_common.cpp:36:
In file included from /Library/Frameworks/SDL2.framework/Headers/SDL.h:38:
/Library/Frameworks/SDL2.framework/Headers/SDL_cpuinfo.h:63:5: error: 'HAVE_IMMINTRIN_H' is not defined, evaluates to 0
[-Werror,-Wundef]
#if HAVE_IMMINTRIN_H && !defined(SDL_DISABLE_IMMINTRIN_H)
^
Compiling 3rdparty/softfloat3/source/f128M_to_f32.c...
Compiling 3rdparty/softfloat3/source/f128M_to_f64.c...
Compiling 3rdparty/softfloat3/source/f128M_to_i32.c...
Compiling src/mame/drivers/wildpkr.cpp...
Compiling 3rdparty/softfloat3/source/f128M_to_i32_r_minMag.c...
Compiling 3rdparty/softfloat3/source/f128M_to_i64.c...
Compiling src/osd/modules/input/input_rawinput.cpp...
Compiling 3rdparty/softfloat3/source/f128M_to_i64_r_minMag.c...
Compiling 3rdparty/softfloat3/source/f128M_to_ui32.c...
1 error generated.
make[2]: *** [../../../../osx_clang/obj/x64/Release/osd_sdl/src/osd/modules/input/input_common.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Compiling src/devices/bus/a2bus/corvfdc01.cpp...
Compiling 3rdparty/softfloat3/source/f128M_to_ui32_r_minMag.c...
Compiling 3rdparty/softfloat3/source/f128M_to_ui64.c...
Compiling 3rdparty/softfloat3/source/f128M_to_ui64_r_minMag.c...
Compiling 3rdparty/softfloat3/source/f128_add.c...
Compiling 3rdparty/softfloat3/source/f128_div.c...
Compiling 3rdparty/softfloat3/source/f128_eq.c...
Compiling 3rdparty/softfloat3/source/f128_eq_signaling.c...
Compiling 3rdparty/softfloat3/source/f128_isSignalingNaN.c...
Compiling 3rdparty/softfloat3/source/f128_le.c...
Compiling 3rdparty/softfloat3/source/f128_le_quiet.c...
make[1]: *** [osd_sdl] Error 2
make[1]: *** Waiting for unfinished jobs....

make: *** [macosx_x64_clang] Error 2


=will=
Re: Mac compile 0.201 fails [Re: will] #113875
08/31/18 12:43 PM
08/31/18 12:43 PM
Joined: Sep 2000
Posts: 197
DC, USA
W
will Offline OP
Senior Member
will  Offline OP
Senior Member
W
Joined: Sep 2000
Posts: 197
DC, USA
So I figured out the issue is with SDL framework 2.0.8 which was recently updated.

Went back and replaced SDL framework with 2.0.7 from last year and was able to compile successfully.

Is there a bug with the updated frameworks or does MAME source for SDL need to be updated ?

Just thought I'd share. Thanks!


=will=
Re: Mac compile 0.201 fails [Re: will] #113879
08/31/18 02:31 PM
08/31/18 02:31 PM
Joined: Mar 2001
Posts: 16,007
USA
R
R. Belmont Offline
Very Senior Member
R. Belmont  Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,007
USA
It's quite possible there's an incompatibility with 2.0.8, I'll investigate. Thanks for tracking it down!


Moderated by  R. Belmont 

Who's Online Now
1 registered members (EoceneMiacid), 85 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,575
Posts112,038
Members4,812
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.033s Queries: 14 (0.013s) Memory: 5.6339 MB (Peak: 5.8295 MB) Zlib enabled. Server Time: 2018-09-23 12:23:27 UTC