xmr-stak icon indicating copy to clipboard operation
xmr-stak copied to clipboard

Compile error on xmr-stak-rx for OS X Big Sur 11.1

Open markacastellano opened this issue 3 years ago • 13 comments

... are the placeholder for your answers. Please answer each question!

Describe the bug A clear and concise description of what the bug is. I am trying to build xmr-stak-rx on my Mac-Mini late 2014 dual-core i5 8GB RAM device and it is throwing an error.

**Which operating system do you use? ** I am using current OS X Big Sur 11.1 release.

...

To Reproduce make install

I am receiving these errors:

[ 68%] Building CXX object CMakeFiles/xmr-stak-rx-backend.dir/xmrstak/http/httpd.cpp.o In file included from /Users/mark.a.castellano/xmr-stak/xmrstak/http/httpd.cpp:28: In file included from /Users/mark.a.castellano/xmr-stak/./xmrstak/jconf.hpp:4: In file included from /Users/mark.a.castellano/xmr-stak/./xmrstak/misc/coinDescription.hpp:3: /Users/mark.a.castellano/xmr-stak/./xmrstak/backend/cryptonight.hpp:44:13: warning: result of comparison of constant 1000 with expression of type 'xmrstak_algo_id' is always true [-Wtautological-constant-out-of-range-compare] if(algo_id < start_derived_algo_id) ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~ /Users/mark.a.castellano/xmr-stak/xmrstak/http/httpd.cpp:160:6: error: no matching function for call to 'MHD_start_daemon' d = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION, ^~~~~~~~~~~~~~~~ /usr/local/include/microhttpd.h:2425:1: note: candidate function not viable: no known conversion from 'int (*)(void *, MHD_Connection *, const char *, const char *, const char *, const char *, size_t , void **)' (aka 'int ()(void *, MHD_Connection *, const char *, const char *, const char *, const char *, unsigned long , void **)') to 'MHD_AccessHandlerCallback' (aka 'MHD_Result ()(void *, MHD_Connection *, const char *, const char *, const char *, const char *, unsigned long *, void **)') for 5th argument MHD_start_daemon (unsigned int flags, ^ 1 warning and 1 error generated. make[2]: *** [CMakeFiles/xmr-stak-rx-backend.dir/xmrstak/http/httpd.cpp.o] Error 1 make[1]: *** [CMakeFiles/xmr-stak-rx-backend.dir/all] Error 2 make: *** [all] Error 2

# Please post all commands and the output.

make install

I am receiving these errors:

[ 68%] Building CXX object CMakeFiles/xmr-stak-rx-backend.dir/xmrstak/http/httpd.cpp.o
In file included from /Users/mark.a.castellano/xmr-stak/xmrstak/http/httpd.cpp:28:
In file included from /Users/mark.a.castellano/xmr-stak/./xmrstak/jconf.hpp:4:
In file included from /Users/mark.a.castellano/xmr-stak/./xmrstak/misc/coinDescription.hpp:3:
/Users/mark.a.castellano/xmr-stak/./xmrstak/backend/cryptonight.hpp:44:13: warning: 
      result of comparison of constant 1000 with expression of type
      'xmrstak_algo_id' is always true
      [-Wtautological-constant-out-of-range-compare]
        if(algo_id < start_derived_algo_id)
           ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
/Users/mark.a.castellano/xmr-stak/xmrstak/http/httpd.cpp:160:6: error: no
      matching function for call to 'MHD_start_daemon'
        d = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION,
            ^~~~~~~~~~~~~~~~
/usr/local/include/microhttpd.h:2425:1: note: candidate function not viable: no
      known conversion from 'int (*)(void *, MHD_Connection *, const char *,
      const char *, const char *, const char *, size_t *, void **)' (aka 'int
      (*)(void *, MHD_Connection *, const char *, const char *, const char *,
      const char *, unsigned long *, void **)') to 'MHD_AccessHandlerCallback'
      (aka 'MHD_Result (*)(void *, MHD_Connection *, const char *, const char *,
      const char *, const char *, unsigned long *, void **)') for 5th argument
MHD_start_daemon (unsigned int flags,
^
1 warning and 1 error generated.
make[2]: *** [CMakeFiles/xmr-stak-rx-backend.dir/xmrstak/http/httpd.cpp.o] Error 1
make[1]: *** [CMakeFiles/xmr-stak-rx-backend.dir/all] Error 2
make: *** [all] Error 2
...

Additional information.

# run `cmake -LA .` in the build folder and add the output here
...
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/mark.a.castellano/xmr-stak
-- Cache values
CMAKE_ADDR2LINE:FILEPATH=CMAKE_ADDR2LINE-NOTFOUND
CMAKE_AR:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ar
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=CMAKE_DLLTOOL-NOTFOUND
CMAKE_EXECUTABLE_FORMAT:STRING=MACHO
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/mark.a.castellano/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=CMAKE_OBJCOPY-NOTFOUND
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/MacOSX11.1.sdk
CMAKE_RANLIB:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ranlib
CMAKE_READELF:FILEPATH=CMAKE_READELF-NOTFOUND
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=OFF
OpenSSL_ENABLE:BOOL=ON
PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/local/bin/pkg-config
XMR-STAK_COMPILE:STRING=native

Feel free to add more information.

..I have looked on the internet and hard this is a know issue for building XMR-Stak-rx on Max OS X on 10+ releases.  If so, will this be fixed?

markacastellano avatar Dec 22 '20 15:12 markacastellano

hard

had

hard

read

markacastellano avatar Dec 22 '20 15:12 markacastellano

Description I am running into similar issues trying to build xmr-stak-rx on my MacBook Pro Retina.

Operating System MacOS High Sierra 10.13.6

Hardware Overview

  Model Name:	MacBook Pro
  Model Identifier:	MacBookPro10,1
  Processor Name:	Intel Core i7
  Processor Speed:	2.3 GHz
  Number of Processors:	1
  Total Number of Cores:	4
  L2 Cache (per Core):	256 KB
  L3 Cache:	6 MB
  Memory:	8 GB

Graphics/Displays

NVIDIA GeForce GT 650M:

  Chipset Model:	NVIDIA GeForce GT 650M
  Type:	GPU
  Bus:	PCIe
  PCIe Lane Width:	x8
  VRAM (Dynamic, Max):	1024 MB
  Vendor:	NVIDIA (0x10de)
  Device ID:	0x0fd5
  Revision ID:	0x00a2
  ROM Revision:	3688
  Automatic Graphics Switching:	Supported
  gMux Version:	3.2.19 [3.2.8]
  Metal:	Supported, feature set macOS GPUFamily1 v3

Steps

  1. I updated xcode https://developer.apple.com/download/more/ https://developer.apple.com/documentation/xcode-release-notes/xcode-10_1-release-notes

  2. I brewed several tools prior to building the miner

brew install --build-from-source hwloc
brew install --build-from-source libmicrohttpd
brew install --build-from-source gcc
brew install --build-from-source [email protected]
brew install --build-from-source cmake
  1. Grabbed the code
MacBook-Pro:workspace chris$ gh repo clone fireice-uk/xmr-stak
Cloning into xmr-stak...
remote: Enumerating objects: 9247, done.
remote: Total 9247 (delta 0), reused 0 (delta 0), pack-reused 9247
Receiving objects: 100% (9247/9247), 5.28 MiB | 7.79 MiB/s, done.
Resolving deltas: 100% (6599/6599), done.
  1. Performed cmake pointing at location of openssl built in step#2 cmake . -DOPENSSL_ROOT_DIR=/usr/bin/openssl -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF

Output

MacBook-Pro:xmr-stak-master chris$ make install
[  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
[  8%] Linking C static library bin/libxmr-stak-asm.a
[  8%] Built target xmr-stak-asm
[ 11%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o
[ 14%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o
[ 17%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o
[ 20%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o
[ 23%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o
[ 26%] Linking C static library bin/libxmr-stak-c.a
[ 26%] Built target xmr-stak-c
[ 29%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o
[ 32%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/cpuType.cpp.o
[ 35%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp.o
[ 38%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cn_gpu_avx.cpp.o
[ 41%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cn_gpu_ssse3.cpp.o
[ 44%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o
[ 47%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o
[ 50%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o
[ 52%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o
[ 55%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o
[ 58%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o
/Users/chris/workspace/xmr-stak-master/xmrstak/http/httpd.cpp:160:6: error: no matching function
      for call to 'MHD_start_daemon'
        d = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION,
            ^~~~~~~~~~~~~~~~
/usr/local/include/microhttpd.h:2440:1: note: candidate function not viable: no known conversion
      from 'int (*)(void *, MHD_Connection *, const char *, const char *, const char *, const
      char *, size_t *, void **)' (aka 'int (*)(void *, MHD_Connection *, const char *, const
      char *, const char *, const char *, unsigned long *, void **)') to
      'MHD_AccessHandlerCallback' (aka 'MHD_Result (*)(void *, MHD_Connection *, const char *,
      const char *, const char *, const char *, unsigned long *, void **)') for 5th argument
MHD_start_daemon (unsigned int flags,
^
1 error generated.
make[2]: *** [CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o] Error 1
make[1]: *** [CMakeFiles/xmr-stak-backend.dir/all] Error 2
make: *** [all] Error 2

Additional Information

  1. run cmake -LA . in the build folder and add the output here
MacBook-Pro:xmr-stak chris$ cmake -LA .
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
CMake Error at CMakeLists.txt:250 (message):
  CUDA NOT found: use `-DCUDA_ENABLE=OFF` to build without NVIDIA GPU support


-- Configuring incomplete, errors occurred!
See also "/Users/chris/workspace/xmr-stak/CMakeFiles/CMakeOutput.log".
-- Cache values
CMAKE_ADDR2LINE:FILEPATH=CMAKE_ADDR2LINE-NOTFOUND
CMAKE_AR:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ar
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=CMAKE_DLLTOOL-NOTFOUND
CMAKE_EXECUTABLE_FORMAT:STRING=MACHO
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/chris/workspace/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=CMAKE_OBJCOPY-NOTFOUND
CMAKE_OBJDUMP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/objdump
CMAKE_OSX_ARCHITECTURES:STRING=
CMAKE_OSX_DEPLOYMENT_TARGET:STRING=
CMAKE_OSX_SYSROOT:STRING=
CMAKE_RANLIB:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ranlib
CMAKE_READELF:FILEPATH=CMAKE_READELF-NOTFOUND
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
CUDA_64_BIT_DEVICE_CODE:BOOL=ON
CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE:BOOL=ON
CUDA_BUILD_CUBIN:BOOL=OFF
CUDA_BUILD_EMULATION:BOOL=OFF
CUDA_CUDART_LIBRARY:FILEPATH=CUDA_CUDART_LIBRARY-NOTFOUND
CUDA_CUDA_LIBRARY:FILEPATH=CUDA_CUDA_LIBRARY-NOTFOUND
CUDA_ENABLE:BOOL=ON
CUDA_GENERATED_OUTPUT_DIR:PATH=
CUDA_HOST_COMPILATION_CPP:BOOL=ON
CUDA_HOST_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/clang
CUDA_NVCC_EXECUTABLE:FILEPATH=CUDA_NVCC_EXECUTABLE-NOTFOUND
CUDA_NVCC_FLAGS:STRING=
CUDA_NVCC_FLAGS_DEBUG:STRING=
CUDA_NVCC_FLAGS_MINSIZEREL:STRING=
CUDA_NVCC_FLAGS_RELEASE:STRING=
CUDA_NVCC_FLAGS_RELWITHDEBINFO:STRING=
CUDA_PROPAGATE_HOST_FLAGS:BOOL=ON
CUDA_SDK_ROOT_DIR:PATH=CUDA_SDK_ROOT_DIR-NOTFOUND
CUDA_SEPARABLE_COMPILATION:BOOL=OFF
CUDA_TOOLKIT_INCLUDE:PATH=CUDA_TOOLKIT_INCLUDE-NOTFOUND
CUDA_VERBOSE_BUILD:BOOL=OFF
CUDA_cublas_LIBRARY:FILEPATH=CUDA_cublas_LIBRARY-NOTFOUND
CUDA_cublasemu_LIBRARY:FILEPATH=CUDA_cublasemu_LIBRARY-NOTFOUND
CUDA_cufft_LIBRARY:FILEPATH=CUDA_cufft_LIBRARY-NOTFOUND
CUDA_cufftemu_LIBRARY:FILEPATH=CUDA_cufftemu_LIBRARY-NOTFOUND
XMR-STAK_COMPILE:STRING=native
  1. Environment
MacBook-Pro:~ chris$ uname -a
Darwin MacBook-Pro.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64

Reference Material https://www.reddit.com/r/XmrStak/comments/cmbzou/xmrstakmaster_and_mac_os/ https://www.gnu.org/software/libmicrohttpd/manual/

Software Versions

hwloc (2.4.0)
libmicrohttpd (0.9.72)
gcc (4.2.1)
[email protected]  (LibreSSL 2.2.7)
cmake (3.19.4)
xcode (10.1)

My Guess

There is an issue with the arguments in the call to bool httpd::start_daemon() in httpd.cpp as it includes to microhttpd.h

ckenyeres avatar Feb 04 '21 21:02 ckenyeres

hi @ckenyeres I was able to solve the microhttpd error by downloading this header.

https://github.com/scottjg/libmicrohttpd/blob/master/src/include/microhttpd.h

the error I got afterwards is

ld: unknown option: -march=native

but I´m using gcc-10

zeitos avatar Feb 08 '21 22:02 zeitos

Experiencing build errors on macOS Big Sur 11.2.

ENVIRONMENT & HARDWARE

uname -a Darwin 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64

system_profiler SPHardwareDataType

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro16,4
      Processor Name: 8-Core Intel Core i9
      Processor Speed: 2.4 GHz
      Number of Processors: 1
      Total Number of Cores: 8
      L2 Cache (per Core): 256 KB
      L3 Cache: 16 MB
      Hyper-Threading Technology: Enabled
      Memory: 64 GB
      System Firmware Version: 1554.80.3.0.0 (iBridge: 18.16.14346.0.0,0)

COMPILE OUTPUT ERRORS

cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=ON

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/username/Downloads/xmr-stak

username@computername xmr-stak % make install

[  7%] Built target xmr-stak-asm
[ 23%] Built target xmr-stak-c
[ 25%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp.o
In file included from /Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6:
In file included from /Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:55:
/Users/username/Downloads/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/username/Downloads/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)
                       ^
/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/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6:
In file included from /Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:55:
/Users/username/Downloads/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/username/Downloads/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)
                       ^
/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))
                          ^
In file included from /Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6:
In file included from /Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:55:
/Users/username/Downloads/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)
                       ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6:
In file included from /Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:55:
/Users/username/Downloads/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/username/Downloads/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)
                       ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6:
In file included from /Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:55:
/Users/username/Downloads/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)
                       ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6:
In file included from /Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:55:
/Users/username/Downloads/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/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/CryptonightR_gen.cpp:6:
/Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:562:8: error: 
      explicit specialization of undeclared template struct 'GetOptimalSqrtType'
struct GetOptimalSqrtType<1u>
       ^                 ~~~~
/Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:567:39: error: 
      expected a qualified name after 'typename'
using GetOptimalSqrtType_t = typename GetOptimalSqrtType<N>::type;
                                      ^
/Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:567:57: error: 
      expected ';' after alias declaration
using GetOptimalSqrtType_t = typename GetOptimalSqrtType<N>::type;
                                                        ^
                                                        ;
/Users/username/Downloads/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, b...
                             ^
/Users/username/Downloads/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/username/Downloads/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/username/Downloads/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/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:897:11: note: 
      expanded from macro 'CN_EXEC'
        CN_DEFER(f)         \
        ~~~~~~~~~^~~~~~~~~~~~
/Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:889:23: note: 
      expanded from macro 'CN_DEFER'
#define CN_DEFER(...) __VA_ARGS__
                      ^
/Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:766:4: note: 
      expanded from macro 'CN_INIT'
                        assign(sqrt_result, h0[13])...
                        ^~~~~~
/Users/username/Downloads/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/username/Downloads/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/username/Downloads/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/username/Downloads/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...
                                    ^
/Users/username/Downloads/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...
                                    ^
/Users/username/Downloads/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/username/Downloads/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/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:897:11: note: 
      expanded from macro 'CN_EXEC'
        CN_DEFER(f)         \
        ~~~~~~~~~^~~~~~~~~~~~
/Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:889:23: note: 
      expanded from macro 'CN_DEFER'
#define CN_DEFER(...) __VA_ARGS__
                      ^
/Users/username/Downloads/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/username/Downloads/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/username/Downloads/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/username/Downloads/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/username/Downloads/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/username/Downloads/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, bx...
                                     ^
/Users/username/Downloads/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/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:988:15: error: 
      use of undeclared identifier 'keccakf'
/Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:988:15: error: 
      use of undeclared identifier 'extra_hashes'
/Users/username/Downloads/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, b...
                             ^
/Users/username/Downloads/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/username/Downloads/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/username/Downloads/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/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:897:11: note: 
      expanded from macro 'CN_EXEC'
        CN_DEFER(f)         \
        ~~~~~~~~~^~~~~~~~~~~~
/Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:889:23: note: 
      expanded from macro 'CN_DEFER'
#define CN_DEFER(...) __VA_ARGS__
                      ^
/Users/username/Downloads/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_aesni.h:766:4: note: 
      expanded from macro 'CN_INIT'
                        assign(sqrt_result, h0[13])...
                        ^~~~~~
/Users/username/Downloads/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/username/Downloads/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/username/Downloads/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/username/Downloads/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, b...
                             ^
/Users/username/Downloads/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

Output from CMAKE -LA running in same directory as build:

username@computername xmr-stak % 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/mhedhli/Downloads/xmr-stak
-- Cache values
CMAKE_ADDR2LINE:FILEPATH=CMAKE_ADDR2LINE-NOTFOUND
CMAKE_AR:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar
CMAKE_ASM_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
CMAKE_ASM_COMPILER_AR:FILEPATH=CMAKE_ASM_COMPILER_AR-NOTFOUND
CMAKE_ASM_COMPILER_RANLIB:FILEPATH=CMAKE_ASM_COMPILER_RANLIB-NOTFOUND
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=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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=CMAKE_DLLTOOL-NOTFOUND
CMAKE_EXECUTABLE_FORMAT:STRING=MACHO
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/mhedhli/Downloads/xmr-stak
CMAKE_LINKER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm
CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND
CMAKE_OBJDUMP:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump
CMAKE_OSX_ARCHITECTURES:STRING=
CMAKE_OSX_DEPLOYMENT_TARGET:STRING=
CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
CMAKE_RANLIB:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib
CMAKE_READELF:FILEPATH=CMAKE_READELF-NOTFOUND
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=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenCL.framework
OpenCL_LIBRARY:FILEPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/OpenCL.framework
OpenSSL_ENABLE:BOOL=ON
PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/local/bin/pkg-config
XMR-STAK_COMPILE:STRING=native

Mahdi-GoVanguard avatar Feb 10 '21 17:02 Mahdi-GoVanguard

for what it's worth, i got it compiled and working, on macos 11.3 beta 2 (using macports instead of homebrew, and the microhttpd.h linked above).

nsklaus avatar Mar 01 '21 19:03 nsklaus

Great to hear @nsklaus - could you please paste all instructions to compile it correctly ?

dariusz22p avatar Mar 07 '21 12:03 dariusz22p

nothing special, i probably didn't use cmake, i think i just provided required deps using macports, my terminal set to use rosetta2 globaly (get info, use rosetta2, on term) then plain make install. from memory it did fail toward the end, complaining about starting service, like others have reported above:

 error: no matching function
      for call to 'MHD_start_daemon'
        d = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION,

then i manualy copied over the microhttpd.h at the same path macport did install libmicrohttpd includes, overwriting the previous one, then compilation was able to finish normaly. i've deleted it all since then, it's not worth it, unless you have access to free electricity and spare computers that you can burn up for the task. on my laptop, at 0.6khs running 24/7 i would get 1 euro per month. most pools i've checked will only pay you every 0.3 mined monero. that's a lot of calculations and heat for very small reward. by the way, i was able to test both xmrig and xmr-stak. both worked, on macos 11.3 beta2 at the time, but as i was saying the rewards i calculated that i could expect didn't impress me.

nsklaus avatar Mar 07 '21 16:03 nsklaus

Thank you for explanation @nsklaus - did you get such a low H/s because it was CPU only mining? Is it possible to get XMR-STACK running on Big Sur (to run on GPU) ? Some people on YT clain they get 20MH/s on 16" MAC , but from what I can see it's on Boot Camp.

dariusz22p avatar Mar 08 '21 15:03 dariusz22p

i just wanted to try it. yes it was running on cpu only mode. i don't know if it's possible to have it running on gpu, especialy with M1. initialy it was running at 1.2Kh/s but the laptop was getting too much load and heat for my taste, thinking to let it run 24/7 that way. i capped it half speed myself. i talked with other folks on the mining pool discord, my score seemed average.

20Mh/s on the other hand, that seems too high, comparing with what i saw on 3 different hardware/os (mac and linux). you're sure you didn't mean 20Kh/s instead? that would still be 20times faster from my cpu only test, that would be already quite high. at that speed maybe the rewards may seem more worthy.. but 20Mh/s i doubt that score is correct.

nsklaus avatar Mar 08 '21 17:03 nsklaus

I didn't manange to run on GPU as yet, but came accress Justin Berken video on youtube "Ethereum Mining on MacBook Pro in 2020" where he present 20 Mh/s mining ETH

dariusz22p avatar Mar 09 '21 07:03 dariusz22p

https://www.youtube.com/watch?v=9PhS87HPVQc

dariusz22p avatar Mar 09 '21 07:03 dariusz22p

@dariusz22p .. you try it, and if you succeed at making 20Mhs on monero mining with your macbookpro cpu, be sure to ping me :)

nsklaus avatar Mar 11 '21 19:03 nsklaus

to work around MHD_start_daemon error, you can disable microhttpd using : -DMICROHTTPD_ENABLE=OFF

antt001 avatar Apr 10 '21 18:04 antt001