If I can ask for some assistance, Im a total noob to compiling, just started taking a C++ course this year. I have compiled a few things in ubuntu successfully but from the repository am i able to build this in windows? I tried using the VS command prompt with nmake and ran into gcc being unrecognized. I tried using cygwin, got a little way through, but that failed as well. Looking at the makefile it says -I..../sgminer-lin64/libcflags/. do i need to have those folders to compile this. I might be in over my head trying to compile this stuff.
Thanks for your time wolf for looking into our issues with the miner
.
$ make
gcc -D_POSIX_SOURCE -D_GNU_SOURCE -O2 -s -I/home/wolf/miners/sgminer-builds/sgminer-lin64/include/ -L/home/wolf/miners/sgminer-builds/sgminer-lin64/lib -c -std=c11 crypto/aesb.c -o crypto/aesb.o
gcc -D_POSIX_SOURCE -D_GNU_SOURCE -O2 -s -I/home/wolf/miners/sgminer-builds/sgminer-lin64/include/ -L/home/wolf/miners/sgminer-builds/sgminer-lin64/lib -c -std=c11 crypto/aesb-x86-impl.c -o crypto/aesb-x86-impl.o
gcc -D_POSIX_SOURCE -D_GNU_SOURCE -O2 -s -I/home/wolf/miners/sgminer-builds/sgminer-lin64/include/ -L/home/wolf/miners/sgminer-builds/sgminer-lin64/lib -c -std=c11 crypto/c_blake256.c -o crypto/c_blake256.o
gcc -D_POSIX_SOURCE -D_GNU_SOURCE -O2 -s -I/home/wolf/miners/sgminer-builds/sgminer-lin64/include/ -L/home/wolf/miners/sgminer-builds/sgminer-lin64/lib -c -std=c11 crypto/c_groestl.c -o crypto/c_groestl.o
gcc -D_POSIX_SOURCE -D_GNU_SOURCE -O2 -s -I/home/wolf/miners/sgminer-builds/sgminer-lin64/include/ -L/home/wolf/miners/sgminer-builds/sgminer-lin64/lib -c -std=c11 crypto/c_keccak.c -o crypto/c_keccak.o
gcc -D_POSIX_SOURCE -D_GNU_SOURCE -O2 -s -I/home/wolf/miners/sgminer-builds/sgminer-lin64/include/ -L/home/wolf/miners/sgminer-builds/sgminer-lin64/lib -c -std=c11 crypto/c_jh.c -o crypto/c_jh.o
gcc -D_POSIX_SOURCE -D_GNU_SOURCE -O2 -s -I/home/wolf/miners/sgminer-builds/sgminer-lin64/include/ -L/home/wolf/miners/sgminer-builds/sgminer-lin64/lib -c -std=c11 crypto/c_skein.c -o crypto/c_skein.o
gcc -D_POSIX_SOURCE -D_GNU_SOURCE -O2 -s -I/home/wolf/miners/sgminer-builds/sgminer-lin64/include/ -L/home/wolf/miners/sgminer-builds/sgminer-lin64/lib -c -std=c11 crypto/oaes_lib.c -o crypto/oaes_lib.o
gcc -D_POSIX_SOURCE -D_GNU_SOURCE -O2 -s -I/home/wolf/miners/sgminer-builds/sgminer-lin64/include/ -L/home/wolf/miners/sgminer-builds/sgminer-lin64/lib -c -std=c11 -maes cryptonight.c -o cryptonight.o
cryptonight.c: In function ‘cryptonight_hash_aesni’:
cryptonight.c:383:18: warning: initialization from incompatible pointer type
uint64_t *dst = &ctx->long_state[c[0] & 0x1FFFF0];
^
cryptonight.c:426:10: warning: passing argument 1 of ‘keccakf’ from incompatible pointer type
keccakf(&ctx->state.hs, 24);
^
In file included from cryptonight.c:13:0:
crypto/c_keccak.h:22:6: note: expected ‘uint64_t *’ but argument is of type ‘union hash_state *’
void keccakf(uint64_t st[25], int norounds);
^
cryptonight.c: In function ‘cryptonight_ctx’:
cryptonight.c:435:2: warning: implicit declaration of function ‘mmap’ [-Wimplicit-function-declaration]
ret = mmap(0, sizeof(*ret), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_HUGETLB|MAP_POPULATE, 0, 0);
^
cryptonight.c:435:30: error: ‘PROT_READ’ undeclared (first use in this function)
ret = mmap(0, sizeof(*ret), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_HUGETLB|MAP_POPULATE, 0, 0);
^
cryptonight.c:435:30: note: each undeclared identifier is reported only once for each function it appears in
cryptonight.c:435:40: error: ‘PROT_WRITE’ undeclared (first use in this function)
ret = mmap(0, sizeof(*ret), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_HUGETLB|MAP_POPULATE, 0, 0);
^
cryptonight.c:435:52: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
ret = mmap(0, sizeof(*ret), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_HUGETLB|MAP_POPULATE, 0, 0);
^
cryptonight.c:435:64: error: ‘MAP_ANONYMOUS’ undeclared (first use in this function)
ret = mmap(0, sizeof(*ret), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_HUGETLB|MAP_POPULATE, 0, 0);
^
cryptonight.c:435:78: error: ‘MAP_HUGETLB’ undeclared (first use in this function)
ret = mmap(0, sizeof(*ret), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_HUGETLB|MAP_POPULATE, 0, 0);
^
cryptonight.c:435:90: error: ‘MAP_POPULATE’ undeclared (first use in this function)
ret = mmap(0, sizeof(*ret), PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_HUGETLB|MAP_POPULATE, 0, 0);
^
cryptonight.c:436:13: error: ‘MAP_FAILED’ undeclared (first use in this function)
if (ret == MAP_FAILED)
^
cryptonight.c:439:3: warning: implicit declaration of function ‘madvise’ [-Wimplicit-function-declaration]
madvise(ret, sizeof(*ret), MADV_RANDOM|MADV_WILLNEED|MADV_HUGEPAGE);
^
cryptonight.c:439:30: error: ‘MADV_RANDOM’ undeclared (first use in this function)
madvise(ret, sizeof(*ret), MADV_RANDOM|MADV_WILLNEED|MADV_HUGEPAGE);
^
cryptonight.c:439:42: error: ‘MADV_WILLNEED’ undeclared (first use in this function)
madvise(ret, sizeof(*ret), MADV_RANDOM|MADV_WILLNEED|MADV_HUGEPAGE);
^
cryptonight.c:439:56: error: ‘MADV_HUGEPAGE’ undeclared (first use in this function)
madvise(ret, sizeof(*ret), MADV_RANDOM|MADV_WILLNEED|MADV_HUGEPAGE);
^
cryptonight.c:441:4: warning: implicit declaration of function ‘mlock’ [-Wimplicit-function-declaration]
mlock(ret, sizeof(*ret));
^
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 1