7. ./configure --enable-gekko
This will configure the build. This is the most likely place to have anything go wrong, if it does, let me know exactly what's up. Odds are it would be some package that you should have installed.
Don't forget that this will only add support for the Gekkoscience USB ASIC
If you need to use different ASICs on that build, you may need to add support for them during the configure step.
In my case:
./configure --enable-gekko --enable-bflsc --enable-icarus
------------------------------------------------------------------------
cgminer 4.9.2
------------------------------------------------------------------------
Configuration Options Summary:
libcurl(GBT).: Enabled: -lcurl
libsystemd...........: Disabled
curses.TUI...........: FOUND: -lncurses
Antminer.S1.Bitmain..: Disabled
Antminer.S2.Bitmain..: Disabled
Antminer.S3.Bitmain..: Disabled
Avalon.ASICs.........: Disabled
Avalon2.ASICs........: Disabled
Avalon4.ASICs........: Disabled
BlackArrowMinion.ASIC: Disabled
BlackArrow.ASICs.....: Disabled
BFL.ASICs............: Enabled <<<====
BitForce.FPGAs.......: Disabled
BitFury.ASICs........: Disabled
BlockErupter.ASICs...: Disabled
Cointerra.ASICs......: Disabled
Spond-sp10.ASICs.....: Disabled
Spond-sp30.ASICs.....: Disabled
Bitmine-A1.ASICs.....: Disabled
Drillbit.BitFury.....: Disabled
Hashfast.ASICs.......: Disabled
Hashratio.ASICs......: Disabled
Icarus.ASICs/FPGAs...: Enabled <<<====
Gekko.ASICs..........: Enabled <<<====
Klondike.ASICs.......: Disabled
KnC.ASICs............: Disabled
ModMiner.FPGAs.......: Disabled
Compilation............: make (or gmake)
CPPFLAGS.............:
CFLAGS...............: -g -O2
LDFLAGS..............: -lpthread
LDADD................: -ldl -lcurl compat/jansson-2.6/src/.libs/libjansson.a -lpthread -lm compat/libusb-1.0/libusb/.libs/libusb-1.0.a -ludev -lrt
Installation...........: make install (as root if needed, with 'su' or 'sudo')
prefix...............: /usr/local
But then the "
make" fails...
minera@minera /var/www/minera/minera-bin/custom/cgminer-gekko $ sudo make
make all-recursive
make[1]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko'
Making all in lib
make[2]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/lib'
GEN signal.h
GEN string.h
make all-recursive
make[3]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/lib'
make[4]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/lib'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/lib'
make[3]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/lib'
make[2]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/lib'
Making all in compat
make[2]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat'
Making all in jansson-2.6
make[3]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6'
make all-recursive
make[4]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6'
Making all in src
make[5]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6/src'
CC dump.lo
CC error.lo
CC hashtable.lo
CC hashtable_seed.lo
CC load.lo
CC memory.lo
CC pack_unpack.lo
CC strbuffer.lo
CC strconv.lo
CC utf.lo
CC value.lo
CCLD libjansson.la
make[5]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6/src'
make[5]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6'
make[5]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6'
make[4]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6'
make[3]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6'
Making all in libusb-1.0
make[3]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0'
make all-recursive
make[4]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0'
Making all in libusb
make[5]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0/libusb'
CC libusb_1_0_la-core.lo
CC libusb_1_0_la-descriptor.lo
CC libusb_1_0_la-io.lo
CC libusb_1_0_la-sync.lo
CC os/libusb_1_0_la-linux_usbfs.lo
CC os/libusb_1_0_la-linux_udev.lo
CC libusb_1_0_la-hotplug.lo
CC os/libusb_1_0_la-threads_posix.lo
CCLD libusb-1.0.la
make[5]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0/libusb'
make[5]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0'
make[5]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0'
make[4]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0'
make[3]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0'
make[3]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat'
make[2]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat'
Making all in ccan
make[2]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/ccan'
CC opt/libccan_a-helpers.o
CC opt/libccan_a-opt.o
CC opt/libccan_a-parse.o
CC opt/libccan_a-usage.o
AR libccan.a
make[2]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/ccan'
make[2]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko'
CC cgminer-cgminer.o
cgminer.c:237:7: error: redefinition of âopt_anu_freqâ
cgminer.c:229:7: note: previous definition of âopt_anu_freqâ was here
cgminer.c:240:7: error: redefinition of âopt_rock_freqâ
cgminer.c:232:7: note: previous definition of âopt_rock_freqâ was here
Makefile:782: recipe for target 'cgminer-cgminer.o' failed
make[2]: *** [cgminer-cgminer.o] Error 1
make[2]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko'
Makefile:1411: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko'
Makefile:618: recipe for target 'all' failed
make: *** [all] Error 2
Anyone can tell me why ?
Below the output of
make with just ./configure --enable-gekko prior (which works)
make all-recursive
make[1]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko'
Making all in lib
make[2]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/lib'
GEN signal.h
GEN string.h
make all-recursive
make[3]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/lib'
make[4]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/lib'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/lib'
make[3]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/lib'
make[2]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/lib'
Making all in compat
make[2]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat'
Making all in jansson-2.6
make[3]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6'
make all-recursive
make[4]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6'
Making all in src
make[5]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6/src'
CC dump.lo
CC error.lo
CC hashtable.lo
CC hashtable_seed.lo
CC load.lo
CC memory.lo
CC pack_unpack.lo
CC strbuffer.lo
CC strconv.lo
CC value.lo
CCLD libjansson.la
make[5]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6/src'
make[5]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6'
make[5]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6'
make[4]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6'
make[3]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/jansson-2.6'
Making all in libusb-1.0
make[3]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0'
make all-recursive
make[4]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0'
Making all in libusb
make[5]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0/libusb'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0/libusb'
make[5]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0'
make[5]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0'
make[4]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0'
make[3]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat/libusb-1.0'
make[3]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat'
make[2]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/compat'
Making all in ccan
make[2]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko/ccan'
CC opt/libccan_a-helpers.o
CC opt/libccan_a-opt.o
CC opt/libccan_a-parse.o
CC opt/libccan_a-usage.o
AR libccan.a
make[2]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko/ccan'
make[2]: Entering directory '/var/www/minera/minera-bin/custom/cgminer-gekko'
CC cgminer-cgminer.o
CC cgminer-util.o
CC cgminer-sha2.o
CC cgminer-api.o
CC cgminer-logging.o
CC cgminer-klist.o
CC cgminer-noncedup.o
CC cgminer-usbutils.o
CC cgminer-driver-gekko.o
CCLD cgminer
make[2]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko'
make[1]: Leaving directory '/var/www/minera/minera-bin/custom/cgminer-gekko'
Thank you