Post
Topic
Board Hardware
Re: GekkoScience NewPac / Terminus R606 (BM1387) Official Support Thread
by
House Xylander
on 03/05/2019, 03:20:28 UTC
I am still running the December version on my Ubuntu 18.04 LTS machine.

I am however trying the newer build posted 4/8/19 but i am having an issue that may be the 18.04 version or something else i'm doing wrong.

Following VH's post on page 21:

Code:
#rename the existing cgminer folder then...

git clone -b r606 https://github.com/vthoang/cgminer.git
cd cgminer

CFLAGS="-O2" ./autogen.sh --enable-gekko
make -j 2

I am getting the following error at the end of "make -j 2" line.

Code:
driver-gekko.c: In function ‘compac_statline’:
driver-gekko.c:1724:68: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘double’ [-Wformat=]
    sprintf(asic_statline, "BM1387:%02d%-1s %.2fMHz T:%.0f P:%.0f (%d/%d/%d/%.0fF)", info->chips, ab, info->frequency, info->frequency_requested, info->frequency_computed, info->scanhash_ms, info->task_ms, info->fullscan_ms, info->micro_temp);
                                                                   ~^                                                                                                       ~~~~~~~~~~~~~~~~~
                                                                   %f
driver-gekko.c:1724:71: warning: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘double’ [-Wformat=]
    sprintf(asic_statline, "BM1387:%02d%-1s %.2fMHz T:%.0f P:%.0f (%d/%d/%d/%.0fF)", info->chips, ab, info->frequency, info->frequency_requested, info->frequency_computed, info->scanhash_ms, info->task_ms, info->fullscan_ms, info->micro_temp);
                                                                      ~^                                                                                                                       ~~~~~~~~~~~~~
                                                                      %f
driver-gekko.c:1724:74: warning: format ‘%d’ expects argument of type ‘int’, but argument 10 has type ‘double’ [-Wformat=]
    sprintf(asic_statline, "BM1387:%02d%-1s %.2fMHz T:%.0f P:%.0f (%d/%d/%d/%.0fF)", info->chips, ab, info->frequency, info->frequency_requested, info->frequency_computed, info->scanhash_ms, info->task_ms, info->fullscan_ms, info->micro_temp);
                                                                         ~^                                                                                                                                   ~~~~~~~~~~~~~~~~~
                                                                         %f
  CCLD     cgminer
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile:847: recipe for target 'cgminer' failed
make[2]: *** [cgminer] Error 1
make[2]: Leaving directory '/home/HX/git/vthoang/cgminer'
Makefile:1831: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/HX/git/vthoang/cgminer'
Makefile:751: recipe for target 'all' failed
make: *** [all] Error 2

I have even tried using the instruction on the first page and created a new directory for cgminer.