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=