Can't build under mac os x 
during make in MacOs 10.13.6
I got these errors: 
[ 83%] Building CXX object CMakeFiles/xmrig-amd.dir/src/crypto/CryptoNight.cpp.o
/Users/cl4r0s/build/xmrig-amd/src/crypto/CryptoNight.cpp:312:13: warning: unused variable 'info' [-Wunused-variable]
    MemInfo info = Mem::create(&m_ctx, m_algorithm, 1);
            ^
1 warning generated.
[ 85%] Building CXX object CMakeFiles/xmrig-amd.dir/src/crypto/CryptonightR_gen.cpp.o
In file included from /Users/cl4r0s/build/xmrig-amd/src/crypto/CryptonightR_gen.cpp:27:
In file included from /Users/cl4r0s/build/xmrig-amd/src/crypto/CryptoNight_monero.h:155:
/Users/cl4r0s/build/xmrig-amd/src/crypto/variant4_random_math.h:182:12: warning: unused function 'v4_random_math_init'
      [-Wunused-function]
static int v4_random_math_init(struct V4_Instruction* code, const uint64_t height)
           ^
1 warning generated.
[ 86%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/log/SysLog.cpp.o

The build then completes:
$ ./xmrig-amd -V
XMRig-AMD 2.12.0
 built on Feb 18 2019 with clang 10.0.0 (clang-1000.10.44.4)
 features: 64-bit AES
libuv/1.26.0
microhttpd/0.9.62
OpenSSL/1.0.2q
./xmrig-amd --print-platforms
#0: Apple

But running ./xmrig-amd gives this error: 
"cryptonight" hash self-test failed.
Removing the self tests with return = true doesn't help as the program ends with a segmentation fault
