Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake task provider does not configure the VS Build environment for Ninja builds #2258

Closed
qu1ck opened this issue Nov 20, 2021 · 8 comments · Fixed by #2356
Closed

CMake task provider does not configure the VS Build environment for Ninja builds #2258

qu1ck opened this issue Nov 20, 2021 · 8 comments · Fixed by #2356
Assignees
Labels
bug a bug in the product Feature: tasks
Milestone

Comments

@qu1ck
Copy link

qu1ck commented Nov 20, 2021

Brief Issue Summary

Build succeeds if launched from "Cmake: Build" palette command or using F7 shortcut.
Build fails if launched using task with configuration:

        {
            "label": "CMake-build",
            "command": "build",
            "type": "cmake",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": []
        }

These are cmake related settings from settings.json:

    "cmake.installPrefix": "D:\\Kicad\\msvc-build",
    "cmake.configureSettings": {
        "Boost_NO_BOOST_CMAKE": "ON",
        "CMAKE_TOOLCHAIN_FILE": "D:/devtools/vcpkg//scripts/buildsystems/vcpkg.cmake",
        "KICAD_SCRIPTING_PYTHON3": "ON",
        "KICAD_SCRIPTING_WXPYTHON_PHOENIX": "ON",
        "KICAD_USE_OCC": "ON",
    },
    "cmake.configureEnvironment": {
        "PATH": "D:\\devtools\\swigwin-4.0.2;D:\\devtools\\vcpkg\\installed\\x64-windows\\bin;D:\\devtools\\vcpkg\\installed\\x64-windows\\tools\\python3;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\\\Extensions\\Microsoft\\IntelliCode\\CLI;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Team Tools\\Performance Tools\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Team Tools\\Performance Tools;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Common\\VSPerfCollectionTools\\vs2019\\\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Common\\VSPerfCollectionTools\\vs2019\\;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.18362.0\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\\\MSBuild\\Current\\Bin;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;${env.PATH}",
    },
    "cmake.buildEnvironment": {
        "PATH": "D:\\devtools\\swigwin-4.0.2;D:\\devtools\\vcpkg\\installed\\x64-windows\\bin;D:\\devtools\\vcpkg\\installed\\x64-windows\\tools\\python3;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\\\Extensions\\Microsoft\\IntelliCode\\CLI;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\VC\\VCPackages;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\bin\\Roslyn;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Team Tools\\Performance Tools\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Team Tools\\Performance Tools;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Common\\VSPerfCollectionTools\\vs2019\\\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Common\\VSPerfCollectionTools\\vs2019\\;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.18362.0\\x64;C:\\Program Files (x86)\\Windows Kits\\10\\bin\\x64;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\\\MSBuild\\Current\\Bin;C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\CMake\\bin;C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\CMake\\Ninja;${env.PATH}",
    },
    "cmake.configureArgs": [
        "-GNinja"
    ],
    "cmake.loggingLevel": "debug",
    "cmake.generator": "Ninja",
    "cmake.buildDirectory": "${workspaceFolder}/build/vscode-msvc",
    "cmake.enableTraceLogging": true,
    "cmake.cmakeCommunicationMode": "fileApi",
    "cmake.configureOnOpen": true,
    "cmake.skipConfigureIfCachePresent": true,

CMake Tools Diagnostics

{
  "os": "win32",
  "vscodeVersion": "1.62.2",
  "cmtVersion": "1.9.1",
  "configurations": [
    {
      "folder": "d:\\Kicad\\source",
      "cmakeVersion": "3.19.1",
      "configured": true,
      "generator": "Ninja",
      "usesPresets": false,
      "compilers": {
        "C": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe",
        "CXX": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe"
      }
    }
  ],
  "cpptoolsIntegration": {
    "isReady": true,
    "hasCodeModel": true,
    "activeBuildType": "RelWithDebInfo",
    "buildTypesSeen": [
      "RelWithDebInfo"
    ],
    "requests": [
      "file:///d%3A/Kicad/source/kicad/pcm/pcm.cpp",
      "file:///d%3A/Kicad/source/kicad/pcm/dialogs/panel_packages_view.cpp"
    ],
    "responses": [
      {
        "uri": "file:///d%3A/Kicad/source/kicad/pcm/pcm.cpp",
        "configuration": {
          "defines": [
            "BOOST_ALL_NO_LIB",
            "BOOST_UUID_FORCE_AUTO_LINK",
            "GLM_FORCE_CTOR_INIT",
            "HAVE_STDINT_H",
            "KICAD",
            "KICAD_BUILD_ARCH=x64",
            "KICAD_BUILD_ARCH_X64",
            "KICAD_CONFIG_DIR=kicad",
            "KICAD_SCRIPTING_WXPYTHON",
            "KICAD_SPICE",
            "KICAD_USE_OCC",
            "NOMINMAX",
            "PCM",
            "UNICODE",
            "WXUSINGDLL",
            "WX_COMPATIBILITY",
            "_CRT_NONSTDC_NO_DEPRECATE",
            "_CRT_SECURE_NO_WARNINGS",
            "_SCL_SECURE_NO_WARNINGS",
            "_UNICODE",
            "_USE_MATH_DEFINES",
            "WIN32",
            "_WINDOWS",
            "NDEBUG"
          ],
          "standard": "c++14",
          "includePath": [
            "d:/kicad/source/include",
            "d:/kicad/source/kicad/pcm",
            "d:/kicad/source/kicad",
            "d:/kicad/source/resources/msw",
            "d:/kicad/source/pcbnew",
            "d:/kicad/source/eeschema",
            "d:/kicad/source/build/vscode-msvc",
            "d:/devtools/vcpkg/installed/x64-windows/include/python3.9",
            "d:/kicad/source/scripting",
            "d:/kicad/source/common",
            "d:/kicad/source/kicad",
            "d:/kicad/source/kicad/pcm/dialogs",
            "d:/kicad/source/thirdparty/nlohmann_json",
            "d:/kicad/source/thirdparty/compoundfilereader",
            "d:/kicad/source/build/vscode-msvc/common",
            "d:/kicad/source/libs/kimath/include",
            "d:/kicad/source/thirdparty/clipper",
            "d:/kicad/source/thirdparty/other_math",
            "d:/kicad/source/thirdparty/rtree",
            "d:/kicad/source/libs/kiplatform/include",
            "d:/kicad/source/thirdparty/picosha2",
            "d:/kicad/source/thirdparty/json_schema_validator",
            "d:/kicad/source/thirdparty/pybind11/include",
            "d:/devtools/vcpkg/installed/x64-windows/include",
            "d:/devtools/vcpkg/installed/x64-windows/include/opencascade",
            "d:/devtools/vcpkg/installed/x64-windows/lib/mswu",
            "d:/devtools/vcpkg/installed/x64-windows/include",
            "d:/devtools/vcpkg/installed/x64-windows/tools/python3/include"
          ],
          "compilerPath": "c:/program files (x86)/microsoft visual studio/2019/community/vc/tools/msvc/14.29.30037/bin/hostx64/x64/cl.exe",
          "compilerArgs": [
            "/DWIN32",
            "/D_WINDOWS",
            "/W3",
            "/GR",
            "/utf-8",
            "/wd4290",
            "/wd4800",
            "/Zi",
            "/bigobj",
            "/EHs",
            "/MD",
            "/Zi",
            "/O2",
            "/Ob1",
            "/DNDEBUG",
            "/GF",
            "/Gy",
            "-std:c++14"
          ]
        }
      },
      {
        "uri": "file:///d%3A/Kicad/source/kicad/pcm/dialogs/panel_packages_view.cpp",
        "configuration": {
          "defines": [
            "BOOST_ALL_NO_LIB",
            "BOOST_UUID_FORCE_AUTO_LINK",
            "GLM_FORCE_CTOR_INIT",
            "HAVE_STDINT_H",
            "KICAD",
            "KICAD_BUILD_ARCH=x64",
            "KICAD_BUILD_ARCH_X64",
            "KICAD_CONFIG_DIR=kicad",
            "KICAD_SCRIPTING_WXPYTHON",
            "KICAD_SPICE",
            "KICAD_USE_OCC",
            "NOMINMAX",
            "PCM",
            "UNICODE",
            "WXUSINGDLL",
            "WX_COMPATIBILITY",
            "_CRT_NONSTDC_NO_DEPRECATE",
            "_CRT_SECURE_NO_WARNINGS",
            "_SCL_SECURE_NO_WARNINGS",
            "_UNICODE",
            "_USE_MATH_DEFINES",
            "WIN32",
            "_WINDOWS",
            "NDEBUG"
          ],
          "standard": "c++14",
          "includePath": [
            "d:/kicad/source/include",
            "d:/kicad/source/kicad/pcm",
            "d:/kicad/source/kicad",
            "d:/kicad/source/resources/msw",
            "d:/kicad/source/pcbnew",
            "d:/kicad/source/eeschema",
            "d:/kicad/source/build/vscode-msvc",
            "d:/devtools/vcpkg/installed/x64-windows/include/python3.9",
            "d:/kicad/source/scripting",
            "d:/kicad/source/common",
            "d:/kicad/source/kicad",
            "d:/kicad/source/kicad/pcm/dialogs",
            "d:/kicad/source/thirdparty/nlohmann_json",
            "d:/kicad/source/thirdparty/compoundfilereader",
            "d:/kicad/source/build/vscode-msvc/common",
            "d:/kicad/source/libs/kimath/include",
            "d:/kicad/source/thirdparty/clipper",
            "d:/kicad/source/thirdparty/other_math",
            "d:/kicad/source/thirdparty/rtree",
            "d:/kicad/source/libs/kiplatform/include",
            "d:/kicad/source/thirdparty/picosha2",
            "d:/kicad/source/thirdparty/json_schema_validator",
            "d:/kicad/source/thirdparty/pybind11/include",
            "d:/devtools/vcpkg/installed/x64-windows/include",
            "d:/devtools/vcpkg/installed/x64-windows/include/opencascade",
            "d:/devtools/vcpkg/installed/x64-windows/lib/mswu",
            "d:/devtools/vcpkg/installed/x64-windows/include",
            "d:/devtools/vcpkg/installed/x64-windows/tools/python3/include"
          ],
          "compilerPath": "c:/program files (x86)/microsoft visual studio/2019/community/vc/tools/msvc/14.29.30037/bin/hostx64/x64/cl.exe",
          "compilerArgs": [
            "/DWIN32",
            "/D_WINDOWS",
            "/W3",
            "/GR",
            "/utf-8",
            "/wd4290",
            "/wd4800",
            "/Zi",
            "/bigobj",
            "/EHs",
            "/MD",
            "/Zi",
            "/O2",
            "/Ob1",
            "/DNDEBUG",
            "/GF",
            "/Gy",
            "-std:c++14"
          ]
        }
      }
    ],
    "partialMatches": [],
    "targetCount": 105,
    "executablesCount": 26,
    "librariesCount": 44,
    "targets": []
  },
  "settings": [
    {
      "communicationMode": "fileApi",
      "useCMakePresets": "auto",
      "configureOnOpen": true
    }
  ]
}

Debug Log

This is the output to the terminal if I launch from a task. It doesn't output anything to output tab.

> Executing task: CMake-build <

Starting build...
D:\devtools\CMake\bin\cmake.EXE --build d:/Kicad/source/build/vscode-msvc --config RelWithDebInfo --target install -j 26 --
[1/45] Generating version string header
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.23.0.windows.1") 
-- Using Git to determine build version string.
-- Writing D:/Kicad/source/build/vscode-msvc/kicad_build_version.h file with version: (6.0.0-rc1-67-ga17782d5d2-dirty)
[2/45] Creating image archive D:/Kicad/source/build/vscode-msvc/resources/images.tar.gz
[3/45] Building RC object gerbview\CMakeFiles\gerbview.dir\__\resources\msw\gerbview.rc.res
FAILED: gerbview/CMakeFiles/gerbview.dir/__/resources/msw/gerbview.rc.res 
"D:/devtools/CMake/bin/cmcldeps.exe" RC D:\Kicad\source\resources\msw\gerbview.rc gerbview\CMakeFiles\gerbview.dir\__\resources\msw\gerbview.rc.res.d gerbview\CMakeFiles\gerbview.dir\__\resources\msw\gerbview.rc.res "Note: including file: " "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe" C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\rc.exe -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGERBVIEW -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I D:\Kicad\source\include -I D:\Kicad\source\gerbview -I D:\Kicad\source\resources\msw -I D:\Kicad\source\gerbview\dialogs -I D:\Kicad\source\common -I D:\Kicad\source\common\dialogs -I D:\Kicad\source\3d-viewer -I D:\Kicad\source\build\vscode-msvc -I D:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I D:\Kicad\source\scripting -I D:\Kicad\source\thirdparty\nlohmann_json -I D:\Kicad\source\thirdparty\compoundfilereader -I D:\Kicad\source\build\vscode-msvc\common -I D:\Kicad\source\libs\kimath\include -I D:\Kicad\source\thirdparty\clipper -I D:\Kicad\source\thirdparty\other_math -I D:\Kicad\source\thirdparty\rtree -I D:\Kicad\source\libs\kiplatform\include -I D:\Kicad\source\thirdparty\pybind11\include -I D:\devtools\vcpkg\installed\x64-windows\include -I D:\devtools\vcpkg\installed\x64-windows\include\opencascade -I D:\devtools\vcpkg\installed\x64-windows\lib\mswu -I D:\devtools\vcpkg\installed\x64-windows\include -I D:\devtools\vcpkg\installed\x64-windows\tools\python3\include -DWIN32 /fo gerbview\CMakeFiles\gerbview.dir\__\resources\msw\gerbview.rc.res D:\Kicad\source\resources\msw\gerbview.rc
cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
D:\devtools\vcpkg\installed\x64-windows\include\wx/msw/wx.rc(12): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
[4/45] Building RC object kicad\CMakeFiles\kicad.dir\__\resources\msw\kicad.rc.res
FAILED: kicad/CMakeFiles/kicad.dir/__/resources/msw/kicad.rc.res 
"D:/devtools/CMake/bin/cmcldeps.exe" RC D:\Kicad\source\resources\msw\kicad.rc kicad\CMakeFiles\kicad.dir\__\resources\msw\kicad.rc.res.d kicad\CMakeFiles\kicad.dir\__\resources\msw\kicad.rc.res "Note: including file: " "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe" C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\rc.exe -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DPCM -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I D:\Kicad\source\include -I D:\Kicad\source\kicad -I D:\Kicad\source\resources\msw -I D:\Kicad\source\pcbnew -I D:\Kicad\source\eeschema -I D:\Kicad\source\build\vscode-msvc -I D:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I D:\Kicad\source\scripting -I D:\Kicad\source\kicad\pcm -I D:\Kicad\source\thirdparty\nlohmann_json -I D:\Kicad\source\thirdparty\compoundfilereader -I D:\Kicad\source\build\vscode-msvc\common -I D:\Kicad\source\libs\kimath\include -I D:\Kicad\source\thirdparty\clipper -I D:\Kicad\source\thirdparty\other_math -I D:\Kicad\source\thirdparty\rtree -I D:\Kicad\source\libs\kiplatform\include -I D:\Kicad\source\kicad\pcm\dialogs -I D:\Kicad\source\thirdparty\picosha2 -I D:\Kicad\source\thirdparty\json_schema_validator -I D:\Kicad\source\thirdparty\pybind11\include -I D:\devtools\vcpkg\installed\x64-windows\include -I D:\devtools\vcpkg\installed\x64-windows\include\opencascade -I D:\devtools\vcpkg\installed\x64-windows\lib\mswu -I D:\devtools\vcpkg\installed\x64-windows\include -I D:\devtools\vcpkg\installed\x64-windows\tools\python3\include -DWIN32 /fo kicad\CMakeFiles\kicad.dir\__\resources\msw\kicad.rc.res D:\Kicad\source\resources\msw\kicad.rc
cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
D:\devtools\vcpkg\installed\x64-windows\include\wx/msw/wx.rc(12): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
[5/45] Building RC object bitmap2component\CMakeFiles\bitmap2component.dir\__\resources\msw\bitmap2component.rc.res
FAILED: bitmap2component/CMakeFiles/bitmap2component.dir/__/resources/msw/bitmap2component.rc.res 
"D:/devtools/CMake/bin/cmcldeps.exe" RC D:\Kicad\source\resources\msw\bitmap2component.rc bitmap2component\CMakeFiles\bitmap2component.dir\__\resources\msw\bitmap2component.rc.res.d bitmap2component\CMakeFiles\bitmap2component.dir\__\resources\msw\bitmap2component.rc.res "Note: including file: " "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe" C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\rc.exe -DBITMAP_2_CMP -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I D:\Kicad\source\include -I D:\Kicad\source\bitmap2component -I D:\Kicad\source\resources\msw -I D:\Kicad\source\build\vscode-msvc -I D:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I D:\Kicad\source\scripting -I D:\Kicad\source\thirdparty\nlohmann_json -I D:\Kicad\source\thirdparty\compoundfilereader -I D:\Kicad\source\build\vscode-msvc\common -I D:\Kicad\source\libs\kimath\include -I D:\Kicad\source\thirdparty\clipper -I D:\Kicad\source\thirdparty\other_math -I D:\Kicad\source\thirdparty\rtree -I D:\Kicad\source\libs\kiplatform\include -I D:\Kicad\source\thirdparty\potrace\include -I D:\Kicad\source\thirdparty\pybind11\include -I D:\devtools\vcpkg\installed\x64-windows\include -I D:\devtools\vcpkg\installed\x64-windows\include\opencascade -I D:\devtools\vcpkg\installed\x64-windows\lib\mswu -I D:\devtools\vcpkg\installed\x64-windows\include -I D:\devtools\vcpkg\installed\x64-windows\tools\python3\include -DWIN32 /fo bitmap2component\CMakeFiles\bitmap2component.dir\__\resources\msw\bitmap2component.rc.res D:\Kicad\source\resources\msw\bitmap2component.rc
cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
D:\devtools\vcpkg\installed\x64-windows\include\wx/msw/wx.rc(12): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
[6/45] Building RC object pagelayout_editor\CMakeFiles\pl_editor.dir\__\resources\msw\pl_editor.rc.res
FAILED: pagelayout_editor/CMakeFiles/pl_editor.dir/__/resources/msw/pl_editor.rc.res 
"D:/devtools/CMake/bin/cmcldeps.exe" RC D:\Kicad\source\resources\msw\pl_editor.rc pagelayout_editor\CMakeFiles\pl_editor.dir\__\resources\msw\pl_editor.rc.res.d pagelayout_editor\CMakeFiles\pl_editor.dir\__\resources\msw\pl_editor.rc.res "Note: including file: " "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe" C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\rc.exe -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DPL_EDITOR -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I D:\Kicad\source\include -I D:\Kicad\source\pagelayout_editor -I D:\Kicad\source\resources\msw -I D:\Kicad\source\pagelayout_editor\dialogs -I D:\Kicad\source\common\dialogs -I D:\Kicad\source\build\vscode-msvc -I D:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I D:\Kicad\source\scripting -I D:\Kicad\source\thirdparty\nlohmann_json -I D:\Kicad\source\thirdparty\compoundfilereader -I D:\Kicad\source\build\vscode-msvc\common -I D:\Kicad\source\libs\kimath\include -I D:\Kicad\source\thirdparty\clipper -I D:\Kicad\source\thirdparty\other_math -I D:\Kicad\source\thirdparty\rtree -I D:\Kicad\source\libs\kiplatform\include -I D:\Kicad\source\thirdparty\pybind11\include -I D:\devtools\vcpkg\installed\x64-windows\include -I D:\devtools\vcpkg\installed\x64-windows\include\opencascade -I D:\devtools\vcpkg\installed\x64-windows\lib\mswu -I D:\devtools\vcpkg\installed\x64-windows\include -I D:\devtools\vcpkg\installed\x64-windows\tools\python3\include -DWIN32 /fo pagelayout_editor\CMakeFiles\pl_editor.dir\__\resources\msw\pl_editor.rc.res D:\Kicad\source\resources\msw\pl_editor.rc
cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
D:\devtools\vcpkg\installed\x64-windows\include\wx/msw/wx.rc(12): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
[7/45] Building CXX object kicad\CMakeFiles\kicad.dir\tools\kicad_manager_control.cpp.obj
FAILED: kicad/CMakeFiles/kicad.dir/tools/kicad_manager_control.cpp.obj 
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe  /nologo /TP -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DPCM -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I..\..\include -I..\..\kicad\. -I..\..\resources\msw -I..\..\pcbnew -I..\..\eeschema -I. -ID:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I..\..\scripting -I..\..\kicad\.\pcm -I..\..\thirdparty\nlohmann_json -I..\..\thirdparty\compoundfilereader -Icommon -I..\..\libs\kimath\include -I..\..\thirdparty\clipper -I..\..\thirdparty\other_math -I..\..\thirdparty\rtree -I..\..\libs\kiplatform\include -I..\..\kicad\pcm\dialogs -I..\..\thirdparty\picosha2 -I..\..\thirdparty\json_schema_validator -I..\..\thirdparty\pybind11\include -ID:\devtools\vcpkg\installed\x64-windows\include -ID:\devtools\vcpkg\installed\x64-windows\include\opencascade -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\lib\mswu -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\include -ID:\devtools\vcpkg\installed\x64-windows\tools\python3\include /DWIN32 /D_WINDOWS /W3 /GR  /utf-8 /wd4290 /wd4800 /Zi /bigobj /EHs /MD /Zi /O2 /Ob1 /DNDEBUG /GF /Gy -std:c++14 /showIncludes /Fokicad\CMakeFiles\kicad.dir\tools\kicad_manager_control.cpp.obj /Fdkicad\CMakeFiles\kicad.dir\ /FS -c ..\..\kicad\tools\kicad_manager_control.cpp
D:\Kicad\source\include\wildcards_and_files_ext.h(35): fatal error C1083: Cannot open include file: 'string': No such file or directory
[8/45] Building CXX object kicad\pcm\CMakeFiles\pcm.dir\dialogs\dialog_pcm.cpp.obj
FAILED: kicad/pcm/CMakeFiles/pcm.dir/dialogs/dialog_pcm.cpp.obj 
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe  /nologo /TP -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DPCM -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I..\..\include -I..\..\kicad\pcm\. -I..\..\kicad\. -I..\..\resources\msw -I..\..\pcbnew -I..\..\eeschema -I. -ID:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I..\..\scripting -I..\..\common -I..\..\kicad -I..\..\kicad\pcm\dialogs -I..\..\thirdparty\nlohmann_json -I..\..\thirdparty\compoundfilereader -Icommon -I..\..\libs\kimath\include -I..\..\thirdparty\clipper -I..\..\thirdparty\other_math -I..\..\thirdparty\rtree -I..\..\libs\kiplatform\include -I..\..\thirdparty\picosha2 -I..\..\thirdparty\json_schema_validator -I..\..\thirdparty\pybind11\include -ID:\devtools\vcpkg\installed\x64-windows\include -ID:\devtools\vcpkg\installed\x64-windows\include\opencascade -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\lib\mswu -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\include -ID:\devtools\vcpkg\installed\x64-windows\tools\python3\include /DWIN32 /D_WINDOWS /W3 /GR  /utf-8 /wd4290 /wd4800 /Zi /bigobj /EHs /MD /Zi /O2 /Ob1 /DNDEBUG /GF /Gy -std:c++14 /showIncludes /Fokicad\pcm\CMakeFiles\pcm.dir\dialogs\dialog_pcm.cpp.obj /Fdkicad\pcm\CMakeFiles\pcm.dir\pcm.pdb /FS -c ..\..\kicad\pcm\dialogs\dialog_pcm.cpp
D:\Kicad\source\include\kicad_curl/kicad_curl_easy.h(36): fatal error C1083: Cannot open include file: 'functional': No such file or directory
[9/45] Building CXX object kicad\pcm\CMakeFiles\pcm.dir\pcm.cpp.obj
FAILED: kicad/pcm/CMakeFiles/pcm.dir/pcm.cpp.obj 
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe  /nologo /TP -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DPCM -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I..\..\include -I..\..\kicad\pcm\. -I..\..\kicad\. -I..\..\resources\msw -I..\..\pcbnew -I..\..\eeschema -I. -ID:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I..\..\scripting -I..\..\common -I..\..\kicad -I..\..\kicad\pcm\dialogs -I..\..\thirdparty\nlohmann_json -I..\..\thirdparty\compoundfilereader -Icommon -I..\..\libs\kimath\include -I..\..\thirdparty\clipper -I..\..\thirdparty\other_math -I..\..\thirdparty\rtree -I..\..\libs\kiplatform\include -I..\..\thirdparty\picosha2 -I..\..\thirdparty\json_schema_validator -I..\..\thirdparty\pybind11\include -ID:\devtools\vcpkg\installed\x64-windows\include -ID:\devtools\vcpkg\installed\x64-windows\include\opencascade -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\lib\mswu -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\include -ID:\devtools\vcpkg\installed\x64-windows\tools\python3\include /DWIN32 /D_WINDOWS /W3 /GR  /utf-8 /wd4290 /wd4800 /Zi /bigobj /EHs /MD /Zi /O2 /Ob1 /DNDEBUG /GF /Gy -std:c++14 /showIncludes /Fokicad\pcm\CMakeFiles\pcm.dir\pcm.cpp.obj /Fdkicad\pcm\CMakeFiles\pcm.dir\pcm.pdb /FS -c ..\..\kicad\pcm\pcm.cpp
D:\Kicad\source\include\kicad_curl/kicad_curl_easy.h(36): fatal error C1083: Cannot open include file: 'functional': No such file or directory
[10/45] Building CXX object kicad\pcm\CMakeFiles\pcm.dir\pcm_task_manager.cpp.obj
FAILED: kicad/pcm/CMakeFiles/pcm.dir/pcm_task_manager.cpp.obj 
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe  /nologo /TP -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DPCM -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I..\..\include -I..\..\kicad\pcm\. -I..\..\kicad\. -I..\..\resources\msw -I..\..\pcbnew -I..\..\eeschema -I. -ID:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I..\..\scripting -I..\..\common -I..\..\kicad -I..\..\kicad\pcm\dialogs -I..\..\thirdparty\nlohmann_json -I..\..\thirdparty\compoundfilereader -Icommon -I..\..\libs\kimath\include -I..\..\thirdparty\clipper -I..\..\thirdparty\other_math -I..\..\thirdparty\rtree -I..\..\libs\kiplatform\include -I..\..\thirdparty\picosha2 -I..\..\thirdparty\json_schema_validator -I..\..\thirdparty\pybind11\include -ID:\devtools\vcpkg\installed\x64-windows\include -ID:\devtools\vcpkg\installed\x64-windows\include\opencascade -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\lib\mswu -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\include -ID:\devtools\vcpkg\installed\x64-windows\tools\python3\include /DWIN32 /D_WINDOWS /W3 /GR  /utf-8 /wd4290 /wd4800 /Zi /bigobj /EHs /MD /Zi /O2 /Ob1 /DNDEBUG /GF /Gy -std:c++14 /showIncludes /Fokicad\pcm\CMakeFiles\pcm.dir\pcm_task_manager.cpp.obj /Fdkicad\pcm\CMakeFiles\pcm.dir\pcm.pdb /FS -c ..\..\kicad\pcm\pcm_task_manager.cpp
D:\devtools\vcpkg\installed\x64-windows\include\curl/curl.h(49): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
[11/45] Building CXX object kicad\pcm\CMakeFiles\pcm.dir\dialogs\dialog_manage_repositories.cpp.obj
FAILED: kicad/pcm/CMakeFiles/pcm.dir/dialogs/dialog_manage_repositories.cpp.obj 
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe  /nologo /TP -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DPCM -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I..\..\include -I..\..\kicad\pcm\. -I..\..\kicad\. -I..\..\resources\msw -I..\..\pcbnew -I..\..\eeschema -I. -ID:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I..\..\scripting -I..\..\common -I..\..\kicad -I..\..\kicad\pcm\dialogs -I..\..\thirdparty\nlohmann_json -I..\..\thirdparty\compoundfilereader -Icommon -I..\..\libs\kimath\include -I..\..\thirdparty\clipper -I..\..\thirdparty\other_math -I..\..\thirdparty\rtree -I..\..\libs\kiplatform\include -I..\..\thirdparty\picosha2 -I..\..\thirdparty\json_schema_validator -I..\..\thirdparty\pybind11\include -ID:\devtools\vcpkg\installed\x64-windows\include -ID:\devtools\vcpkg\installed\x64-windows\include\opencascade -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\lib\mswu -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\include -ID:\devtools\vcpkg\installed\x64-windows\tools\python3\include /DWIN32 /D_WINDOWS /W3 /GR  /utf-8 /wd4290 /wd4800 /Zi /bigobj /EHs /MD /Zi /O2 /Ob1 /DNDEBUG /GF /Gy -std:c++14 /showIncludes /Fokicad\pcm\CMakeFiles\pcm.dir\dialogs\dialog_manage_repositories.cpp.obj /Fdkicad\pcm\CMakeFiles\pcm.dir\pcm.pdb /FS -c ..\..\kicad\pcm\dialogs\dialog_manage_repositories.cpp
D:\devtools\vcpkg\installed\x64-windows\include\wx/defs.h(725): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
[12/45] Building CXX object kicad\pcm\CMakeFiles\pcm.dir\dialogs\panel_packages_view.cpp.obj
FAILED: kicad/pcm/CMakeFiles/pcm.dir/dialogs/panel_packages_view.cpp.obj 
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe  /nologo /TP -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DPCM -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I..\..\include -I..\..\kicad\pcm\. -I..\..\kicad\. -I..\..\resources\msw -I..\..\pcbnew -I..\..\eeschema -I. -ID:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I..\..\scripting -I..\..\common -I..\..\kicad -I..\..\kicad\pcm\dialogs -I..\..\thirdparty\nlohmann_json -I..\..\thirdparty\compoundfilereader -Icommon -I..\..\libs\kimath\include -I..\..\thirdparty\clipper -I..\..\thirdparty\other_math -I..\..\thirdparty\rtree -I..\..\libs\kiplatform\include -I..\..\thirdparty\picosha2 -I..\..\thirdparty\json_schema_validator -I..\..\thirdparty\pybind11\include -ID:\devtools\vcpkg\installed\x64-windows\include -ID:\devtools\vcpkg\installed\x64-windows\include\opencascade -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\lib\mswu -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\include -ID:\devtools\vcpkg\installed\x64-windows\tools\python3\include /DWIN32 /D_WINDOWS /W3 /GR  /utf-8 /wd4290 /wd4800 /Zi /bigobj /EHs /MD /Zi /O2 /Ob1 /DNDEBUG /GF /Gy -std:c++14 /showIncludes /Fokicad\pcm\CMakeFiles\pcm.dir\dialogs\panel_packages_view.cpp.obj /Fdkicad\pcm\CMakeFiles\pcm.dir\pcm.pdb /FS -c ..\..\kicad\pcm\dialogs\panel_packages_view.cpp
D:\devtools\vcpkg\installed\x64-windows\include\wx/defs.h(725): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
[13/45] Building CXX object kicad\pcm\CMakeFiles\pcm.dir\dialogs\panel_package.cpp.obj
FAILED: kicad/pcm/CMakeFiles/pcm.dir/dialogs/panel_package.cpp.obj 
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe  /nologo /TP -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DPCM -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I..\..\include -I..\..\kicad\pcm\. -I..\..\kicad\. -I..\..\resources\msw -I..\..\pcbnew -I..\..\eeschema -I. -ID:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I..\..\scripting -I..\..\common -I..\..\kicad -I..\..\kicad\pcm\dialogs -I..\..\thirdparty\nlohmann_json -I..\..\thirdparty\compoundfilereader -Icommon -I..\..\libs\kimath\include -I..\..\thirdparty\clipper -I..\..\thirdparty\other_math -I..\..\thirdparty\rtree -I..\..\libs\kiplatform\include -I..\..\thirdparty\picosha2 -I..\..\thirdparty\json_schema_validator -I..\..\thirdparty\pybind11\include -ID:\devtools\vcpkg\installed\x64-windows\include -ID:\devtools\vcpkg\installed\x64-windows\include\opencascade -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\lib\mswu -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\include -ID:\devtools\vcpkg\installed\x64-windows\tools\python3\include /DWIN32 /D_WINDOWS /W3 /GR  /utf-8 /wd4290 /wd4800 /Zi /bigobj /EHs /MD /Zi /O2 /Ob1 /DNDEBUG /GF /Gy -std:c++14 /showIncludes /Fokicad\pcm\CMakeFiles\pcm.dir\dialogs\panel_package.cpp.obj /Fdkicad\pcm\CMakeFiles\pcm.dir\pcm.pdb /FS -c ..\..\kicad\pcm\dialogs\panel_package.cpp
D:\devtools\vcpkg\installed\x64-windows\include\wx/defs.h(725): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
[14/45] Building CXX object common\CMakeFiles\common.dir\build_version.cpp.obj
FAILED: common/CMakeFiles/common.dir/build_version.cpp.obj 
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe  /nologo /TP -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I..\..\include -I..\..\common\. -I..\..\resources\msw -I..\..\common\.\dialogs -I..\..\common\.\widgets -I..\..\common\.\dialog_about -I..\..\bitmaps_png -I..\..\3d-viewer -I..\..\pcbnew -I. -ID:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I..\..\scripting -I..\..\thirdparty\libcontext -I..\..\thirdparty\nlohmann_json -I..\..\thirdparty\compoundfilereader -Icommon -I..\..\libs\kimath\include -I..\..\thirdparty\clipper -I..\..\thirdparty\other_math -I..\..\thirdparty\rtree -I..\..\libs\kiplatform\include -I..\..\thirdparty\pybind11\include -ID:\devtools\vcpkg\installed\x64-windows\include -ID:\devtools\vcpkg\installed\x64-windows\include\opencascade -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\lib\mswu -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\include -ID:\devtools\vcpkg\installed\x64-windows\tools\python3\include /DWIN32 /D_WINDOWS /W3 /GR  /utf-8 /wd4290 /wd4800 /Zi /bigobj /EHs /MD /Zi /O2 /Ob1 /DNDEBUG /GF /Gy -std:c++14 /showIncludes /Focommon\CMakeFiles\common.dir\build_version.cpp.obj /Fdcommon\CMakeFiles\common.dir\common.pdb /FS -c ..\..\common\build_version.cpp
D:\devtools\vcpkg\installed\x64-windows\include\wx/defs.h(725): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
ninja: build stopped: subcommand failed.
Build finished with error(s).

Terminal will be reused by tasks, press any key to close it.

This is the output of running build with F7 right after getting output above with no other changes.

[extension] [5977] cmake.build started
[main] Building folder: source 
[main] Saving open files before configure/build
[build] Starting build
[driver] Start build install
[proc] Executing command: D:\devtools\CMake\bin\cmake.EXE --build d:/Kicad/source/build/vscode-msvc --config RelWithDebInfo --target install -j 26 --
[build] [2/45   2% :: 0.098] Creating image archive D:/Kicad/source/build/vscode-msvc/resources/images.tar.gz
[build] [2/45   4% :: 0.138] Generating version string header
[build] -- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.23.0.windows.1") 
[build] -- Using Git to determine build version string.
[build] -- Not updating D:/Kicad/source/build/vscode-msvc/kicad_build_version.h
[build] [14/45   6% :: 0.412] Building RC object bitmap2component\CMakeFiles\bitmap2component.dir\__\resources\msw\bitmap2component.rc.res
[build] Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

[build] Copyright (C) Microsoft Corporation.  All rights reserved.

[build] 
[build] [14/45   8% :: 0.414] Building RC object pagelayout_editor\CMakeFiles\pl_editor.dir\__\resources\msw\pl_editor.rc.res
[build] Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

[build] Copyright (C) Microsoft Corporation.  All rights reserved.

[build] 
[build] [14/45  11% :: 0.415] Building RC object kicad\CMakeFiles\kicad.dir\__\resources\msw\kicad.rc.res
[build] Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

[build] Copyright (C) Microsoft Corporation.  All rights reserved.

[build] 
[build] [14/45  13% :: 0.416] Building RC object gerbview\CMakeFiles\gerbview.dir\__\resources\msw\gerbview.rc.res
[build] Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

[build] Copyright (C) Microsoft Corporation.  All rights reserved.

[build] 
[build] [14/45  15% :: 2.352] Building CXX object common\CMakeFiles\common.dir\build_version.cpp.obj
[build] [15/45  17% :: 3.038] Linking CXX static library common\common.lib
[build] [32/45  20% :: 3.241] Building RC object eeschema\CMakeFiles\eeschema.dir\__\resources\msw\eeschema.rc.res
[build] Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

[build] Copyright (C) Microsoft Corporation.  All rights reserved.

[build] 
[build] [32/45  22% :: 3.330] Building RC object pcb_calculator\CMakeFiles\pcb_calculator.dir\__\resources\msw\pcb_calculator.rc.res
[build] Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

[build] Copyright (C) Microsoft Corporation.  All rights reserved.

[build] 
[build] [32/45  24% :: 3.368] Building CXX object kicad\pcm\CMakeFiles\pcm.dir\dialogs\panel_package.cpp.obj
[build] [32/45  26% :: 3.369] Building RC object pcbnew\CMakeFiles\pcbnew.dir\__\resources\msw\pcbnew.rc.res
[build] Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384

[build] Copyright (C) Microsoft Corporation.  All rights reserved.

[build] 
[build] [32/45  28% :: 4.694] Building CXX object kicad\pcm\CMakeFiles\pcm.dir\dialogs\dialog_manage_repositories.cpp.obj
[build] [32/45  31% :: 5.348] Linking CXX executable qa\libs\sexpr\qa_sexpr.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build] [32/45  33% :: 5.480] Linking CXX executable qa\utils\kicad2step\qa_kicad2step.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build] [32/45  35% :: 5.521] Linking CXX executable qa\libs\kimath\qa_kimath.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build] [32/45  37% :: 5.582] Linking CXX shared module plugins\3d\idf\s3d_plugin_idf.dll
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library plugins\3d\idf\s3d_plugin_idf.lib and object plugins\3d\idf\s3d_plugin_idf.exp
[build] [32/45  40% :: 5.735] Building CXX object kicad\pcm\CMakeFiles\pcm.dir\pcm_task_manager.cpp.obj
[build] [32/45  42% :: 5.989] Linking CXX executable qa\common_tools\qa_common_tools.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library qa\common_tools\qa_common_tools.lib and object qa\common_tools\qa_common_tools.exp
[build] [32/45  44% :: 6.210] Linking CXX executable qa\common\qa_common.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library qa\common\qa_common.lib and object qa\common\qa_common.exp
[build] [32/45  46% :: 6.459] Linking CXX shared module scripting\_kipython.kiface
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library scripting\kipython.lib and object scripting\kipython.exp
[build] [32/45  48% :: 6.477] Linking CXX shared module pcb_calculator\_pcb_calculator.kiface
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library pcb_calculator\pcb_calculator.lib and object pcb_calculator\pcb_calculator.exp
[build] [33/45  51% :: 6.623] Linking CXX executable bitmap2component\bitmap2component.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library bitmap2component\bitmap2component.lib and object bitmap2component\bitmap2component.exp
[build] [33/45  53% :: 7.735] Linking CXX shared module pagelayout_editor\_pl_editor.kiface
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library pagelayout_editor\pl_editor.lib and object pagelayout_editor\pl_editor.exp
[build] [34/45  55% :: 7.957] Linking CXX shared module gerbview\_gerbview.kiface
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library gerbview\gerbview.lib and object gerbview\gerbview.exp
[build] [35/45  57% :: 8.103] Building CXX object kicad\pcm\CMakeFiles\pcm.dir\dialogs\panel_packages_view.cpp.obj
[build] [35/45  60% :: 8.204] Linking CXX executable pcb_calculator\pcb_calculator.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library pcb_calculator\pcb_calculator.lib and object pcb_calculator\pcb_calculator.exp
[build] [35/45  62% :: 8.586] Building CXX object kicad\CMakeFiles\kicad.dir\tools\kicad_manager_control.cpp.obj
[build] [35/45  64% :: 8.675] Building CXX object kicad\pcm\CMakeFiles\pcm.dir\dialogs\dialog_pcm.cpp.obj
[build] [35/45  66% :: 9.026] Linking CXX shared module cvpcb\_cvpcb.kiface
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library cvpcb\cvpcb.lib and object cvpcb\cvpcb.exp
[build] [35/45  68% :: 9.217] Linking CXX executable pagelayout_editor\pl_editor.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library pagelayout_editor\pl_editor.lib and object pagelayout_editor\pl_editor.exp
[build] [35/45  71% :: 9.343] Linking CXX executable gerbview\gerbview.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library gerbview\gerbview.lib and object gerbview\gerbview.exp
[build] [36/45  73% :: 9.415] Linking CXX shared module eeschema\_eeschema.kiface
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library eeschema\eeschema.lib and object eeschema\eeschema.exp
[build] [37/45  75% :: 9.783] Building CXX object kicad\pcm\CMakeFiles\pcm.dir\pcm.cpp.obj
[build] [38/45  77% :: 9.925] Linking CXX static library kicad\pcm\pcm.lib
[build] [39/45  80% :: 10.575] Linking CXX executable eeschema\eeschema.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library eeschema\eeschema.lib and object eeschema\eeschema.exp
[build] [40/45  82% :: 11.082] Linking CXX shared module pcbnew\_pcbnew.kiface
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library pcbnew\pcbnew.lib and object pcbnew\pcbnew.exp
[build] [42/45  84% :: 11.204] Creating python's pcbnew native module _pcbnew.pyd for command line use.
[build] [42/45  86% :: 11.766] Linking CXX executable qa\gerbview\qa_gerbview.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library qa\gerbview\qa_gerbview.lib and object qa\gerbview\qa_gerbview.exp
[build] [42/45  88% :: 11.958] Linking CXX executable kicad\kicad.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library kicad\kicad.lib and object kicad\kicad.exp
[build] [42/45  91% :: 12.239] Linking CXX executable pcbnew\pcbnew.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library pcbnew\pcbnew.lib and object pcbnew\pcbnew.exp
[build] [44/45  93% :: 14.299] Linking CXX executable qa\eeschema\qa_eeschema.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library qa\eeschema\qa_eeschema.lib and object qa\eeschema\qa_eeschema.exp
[build] [44/45  95% :: 17.138] Linking CXX executable qa\pcbnew_tools\qa_pcbnew_tools.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library qa\pcbnew_tools\qa_pcbnew_tools.lib and object qa\pcbnew_tools\qa_pcbnew_tools.exp
[build] [44/45  97% :: 17.262] Linking CXX executable qa\pcbnew\qa_pcbnew.exe
[build] LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
[build]    Creating library qa\pcbnew\qa_pcbnew.lib and object qa\pcbnew\qa_pcbnew.exp
[build] [45/45  97% :: 17.263] Install the project...
[build] -- Install configuration: "RelWithDebInfo"
....
[cmakefileapi-parser] Read reply folder: d:\Kicad\source\build\vscode-msvc\.cmake\api\v1\reply
[cmakefileapi-parser] Found index files: ["cache-v2-e4c30df44662c2e55a38.json","codemodel-v2-2ae383015cc7947468b8.json","index-2021-11-20T03-21-46-0769.json","target-3d-viewer-RelWithDebInfo-614c6b0402ad8821b5ce.json","target-altium2pcbnew-RelWithDebInfo-61858c91061ecfa9a95e.json","target-bitmap2component-RelWithDebInfo-4ba0b7b201f12bf49321.json","target-bitmap_archive-RelWithDebInfo-0cb363c52e4a3af396a1.json","target-cadstar2pcbnew-RelWithDebInfo-48977ab5c6f3abd28ef0.json","target-clipper-RelWithDebInfo-d4a90c1806f87d05c5f2.json","target-common-RelWithDebInfo-08109928567b7eeacd33.json","target-connectivity-RelWithDebInfo-8e1d9eeefc2eff7b8513.json","target-Continuous-RelWithDebInfo-f895d61fd60408937d18.json","target-ContinuousBuild-RelWithDebInfo-aefad573a7948b4856ff.json","target-ContinuousConfigure-RelWithDebInfo-9fa5343810681fc608fb.json","target-ContinuousCoverage-RelWithDebInfo-09e430cd9859b66b8892.json","target-ContinuousMemCheck-RelWithDebInfo-73d7de486cc1e75f35ee.json","target-ContinuousStart-RelWithDebInfo-88037e318e89446cfeeb.json","target-ContinuousSubmit-RelWithDebInfo-aa4c58d5dba94130bdbd.json","target-ContinuousTest-RelWithDebInfo-9818d8a81455fb5573eb.json","target-ContinuousUpdate-RelWithDebInfo-06fcb45b49f5a094928c.json","target-cvpcb_kiface-RelWithDebInfo-00ffa31d7a90f3154725.json","target-delaunator-RelWithDebInfo-d740308a031f6e355901.json","target-dsntest-RelWithDebInfo-9ad1bc440c34e2967fd1.json","target-dxf2idf-RelWithDebInfo-9fb65885ef62a08dcb18.json","target-dxflib_qcad-RelWithDebInfo-7a75b707ba5821cca6a8.json","target-eeschema-RelWithDebInfo-bc97908b8743eec7d35c.json","target-eeschema_kiface-RelWithDebInfo-bafaf56c6aee536d880e.json","target-eeschema_kiface_objects-RelWithDebInfo-5bb398be5c489532c90a.json","target-Experimental-RelWithDebInfo-878fea5072401335291a.json","target-ExperimentalBuild-RelWithDebInfo-cd3b5d0fb9b29fca06d8.json","target-ExperimentalConfigure-RelWithDebInfo-77bf8c166882c57a3dab.json","target-ExperimentalCoverage-RelWithDebInfo-8c9f6c5734ee835b5e61.json","target-ExperimentalMemCheck-RelWithDebInfo-b787876120342c3d1b84.json","target-ExperimentalStart-RelWithDebInfo-eecefe963ebbc9fc6d19.json","target-ExperimentalSubmit-RelWithDebInfo-aa094636a4050e5f1e37.json","target-ExperimentalTest-RelWithDebInfo-b5059b96893c7b9e7de5.json","target-ExperimentalUpdate-RelWithDebInfo-d77b4115b04a0fcbfc0e.json","target-fabmaster-RelWithDebInfo-ff51c497938b2cffb76c.json","target-gal-RelWithDebInfo-2683d22f0bf9e1485f45.json","target-gerbview-RelWithDebInfo-358ac1781a9ef72f3409.json","target-gerbview_kiface-RelWithDebInfo-773c064791058e46537d.json","target-gerbview_kiface_objects-RelWithDebInfo-8f30cde272c5dfb7b80c.json","target-idf2vrml-RelWithDebInfo-5d72ebd8622121790a1f.json","target-idf3-RelWithDebInfo-84e72aee75aab6325c08.json","target-idfcyl-RelWithDebInfo-335450100535d31d0c37.json","target-idfrect-RelWithDebInfo-66d3c475f70eb901e140.json","target-kicad-RelWithDebInfo-670dac4fe9eecf450f99.json","target-kicad2step_bin-RelWithDebInfo-98f3bda811997f4b394f.json","target-kicad2step_lib-RelWithDebInfo-67b34af0d3c186a491e1.json","target-kicad_3dsg-RelWithDebInfo-0205dc2a4d9ee8967c4c.json","target-kimath-RelWithDebInfo-d49d7dd26a7d746ee7bd.json","target-kiplatform-RelWithDebInfo-6438f4bacb3284e73c1c.json","target-lemon-RelWithDebInfo-8695a128763500005bee.json","target-libcontext-RelWithDebInfo-d02c2d539d043c1c9cff.json","target-markdown_lib-RelWithDebInfo-5d187706f67aa97449b0.json","target-nanosvg-RelWithDebInfo-2c9b05549dce717379f4.json","target-Nightly-RelWithDebInfo-f8b64fe3201d469eacd9.json","target-NightlyBuild-RelWithDebInfo-e6bdc0e7296a2a58ec8e.json","target-NightlyConfigure-RelWithDebInfo-371dff1d9d7f5744c406.json","target-NightlyCoverage-RelWithDebInfo-bfeda9d240ed6000af20.json","target-NightlyMemCheck-RelWithDebInfo-fb9aad9e03fb56693bf4.json","target-NightlyMemoryCheck-RelWithDebInfo-8e0dd3017f40eff7c097.json","target-NightlyStart-RelWithDebInfo-33913bec8cba34c5415a.json","target-NightlySubmit-RelWithDebInfo-3236c6e93da06d67b051.json","target-NightlyTest-RelWithDebInfo-ac81fa86152736440236.json","target-NightlyUpdate-RelWithDebInfo-d99fd79ff275032be00a.json","target-nlohmann_json_schema_validator-RelWithDebInfo-782940df1b52fbdaa6e3.json","target-othermath-RelWithDebInfo-e0fb6cef8597ac39e2bf.json","target-pcad2kicadpcb-RelWithDebInfo-6f9be519f44862ddad2a.json","target-pcbcommon-RelWithDebInfo-0026b41be0b70a589b99.json","target-pcbnew-RelWithDebInfo-57dc936d9a2f99fdec5e.json","target-pcbnew_kiface-RelWithDebInfo-9802f7f1aca2a26ea76e.json","target-pcbnew_kiface_objects-RelWithDebInfo-aa30797a324ca1a0c3c7.json","target-pcbnew_python_module-RelWithDebInfo-63cab4f938a009518a94.json","target-pcb_calculator-RelWithDebInfo-d1fe11fae538cb1e35c2.json","target-pcb_calculator_kiface-RelWithDebInfo-d62a0143b4cde3208ecc.json","target-pcm-RelWithDebInfo-6ffb46a01e4faf4ee63e.json","target-pl_editor-RelWithDebInfo-950e7aaf370a9d59fd5a.json","target-pl_editor_kiface-RelWithDebInfo-4012a83081b64150036d.json","target-pnsrouter-RelWithDebInfo-37adb44d61435f3d4e07.json","target-potrace-RelWithDebInfo-ace3c6303e0ead486c9e.json","target-property_tree-RelWithDebInfo-cb3f82dd957f8000c041.json","target-qa_all-RelWithDebInfo-50b6eb7427aedbc93b66.json","target-qa_all_tests-RelWithDebInfo-638af646efad7aa0f6d3.json","target-qa_all_tools-RelWithDebInfo-9d95b8a49e95dd8b0f14.json","target-qa_common-RelWithDebInfo-f33dec0fafd598358f36.json","target-qa_common_tools-RelWithDebInfo-4982de1d7ee8e5b612b6.json","target-qa_eeschema-RelWithDebInfo-de3fef0c5ad91a54bbd0.json","target-qa_gerbview-RelWithDebInfo-3e6d7f57778e66a3314a.json","target-qa_kicad2step-RelWithDebInfo-5433aeb77e4a7a3dd673.json","target-qa_kimath-RelWithDebInfo-cdd212d6cd2ec4e3078e.json","target-qa_pcbnew-RelWithDebInfo-41c412bef4da31986faa.json","target-qa_pcbnew_tools-RelWithDebInfo-b5b43d5ca1fd27d6e182.json","target-qa_pcbnew_utils-RelWithDebInfo-e28d9e57abb7245aaa90.json","target-qa_sexpr-RelWithDebInfo-d08860b7a35553deff8e.json","target-qa_utils-RelWithDebInfo-f1f94a82d8daa6ff8272.json","target-s3d_plugin_idf-RelWithDebInfo-154bb8c6d9bb8cc2d276.json","target-s3d_plugin_oce-RelWithDebInfo-fbff496deedd94253cf1.json","target-s3d_plugin_vrml-RelWithDebInfo-a555c04bdd49ee16bb31.json","target-scripting-RelWithDebInfo-fd3e6c5a296407041a4d.json","target-scripting_kiface-RelWithDebInfo-acdc89a9a29fd5b028d4.json","target-sexpr-RelWithDebInfo-eab0e50ae2c46f29153f.json","target-singletop-RelWithDebInfo-5b227abc727d720677f3.json","target-test-nm-biu-to-ascii-mm-round-tripping-RelWithDebInfo-4916ca0f4bcda718e571.json","target-tinyspline_lib-RelWithDebInfo-63ac3a19d200d25ab1f0.json","target-uninstall-RelWithDebInfo-864572f79089e6224af5.json","target-utf8_tests-RelWithDebInfo-be55ef773dc438f1a964.json","target-version_header-RelWithDebInfo-b74cba450c673c3dfbec.json"]
[driver] Run _refreshExpansions
[driver] Run _refreshExpansions cb
[build] Build finished with exit code 0
[cache] Reading CMake cache file d:/Kicad/source/build/vscode-msvc/CMakeCache.txt
[cache] Parsing CMake cache string
[extension] [5977] cmake.build finished (returned 0)

Additionally, if I configure the project with "CMAKE_VERBOSE_MAKEFILE": "ON" then I can see actual commands that ninja is running when launched with F7:

...
[build] [14/45  13% :: 0.299] "D:/devtools/CMake/bin/cmcldeps.exe" RC D:\Kicad\source\resources\msw\kicad.rc kicad\CMakeFiles\kicad.dir\__\resources\msw\kicad.rc.res.d kicad\CMakeFiles\kicad.dir\__\resources\msw\kicad.rc.res "Note: including file: " "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe" C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\rc.exe -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DPCM -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I D:\Kicad\source\include -I D:\Kicad\source\kicad -I D:\Kicad\source\resources\msw -I D:\Kicad\source\pcbnew -I D:\Kicad\source\eeschema -I D:\Kicad\source\build\vscode-msvc -I D:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I D:\Kicad\source\scripting -I D:\Kicad\source\kicad\pcm -I D:\Kicad\source\thirdparty\nlohmann_json -I D:\Kicad\source\thirdparty\compoundfilereader -I D:\Kicad\source\build\vscode-msvc\common -I D:\Kicad\source\libs\kimath\include -I D:\Kicad\source\thirdparty\clipper -I D:\Kicad\source\thirdparty\other_math -I D:\Kicad\source\thirdparty\rtree -I D:\Kicad\source\libs\kiplatform\include -I D:\Kicad\source\kicad\pcm\dialogs -I D:\Kicad\source\thirdparty\picosha2 -I D:\Kicad\source\thirdparty\json_schema_validator -I D:\Kicad\source\thirdparty\pybind11\include -I D:\devtools\vcpkg\installed\x64-windows\include -I D:\devtools\vcpkg\installed\x64-windows\include\opencascade -I D:\devtools\vcpkg\installed\x64-windows\lib\mswu -I D:\devtools\vcpkg\installed\x64-windows\include -I D:\devtools\vcpkg\installed\x64-windows\tools\python3\include -DWIN32 /fo kicad\CMakeFiles\kicad.dir\__\resources\msw\kicad.rc.res D:\Kicad\source\resources\msw\kicad.rc

[build] 
[build] [14/45  15% :: 2.350] C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe   /TP -DBOOST_ALL_NO_LIB -DBOOST_UUID_FORCE_AUTO_LINK -DGLM_FORCE_CTOR_INIT -DHAVE_STDINT_H -DKICAD_BUILD_ARCH=x64 -DKICAD_BUILD_ARCH_X64 -DKICAD_CONFIG_DIR=kicad -DKICAD_SCRIPTING_WXPYTHON -DKICAD_SPICE -DKICAD_USE_OCC -DNOMINMAX -DUNICODE -DWXUSINGDLL -DWX_COMPATIBILITY -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D_USE_MATH_DEFINES -I..\..\include -I..\..\common\. -I..\..\resources\msw -I..\..\common\.\dialogs -I..\..\common\.\widgets -I..\..\common\.\dialog_about -I..\..\bitmaps_png -I..\..\3d-viewer -I..\..\pcbnew -I. -ID:\devtools\vcpkg\installed\x64-windows\include\python3.9 -I..\..\scripting -I..\..\thirdparty\libcontext -I..\..\thirdparty\nlohmann_json -I..\..\thirdparty\compoundfilereader -Icommon -I..\..\libs\kimath\include -I..\..\thirdparty\clipper -I..\..\thirdparty\other_math -I..\..\thirdparty\rtree -I..\..\libs\kiplatform\include -I..\..\thirdparty\pybind11\include -ID:\devtools\vcpkg\installed\x64-windows\include -ID:\devtools\vcpkg\installed\x64-windows\include\opencascade -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\lib\mswu -ID:\devtools\vcpkg\installed\x64-windows\share\wxwidgets\..\..\include -ID:\devtools\vcpkg\installed\x64-windows\tools\python3\include /DWIN32 /D_WINDOWS /W3 /GR  /utf-8 /wd4290 /wd4800 /Zi /bigobj /EHs /MD /Zi /O2 /Ob1 /DNDEBUG /GF /Gy -std:c++14 /showIncludes /Focommon\CMakeFiles\common.dir\build_version.cpp.obj /Fdcommon\CMakeFiles\common.dir\common.pdb /FS -c ..\..\common\build_version.cpp
...

If you compare these commands to the ones seen in terminal output of failed cmake build launched from a task, they are exactly the same, as expected. Which makes me think the difference is in the environment variables that are not picked up if build is ran from task.

@qu1ck
Copy link
Author

qu1ck commented Nov 20, 2021

Ok, you can disregard the massive logs from above. I can reproduce the issue with a tiny project:

main.cpp:

#include <windows.h>

int main() {
    return 0;
}

CMakeLists.txt:

cmake_minimum_required(VERSION 3.14)
project(example)
add_executable(example main.cpp)

.vscode/settings.json:

{
    "cmake.generator": "Ninja"
}

.vscode/tasks.json:

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "CMake-build",
            "command": "build",
            "type": "cmake",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": []
        }
    ]
}

If I run this task I get:

> Executing task: CMake-build <

Starting build...
D:\devtools\CMake\bin\cmake.EXE --build d:/src/playground/cpptoolstest/build --config RelWithDebInfo --target all -j 26 --
[1/2] Building CXX object CMakeFiles\example.dir\main.cpp.obj
FAILED: CMakeFiles/example.dir/main.cpp.obj 
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\cl.exe  /nologo /TP   /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MD /Zi /O2 /Ob1 /DNDEBUG /showIncludes /FoCMakeFiles\example.dir\main.cpp.obj /FdCMakeFiles\example.dir\ /FS -c ..\main.cpp
..\main.cpp(1): fatal error C1034: windows.h: no include path set
ninja: build stopped: subcommand failed.
Build finished with error(s).

If I press F7 build succeeds.

@qu1ck
Copy link
Author

qu1ck commented Dec 7, 2021

@bobbrow any insights?

@bobbrow
Copy link
Member

bobbrow commented Dec 9, 2021

Sorry. I'm not sure how this fell off our radar. Thanks for the ping. We'll take a look today.

@bobbrow
Copy link
Member

bobbrow commented Dec 9, 2021

Which makes me think the difference is in the environment variables that are not picked up if build is ran from task.

This assessment is correct. I'm not sure how that was missed in the implementation, but I definitely don't see any code in the task provider that configures the environment for Ninja builds. It works for me if I use the Visual Studio generators. The only other workaround for now would be to open a Developer Command prompt and launch VS Code from inside that to inherit the build environment.

@bobbrow bobbrow added bug a bug in the product Feature: tasks labels Dec 9, 2021
@bobbrow bobbrow added this to the On Deck milestone Dec 9, 2021
@bobbrow bobbrow changed the title Task with type: cmake, command: build fails to build CMake task provider does not configure the VS Build environment for Ninja builds Dec 9, 2021
@bobbrow
Copy link
Member

bobbrow commented Mar 1, 2022

The fix for this issue is available in 1.10 "pre-release". You can help us validate it by:

  1. Opening the extensions panel in VS Code
  2. Selecting the CMake Tools extension
  3. Clicking the "Switch to Pre-release Version" button

image

@qu1ck
Copy link
Author

qu1ck commented Mar 1, 2022

I tested using pre-release version and build works with test project and with real project.

But it is not very useful because it always builds "all" target. Is there a way to specify in tasks.json a target to build, "install" in my case?

@bobbrow
Copy link
Member

bobbrow commented Mar 1, 2022

Not yet. We have feature #2122 tracking that. @elahehrashedi maybe we can put that into 1.11.

@qu1ck
Copy link
Author

qu1ck commented Mar 2, 2022

Thanks, I'll follow that issue. This one can be considered confirmed fixed.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 2022
@bobbrow bobbrow modified the milestones: On Deck, 1.10.0 Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug a bug in the product Feature: tasks
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants