SGminer compile issue
Heres what I did -sudo git clone
https://github.com/miningpoolhub/sgminer.git mph_sgminer
sudo git submodule init
sudo git submodule update
sudo autoreconf -i
sudo CFLAGS="-O2 -Wall -march=native -std=gnu99" ./configure <options>
sudo make install
Result -Configuration Options Summary:
Use git version......: yes
libcurl(GBT+getwork).: Enabled: -lcurl
curses.TUI...........: FOUND: -lncurses
OpenCL...............: FOUND. GPU mining support enabled
ADL..................: SDK found, GPU monitoring support enabled
Compilation............: make (or gmake)
CPPFLAGS.............:
CFLAGS...............: -O2 -Wall -march=native -std=gnu99
LDFLAGS..............: -lpthread
LDADD................: -ldl -lcurl submodules/jansson/src/.libs/libjansson.a -lpthread -lOpenCL -lm -lrt
Installation...........: make install (as root if needed, with 'su' or 'sudo')
prefix...............: /usr/local
And heres what I got
Any help would be appreciated.make[1]: Entering directory '/home/m1/mph_sgminer/sph'
CC bmw.o
CC echo.o
CC jh.o
CC luffa.o
CC simd.o
CC blake.o
CC cubehash.o
CC groestl.o
CC keccak.o
CC shavite.o
CC skein.o
CC sha2.o
CC sha2big.o
CC fugue.o
CC hamsi.o
CC panama.o
CC shabal.o
CC whirlpool.o
CC sha256_Y.o
sha256_Y.c: In function ‘SHA256_Update_Y’:
sha256_Y.c:239:29: error: ‘reinterpret_cast’ undeclared (first use in this function)
const unsigned char *src = reinterpret_cast<const unsigned char *>(in);
^
sha256_Y.c:239:29: note: each undeclared identifier is reported only once for each function it appears in
sha256_Y.c:239:46: error: expected expression before ‘const’
const unsigned char *src = reinterpret_cast<const unsigned char *>(in);
^
sha256_Y.c: In function ‘HMAC_SHA256_Init_Y’:
sha256_Y.c:302:28: error: ‘reinterpret_cast’ undeclared (first use in this function)
const unsigned char * K = reinterpret_cast<const unsigned char *>(_K);
^
sha256_Y.c:302:45: error: expected expression before ‘const’
const unsigned char * K = reinterpret_cast<const unsigned char *>(_K);
^
In file included from sha256_Y.c:32:0:
sha256_Y.c: At top level:
../algorithm/sysendian.h:46:18: warning: ‘le32dec’ defined but not used [-Wunused-function]
static uint32_t le32dec(const void *pp)
^
../algorithm/sysendian.h:75:14: warning: ‘le32enc’ defined but not used [-Wunused-function]
static void le32enc(void *pp, uint32_t x)
^
../algorithm/sysendian.h:86:1: warning: ‘be64dec’ defined but not used [-Wunused-function]
be64dec(const void *pp)
^
../algorithm/sysendian.h:97:1: warning: ‘be64enc’ defined but not used [-Wunused-function]
be64enc(void *pp, uint64_t x)
^
../algorithm/sysendian.h:114:1: warning: ‘le64dec’ defined but not used [-Wunused-function]
le64dec(const void *pp)
^
../algorithm/sysendian.h:125:1: warning: ‘le64enc’ defined but not used [-Wunused-function]
le64enc(void *pp, uint64_t x)
^
Makefile:539: recipe for target 'sha256_Y.o' failed
make[1]: *** [sha256_Y.o] Error 1
make[1]: Leaving directory '/home/m1/mph_sgminer/sph'
Makefile:1613: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
m1@m1-desktop:~/mph_sgminer$