-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Compile error on xmr-stak-rx for OS X Big Sur 11.1 #2701
Comments
had
read |
Description Operating System Hardware Overview
Graphics/Displays
Steps
Output
Additional Information
Reference Material Software Versions
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 |
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
but I´m using gcc-10 |
Experiencing build errors on macOS Big Sur 11.2. ENVIRONMENT & HARDWARE uname -a system_profiler SPHardwareDataType
COMPILE OUTPUT ERRORS cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=ON
username@computername xmr-stak % make install
Output from CMAKE -LA running in same directory as build: username@computername xmr-stak % cmake -LA
|
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). |
Great to hear @nsklaus - could you please paste all instructions to compile it correctly ? |
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:
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. |
Thank you for explanation @nsklaus - did you get such a low H/s because it was CPU only mining? |
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. |
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 |
to work around |
...
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
Additional information.
Feel free to add more information.
The text was updated successfully, but these errors were encountered: