xmrig / xmrig-amd

Monero AMD (OpenCL) miner
GNU General Public License v3.0
412 stars 226 forks source link

Compiling error on Big Sur #291

Open sparkso opened 3 years ago

sparkso commented 3 years ago

I'm running Mac Pro 2013 and updated to Big Sur MacOS

I'm getting following errors when i make.

`[ 4%] Built target xmrig-asm [ 5%] Building CXX object CMakeFiles/xmrig-amd.dir/src/crypto/CryptoNight.cpp.o

In file included from /Users/sparkso/Documents/xmrig-amd/src/crypto/CryptoNight.cpp:37:

In file included from /Users/sparkso/Documents/xmrig-amd/src/crypto/CryptoNight_x86.h:43:

/Users/sparkso/Documents/xmrig-amd/src/crypto/soft_aes.h:134:8: warning: inline variables are a C++17 extension [-Wc++17-extensions]

static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^

/Users/sparkso/Documents/xmrig-amd/src/crypto/soft_aes.h:134:24: error: redefinition of '__rord' as different kind of symbol static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/ia32intrin.h:425:20: note:

  expanded from macro '_rotr'

define _rotr(a,b) __rord((a), (b))

               ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/ia32intrin.h:398:1: note: previous definition is here rord(unsigned int X, int __C) { ^ In file included from /Users/sparkso/Documents/xmrig-amd/src/crypto/CryptoNight.cpp:37: In file included from /Users/sparkso/Documents/xmrig-amd/src/crypto/CryptoNight_x86.h:43: /Users/sparkso/Documents/xmrig-amd/src/crypto/soft_aes.h:134:39: error: expected ')' static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^

/Users/sparkso/Documents/xmrig-amd/src/crypto/soft_aes.h:134:24: note: to match this '(' static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/ia32intrin.h:425:27: note: expanded from macro '_rotr'

define _rotr(a,b) __rord((a), (b))

                      ^

`

Anyone seeing the same?

cmake version 3.19.2 xmrig-amd release 2.14.6

arifulhb commented 3 years ago

I am having the same error!

Scanning dependencies of target xmrig-asm
[  1%] Building ASM object CMakeFiles/xmrig-asm.dir/src/crypto/asm/cn_main_loop.S.o
[  2%] Building ASM object CMakeFiles/xmrig-asm.dir/src/crypto/asm/CryptonightR_template.S.o
[  4%] Linking C static library libxmrig-asm.a
[  4%] Built target xmrig-asm
Scanning dependencies of target xmrig-amd
[  5%] Building CXX object CMakeFiles/xmrig-amd.dir/src/amd/OclCache.cpp.o
[  7%] Building CXX object CMakeFiles/xmrig-amd.dir/src/amd/OclCLI.cpp.o
[  8%] Building CXX object CMakeFiles/xmrig-amd.dir/src/amd/OclCryptonightR_gen.cpp.o
[ 10%] Building CXX object CMakeFiles/xmrig-amd.dir/src/amd/OclGPU.cpp.o
[ 11%] Building CXX object CMakeFiles/xmrig-amd.dir/src/amd/OclLib.cpp.o
[ 12%] Building CXX object CMakeFiles/xmrig-amd.dir/src/api/NetworkState.cpp.o
[ 14%] Building CXX object CMakeFiles/xmrig-amd.dir/src/App.cpp.o
[ 15%] Building CXX object CMakeFiles/xmrig-amd.dir/src/base/io/Json.cpp.o
[ 17%] Building CXX object CMakeFiles/xmrig-amd.dir/src/base/io/Watcher.cpp.o
[ 18%] Building CXX object CMakeFiles/xmrig-amd.dir/src/base/kernel/Entry.cpp.o
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/base/kernel/Entry.cpp:82:56: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
        constexpr const char *v = OPENSSL_VERSION_TEXT + 8;
                                  ~~~~~~~~~~~~~~~~~~~~~^~~
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/base/kernel/Entry.cpp:82:56: note: use array indexing to silence this warning
        constexpr const char *v = OPENSSL_VERSION_TEXT + 8;
                                                       ^
                                  &                    [  ]
1 warning generated.
[ 20%] Building CXX object CMakeFiles/xmrig-amd.dir/src/base/kernel/Process.cpp.o
[ 21%] Building CXX object CMakeFiles/xmrig-amd.dir/src/base/kernel/Signals.cpp.o
[ 22%] Building CXX object CMakeFiles/xmrig-amd.dir/src/base/net/Pool.cpp.o
[ 24%] Building CXX object CMakeFiles/xmrig-amd.dir/src/base/net/Pools.cpp.o
[ 25%] Building CXX object CMakeFiles/xmrig-amd.dir/src/base/tools/Arguments.cpp.o
[ 27%] Building CXX object CMakeFiles/xmrig-amd.dir/src/base/tools/Handle.cpp.o
[ 28%] Building CXX object CMakeFiles/xmrig-amd.dir/src/base/tools/String.cpp.o
[ 30%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/config/CommonConfig.cpp.o
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/common/config/CommonConfig.cpp:153:56: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int]
        constexpr const char *v = OPENSSL_VERSION_TEXT + 8;
                                  ~~~~~~~~~~~~~~~~~~~~~^~~
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/common/config/CommonConfig.cpp:153:56: note: use array indexing to silence this warning
        constexpr const char *v = OPENSSL_VERSION_TEXT + 8;
                                                       ^
                                  &                    [  ]
1 warning generated.
[ 31%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/config/ConfigLoader.cpp.o
[ 32%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/config/ConfigWatcher.cpp.o
[ 34%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/Console.cpp.o
[ 35%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/cpu/BasicCpuInfo.cpp.o
[ 37%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/cpu/Cpu.cpp.o
[ 38%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/crypto/Algorithm.cpp.o
[ 40%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/crypto/keccak.cpp.o
[ 41%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/log/BasicLog.cpp.o
[ 42%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/log/ConsoleLog.cpp.o
[ 44%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/log/FileLog.cpp.o
[ 45%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/log/Log.cpp.o
[ 47%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/net/Client.cpp.o
[ 48%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/net/Job.cpp.o
[ 50%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/net/strategies/FailoverStrategy.cpp.o
[ 51%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/net/strategies/SinglePoolStrategy.cpp.o
[ 52%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/net/SubmitResult.cpp.o
[ 54%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/Platform.cpp.o
[ 55%] Building CXX object CMakeFiles/xmrig-amd.dir/src/core/Config.cpp.o
[ 57%] Building CXX object CMakeFiles/xmrig-amd.dir/src/core/Controller.cpp.o
[ 58%] Building CXX object CMakeFiles/xmrig-amd.dir/src/Mem.cpp.o
[ 60%] Building CXX object CMakeFiles/xmrig-amd.dir/src/net/Network.cpp.o
[ 61%] Building CXX object CMakeFiles/xmrig-amd.dir/src/net/strategies/DonateStrategy.cpp.o
[ 62%] Building CXX object CMakeFiles/xmrig-amd.dir/src/Summary.cpp.o
[ 64%] Building CXX object CMakeFiles/xmrig-amd.dir/src/workers/Handle.cpp.o
[ 65%] Building CXX object CMakeFiles/xmrig-amd.dir/src/workers/Hashrate.cpp.o
[ 67%] Building CXX object CMakeFiles/xmrig-amd.dir/src/workers/OclThread.cpp.o
[ 68%] Building CXX object CMakeFiles/xmrig-amd.dir/src/workers/OclWorker.cpp.o
[ 70%] Building CXX object CMakeFiles/xmrig-amd.dir/src/workers/Workers.cpp.o
[ 71%] Building CXX object CMakeFiles/xmrig-amd.dir/src/xmrig.cpp.o
[ 72%] Building CXX object CMakeFiles/xmrig-amd.dir/src/amd/OclCache_unix.cpp.o
[ 74%] Building CXX object CMakeFiles/xmrig-amd.dir/src/App_unix.cpp.o
[ 75%] Building CXX object CMakeFiles/xmrig-amd.dir/src/base/io/Json_unix.cpp.o
[ 77%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/Platform_mac.cpp.o
[ 78%] Building CXX object CMakeFiles/xmrig-amd.dir/src/Mem_unix.cpp.o
[ 80%] Building C object CMakeFiles/xmrig-amd.dir/src/crypto/c_groestl.c.o
[ 81%] Building C object CMakeFiles/xmrig-amd.dir/src/crypto/c_blake256.c.o
[ 82%] Building C object CMakeFiles/xmrig-amd.dir/src/crypto/c_jh.c.o
[ 84%] Building C object CMakeFiles/xmrig-amd.dir/src/crypto/c_skein.c.o
[ 85%] Building CXX object CMakeFiles/xmrig-amd.dir/src/crypto/CryptoNight.cpp.o
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight.cpp:37:
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:43:
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/soft_aes.h:134:8: warning: inline variables are a C++17 extension [-Wc++17-extensions]
static inline uint32_t _rotr(uint32_t value, uint32_t amount)
       ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/soft_aes.h:134:24: error: redefinition of '__rord' as different kind of symbol
static inline uint32_t _rotr(uint32_t value, uint32_t amount)
                       ^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/ia32intrin.h:425:20: note: expanded from macro '_rotr'
#define _rotr(a,b) __rord((a), (b))
                   ^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/ia32intrin.h:398:1: note: previous definition is here
__rord(unsigned int __X, int __C) {
^
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight.cpp:37:
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:43:
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/soft_aes.h:134:39: error: expected ')'
static inline uint32_t _rotr(uint32_t value, uint32_t amount)
                                      ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/soft_aes.h:134:24: note: to match this '('
static inline uint32_t _rotr(uint32_t value, uint32_t amount)
                       ^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/ia32intrin.h:425:27: note: expanded from macro '_rotr'
#define _rotr(a,b) __rord((a), (b))
                          ^
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight.cpp:37:
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:43:
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/soft_aes.h:134:24: error: expected expression
static inline uint32_t _rotr(uint32_t value, uint32_t amount)
                       ^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/ia32intrin.h:425:30: note: expanded from macro '_rotr'
#define _rotr(a,b) __rord((a), (b))
                             ^
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight.cpp:37:
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:43:
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/soft_aes.h:134:55: error: expected ')'
static inline uint32_t _rotr(uint32_t value, uint32_t amount)
                                                      ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/soft_aes.h:134:24: note: to match this '('
static inline uint32_t _rotr(uint32_t value, uint32_t amount)
                       ^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/ia32intrin.h:425:32: note: expanded from macro '_rotr'
#define _rotr(a,b) __rord((a), (b))
                               ^
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight.cpp:37:
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:43:
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/soft_aes.h:134:24: error: expected expression
static inline uint32_t _rotr(uint32_t value, uint32_t amount)
                       ^
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/ia32intrin.h:425:35: note: expanded from macro '_rotr'
#define _rotr(a,b) __rord((a), (b))
                                  ^
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight.cpp:37:
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:43:
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/soft_aes.h:134:62: error: expected ';' after top level declarator
static inline uint32_t _rotr(uint32_t value, uint32_t amount)
                                                             ^
                                                             ;
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight.cpp:37:
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:158:21: warning: use of function template name with no prior declaration in function call with explicit template arguments is a C++2a
      extension [-Wc++2a-extensions]
    __m128i xout1 = soft_aeskeygenassist<rcon>(*xout2);
                    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:162:14: error: use of undeclared identifier 'soft_aeskeygenassist'
    xout1  = soft_aeskeygenassist<0x00>(*xout0);
             ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:707:5: error: use of undeclared identifier 'extra_hashes'
    extra_hashes[ctx[0]->state[0] & 3](ctx[0]->state, 200, output);
    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:889:5: error: use of undeclared identifier 'extra_hashes'
    extra_hashes[ctx[0]->state[0] & 3](ctx[0]->state, 200, output);
    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:940:5: error: use of undeclared identifier 'extra_hashes'
    extra_hashes[ctx[0]->state[0] & 3](ctx[0]->state, 200, output);
    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:941:5: error: use of undeclared identifier 'extra_hashes'
    extra_hashes[ctx[1]->state[0] & 3](ctx[1]->state, 200, output + 32);
    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:1152:5: error: use of undeclared identifier 'extra_hashes'
    extra_hashes[ctx[0]->state[0] & 3](ctx[0]->state, 200, output);
    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:1153:5: error: use of undeclared identifier 'extra_hashes'
    extra_hashes[ctx[1]->state[0] & 3](ctx[1]->state, 200, output + 32);
    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:1323:9: error: use of undeclared identifier 'extra_hashes'
        extra_hashes[ctx[i]->state[0] & 3](ctx[i]->state, 200, output + 32 * i);
        ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:1396:9: error: use of undeclared identifier 'extra_hashes'
        extra_hashes[ctx[i]->state[0] & 3](ctx[i]->state, 200, output + 32 * i);
        ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:1477:9: error: use of undeclared identifier 'extra_hashes'
        extra_hashes[ctx[i]->state[0] & 3](ctx[i]->state, 200, output + 32 * i);
        ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:158:21: error: use of undeclared identifier 'soft_aeskeygenassist'
    __m128i xout1 = soft_aeskeygenassist<rcon>(*xout2);
                    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:177:16: note: in instantiation of function template specialization 'soft_aes_genkey_sub<'\x01'>' requested here
    SOFT_AES ? soft_aes_genkey_sub<0x01>(&xout0, &xout2) : aes_genkey_sub<0x01>(&xout0, &xout2);
               ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:312:5: note: in instantiation of function template specialization 'aes_genkey<false>' requested here
    aes_genkey<SOFT_AES>(input, &k0, &k1, &k2, &k3, &k4, &k5, &k6, &k7, &k8, &k9);
    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:572:5: note: in instantiation of function template specialization 'cn_explode_scratchpad<xmrig::CRYPTONIGHT, 2097152, false>'
      requested here
    cn_explode_scratchpad<ALGO, MEM, SOFT_AES>((__m128i*) ctx[0]->state, (__m128i*) ctx[0]->memory);
    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight.cpp:194:9: note: in instantiation of function template specialization
      'cryptonight_single_hash<xmrig::CRYPTONIGHT, false, xmrig::VARIANT_0>' requested here
        cryptonight_single_hash<CRYPTONIGHT, false, VARIANT_0>,
        ^
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight.cpp:37:
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:158:21: error: use of undeclared identifier 'soft_aeskeygenassist'
    __m128i xout1 = soft_aeskeygenassist<rcon>(*xout2);
                    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:181:16: note: in instantiation of function template specialization 'soft_aes_genkey_sub<'\x02'>' requested here
    SOFT_AES ? soft_aes_genkey_sub<0x02>(&xout0, &xout2) : aes_genkey_sub<0x02>(&xout0, &xout2);
               ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:312:5: note: in instantiation of function template specialization 'aes_genkey<false>' requested here
    aes_genkey<SOFT_AES>(input, &k0, &k1, &k2, &k3, &k4, &k5, &k6, &k7, &k8, &k9);
    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:572:5: note: in instantiation of function template specialization 'cn_explode_scratchpad<xmrig::CRYPTONIGHT, 2097152, false>'
      requested here
    cn_explode_scratchpad<ALGO, MEM, SOFT_AES>((__m128i*) ctx[0]->state, (__m128i*) ctx[0]->memory);
    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight.cpp:194:9: note: in instantiation of function template specialization
      'cryptonight_single_hash<xmrig::CRYPTONIGHT, false, xmrig::VARIANT_0>' requested here
        cryptonight_single_hash<CRYPTONIGHT, false, VARIANT_0>,
        ^
In file included from /Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight.cpp:37:
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:158:21: error: use of undeclared identifier 'soft_aeskeygenassist'
    __m128i xout1 = soft_aeskeygenassist<rcon>(*xout2);
                    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:185:16: note: in instantiation of function template specialization 'soft_aes_genkey_sub<'\x04'>' requested here
    SOFT_AES ? soft_aes_genkey_sub<0x04>(&xout0, &xout2) : aes_genkey_sub<0x04>(&xout0, &xout2);
               ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:312:5: note: in instantiation of function template specialization 'aes_genkey<false>' requested here
    aes_genkey<SOFT_AES>(input, &k0, &k1, &k2, &k3, &k4, &k5, &k6, &k7, &k8, &k9);
    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight_x86.h:572:5: note: in instantiation of function template specialization 'cn_explode_scratchpad<xmrig::CRYPTONIGHT, 2097152, false>'
      requested here
    cn_explode_scratchpad<ALGO, MEM, SOFT_AES>((__m128i*) ctx[0]->state, (__m128i*) ctx[0]->memory);
    ^
/Users/private/Dropbox/private/Blockchain/crypto/xmrig-amd/src/crypto/CryptoNight.cpp:194:9: note: in instantiation of function template specialization
      'cryptonight_single_hash<xmrig::CRYPTONIGHT, false, xmrig::VARIANT_0>' requested here
        cryptonight_single_hash<CRYPTONIGHT, false, VARIANT_0>,
bcheeves commented 3 years ago

Same issue is happening here with me on Catalina also. Here is as list of things that I've tried:

xmr-stak % gcc --version Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/c++/4.2.1

I tried creating a symlink to /usr/local/bin/gcc-10 as /usr/local/bin/gcc

enforce C++11

set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD 11)

this was after I found the following answer(s) on stackoverflow: https://stackoverflow.com/a/31010221

I also found this issue online, very similar, looks like someone else trying to compile a similar project. It seems like something is off with the aes code here, and trying to compile it on the latest Mac OS Catalina OS update or Big Sur apparently.

I'm curious if anybody else has found a solution yet?

The full make output when it fails (in my case) looks like: ` {code} % make Scanning dependencies of target xmr-stak-asm [ 2%] Building ASM object CMakeFiles/xmr-stak-asm.dir/xmrstak/backend/cpu/crypto/asm/cryptonight_v8_main_loop.S.o [ 5%] Building ASM object CMakeFiles/xmr-stak-asm.dir/xmrstak/backend/cpu/crypto/asm/cnR/CryptonightR_template.S.o [ 7%] Linking C static library bin/libxmr-stak-asm.a [ 7%] Built target xmr-stak-asm [ 10%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o [ 12%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o [ 15%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o [ 17%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o [ 20%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o [ 23%] Linking C static library bin/libxmr-stak-c.a [ 23%] Built target xmr-stak-c [ 25%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o [ 28%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/cpuType.cpp.o [ 30%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp.o In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6: In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:55: /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/soft_aes.hpp:116:8: warning: inline variables are a C++17 extension [-Wc++17-extensions] static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^ /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/soft_aes.hpp:116:24: error: redefinition of '__rord' as different kind of symbol static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^ /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/ia32intrin.h:425:20: note: expanded from macro '_rotr'

define _rotr(a,b) __rord((a), (b))

               ^

/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/ia32intrin.h:398:1: note: previous definition is here rord(unsigned int X, int __C) { ^ In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6: In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:55: /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/soft_aes.hpp:116:39: error: expected ')' static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^ /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/soft_aes.hpp:116:24: note: to match this '(' static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^ /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/ia32intrin.h:425:27: note: expanded from macro '_rotr'

define _rotr(a,b) __rord((a), (b))

                      ^

In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6: In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:55: /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/soft_aes.hpp:116:24: error: expected expression static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^ /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/ia32intrin.h:425:30: note: expanded from macro '_rotr'

define _rotr(a,b) __rord((a), (b))

                         ^

In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6: In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:55: /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/soft_aes.hpp:116:55: error: expected ')' static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^ /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/soft_aes.hpp:116:24: note: to match this '(' static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^ /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/ia32intrin.h:425:32: note: expanded from macro '_rotr'

define _rotr(a,b) __rord((a), (b))

                           ^

In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6: In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:55: /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/soft_aes.hpp:116:24: error: expected expression static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^ /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/ia32intrin.h:425:35: note: expanded from macro '_rotr'

define _rotr(a,b) __rord((a), (b))

                              ^

In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6: In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:55: /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/soft_aes.hpp:116:62: error: expected ';' after top level declarator static inline uint32_t _rotr(uint32_t value, uint32_t amount) ^ ; In file included from /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6: /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:562:8: error: explicit specialization of undeclared template struct 'GetOptimalSqrtType' struct GetOptimalSqrtType<1u> ^ ~~~~ /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:567:39: error: expected a qualified name after 'typename' using GetOptimalSqrtType_t = typename GetOptimalSqrtType::type; ^ /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:567:57: error: expected ';' after alias declaration using GetOptimalSqrtType_t = typename GetOptimalSqrtType::type; ^ ; /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:976:16: error: use of undeclared identifier 'keccak' REPEAT_1(11, CN_INIT, monero_const, conc_var, l0, ax0, bx0, idx0, ptr0, bx1, sqrt_result, ... ^ /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:976:16: warning: use of function template name with no prior declaration in function call with explicit template arguments is a C++2a extension [-Wc++2a-extensions] /Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:976:16: error: no matching function for call to 'assign' ...REPEAT_1(11, CN_INIT, monero_const, conc_var, l0, ax0, bx0, idx0, ptr0, bx1, sqrt_result, division_result_xmm, cn_r_data);


/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:940:37: note: expanded from macro
      'REPEAT_1'
#define REPEAT_1(n, f, ...) CN_EXEC(f, CN_ENUM_##n(0, __VA_ARGS__))
                            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:897:11: note: expanded from macro 'CN_EXEC'
        CN_DEFER(f)         \
        ~~~~~~~~~^~~~~~~~~~~~
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:889:23: note: expanded from macro
      'CN_DEFER'
#define CN_DEFER(...) __VA_ARGS__
                      ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:766:4: note: expanded from macro 'CN_INIT'
                        assign(sqrt_result, h0[13])...
                        ^~~~~~
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:575:13: note: candidate function not
      viable: no known conversion from 'GetOptimalSqrtType_t<N>' (aka 'GetOptimalSqrtType') to '__m128i &' for 1st
      argument
inline void assign(__m128i& output, const uint64_t input)
            ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:580:13: note: candidate function not
      viable: no known conversion from 'GetOptimalSqrtType_t<N>' (aka 'GetOptimalSqrtType') to 'uint64_t &'
      (aka 'unsigned long long &') for 1st argument
inline void assign(uint64_t& output, const uint64_t input)
            ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:585:13: note: candidate function not
      viable: no known conversion from 'GetOptimalSqrtType_t<N>' (aka 'GetOptimalSqrtType') to 'uint64_t &'
      (aka 'unsigned long long &') for 1st argument
inline void assign(uint64_t& output, const __m128i& input)
            ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:981:16: error: use of undeclared identifier
      'aes_round_bittube2'
                        REPEAT_1(9, CN_STEP1, monero_const, conc_var, l0, ax0, bx0, idx0, ptr0, cx, bx1);
                                    ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:982:16: warning: use of function template
      name with no prior declaration in function call with explicit template arguments is a C++2a extension
      [-Wc++2a-extensions]
                        REPEAT_1(7, CN_STEP2, monero_const, l0, ax0, bx0, idx0, ptr0, cx);
                                    ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:983:17: error: no matching function for
      call to 'assign'
  ...REPEAT_1(16, CN_STEP3, monero_const, l0, ax0, bx0, idx0, ptr0, lo, cl, ch, al0, ah0, cx, bx1, sqrt_result, division_result_xmm, cn_r_data);
     ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:940:37: note: expanded from macro
      'REPEAT_1'
#define REPEAT_1(n, f, ...) CN_EXEC(f, CN_ENUM_##n(0, __VA_ARGS__))
                            ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:897:11: note: expanded from macro 'CN_EXEC'
        CN_DEFER(f)         \
        ~~~~~~~~~^~~~~~~~~~~~
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:889:23: note: expanded from macro
      'CN_DEFER'
#define CN_DEFER(...) __VA_ARGS__
                      ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:819:2: note: expanded from macro 'CN_STEP3'
        CN_MONERO_V8_DIV(n, cx, sqrt_result, division_result_xmm, cl)...
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:686:3: note: expanded from macro
      'CN_MONERO_V8_DIV'
                assign(sqrt_result_tmp, sqrt_result)...
                ^~~~~~
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:580:13: note: candidate function not
      viable: no known conversion from 'GetOptimalSqrtType_t<N>' (aka 'GetOptimalSqrtType') to 'const uint64_t'
      (aka 'const unsigned long long') for 2nd argument
inline void assign(uint64_t& output, const uint64_t input)
            ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:585:13: note: candidate function not
      viable: no known conversion from 'GetOptimalSqrtType_t<N>' (aka 'GetOptimalSqrtType') to 'const __m128i'
      (vector of 2 'long long' values) for 2nd argument
inline void assign(uint64_t& output, const __m128i& input)
            ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:575:13: note: candidate function not
      viable: no known conversion from 'uint64_t' (aka 'unsigned long long') to '__m128i &' for 1st argument
inline void assign(__m128i& output, const uint64_t input)
            ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:983:17: error: use of undeclared identifier
      'int_sqrt33_1_double_precision'
                        REPEAT_1(16, CN_STEP3, monero_const, l0, ax0, bx0, idx0, ptr0, lo, cl, ch, al0, ah...
                                     ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:988:15: warning: use of function template
      name with no prior declaration in function call with explicit template arguments is a C++2a extension
      [-Wc++2a-extensions]
                REPEAT_1(0, CN_FINALIZE);
                            ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:988:15: error: use of undeclared identifier
      'keccakf'
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:988:15: error: use of undeclared identifier
      'extra_hashes'
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:1005:16: error: use of undeclared
      identifier 'keccak'
                REPEAT_2(11, CN_INIT, monero_const, conc_var, l0, ax0, bx0, idx0, ptr0, bx1, sqrt_result, ...
                             ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:1005:16: warning: use of function template
      name with no prior declaration in function call with explicit template arguments is a C++2a extension
      [-Wc++2a-extensions]
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:1005:16: error: no matching function for
      call to 'assign'
  ...REPEAT_2(11, CN_INIT, monero_const, conc_var, l0, ax0, bx0, idx0, ptr0, bx1, sqrt_result, division_result_xmm, cn_r_data);
     ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:942:10: note: expanded from macro
      'REPEAT_2'
        CN_EXEC(f, CN_ENUM_##n(0, __VA_ARGS__)); \
        ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:897:11: note: expanded from macro 'CN_EXEC'
        CN_DEFER(f)         \
        ~~~~~~~~~^~~~~~~~~~~~
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:889:23: note: expanded from macro
      'CN_DEFER'
#define CN_DEFER(...) __VA_ARGS__
                      ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:766:4: note: expanded from macro 'CN_INIT'
                        assign(sqrt_result, h0[13])...
                        ^~~~~~
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:575:13: note: candidate function not
      viable: no known conversion from 'GetOptimalSqrtType_t<N>' (aka 'GetOptimalSqrtType') to '__m128i &' for 1st
      argument
inline void assign(__m128i& output, const uint64_t input)
            ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:580:13: note: candidate function not
      viable: no known conversion from 'GetOptimalSqrtType_t<N>' (aka 'GetOptimalSqrtType') to 'uint64_t &'
      (aka 'unsigned long long &') for 1st argument
inline void assign(uint64_t& output, const uint64_t input)
            ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:585:13: note: candidate function not
      viable: no known conversion from 'GetOptimalSqrtType_t<N>' (aka 'GetOptimalSqrtType') to 'uint64_t &'
      (aka 'unsigned long long &') for 1st argument
inline void assign(uint64_t& output, const __m128i& input)
            ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:1005:16: error: use of undeclared
      identifier 'keccak'
                REPEAT_2(11, CN_INIT, monero_const, conc_var, l0, ax0, bx0, idx0, ptr0, bx1, sqrt_result, ...
                             ^
/Users/benners/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:1005:16: warning: use of function template
      name with no prior declaration in function call with explicit template arguments is a C++2a extension
      [-Wc++2a-extensions]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
6 warnings and 20 errors generated.
make[2]: *** [CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp.o] Error 1
make[1]: *** [CMakeFiles/xmr-stak-backend.dir/all] Error 2
make: *** [all] Error 2
`
Cmake -LA output looks like:

cmake -LA
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/benners/xmr-stak
-- Cache values
CMAKE_ADDR2LINE:FILEPATH=/usr/local/opt/llvm/bin/llvm-addr2line
CMAKE_AR:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ar
CMAKE_ASM_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/cc
CMAKE_ASM_COMPILER_AR:FILEPATH=/usr/local/opt/llvm/bin/llvm-ar
CMAKE_ASM_COMPILER_RANLIB:FILEPATH=/usr/local/opt/llvm/bin/llvm-ranlib
CMAKE_ASM_FLAGS:STRING=
CMAKE_ASM_FLAGS_DEBUG:STRING=-g
CMAKE_ASM_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
CMAKE_ASM_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
CMAKE_ASM_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_BUILD_TYPE:STRING=Release
CMAKE_COLOR_MAKEFILE:BOOL=ON
CMAKE_CXX_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/c++
CMAKE_CXX_FLAGS:STRING=
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_C_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/cc
CMAKE_C_FLAGS:STRING=
CMAKE_C_FLAGS_DEBUG:STRING=-g
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
CMAKE_DLLTOOL:FILEPATH=/usr/local/opt/llvm/bin/llvm-dlltool
CMAKE_EXE_LINKER_FLAGS:STRING=
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=
CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool
CMAKE_INSTALL_PREFIX:PATH=/Users/benners/xmr-stak
CMAKE_LINKER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ld
CMAKE_LINK_STATIC:BOOL=OFF
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
CMAKE_MODULE_LINKER_FLAGS:STRING=
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_NM:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/nm
CMAKE_OBJCOPY:FILEPATH=/usr/local/opt/llvm/bin/llvm-objcopy
CMAKE_OBJDUMP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/objdump
CMAKE_OSX_ARCHITECTURES:STRING=
CMAKE_OSX_DEPLOYMENT_TARGET:STRING=
CMAKE_OSX_SYSROOT:PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
CMAKE_RANLIB:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ranlib
CMAKE_READELF:FILEPATH=/usr/local/opt/llvm/bin/llvm-readelf
CMAKE_SHARED_LINKER_FLAGS:STRING=
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
CMAKE_SKIP_RPATH:BOOL=NO
CMAKE_STATIC_LINKER_FLAGS:STRING=
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
CMAKE_STRIP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/strip
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
CPU_ENABLE:BOOL=ON
CUDA_ENABLE:BOOL=OFF
EXECUTABLE_OUTPUT_PATH:STRING=bin
HWLOC:FILEPATH=/usr/local/lib/libhwloc.dylib
HWLOC_ENABLE:BOOL=ON
HWLOC_INCLUDE_DIR:PATH=/usr/local/include
LIBRARY_OUTPUT_PATH:STRING=bin
MHTD:FILEPATH=/usr/local/lib/libmicrohttpd.dylib
MICROHTTPD_ENABLE:BOOL=ON
MTHD_INCLUDE_DIR:PATH=/usr/local/include
OPENSSL_CRYPTO_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libcrypto.dylib
OPENSSL_INCLUDE_DIR:PATH=/usr/local/opt/openssl/include
OPENSSL_SSL_LIBRARY:FILEPATH=/usr/local/opt/openssl/lib/libssl.dylib
OpenCL_ENABLE:BOOL=ON
OpenCL_INCLUDE_DIR:PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenCL.framework
OpenCL_LIBRARY:FILEPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenCL.framework
OpenSSL_ENABLE:BOOL=ON
PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/local/bin/pkg-config
XMR-STAK_COMPILE:STRING=native

FWIW, it seems like some other users are reporting similar issues.
https://github.com/fireice-uk/xmr-stak/issues/2701
eprha commented 3 years ago

Needed to make it work, here's the patch i manage to come up with. Hope it helps. xmr-stak.patch.txt

wgbartley commented 3 years ago

Needed to make it work, here's the patch i manage to come up with. Hope it helps. xmr-stak.patch.txt

I got a little further with your patch suggestion. For starters, I added -DWITH_HTTPD=OFF to the cmake command (just to skip that warning). Then I replaced the lines in https://github.com/xmrig/xmrig-amd/blob/master/src/crypto/soft_aes.h#L133-L138 with:

static inline __m128i soft_aeskeygenassist(__m128i key, uint8_t rcon)
{
    uint32_t X1 = sub_word(_mm_cvtsi128_si32(_mm_shuffle_epi32(key, 0x55)));
}

That allowed it to compile. Then I tried to run the resulting ./xmrig-amd and received:

 * ABOUT        XMRig-AMD/2.14.6 clang/12.0.5
 * LIBS         libuv/1.41.0 OpenCL/1.2 OpenSSL/1.1.1k 
 * CPU          Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz x64 AES
 * ALGO         cryptonight, donate=5%
 * POOL #1      randomxmonero.usa-east.nicehash.com:3380 variant auto
 * COMMANDS     hashrate, pause, resume
[2021-05-20 23:27:00] compiling code and initializing GPUs. This will take a while...
[2021-05-20 23:27:00] found OpenCL GPU: Intel(R) UHD Graphics 630, cu: 24
[2021-05-20 23:27:00] found OpenCL GPU: AMD Radeon Pro 560X Compute Engine, cu: 16
[2021-05-20 23:27:00] #00, GPU #01 AMD Radeon Pro 560X Compute Engine, i:192 (8/256), si:2/2, u:8, cu:16
[2021-05-20 23:27:00]              0.37/1.00/4 GB
[2021-05-20 23:27:00] GPU #1 compiling...
[2021-05-20 23:27:03] Error CL_BUILD_PROGRAM_FAILURE when calling clBuildProgram.
Build log:
Error returned by cvms_element_build_from_source
[2021-05-20 23:27:03] Failed to start threads.

Closer?