Как исправить ошибку компиляции cgminer windows 10 с помощью mingw (mysys)?

После выполнения:

autoreconf -fvi

CFLAGS="-O2 -msse2" ./configure

make

У меня проблема.

 Entering directory `/home/user/cgminer-master'
  CC     cgminer-cgminer.o
In file included from ./miner.h:24,
                 from ./sha2.h:36,
                 from cgminer.c:58:
./util.h: In function 'sock_blocks':
./util.h:53:59: error: 'EAGAIN' undeclared (first use in this function); did you mean 'EAI_AGAIN'?
   53 |   return (WSAGetLastError() == WSAEWOULDBLOCK || errno == EAGAIN);
      |                                                           ^~~~~~
      |                                                           EAI_AGAIN
./util.h:53:59: note: each undeclared identifier is reported only once for each function it appears in
./util.h: In function 'sock_timeout':
./util.h:57:57: error: 'ETIMEDOUT' undeclared (first use in this function); did you mean 'WSAETIMEDOUT'?
   57 |   return (WSAGetLastError() == WSAETIMEDOUT || errno == ETIMEDOUT);
      |                                                         ^~~~~~~~~
      |                                                         WSAETIMEDOUT
./util.h: In function 'interrupted':
./util.h:61:53: error: 'EINTR' undeclared (first use in this function)
   61 |   return (WSAGetLastError() == WSAEINTR || errno == EINTR);
      |                                                     ^~~~~
cgminer.c: In function 'kill_mining':
cgminer.c:4586:11: error: invalid operands to binary && (have 'int' and 'pthread_t' {aka 'struct <anonymous>'})
 4586 |   if (pth && *pth)
      |       ~~~ ^~ ~~~~
      |       |      |
      |       int    pthread_t {aka struct <anonymous>}
cgminer.c: In function 'wait_mining':
cgminer.c:4604:11: error: invalid operands to binary && (have 'int' and 'pthread_t' {aka 'struct <anonymous>'})
 4604 |   if (pth && *pth)
      |       ~~~ ^~ ~~~~
      |       |      |
      |       int    pthread_t {aka struct <anonymous>}
make[2]: *** [cgminer-cgminer.o] Error 1
make[2]: Leaving directory `/home/user/cgminer-master'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/cgminer-master'
make: *** [all] Error 2

Пожалуйста помоги. Веб-служба также просит меня добавить дополнительные сведения, хотя я не совсем уверен, что еще добавить. В некоторых ответах второй команды упоминается "нет", но продолжается без ошибок. А пока я постараюсь установить весь mingw.

0 ответов

Другие вопросы по тегам