tried my first time to compile cgminer on my mac with osx 10.9.
this is my configuration:
------------------------------------------------------------------------
cgminer 3.8.2
------------------------------------------------------------------------
Configuration Options Summary:
libcurl(GBT+getwork).: Enabled: -L/opt/local/lib -lcurl
curses.TUI...........: FOUND: -lncurses
Avalon.ASICs.........: Enabled
BlackArrow.ASICs.....: Enabled
BFL.ASICs............: Enabled
BitForce.FPGAs.......: Enabled
BitFury.ASICs........: Enabled
Hashfast.ASICs.......: Disabled
Icarus.ASICs/FPGAs...: Enabled
Klondike.ASICs.......: Enabled
KnC.ASICs............: Disabled
ModMiner.FPGAs.......: Enabled
Compilation............: make (or gmake)
CPPFLAGS.............:
CFLAGS...............: -g -O2
LDFLAGS..............: -framework CoreFoundation -framework IOKit
LDADD................: -ldl -L/opt/local/lib -lcurl compat/jansson-2.5/src/.libs/libjansson.a -lpthread -lm compat/libusb-1.0/libusb/.libs/libusb-1.0.a -lobjc
Installation...........: make install (as root if needed, with 'su' or 'sudo')
prefix...............: /usr/local
and i got these warnings:
CC cgminer-api.o
api.c:1136:6: warning: format specifies type 'long' but the argument has type '__darwin_suseconds_t' (aka 'int') [-Wformat]
((struct timeval *)(root->data))->tv_usec);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^
1 warning generated.
CC cgminer-driver-bflsc.o
driver-bflsc.c:836:29: warning: implicit conversion from 'double' to 'unsigned int' changes value from 71.58 to 71 [-Wliteral-conversion]
sc_info->default_ms_work = BAS_WORK_TIME;
~ ^~~~~~~~~~~~~
./driver-bflsc.h:313:23: note: expanded from macro 'BAS_WORK_TIME'
#define BAS_WORK_TIME 71.58
^~~~~
driver-bflsc.c:846:30: warning: implicit conversion from 'double' to 'unsigned int' changes value from 71.58 to 71 [-Wliteral-conversion]
sc_info->default_ms_work = BAM_WORK_TIME;
~ ^~~~~~~~~~~~~
./driver-bflsc.h:312:23: note: expanded from macro 'BAM_WORK_TIME'
#define BAM_WORK_TIME 71.58
^~~~~
driver-bflsc.c:853:31: warning: implicit conversion from 'double' to 'unsigned int' changes value from 954.4400000000001 to 954 [-Wliteral-conversion]
sc_info->default_ms_work = BAJ_WORK_TIME;
~ ^~~~~~~~~~~~~
./driver-bflsc.h:317:23: note: expanded from macro 'BAJ_WORK_TIME'
#define BAJ_WORK_TIME 954.44
^~~~~~
driver-bflsc.c:859:31: warning: implicit conversion from 'double' to 'unsigned int' changes value from 143.17 to 143 [-Wliteral-conversion]
sc_info->default_ms_work = BAL_WORK_TIME;
~ ^~~~~~~~~~~~~
./driver-bflsc.h:315:23: note: expanded from macro 'BAL_WORK_TIME'
#define BAL_WORK_TIME 143.17
^~~~~~
4 warnings generated.
CC cgminer-driver-icarus.o
driver-icarus.c:1163:21: warning: format specifies type 'long' but the argument has type '__darwin_suseconds_t' (aka 'int') [-Wformat]
elapsed.tv_sec, elapsed.tv_usec);
^~~~~~~~~~~~~~~
./logging.h:39:42: note: expanded from macro 'applog'
snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
^
/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
^
driver-icarus.c:1199:20: warning: format specifies type 'long' but the argument has type '__darwin_suseconds_t' (aka 'int') [-Wformat]
elapsed.tv_sec, elapsed.tv_usec);
^~~~~~~~~~~~~~~
./logging.h:39:42: note: expanded from macro 'applog'
snprintf(tmp42, sizeof(tmp42), fmt, ##__VA_ARGS__); \
^
/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
^
2 warnings generated.
am i doing something wrong? should i just ignore them?
cgminer is working, just tested with a block erupter.