-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling error on Big Sur #291
Comments
I am having the same error!
|
Same issue is happening here with me on Catalina also.
xmr-stak % type gcc xmr-stak % which gcc xmr-stak % gcc --version I tried creating a symlink to /usr/local/bin/gcc-10 as /usr/local/bin/gcc
enforce C++11set(CMAKE_CXX_STANDARD_REQUIRED ON) this was after I found the following answer(s) on stackoverflow:
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: cmake -LA -- Configuring done FWIW, it seems like some other users are reporting similar issues. |
Needed to make it work, here's the patch i manage to come up with. Hope it helps. |
I got a little further with your patch suggestion. For starters, I added
That allowed it to compile. Then I tried to run the resulting
Closer? |
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:
#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
The text was updated successfully, but these errors were encountered: