Open matteodelv opened 7 years ago
in util.c
find
CLOCK_MONOTONIC
and change this first found line to
#if defined(CLOCK_MONOTONIC) && !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(WIN32)
I was able to pass that error using your suggestion but then I received:
Undefined symbols for architecture x86_64: "_change_gpusettings", referenced from: _manage_gpu in gatelessgate-driver-opencl.o "_clear_adl", referenced from: quit in gatelessgate-gatelessgate.o _current_pool in gatelessgate-gatelessgate.o mutex_unlock in gatelessgate-gatelessgate.o _app_restart in gatelessgate-gatelessgate.o _stale_work in gatelessgate-gatelessgate.o _gen_stratum_work_eth in gatelessgate-gatelessgate.o _gen_stratum_work_cn in gatelessgate-gatelessgate.o ... "_init_adl", referenced from: _opencl_detect in gatelessgate-driver-opencl.o "_lyra2rehash", referenced from: _lyra2re_test in gatelessgate-lyra2re.o _lyra2re_regenhash in gatelessgate-lyra2re.o _scanhash_lyra2re in gatelessgate-lyra2re.o "_lyra2rev2hash", referenced from: _lyra2rev2_test in gatelessgate-lyra2rev2.o _lyra2rev2_regenhash in gatelessgate-lyra2rev2.o _scanhash_lyra2rev2 in gatelessgate-lyra2rev2.o "_pluckrehash", referenced from: _pluck_test in gatelessgate-pluck.o _pluck_regenhash in gatelessgate-pluck.o _scanhash_pluck in gatelessgate-pluck.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
If you remove ADL header files from ADL_SDK, reconfigure, and run make it will compile.
Hi everyone, I'd like to tell you about an error during compiling on Mac 10.12.3. Basically, I downloaded the git repo, updated submodules, did autoreconf and config without any problems. I used this command:
CFLAGS="-O2 -march=native -std=gnu99" ./configure
And this is its output:
The problem occurs when I issue
make
command... Even though there are some warnings aboutADL
orsgmins.c
, I get the following error which causes the compilation to fail:After some research online, it seems that
TIMER_ABSTIME
andclock_nanosleep
are not supported on Mac OS but just on Linux. Some functions, likeclock_gettime
, have been introduced since Mac 10.12 (as stated intime.h
). Is there a way to solve this and compile this version of sgminer on Mac OS? Someone advised to use Mach Time as a workaround but I really don't know how to deal with it. Hope someone could figure this out. Thanks for the help and for your work!