Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
None
-
None
Description
Hello,
I am trying to compile latest revision of ReactOS (65dbfc286818e18095b7cc0c85f63cde6b3e629d) using Visual Studio Community 2017 (15.9.4) and I am getting this error:
[1/10609] Performing build step for 'host-tools' FAILED: host-tools/stamps/host-tools-build host-tools/bin2c.exe host-tools/hpp.exe host-tools/widl.exe host-tools/gendib.exe host-tools/cabman.exe host-tools/fatten.exe host-tools/isohybrid.exe host-tools/mkhive.exe host-tools/mkisofs.exe host-tools/obj2bin.exe host-tools/spec2def.exe host-tools/geninc.exe host-tools/mkshelllink.exe host-tools/utf16le.exe host-tools/xml2sdb.exe cmd.exe /C "cd /D C:\Users\volodymyr\Documents\Sources\reactos\output-VS-i386\host-tools && C:\RosBE\bin\cmake.exe --build C:/Users/volodymyr/Documents/Sources/reactos/output-VS-i386/host-tools --config ." [1/265] Building C object dll/win32/dbghelp/CMakeFiles/dbghelphost.dir/stabs.c.obj FAILED: dll/win32/dbghelp/CMakeFiles/dbghelphost.dir/stabs.c.obj C:\MinGW\bin\gcc.exe -DDBGHELP_STATIC_LIB -DTARGET_i386 -D_X86_ -D__REACTOS__ -D__RELFILE__="&__FILE__[__FILE__[0] == '.' ? sizeof \"../../\" - 1 : sizeof REACTOS_SOURCE_DIR]" -Idll/win32/dbghelp -I../../dll/win32/dbghelp -I../../sdk/include/host -I../../tools -I../../sdk/include/reactos/libs/zlib -DREACTOS_SOURCE_DIR="\"C:/Users/volodymyr/Documents/Sources/reactos\"" -DREACTOS_BINARY_DIR="\"C:/Users/volodymyr/Documents/Sources/reactos/output-VS-i386/host-tools\"" -MMD -MT dll/win32/dbghelp/CMakeFiles/dbghelphost.dir/stabs.c.obj -MF dll/win32/dbghelp/CMakeFiles/dbghelphost.dir/stabs.c.obj.d -o dll/win32/dbghelp/CMakeFiles/dbghelphost.dir/stabs.c.obj -c ../../dll/win32/dbghelp/stabs.c In file included from ../../sdk/include/host/wine/port.h:1:0, from ../../dll/win32/dbghelp/stabs.c:33: ../../sdk/include/host/wine/../../reactos/wine/port.h:315:5: error: conflicting types for 'usleep' int usleep (unsigned int useconds); ^~~~~~ In file included from ../../sdk/include/host/wine/../../reactos/wine/port.h:46:0, from ../../sdk/include/host/wine/port.h:1, from ../../dll/win32/dbghelp/stabs.c:33: c:\mingw\include\unistd.h:100:29: note: previous declaration of 'usleep' was here int __cdecl __MINGW_NOTHROW usleep( useconds_t )__MINGW_ATTRIB_DEPRECATED; ^~~~~~ In file included from ../../dll/win32/dbghelp/dbghelp_private.h:46:0, from ../../dll/win32/dbghelp/stabs.c:63: ../../dll/win32/dbghelp/compat.h:26:0: warning: "MAX_PATH" redefined #define MAX_PATH 260 In file included from ../../dll/win32/dbghelp/stabs.c:44:0: c:\mingw\include\stdlib.h:76:0: note: this is the location of the previous definition #define MAX_PATH (260) [2/265] Building C object dll/win32/dbghelp/CMakeFiles/dbghelphost.dir/pe_module.c.obj FAILED: dll/win32/dbghelp/CMakeFiles/dbghelphost.dir/pe_module.c.obj C:\MinGW\bin\gcc.exe -DDBGHELP_STATIC_LIB -DTARGET_i386 -D_X86_ -D__REACTOS__ -D__RELFILE__="&__FILE__[__FILE__[0] == '.' ? sizeof \"../../\" - 1 : sizeof REACTOS_SOURCE_DIR]" -Idll/win32/dbghelp -I../../dll/win32/dbghelp -I../../sdk/include/host -I../../tools -I../../sdk/include/reactos/libs/zlib -DREACTOS_SOURCE_DIR="\"C:/Users/volodymyr/Documents/Sources/reactos\"" -DREACTOS_BINARY_DIR="\"C:/Users/volodymyr/Documents/Sources/reactos/output-VS-i386/host-tools\"" -MMD -MT dll/win32/dbghelp/CMakeFiles/dbghelphost.dir/pe_module.c.obj -MF dll/win32/dbghelp/CMakeFiles/dbghelphost.dir/pe_module.c.obj.d -o dll/win32/dbghelp/CMakeFiles/dbghelphost.dir/pe_module.c.obj -c ../../dll/win32/dbghelp/pe_module.c In file included from ../../sdk/include/host/wine/port.h:1:0, from ../../dll/win32/dbghelp/pe_module.c:25: ../../sdk/include/host/wine/../../reactos/wine/port.h:315:5: error: conflicting types for 'usleep' int usleep (unsigned int useconds); ^~~~~~ In file included from ../../sdk/include/host/wine/../../reactos/wine/port.h:46:0, from ../../sdk/include/host/wine/port.h:1, from ../../dll/win32/dbghelp/pe_module.c:25: c:\mingw\include\unistd.h:100:29: note: previous declaration of 'usleep' was here int __cdecl __MINGW_NOTHROW usleep( useconds_t )__MINGW_ATTRIB_DEPRECATED; ^~~~~~ In file included from ../../dll/win32/dbghelp/dbghelp_private.h:46:0, from ../../dll/win32/dbghelp/pe_module.c:32: ../../dll/win32/dbghelp/compat.h:26:0: warning: "MAX_PATH" redefined #define MAX_PATH 260 In file included from ../../dll/win32/dbghelp/pe_module.c:27:0: c:\mingw\include\stdlib.h:76:0: note: this is the location of the previous definition #define MAX_PATH (260)
|
So it appears the problem is in:
error: conflicting types for 'usleep'
Anyone has seen this issue?
P.S. For the sake of the test I also tried to compile using latest ReactOS Build Environment and it works well.