Skip to content

CMake + VS2010 + Ninja, the compile error are not shown in Problems. #2376

@lygstate

Description

@lygstate

The following is the building output

[main] Building folder: reproc 
[build] Starting build
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build e:/CI-Cor-Ready/study/reproc/build --config Debug --target all --
[build] [12/13   7% :: 0.068] Building C object reproc\CMakeFiles\reproc.dir\src\redirect.c.obj
[build] FAILED: reproc/CMakeFiles/reproc.dir/src/redirect.c.obj 
[build] C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  /nologo -DREPROC_MULTITHREADED -DWIN32_LEAN_AND_MEAN -IE:\CI-Cor-Ready\study\reproc\reproc\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /Foreproc\CMakeFiles\reproc.dir\src\redirect.c.obj /Fdreproc\CMakeFiles\reproc.dir\reproc.pdb -c E:\CI-Cor-Ready\study\reproc\reproc\src\redirect.c
[build] E:\CI-Cor-Ready\study\reproc\reproc\include\reproc/reproc.h(3) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory
[build] [12/13  15% :: 0.070] Building C object reproc\CMakeFiles\reproc.dir\src\drain.c.obj
[build] FAILED: reproc/CMakeFiles/reproc.dir/src/drain.c.obj 
[build] C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  /nologo -DREPROC_MULTITHREADED -DWIN32_LEAN_AND_MEAN -IE:\CI-Cor-Ready\study\reproc\reproc\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /Foreproc\CMakeFiles\reproc.dir\src\drain.c.obj /Fdreproc\CMakeFiles\reproc.dir\reproc.pdb -c E:\CI-Cor-Ready\study\reproc\reproc\src\drain.c
[build] E:\CI-Cor-Ready\study\reproc\reproc\include\reproc/reproc.h(3) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory
[build] [12/13  23% :: 0.074] Building C object reproc\CMakeFiles\reproc.dir\src\process.windows.c.obj
[build] FAILED: reproc/CMakeFiles/reproc.dir/src/process.windows.c.obj 
[build] C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  /nologo -DREPROC_MULTITHREADED -DWIN32_LEAN_AND_MEAN -IE:\CI-Cor-Ready\study\reproc\reproc\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /Foreproc\CMakeFiles\reproc.dir\src\process.windows.c.obj /Fdreproc\CMakeFiles\reproc.dir\reproc.pdb -c E:\CI-Cor-Ready\study\reproc\reproc\src\process.windows.c
[build] e:\ci-cor-ready\study\reproc\reproc\src\handle.h(3) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory
[build] [12/13  30% :: 0.077] Building C object reproc\CMakeFiles\reproc.dir\src\reproc.c.obj
[build] FAILED: reproc/CMakeFiles/reproc.dir/src/reproc.c.obj 
[build] C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  /nologo -DREPROC_MULTITHREADED -DWIN32_LEAN_AND_MEAN -IE:\CI-Cor-Ready\study\reproc\reproc\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /Foreproc\CMakeFiles\reproc.dir\src\reproc.c.obj /Fdreproc\CMakeFiles\reproc.dir\reproc.pdb -c E:\CI-Cor-Ready\study\reproc\reproc\src\reproc.c
[build] E:\CI-Cor-Ready\study\reproc\reproc\include\reproc/reproc.h(3) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory
[build] [12/13  38% :: 0.080] Building C object reproc\CMakeFiles\reproc.dir\src\pipe.windows.c.obj
[build] FAILED: reproc/CMakeFiles/reproc.dir/src/pipe.windows.c.obj 
[build] C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  /nologo -DREPROC_MULTITHREADED -DWIN32_LEAN_AND_MEAN -IE:\CI-Cor-Ready\study\reproc\reproc\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /Foreproc\CMakeFiles\reproc.dir\src\pipe.windows.c.obj /Fdreproc\CMakeFiles\reproc.dir\reproc.pdb -c E:\CI-Cor-Ready\study\reproc\reproc\src\pipe.windows.c
[build] e:\ci-cor-ready\study\reproc\reproc\src\pipe.h(3) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory
[build] [12/13  46% :: 0.083] Building C object reproc\CMakeFiles\reproc.dir\src\handle.windows.c.obj
[build] FAILED: reproc/CMakeFiles/reproc.dir/src/handle.windows.c.obj 
[build] C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  /nologo -DREPROC_MULTITHREADED -DWIN32_LEAN_AND_MEAN -IE:\CI-Cor-Ready\study\reproc\reproc\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /Foreproc\CMakeFiles\reproc.dir\src\handle.windows.c.obj /Fdreproc\CMakeFiles\reproc.dir\reproc.pdb -c E:\CI-Cor-Ready\study\reproc\reproc\src\handle.windows.c
[build] e:\ci-cor-ready\study\reproc\reproc\src\handle.h(3) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory
[build] [12/13  53% :: 0.087] Building C object reproc\CMakeFiles\reproc.dir\src\run.c.obj
[build] FAILED: reproc/CMakeFiles/reproc.dir/src/run.c.obj 
[build] C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  /nologo -DREPROC_MULTITHREADED -DWIN32_LEAN_AND_MEAN -IE:\CI-Cor-Ready\study\reproc\reproc\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /Foreproc\CMakeFiles\reproc.dir\src\run.c.obj /Fdreproc\CMakeFiles\reproc.dir\reproc.pdb -c E:\CI-Cor-Ready\study\reproc\reproc\src\run.c
[build] E:\CI-Cor-Ready\study\reproc\reproc\include\reproc/reproc.h(3) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory
[build] [12/13  61% :: 0.087] Building C object reproc\CMakeFiles\reproc.dir\src\redirect.windows.c.obj
[build] FAILED: reproc/CMakeFiles/reproc.dir/src/redirect.windows.c.obj 
[build] C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  /nologo -DREPROC_MULTITHREADED -DWIN32_LEAN_AND_MEAN -IE:\CI-Cor-Ready\study\reproc\reproc\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /Foreproc\CMakeFiles\reproc.dir\src\redirect.windows.c.obj /Fdreproc\CMakeFiles\reproc.dir\reproc.pdb -c E:\CI-Cor-Ready\study\reproc\reproc\src\redirect.windows.c
[build] E:\CI-Cor-Ready\study\reproc\reproc\include\reproc/reproc.h(3) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory
[build] [12/13  69% :: 0.087] Building C object reproc\CMakeFiles\reproc.dir\src\options.c.obj
[build] FAILED: reproc/CMakeFiles/reproc.dir/src/options.c.obj 
[build] C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  /nologo -DREPROC_MULTITHREADED -DWIN32_LEAN_AND_MEAN -IE:\CI-Cor-Ready\study\reproc\reproc\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /Foreproc\CMakeFiles\reproc.dir\src\options.c.obj /Fdreproc\CMakeFiles\reproc.dir\reproc.pdb -c E:\CI-Cor-Ready\study\reproc\reproc\src\options.c
[build] E:\CI-Cor-Ready\study\reproc\reproc\include\reproc/reproc.h(3) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory
[build] [12/13  76% :: 0.102] Building C object reproc\CMakeFiles\reproc.dir\src\strv.c.obj
[build] FAILED: reproc/CMakeFiles/reproc.dir/src/strv.c.obj 
[build] C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  /nologo -DREPROC_MULTITHREADED -DWIN32_LEAN_AND_MEAN -IE:\CI-Cor-Ready\study\reproc\reproc\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /Foreproc\CMakeFiles\reproc.dir\src\strv.c.obj /Fdreproc\CMakeFiles\reproc.dir\reproc.pdb -c E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(13) : error C2143: syntax error : missing ';' before 'type'
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(14) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(18) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(18) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'int'
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(18) : warning C4024: 'strcpy' : different types for formal and actual parameter 1
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(20) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(20) : warning C4047: 'return' : 'char *' differs in levels of indirection from 'int'
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(38) : error C2143: syntax error : missing ';' before 'type'
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(39) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(44) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(44) : error C2109: subscript requires array or pointer type
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(45) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(45) : error C2109: subscript requires array or pointer type
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(53) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(53) : error C2109: subscript requires array or pointer type
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(54) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(54) : error C2109: subscript requires array or pointer type
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(61) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(61) : error C2109: subscript requires array or pointer type
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(65) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(65) : warning C4047: '=' : 'char *const *' differs in levels of indirection from 'int'
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(69) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(69) : warning C4022: 'free' : pointer mismatch for actual parameter 1
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(74) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\strv.c(74) : warning C4047: 'return' : 'char **' differs in levels of indirection from 'int'
[build] [12/13  84% :: 0.172] Building C object reproc\CMakeFiles\reproc.dir\src\error.windows.c.obj
[build] FAILED: reproc/CMakeFiles/reproc.dir/src/error.windows.c.obj 
[build] C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  /nologo -DREPROC_MULTITHREADED -DWIN32_LEAN_AND_MEAN -IE:\CI-Cor-Ready\study\reproc\reproc\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /Foreproc\CMakeFiles\reproc.dir\src\error.windows.c.obj /Fdreproc\CMakeFiles\reproc.dir\reproc.pdb -c E:\CI-Cor-Ready\study\reproc\reproc\src\error.windows.c
[build] E:\CI-Cor-Ready\study\reproc\reproc\include\reproc/reproc.h(3) : fatal error C1083: Cannot open include file: 'stdbool.h': No such file or directory
[build] [12/13  92% :: 0.180] Building C object reproc\CMakeFiles\reproc.dir\src\utf.windows.c.obj
[build] FAILED: reproc/CMakeFiles/reproc.dir/src/utf.windows.c.obj 
[build] C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  /nologo -DREPROC_MULTITHREADED -DWIN32_LEAN_AND_MEAN -IE:\CI-Cor-Ready\study\reproc\reproc\include /DWIN32 /D_WINDOWS /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /Foreproc\CMakeFiles\reproc.dir\src\utf.windows.c.obj /Fdreproc\CMakeFiles\reproc.dir\reproc.pdb -c E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(15) : error C2143: syntax error : missing ';' before 'type'
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(17) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(23) : error C2275: 'wchar_t' : illegal use of this type as an expression
[build]         c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(35) : see declaration of 'wchar_t'
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(23) : error C2065: 'wstring' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(23) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(24) : error C2065: 'wstring' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(24) : warning C4047: '==' : 'int' differs in levels of indirection from 'void *'
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(32) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(32) : error C2065: 'wstring' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(32) : warning C4047: 'function' : 'LPWSTR' differs in levels of indirection from 'int'
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(32) : warning C4024: 'MultiByteToWideChar' : different types for formal and actual parameter 5
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(32) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(33) : error C2065: 'r' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(34) : error C2065: 'wstring' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(34) : warning C4022: 'free' : pointer mismatch for actual parameter 1
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(38) : error C2065: 'wstring' : undeclared identifier
[build] E:\CI-Cor-Ready\study\reproc\reproc\src\utf.windows.c(38) : warning C4047: 'return' : 'wchar_t *' differs in levels of indirection from 'int'
[build] ninja: build stopped: subcommand failed.
[build] Build finished with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: diagnosticsissues with problem matchers for compiler outputbuga bug in the product

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions