Post
Topic
Board Hardware
Re: GekkoScience Compac BM1384 Stickminer Official Support Thread
by
notlist3d
on 14/09/2015, 20:37:31 UTC
Oh, oh. I tried to build with icarus and gekko support (following my own recipe above) and I got a compile error:

Code:
make[2]: Entering directory '/var/www/minera/minera-bin/src/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

Novak, could this be a copy/paste issue where a variable got reused without being renamed?

Turns out there were a couple of duplicate lines of code. I removed them and it compiles now.

Here's what the relevant section of cgminer.c code looks like without the duplicate lines:

Code:
#ifdef USE_ICARUS
char *opt_icarus_options = NULL;
char *opt_icarus_timing = NULL;
float opt_anu_freq = 250;
float opt_au3_freq = 225;
int opt_au3_volt = 775;
float opt_rock_freq = 270;
#endif
#ifdef USE_GEKKO
char *opt_gekko_options = NULL;
char *opt_gekko_timing = NULL;
float opt_compac_freq = 125;
#endif
bool opt_worktime;


If this is Minera do you mind uploading a image if you got it to work with both icarus and gekko?   Currently i'm using icarus, but eventually once I get production one it would be great to plug in and it uses compac.