I've been using bfgminer successfully on a windows machine for a few weeks, and want to transfer it to my (always on anyway) openSUSE linux server I have at home (as I'm no longer going to be mining scrypt with GPUs on that machine - I am running bfg for bitcoin and cgminer for scrypt).
I'm trying to compile from source, and got round issues of a couple of dependencies, but have now hit a hurdle which I can't sort out:
./configure works fine.
When I run make I get the following error:
CC bfgminer-spidevc.o
In file included from spidevc.c:51:0:
/usr/include/linux/i2c-dev.h:38:8: error: redefinition of âstruct i2c_msgâ
In file included from spidevc.c:50:0:
/usr/include/linux/i2c.h:68:8: note: originally defined here
In file included from spidevc.c:51:0:
/usr/include/linux/i2c-dev.h:90:7: error: redefinition of âunion i2c_smbus_dataâ
In file included from spidevc.c:50:0:
/usr/include/linux/i2c.h:126:7: note: originally defined here
make[2]: *** [bfgminer-spidevc.o] Error 1
make[2]: Leaving directory `/home/darren/bfgminer-3.3.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/darren/bfgminer-3.3.0'
make: *** [all] Error 2
It looks to be a problem with i2c-tools - the version I have installed is the one that is installed by yast - 3.1.0-2.1.2, but I'm not 100%. So I removed it using yast, and now I get this error:
CC bfgminer-miner.o
CC bfgminer-deviceapi.o
CC bfgminer-util.o
CC bfgminer-sha2.o
CC bfgminer-api.o
CC bfgminer-logging.o
CC bfgminer-driver-opencl.o
CC bfgminer-ocl.o
CC bfgminer-findnonce.o
CC bfgminer-adl.o
CC bfgminer-fpgautils.o
CC bfgminer-dynclock.o
CC bfgminer-driver-bitforce.o
CC bfgminer-driver-bigpic.o
CC bfgminer-driver-icarus.o
CC bfgminer-driver-cairnsmore.o
CC bfgminer-driver-erupter.o
CC bfgminer-driver-avalon.o
CC bfgminer-hexdump.o
CC bfgminer-driver-modminer.o
CC bfgminer-driver-bitfury.o
CC bfgminer-libbitfury.o
CC bfgminer-spidevc.o
spidevc.c:51:27: fatal error: linux/i2c-dev.h: No such file or directory
compilation terminated.
make[2]: *** [bfgminer-spidevc.o] Error 1
make[2]: Leaving directory `/home/darren/bfgminer-3.3.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/darren/bfgminer-3.3.0'
make: *** [all] Error 2
The compilation gets further, but has a different problem - do I need to put a 'correct' version of i2c-dev.h in the linux/ folder? I' usually expect ./configure to sort out dependencies, but I'm not an expert on this by any means.
I'd appreciate any hints/help as to how to get this installed, whether it's use another method or fix compiling from source.