Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- attacks.c: In function 'sliderIndex':
- attacks.c:53:5: warning: implicit declaration of function '_pext_u64' [-Wimplicit-function-declaration]
- return _pext_u64(occupied, table->mask);
- ^
- board.c: In function 'boardFromFEN':
- board.c:95:5: warning: implicit declaration of function 'strtok_r' [-Wimplicit-function-declaration]
- char *token = strtok_r(str, " ", &strPos);
- ^
- board.c:95:19: warning: initialization makes pointer from integer without a cast
- char *token = strtok_r(str, " ", &strPos);
- ^
- board.c:115:11: warning: assignment makes pointer from integer without a cast
- token = strtok_r(NULL, " ", &strPos);
- ^
- board.c:120:11: warning: assignment makes pointer from integer without a cast
- token = strtok_r(NULL, " ", &strPos);
- ^
- board.c:136:38: warning: passing argument 1 of 'stringToSquare' makes pointer from integer without a cast
- board->epSquare = stringToSquare(strtok_r(NULL, " ", &strPos));
- ^
- board.c:71:12: note: expected 'const char *' but argument is of type 'int'
- static int stringToSquare(const char *str) {
- ^
- board.c:141:33: warning: passing argument 1 of 'atoi' makes pointer from integer without a cast
- board->fiftyMoveRule = atoi(strtok_r(NULL, " ", &strPos));
- ^
- In file included from board.c:23:0:
- C:/Program Files (x86)/CodeBlocks/MinGW/include/stdlib.h:304:37: note: expected 'const char *' but argument is of type 'int'
- _CRTIMP int __cdecl __MINGW_NOTHROW atoi (const char*);
- ^
- In file included from search.c:47:0:
- windows.h:36:67: error: expected ')' before 'PDWORD'
- PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, PDWORD);
- ^
- windows.h:37:32: error: unknown type name 'PGROUP_AFFINITY'
- typedef int (*fun2_t) (USHORT, PGROUP_AFFINITY);
- ^
- windows.h:38:38: error: unknown type name 'GROUP_AFFINITY'
- typedef int (*fun3_t) (HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
- ^
- windows.h:38:55: error: unknown type name 'PGROUP_AFFINITY'
- typedef int (*fun3_t) (HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
- ^
- In file included from thread.c:29:0:
- windows.h:36:67: error: expected ')' before 'PDWORD'
- PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, PDWORD);
- ^
- windows.h:37:32: error: unknown type name 'PGROUP_AFFINITY'
- typedef int (*fun2_t) (USHORT, PGROUP_AFFINITY);
- ^
- windows.h:38:38: error: unknown type name 'GROUP_AFFINITY'
- typedef int (*fun3_t) (HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
- ^
- windows.h:38:55: error: unknown type name 'PGROUP_AFFINITY'
- typedef int (*fun3_t) (HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
- ^
- In file included from windows.c:24:0:
- windows.h:36:67: error: expected ')' before 'PDWORD'
- PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, PDWORD);
- ^
- windows.h:37:32: error: unknown type name 'PGROUP_AFFINITY'
- typedef int (*fun2_t) (USHORT, PGROUP_AFFINITY);
- ^
- windows.h:38:38: error: unknown type name 'GROUP_AFFINITY'
- typedef int (*fun3_t) (HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
- ^
- windows.h:38:55: error: unknown type name 'PGROUP_AFFINITY'
- typedef int (*fun3_t) (HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
- ^
- windows.c: In function 'bestGroup':
- windows.c:44:3: error: unknown type name 'fun1_t'
- fun1_t fun1 = (fun1_t)GetProcAddress(k32, "GetLogicalProcessorInformationEx");
- ^
- windows.c:44:18: error: 'fun1_t' undeclared (first use in this function)
- fun1_t fun1 = (fun1_t)GetProcAddress(k32, "GetLogicalProcessorInformationEx");
- ^
- windows.c:44:18: note: each undeclared identifier is reported only once for each function it appears in
- windows.c:44:25: error: expected ',' or ';' before 'GetProcAddress'
- fun1_t fun1 = (fun1_t)GetProcAddress(k32, "GetLogicalProcessorInformationEx");
- ^
- windows.c:49:12: error: 'RelationAll' undeclared (first use in this function)
- if (fun1(RelationAll, NULL, &returnLength))
- ^
- windows.c:49:7: error: called object 'fun1' is not a function or function pointer
- if (fun1(RelationAll, NULL, &returnLength))
- ^
- windows.c:44:10: note: declared here
- fun1_t fun1 = (fun1_t)GetProcAddress(k32, "GetLogicalProcessorInformationEx");
- ^
- windows.c:53:3: error: unknown type name 'SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX'
- SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX *buffer, *ptr;
- ^
- windows.c:57:8: error: called object 'fun1' is not a function or function pointer
- if (!fun1(RelationAll, buffer, &returnLength)) {
- ^
- windows.c:44:10: note: declared here
- fun1_t fun1 = (fun1_t)GetProcAddress(k32, "GetLogicalProcessorInformationEx");
- ^
- windows.c:63:13: error: request for member 'Size' in something not a structure or union
- while (ptr->Size > 0 && byteOffset + ptr->Size <= returnLength) {
- ^
- windows.c:63:43: error: request for member 'Size' in something not a structure or union
- while (ptr->Size > 0 && byteOffset + ptr->Size <= returnLength) {
- ^
- windows.c:65:14: error: request for member 'Relationship' in something not a structure or union
- if (ptr->Relationship == RelationNumaNode)
- ^
- windows.c:65:32: error: 'RelationNumaNode' undeclared (first use in this function)
- if (ptr->Relationship == RelationNumaNode)
- ^
- windows.c:68:19: error: request for member 'Relationship' in something not a structure or union
- else if (ptr->Relationship == RelationProcessorCore) {
- ^
- windows.c:68:37: error: 'RelationProcessorCore' undeclared (first use in this function)
- else if (ptr->Relationship == RelationProcessorCore) {
- ^
- windows.c:70:26: error: request for member 'Processor' in something not a structure or union
- threads += (ptr->Processor.Flags == LTP_PC_SMT) ? 2 : 1;
- ^
- windows.c:70:47: error: 'LTP_PC_SMT' undeclared (first use in this function)
- threads += (ptr->Processor.Flags == LTP_PC_SMT) ? 2 : 1;
- ^
- windows.c:73:24: error: request for member 'Size' in something not a structure or union
- byteOffset += ptr->Size;
- ^
- windows.c:74:14: error: 'SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX' undeclared (first use in this function)
- ptr = (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX*)(((char*)ptr) + ptr->Size);
- ^
- windows.c:74:54: error: expected expression before ')' token
- ptr = (SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX*)(((char*)ptr) + ptr->Size);
- ^
- windows.c:43:11: warning: unused variable 'k32' [-Wunused-variable]
- HMODULE k32 = GetModuleHandle("Kernel32.dll");
- ^
- windows.c: In function 'bindThisThread':
- windows.c:108:3: error: unknown type name 'fun2_t'
- fun2_t fun2 = (fun2_t)GetProcAddress(k32, "GetNumaNodeProcessorMaskEx");
- ^
- windows.c:108:18: error: 'fun2_t' undeclared (first use in this function)
- fun2_t fun2 = (fun2_t)GetProcAddress(k32, "GetNumaNodeProcessorMaskEx");
- ^
- windows.c:108:25: error: expected ',' or ';' before 'GetProcAddress'
- fun2_t fun2 = (fun2_t)GetProcAddress(k32, "GetNumaNodeProcessorMaskEx");
- ^
- windows.c:109:3: error: unknown type name 'fun3_t'
- fun3_t fun3 = (fun3_t)GetProcAddress(k32, "SetThreadGroupAffinity");
- ^
- windows.c:109:18: error: 'fun3_t' undeclared (first use in this function)
- fun3_t fun3 = (fun3_t)GetProcAddress(k32, "SetThreadGroupAffinity");
- ^
- windows.c:109:25: error: expected ',' or ';' before 'GetProcAddress'
- fun3_t fun3 = (fun3_t)GetProcAddress(k32, "SetThreadGroupAffinity");
- ^
- windows.c:112:3: error: unknown type name 'GROUP_AFFINITY'
- GROUP_AFFINITY affinity;
- ^
- windows.c:113:7: error: called object 'fun2' is not a function or function pointer
- if (fun2(group, &affinity))
- ^
- windows.c:108:10: note: declared here
- fun2_t fun2 = (fun2_t)GetProcAddress(k32, "GetNumaNodeProcessorMaskEx");
- ^
- windows.c:114:7: error: called object 'fun3' is not a function or function pointer
- fun3(GetCurrentThread(), &affinity, NULL);
- ^
- windows.c:109:10: note: declared here
- fun3_t fun3 = (fun3_t)GetProcAddress(k32, "SetThreadGroupAffinity");
- ^
- windows.c:107:11: warning: unused variable 'k32' [-Wunused-variable]
- HMODULE k32 = GetModuleHandle("Kernel32.dll");
- ^
- In file included from fathom/tbprobe.c:103:0:
- fathom/tbcore.c: In function 'map_file':
- fathom/tbcore.c:181:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
- *mapping = (uint64)map;
- ^
- fathom/tbcore.c: In function 'unmap_file':
- fathom/tbcore.c:207:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
- if (!CloseHandle((HANDLE)mapping)) {
- ^
- makefile:41: recipe for target 'pext' failed
- mingw32-make: *** [pext] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement