Open Jonathan-Rosewood opened 7 years ago
same here
tried today, got same error :c
same pb
This seems to be a linux-specific function not implemented in Mac OSX:
https://stackoverflow.com/questions/11680461/monotonic-clock-on-osx
that was fixed as of cgminer v4.10.0:
https://github.com/ckolivas/cgminer/commit/a40cb506754171548681294a5a4f848bc6f0acc3
A quick and dirty fix to the existing v4.9.1 brew formula would be adding the following, which seems to compile correctly:
inreplace "util.c", "#if defined(CLOCK_MONOTONIC) && !defined(FreeBSD)", "#if defined(CLOCK_MONOTONIC) && !defined(FreeBSD) && !defined(APPLE)"
On the other hand it may be worthwhile to switch to v4.10.0 as it fixes this and more. However, while v4.10.0 compiles successfully, I get a segfault when writing to a cgminer config file with --enable-icarus. No trouble reading config files with or without --enable-icarus and everything else seems to work fine when enabled.
If I had to guess, possibly something with JSON parsing of --icarus-options and/or --icarus-timing, but haven't dug into it beyond confirming it as the problem setting. I assume it is widely used, so perhaps make it optional w/ segfault detail mentioned as caveat until someone identifies the cause or if it's something particular to my setup?