djm34 / sgminer-msvc2015

sgminer-gm with msvc2015 support
GNU General Public License v3.0
22 stars 25 forks source link

Issues when compile #1

Closed jferrerd closed 7 years ago

jferrerd commented 7 years ago

I'm getting this error when i try to compile:

algorithm/yescryptcommon.c: In function ‘yescrypt_bsty’:
algorithm/yescryptcommon.c:333:9: error: invalid storage class for function ‘__declspec’
  static __declspec(thread) int initialized = 0;
         ^~~~~~~~~~
algorithm/yescryptcommon.c:333:9: warning: return type defaults to ‘int’ [-Wimplicit-int]
algorithm/yescryptcommon.c: In function ‘__declspec’:
algorithm/yescryptcommon.c:333:2: error: parameter ‘initialized’ is initialized
  static __declspec(thread) int initialized = 0;
  ^~~~~~
algorithm/yescryptcommon.c:334:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘yescrypt_shared_t’
  static __declspec(thread) yescrypt_shared_t shared;
                            ^~~~~~~~~~~~~~~~~
algorithm/yescryptcommon.c:335:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘yescrypt_local_t’
  static  __declspec(thread) yescrypt_local_t local;
                             ^~~~~~~~~~~~~~~~
algorithm/yescryptcommon.c:338:2: error: expected declaration specifiers before ‘if’
  if (!initialized) {
  ^~
algorithm/yescryptcommon.c:350:2: error: expected declaration specifiers before ‘retval’
  retval = yescrypt_kdf(&shared, &local,
  ^~~~~~
algorithm/yescryptcommon.c:354:2: error: expected declaration specifiers before ‘return’
  return retval;
  ^~~~~~
algorithm/yescryptcommon.c:355:1: error: expected declaration specifiers before ‘}’ token
 }
 ^
algorithm/yescryptcommon.c:358:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 {
 ^
algorithm/yescryptcommon.c:333:9: warning: type of ‘thread’ defaults to ‘int’ [-Wimplicit-int]
  static __declspec(thread) int initialized = 0;
         ^~~~~~~~~~
algorithm/yescryptcommon.c:337:6: error: declaration for parameter ‘retval’ but no such parameter
  int retval;
      ^~~~~~
algorithm/yescryptcommon.c:333:32: error: declaration for parameter ‘initialized’ but no such parameter
  static __declspec(thread) int initialized = 0;
                                ^~~~~~~~~~~
algorithm/yescryptcommon.c:361:1: error: expected ‘{’ at end of input
 }
 ^
algorithm/yescryptcommon.c: In function ‘yescrypt_bsty’:
algorithm/yescryptcommon.c:361:1: error: expected declaration or statement at end of input
algorithm/yescryptcommon.c:361:1: warning: no return statement in function returning non-void [-Wreturn-type]
At top level:
algorithm/yescryptcommon.c:324:1: warning: ‘yescrypt_bsty’ defined but not used [-Wunused-function]
 yescrypt_bsty(const uint8_t * passwd, size_t passwdlen,
 ^~~~~~~~~~~~~
algorithm/yescryptcommon.c:333:9: warning: ‘__declspec’ defined but not used [-Wunused-function]
  static __declspec(thread) int initialized = 0;
         ^~~~~~~~~~
make[2]: *** [algorithm/sgminer-yescryptcommon.o] Error 1
make[2]: Leaving directory `/home/jhonny/sgminer-msvc2015'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jhonny/sgminer-msvc2015'
make: *** [all] Error 2
djm34 commented 7 years ago

I believe this issue has been resolved (didn't receive any email when this message has been posted)