Advertisement
Guest User

Ethereal Compile

a guest
Sep 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.77 KB | None | 0 0
  1. gcc -DNDEBUG -O3 -std=gnu11 -Wall -Wextra -Wshadow -march=native -flto *.c fathom/tbprobe.c -lpthread -lm -DUSE_POPCNT -msse3 -mpopcnt -DUSE_PEXT -mbmi2 -o Ethereal
  2. attacks.c: In function 'sliderIndex':
  3. attacks.c:53:5: warning: implicit declaration of function '_pext_u64' [-Wimplicit-function-declaration]
  4. return _pext_u64(occupied, table->mask);
  5. ^
  6. board.c: In function 'boardFromFEN':
  7. board.c:95:5: warning: implicit declaration of function 'strtok_r' [-Wimplicit-function-declaration]
  8. char *token = strtok_r(str, " ", &strPos);
  9. ^
  10. board.c:95:19: warning: initialization makes pointer from integer without a cast
  11. char *token = strtok_r(str, " ", &strPos);
  12. ^
  13. board.c:115:11: warning: assignment makes pointer from integer without a cast
  14. token = strtok_r(NULL, " ", &strPos);
  15. ^
  16. board.c:120:11: warning: assignment makes pointer from integer without a cast
  17. token = strtok_r(NULL, " ", &strPos);
  18. ^
  19. board.c:136:38: warning: passing argument 1 of 'stringToSquare' makes pointer from integer without a cast
  20. board->epSquare = stringToSquare(strtok_r(NULL, " ", &strPos));
  21. ^
  22. board.c:71:12: note: expected 'const char *' but argument is of type 'int'
  23. static int stringToSquare(const char *str) {
  24. ^
  25. board.c:141:33: warning: passing argument 1 of 'atoi' makes pointer from integer without a cast
  26. board->fiftyMoveRule = atoi(strtok_r(NULL, " ", &strPos));
  27. ^
  28. In file included from board.c:23:0:
  29. C:/Program Files (x86)/CodeBlocks/MinGW/include/stdlib.h:304:37: note: expected 'const char *' but argument is of type 'int'
  30. _CRTIMP int __cdecl __MINGW_NOTHROW atoi (const char*);
  31. ^
  32. In file included from search.c:47:0:
  33. windows.h:36:67: error: expected ')' before 'PDWORD'
  34. PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, PDWORD);
  35. ^
  36. windows.h:37:32: error: unknown type name 'PGROUP_AFFINITY'
  37. typedef int (*fun2_t) (USHORT, PGROUP_AFFINITY);
  38. ^
  39. windows.h:38:38: error: unknown type name 'GROUP_AFFINITY'
  40. typedef int (*fun3_t) (HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
  41. ^
  42. windows.h:38:55: error: unknown type name 'PGROUP_AFFINITY'
  43. typedef int (*fun3_t) (HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
  44. ^
  45. In file included from thread.c:29:0:
  46. windows.h:36:67: error: expected ')' before 'PDWORD'
  47. PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, PDWORD);
  48. ^
  49. windows.h:37:32: error: unknown type name 'PGROUP_AFFINITY'
  50. typedef int (*fun2_t) (USHORT, PGROUP_AFFINITY);
  51. ^
  52. windows.h:38:38: error: unknown type name 'GROUP_AFFINITY'
  53. typedef int (*fun3_t) (HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
  54. ^
  55. windows.h:38:55: error: unknown type name 'PGROUP_AFFINITY'
  56. typedef int (*fun3_t) (HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
  57. ^
  58. In file included from windows.c:24:0:
  59. windows.h:36:67: error: expected ')' before 'PDWORD'
  60. PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, PDWORD);
  61. ^
  62. windows.h:37:32: error: unknown type name 'PGROUP_AFFINITY'
  63. typedef int (*fun2_t) (USHORT, PGROUP_AFFINITY);
  64. ^
  65. windows.h:38:38: error: unknown type name 'GROUP_AFFINITY'
  66. typedef int (*fun3_t) (HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
  67. ^
  68. windows.h:38:55: error: unknown type name 'PGROUP_AFFINITY'
  69. typedef int (*fun3_t) (HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
  70. ^
  71. windows.c: In function 'bestGroup':
  72. windows.c:44:3: error: unknown type name 'fun1_t'
  73. fun1_t fun1 = (fun1_t)GetProcAddress(k32, "GetLogicalProcessorInformationEx");
  74. ^
  75. windows.c:44:18: error: 'fun1_t' undeclared (first use in this function)
  76. fun1_t fun1 = (fun1_t)GetProcAddress(k32, "GetLogicalProcessorInformationEx");
  77. ^
  78. windows.c:44:18: note: each undeclared identifier is reported only once for each function it appears in
  79. windows.c:44:25: error: expected ',' or ';' before 'GetProcAddress'
  80. fun1_t fun1 = (fun1_t)GetProcAddress(k32, "GetLogicalProcessorInformationEx");
  81. ^
  82. windows.c:49:12: error: 'RelationAll' undeclared (first use in this function)
  83. if (fun1(RelationAll, NULL, &returnLength))
  84. ^
  85. windows.c:49:7: error: called object 'fun1' is not a function or function pointer
  86. if (fun1(RelationAll, NULL, &returnLength))
  87. ^
  88. windows.c:44:10: note: declared here
  89. fun1_t fun1 = (fun1_t)GetProcAddress(k32, "GetLogicalProcessorInformationEx");
  90. ^
  91. windows.c:53:3: error: unknown type name 'SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX'
  92. SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *buffer, *ptr;
  93. ^
  94. windows.c:57:8: error: called object 'fun1' is not a function or function pointer
  95. if (!fun1(RelationAll, buffer, &returnLength)) {
  96. ^
  97. windows.c:44:10: note: declared here
  98. fun1_t fun1 = (fun1_t)GetProcAddress(k32, "GetLogicalProcessorInformationEx");
  99. ^
  100. windows.c:63:13: error: request for member 'Size' in something not a structure or union
  101. while (ptr->Size > 0 && byteOffset + ptr->Size <= returnLength) {
  102. ^
  103. windows.c:63:43: error: request for member 'Size' in something not a structure or union
  104. while (ptr->Size > 0 && byteOffset + ptr->Size <= returnLength) {
  105. ^
  106. windows.c:65:14: error: request for member 'Relationship' in something not a structure or union
  107. if (ptr->Relationship == RelationNumaNode)
  108. ^
  109. windows.c:65:32: error: 'RelationNumaNode' undeclared (first use in this function)
  110. if (ptr->Relationship == RelationNumaNode)
  111. ^
  112. windows.c:68:19: error: request for member 'Relationship' in something not a structure or union
  113. else if (ptr->Relationship == RelationProcessorCore) {
  114. ^
  115. windows.c:68:37: error: 'RelationProcessorCore' undeclared (first use in this function)
  116. else if (ptr->Relationship == RelationProcessorCore) {
  117. ^
  118. windows.c:70:26: error: request for member 'Processor' in something not a structure or union
  119. threads += (ptr->Processor.Flags == LTP_PC_SMT) ? 2 : 1;
  120. ^
  121. windows.c:70:47: error: 'LTP_PC_SMT' undeclared (first use in this function)
  122. threads += (ptr->Processor.Flags == LTP_PC_SMT) ? 2 : 1;
  123. ^
  124. windows.c:73:24: error: request for member 'Size' in something not a structure or union
  125. byteOffset += ptr->Size;
  126. ^
  127. windows.c:74:14: error: 'SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX' undeclared (first use in this function)
  128. ptr = (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX*)(((char*)ptr) + ptr->Size);
  129. ^
  130. windows.c:74:54: error: expected expression before ')' token
  131. ptr = (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX*)(((char*)ptr) + ptr->Size);
  132. ^
  133. windows.c:43:11: warning: unused variable 'k32' [-Wunused-variable]
  134. HMODULE k32 = GetModuleHandle("Kernel32.dll");
  135. ^
  136. windows.c: In function 'bindThisThread':
  137. windows.c:108:3: error: unknown type name 'fun2_t'
  138. fun2_t fun2 = (fun2_t)GetProcAddress(k32, "GetNumaNodeProcessorMaskEx");
  139. ^
  140. windows.c:108:18: error: 'fun2_t' undeclared (first use in this function)
  141. fun2_t fun2 = (fun2_t)GetProcAddress(k32, "GetNumaNodeProcessorMaskEx");
  142. ^
  143. windows.c:108:25: error: expected ',' or ';' before 'GetProcAddress'
  144. fun2_t fun2 = (fun2_t)GetProcAddress(k32, "GetNumaNodeProcessorMaskEx");
  145. ^
  146. windows.c:109:3: error: unknown type name 'fun3_t'
  147. fun3_t fun3 = (fun3_t)GetProcAddress(k32, "SetThreadGroupAffinity");
  148. ^
  149. windows.c:109:18: error: 'fun3_t' undeclared (first use in this function)
  150. fun3_t fun3 = (fun3_t)GetProcAddress(k32, "SetThreadGroupAffinity");
  151. ^
  152. windows.c:109:25: error: expected ',' or ';' before 'GetProcAddress'
  153. fun3_t fun3 = (fun3_t)GetProcAddress(k32, "SetThreadGroupAffinity");
  154. ^
  155. windows.c:112:3: error: unknown type name 'GROUP_AFFINITY'
  156. GROUP_AFFINITY affinity;
  157. ^
  158. windows.c:113:7: error: called object 'fun2' is not a function or function pointer
  159. if (fun2(group, &affinity))
  160. ^
  161. windows.c:108:10: note: declared here
  162. fun2_t fun2 = (fun2_t)GetProcAddress(k32, "GetNumaNodeProcessorMaskEx");
  163. ^
  164. windows.c:114:7: error: called object 'fun3' is not a function or function pointer
  165. fun3(GetCurrentThread(), &affinity, NULL);
  166. ^
  167. windows.c:109:10: note: declared here
  168. fun3_t fun3 = (fun3_t)GetProcAddress(k32, "SetThreadGroupAffinity");
  169. ^
  170. windows.c:107:11: warning: unused variable 'k32' [-Wunused-variable]
  171. HMODULE k32 = GetModuleHandle("Kernel32.dll");
  172. ^
  173. In file included from fathom/tbprobe.c:103:0:
  174. fathom/tbcore.c: In function 'map_file':
  175. fathom/tbcore.c:181:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  176. *mapping = (uint64)map;
  177. ^
  178. fathom/tbcore.c: In function 'unmap_file':
  179. fathom/tbcore.c:207:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  180. if (!CloseHandle((HANDLE)mapping)) {
  181. ^
  182. makefile:41: recipe for target 'pext' failed
  183. mingw32-make: *** [pext] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement