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

Unable to detect clang shipped with visual studio 2019 #914

Closed
elegracer opened this issue Nov 14, 2019 · 16 comments
Closed

Unable to detect clang shipped with visual studio 2019 #914

elegracer opened this issue Nov 14, 2019 · 16 comments
Labels
Feature: kits fixed (release pending) fixed in pre-release and is pending official release
Milestone

Comments

@elegracer
Copy link

Brief Issue Summary

I installed visual studio 2019, clang compiler with it, so I have these 2 directories

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\Llvm
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC

I also installed vcpkg, and installed only several packages with architecture x64-windows, e.g. opencv:x64-windows.

I tried to bulid my cmake project with clang-cl frontend and msvc backend, but the first step got stuck. Only these 6 kits were detected (Fresh output from vscode-cmake-tools 1.2.2, there weren't those preferredGenerator settings yesterday)

[
  {
    "name": "Visual Studio Community 2019 Release - amd64",
    "visualStudio": "ba5790b6",
    "visualStudioArchitecture": "amd64",
    "preferredGenerator": {
      "name": "Visual Studio 16 2019",
      "platform": "x64"
    }
  },
  {
    "name": "Visual Studio Community 2019 Release - amd64_arm",
    "visualStudio": "ba5790b6",
    "visualStudioArchitecture": "amd64_arm",
    "preferredGenerator": {
      "name": "Visual Studio 16 2019",
      "platform": "ARM"
    }
  },
  {
    "name": "Visual Studio Community 2019 Release - amd64_x86",
    "visualStudio": "ba5790b6",
    "visualStudioArchitecture": "amd64_x86",
    "preferredGenerator": {
      "name": "Visual Studio 16 2019"
    }
  },
  {
    "name": "Visual Studio Community 2019 Release - x86",
    "visualStudio": "ba5790b6",
    "visualStudioArchitecture": "x86",
    "preferredGenerator": {
      "name": "Visual Studio 16 2019"
    }
  },
  {
    "name": "Visual Studio Community 2019 Release - x86_amd64",
    "visualStudio": "ba5790b6",
    "visualStudioArchitecture": "x86_amd64",
    "preferredGenerator": {
      "name": "Visual Studio 16 2019"
    }
  },
  {
    "name": "Visual Studio Community 2019 Release - x86_arm",
    "visualStudio": "ba5790b6",
    "visualStudioArchitecture": "x86_arm",
    "preferredGenerator": {
      "name": "Visual Studio 16 2019"
    }
  }
]

I could not find any clang related kits, so I could not build it as I wished.

Expected:

  1. Install Visual Studio 2019 Community for Windows, with clang compiler installed.
  2. Install vcpkg, with some x64-windows packages installed.
  3. Scan for kits in VSCode, and clang showed up with x64 target config.
  4. Build a CMake project with the kit, which will succeed.

Apparent Behavior:

No clang related kits with different target architectures (e.g. x86 x64 e.t.c) were detected,

CMake Tools Log

Clean cmake-tool-kits.json and run scan for kits (truncated due to 65535 characters limit):

[extension] [8867] cmake.scanForKits started
[extension] Rescanning for kits
[kit] Scanning for Kits on system
[kit] Checking for kit: Visual Studio Community 2019 Release - x86
[kit] Checking for kit: Visual Studio Community 2019 Release - amd64
[kit] Checking for kit: Visual Studio Community 2019 Release - x86_amd64
[kit] Checking for kit: Visual Studio Community 2019 Release - x86_arm
[kit] Checking for kit: Visual Studio Community 2019 Release - amd64_arm
[kit] Checking for kit: Visual Studio Community 2019 Release - amd64_x86
[kit] Scanning directory C:\Windows\system32 for compilers
[kit] Scanning directory C:\Windows for compilers
[kit] Scanning directory C:\Windows\System32\Wbem for compilers
[kit] Scanning directory C:\Windows\System32\WindowsPowerShell\v1.0\ for compilers
[kit] Scanning directory C:\Windows\System32\OpenSSH\ for compilers
[kit] Scanning directory C:\Program Files\dotnet\ for compilers
[kit] Scanning directory C:\Program Files\Git\cmd for compilers
[kit] Scanning directory C:\vcpkg for compilers
[kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin for compilers
[kit] Scanning directory C:\Users\Huang Kai\AppData\Local\Programs\Microsoft VS Code\bin for compilers
[kit] Scanning directory C:\Users\Huang Kai\AppData\Local\Microsoft\WindowsApps for compilers
[kit] Scanning directory C:\Users\Huang Kai\.dotnet\tools for compilers
[kit] Scanning directory C:\texlive\2019\bin\win32 for compilers
[kit] Skipping scan of not existing path C:\MinGW\bin
[kit] Found 0 kits in directory C:\MinGW\bin
[kit] Skipping scan of not existing path C:\Program Files (x86)\LLVM\bin
[kit] Skipping scan of not existing path C:\Program Files\LLVM\bin
[kit] Scanning directory C:\Windows\system32 for compilers
[kit] Scanning directory C:\Windows for compilers
[kit] Scanning directory C:\Windows\System32\Wbem for compilers
[kit] Scanning directory C:\Windows\System32\WindowsPowerShell\v1.0\ for compilers
[kit] Scanning directory C:\Windows\System32\OpenSSH\ for compilers
[kit] Scanning directory C:\Program Files\dotnet\ for compilers
[kit] Scanning directory C:\Program Files\Git\cmd for compilers
[kit] Scanning directory C:\vcpkg for compilers
[kit] Scanning directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin for compilers
[kit] Scanning directory C:\Users\Huang Kai\AppData\Local\Microsoft\WindowsApps for compilers
[kit] Scanning directory C:\Users\Huang Kai\AppData\Local\Programs\Microsoft VS Code\bin for compilers
[kit] Scanning directory C:\Users\Huang Kai\.dotnet\tools for compilers
[kit] Scanning directory C:\texlive\2019\bin\win32 for compilers
[kit] Skipping scan of not existing path C:\MinGW\bin
[kit] Checking file for compiler features: C:\Windows\addins
[kit] Checking file for compiler features: C:\Windows\appcompat
[kit] Checking file for compiler features: C:\Windows\apppatch
[kit] Checking file for compiler features: C:\Windows\AppReadiness
.
.
.
[kit] Checking file for compiler features: C:\Windows\WindowsUpdate.log
[kit] Checking file for compiler features: C:\Windows\winhlp32.exe
[kit] Checking file for compiler features: C:\Windows\WinSxS
[kit] Checking file for compiler features: C:\Windows\WMSysPr9.prx
[kit] Checking file for compiler features: C:\Windows\write.exe
[kit] Checking file for compiler features: C:\Windows\zh-CN
[kit] Found 0 kits in directory C:\Windows
[kit] Checking file for compiler features: C:\Windows\System32\WindowsPowerShell\v1.0\Certificate.format.ps1xml
[kit] Checking file for compiler features: C:\Windows\System32\WindowsPowerShell\v1.0\Diagnostics.Format.ps1xml
[kit] Checking file for compiler features: C:\Windows\System32\WindowsPowerShell\v1.0\DotNetTypes.format.ps1xml
[kit] Checking file for compiler features: C:\Windows\System32\WindowsPowerShell\v1.0\en-US
.
.
.
[kit] Checking file for compiler features: C:\Windows\System32\WindowsPowerShell\v1.0\typesv3.ps1xml
[kit] Checking file for compiler features: C:\Windows\System32\WindowsPowerShell\v1.0\WSMan.Format.ps1xml
[kit] Checking file for compiler features: C:\Windows\System32\WindowsPowerShell\v1.0\zh-CN
[kit] Checking file for compiler features: C:\Windows\System32\WindowsPowerShell\v1.0\zh-HANS
[kit] Found 0 kits in directory C:\Windows\System32\WindowsPowerShell\v1.0\
[kit] Checking file for compiler features: C:\Windows\System32\OpenSSH\scp.exe
[kit] Checking file for compiler features: C:\Windows\System32\OpenSSH\sftp.exe
[kit] Checking file for compiler features: C:\Windows\System32\OpenSSH\ssh-add.exe
[kit] Checking file for compiler features: C:\Windows\System32\OpenSSH\ssh-agent.exe
[kit] Checking file for compiler features: C:\Windows\System32\OpenSSH\ssh-keygen.exe
[kit] Checking file for compiler features: C:\Windows\System32\OpenSSH\ssh-keyscan.exe
[kit] Checking file for compiler features: C:\Windows\System32\OpenSSH\ssh.exe
[kit] Found 0 kits in directory C:\Windows\System32\OpenSSH\
[kit] Checking file for compiler features: C:\Program Files\Git\cmd\git-gui.exe
[kit] Checking file for compiler features: C:\Program Files\Git\cmd\git.exe
[kit] Checking file for compiler features: C:\Program Files\Git\cmd\gitk.exe
[kit] Checking file for compiler features: C:\Program Files\Git\cmd\start-ssh-agent.cmd
[kit] Checking file for compiler features: C:\Program Files\Git\cmd\start-ssh-pageant.cmd
[kit] Found 0 kits in directory C:\Program Files\Git\cmd
[kit] Checking file for compiler features: C:\Program Files\dotnet\dotnet.exe
[kit] Checking file for compiler features: C:\Program Files\dotnet\host
[kit] Checking file for compiler features: C:\Program Files\dotnet\LICENSE.txt
[kit] Checking file for compiler features: C:\Program Files\dotnet\packs
[kit] Checking file for compiler features: C:\Program Files\dotnet\sdk
[kit] Checking file for compiler features: C:\Program Files\dotnet\shared
[kit] Checking file for compiler features: C:\Program Files\dotnet\templates
[kit] Checking file for compiler features: C:\Program Files\dotnet\ThirdPartyNotices.txt
[kit] Found 0 kits in directory C:\Program Files\dotnet\
[kit] Checking file for compiler features: C:\vcpkg\.git
[kit] Checking file for compiler features: C:\vcpkg\.gitattributes
[kit] Checking file for compiler features: C:\vcpkg\.github
[kit] Checking file for compiler features: C:\vcpkg\.gitignore
[kit] Checking file for compiler features: C:\vcpkg\.vcpkg-root
[kit] Checking file for compiler features: C:\vcpkg\bootstrap-vcpkg.bat
[kit] Checking file for compiler features: C:\vcpkg\bootstrap-vcpkg.sh
[kit] Checking file for compiler features: C:\vcpkg\buildtrees
[kit] Checking file for compiler features: C:\vcpkg\CHANGELOG.md
[kit] Checking file for compiler features: C:\vcpkg\CONTRIBUTING.md
[kit] Checking file for compiler features: C:\vcpkg\docs
[kit] Checking file for compiler features: C:\vcpkg\downloads
[kit] Checking file for compiler features: C:\vcpkg\installed
[kit] Checking file for compiler features: C:\vcpkg\LICENSE.txt
[kit] Checking file for compiler features: C:\vcpkg\NOTICE.txt
[kit] Checking file for compiler features: C:\vcpkg\packages
[kit] Checking file for compiler features: C:\vcpkg\ports
[kit] Checking file for compiler features: C:\vcpkg\README.md
[kit] Checking file for compiler features: C:\vcpkg\README_zh_CN.md
[kit] Checking file for compiler features: C:\vcpkg\scripts
[kit] Checking file for compiler features: C:\vcpkg\toolsrc
[kit] Checking file for compiler features: C:\vcpkg\triplets
[kit] Checking file for compiler features: C:\vcpkg\vcpkg.exe
[kit] Found 0 kits in directory C:\vcpkg
[kit] Checking file for compiler features: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe
[kit] Checking file for compiler features: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmcldeps.exe
[kit] Checking file for compiler features: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cpack.exe
[kit] Checking file for compiler features: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\ctest.exe
[kit] Found 0 kits in directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin
[kit] Checking file for compiler features: C:\Windows\System32\Wbem\aeinv.mof
[kit] Checking file for compiler features: C:\Windows\System32\Wbem\AgentWmi.mof
[kit] Checking file for compiler features: C:\Windows\System32\Wbem\AgentWmiUninstall.mof
[kit] Checking file for compiler features: C:\Windows\System32\Wbem\appbackgroundtask.dll
[kit] Checking file for compiler features: C:\Windows\System32\Wbem\appbackgroundtask.mof
[kit] Checking file for compiler features: C:\Windows\System32\Wbem\appbackgroundtask_uninstall.mof
.
.
.
[kit] Checking file for compiler features: C:\Windows\System32\Wbem\xwizards.mof
[kit] Checking file for compiler features: C:\Windows\System32\Wbem\zh-CN
[kit] Checking file for compiler features: C:\Windows\System32\Wbem\zh-HANS
[kit] Found 0 kits in directory C:\Windows\System32\Wbem
[kit] Checking file for compiler features: C:\Users\Huang Kai\AppData\Local\Programs\Microsoft VS Code\bin\code
[kit] Checking file for compiler features: C:\Users\Huang Kai\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd
[kit] Found 0 kits in directory C:\Users\Huang Kai\AppData\Local\Programs\Microsoft VS Code\bin
[kit] Checking file for compiler features: C:\Users\Huang Kai\AppData\Local\Microsoft\WindowsApps\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
[kit] Checking file for compiler features: C:\Users\Huang Kai\AppData\Local\Microsoft\WindowsApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe
[kit] Checking file for compiler features: C:\Users\Huang Kai\AppData\Local\Microsoft\WindowsApps\Microsoft.WindowsTerminal_8wekyb3d8bbwe
[kit] Checking file for compiler features: C:\Users\Huang Kai\AppData\Local\Microsoft\WindowsApps\MicrosoftEdge.exe
[kit] Checking file for compiler features: C:\Users\Huang Kai\AppData\Local\Microsoft\WindowsApps\python.exe
[kit] Checking file for compiler features: C:\Users\Huang Kai\AppData\Local\Microsoft\WindowsApps\python3.7.exe
[kit] Checking file for compiler features: C:\Users\Huang Kai\AppData\Local\Microsoft\WindowsApps\python3.exe
[kit] Checking file for compiler features: C:\Users\Huang Kai\AppData\Local\Microsoft\WindowsApps\wt.exe
[kit] Found 0 kits in directory C:\Users\Huang Kai\AppData\Local\Microsoft\WindowsApps
[kit] Checking file for compiler features: C:\Users\Huang Kai\.dotnet\tools\.store
[kit] Checking file for compiler features: C:\Users\Huang Kai\.dotnet\tools\pwsh.exe
[kit] Found 0 kits in directory C:\Users\Huang Kai\.dotnet\tools
[kit] Checking file for compiler features: C:\texlive\2019\bin\win32\a2ping.exe
[kit] Checking file for compiler features: C:\texlive\2019\bin\win32\a5bookle.bat
[kit] Checking file for compiler features: C:\texlive\2019\bin\win32\a5bookle.exe
[kit] Checking file for compiler features: C:\texlive\2019\bin\win32\a5toa4.exe
.
.
.
[kit] Checking file for compiler features: C:\Windows\system32\xwtpdui.dll
[kit] Checking file for compiler features: C:\Windows\system32\xwtpw32.dll
[kit] Checking file for compiler features: C:\Windows\system32\X_80.contrast-black.png
[kit] Checking file for compiler features: C:\Windows\system32\X_80.contrast-white.png
[kit] Checking file for compiler features: C:\Windows\system32\X_80.png
[kit] Checking file for compiler features: C:\Windows\system32\zh-CN
[kit] Checking file for compiler features: C:\Windows\system32\zh-HANS
[kit] Checking file for compiler features: C:\Windows\system32\zh-TW
[kit] Checking file for compiler features: C:\Windows\system32\zipcontainer.dll
[kit] Checking file for compiler features: C:\Windows\system32\zipfldr.dll
[kit] Checking file for compiler features: C:\Windows\system32\ztrace_maps.dll
[kit] Found 0 kits in directory C:\Windows\system32
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Resolving process on "close" event]
[kit] OK running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat amd64, env vars: undefined
[kit] Detected VsKit for version
[kit]  DisplayName: Visual Studio Community 2019 Release - amd64
[kit]  InstanceId: ba5790b6
[kit]  InstallVersion: 16.3.29509.3
[kit]  Generator Present: Visual Studio 16 2019
[kit]  Selected Preferred Generator Name: Visual Studio 16 2019 {"name":"Visual Studio 16 2019","platform":"x64"}
[rollbar] Invoking function [$] with Rollbar wrapping [$Resolving process on "close" event]
[kit] OK running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x86, env vars: undefined
[kit] Detected VsKit for version
[kit]  DisplayName: Visual Studio Community 2019 Release - x86
[kit]  InstanceId: ba5790b6
[kit]  InstallVersion: 16.3.29509.3
[kit]  Generator Present: Visual Studio 16 2019
[kit]  Selected Preferred Generator Name: Visual Studio 16 2019 {"name":"Visual Studio 16 2019"}
[rollbar] Invoking function [$] with Rollbar wrapping [$Resolving process on "close" event]
[kit] OK running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat amd64_arm, env vars: undefined
[kit] Detected VsKit for version
[kit]  DisplayName: Visual Studio Community 2019 Release - amd64_arm
[kit]  InstanceId: ba5790b6
[kit]  InstallVersion: 16.3.29509.3
[kit]  Generator Present: Visual Studio 16 2019
[kit]  Selected Preferred Generator Name: Visual Studio 16 2019 {"name":"Visual Studio 16 2019","platform":"ARM"}
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Resolving process on "close" event]
[kit] OK running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x86_arm, env vars: undefined
[kit] Detected VsKit for version
[kit]  DisplayName: Visual Studio Community 2019 Release - x86_arm
[kit]  InstanceId: ba5790b6
[kit]  InstallVersion: 16.3.29509.3
[kit]  Generator Present: Visual Studio 16 2019
[kit]  Selected Preferred Generator Name: Visual Studio 16 2019 {"name":"Visual Studio 16 2019"}
[rollbar] Invoking function [$] with Rollbar wrapping [$Resolving process on "close" event]
[kit] OK running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x86_amd64, env vars: undefined
[kit] Detected VsKit for version
[kit]  DisplayName: Visual Studio Community 2019 Release - x86_amd64
[kit]  InstanceId: ba5790b6
[kit]  InstallVersion: 16.3.29509.3
[kit]  Generator Present: Visual Studio 16 2019
[kit]  Selected Preferred Generator Name: Visual Studio 16 2019 {"name":"Visual Studio 16 2019"}
[rollbar] Invoking function [$] with Rollbar wrapping [$Resolving process on "close" event]
[kit] OK running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat amd64_x86, env vars: undefined
[kit] Detected VsKit for version
[kit]  DisplayName: Visual Studio Community 2019 Release - amd64_x86
[kit]  InstanceId: ba5790b6
[kit]  InstallVersion: 16.3.29509.3
[kit]  Generator Present: Visual Studio 16 2019
[kit]  Selected Preferred Generator Name: Visual Studio 16 2019 {"name":"Visual Studio 16 2019"}
[kit] Found Kit: Visual Studio Community 2019 Release - x86
[kit] Found Kit: Visual Studio Community 2019 Release - amd64
[kit] Found Kit: Visual Studio Community 2019 Release - x86_amd64
[kit] Found Kit: Visual Studio Community 2019 Release - x86_arm
[kit] Found Kit: Visual Studio Community 2019 Release - amd64_arm
[kit] Found Kit: Visual Studio Community 2019 Release - amd64_x86
[main] Injecting new Kit into CMake driver
[driver] Switching to kit: Visual Studio Community 2019 Release - amd64
[driver] CMakeDriver Kit set to Visual Studio Community 2019 Release - amd64
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Resolving process on "close" event]
[kit] OK running C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat amd64, env vars: undefined
[driver] Trying to detect generator supported by system
[rollbar] Invoking function [$] with Rollbar wrapping [$Processing "data" event from proc stdout]
[rollbar] Invoking function [$] with Rollbar wrapping [$Resolving process on "close" event]
[driver] Command version test return code 0
[cms-client] Started new CMake Server instance with PID 7912
[cache] Reading CMake cache file c:\Users\Huang Kai\codes\proj\build\CMakeCache.txt
[cache] File exists
[cache] File contents read successfully
[cache] Parsing CMake cache string
[cache] Read line in cache with name=AMD_INCLUDE_DIR, typename=PATH, valuestr=C:/vcpkg/installed/x64-windows/include/suitesparse
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=AMD_LIBRARY, typename=FILEPATH, valuestr=C:/vcpkg/installed/x64-windows/lib/libamd.lib
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=APPLE_UNIVERSAL_BIN, typename=BOOL, valuestr=OFF
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=BLAS_goto2_LIBRARY, typename=FILEPATH, valuestr=BLAS_goto2_LIBRARY-NOTFOUND
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=BLAS_mkl_intel_c_dll_LIBRARY, typename=FILEPATH, valuestr=BLAS_mkl_intel_c_dll_LIBRARY-NOTFOUND
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=BLAS_mkl_intel_lp64_dll_LIBRARY, typename=FILEPATH, valuestr=BLAS_mkl_intel_lp64_dll_LIBRARY-NOTFOUND
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=BLAS_openblas_LIBRARY, typename=FILEPATH, valuestr=C:/vcpkg/installed/x64-windows/lib/openblas.lib
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=BUILD_BENCHMARKS, typename=BOOL, valuestr=OFF
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=BUILD_DOCUMENTATION, typename=BOOL, valuestr=OFF
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=BUILD_EXAMPLES, typename=BOOL, valuestr=OFF
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=BUILD_SHARED_LIBS, typename=BOOL, valuestr=OFF
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=BUILD_TESTING, typename=BOOL, valuestr=OFF
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CAMD_INCLUDE_DIR, typename=PATH, valuestr=C:/vcpkg/installed/x64-windows/include/suitesparse
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CAMD_LIBRARY, typename=FILEPATH, valuestr=C:/vcpkg/installed/x64-windows/lib/libcamd.lib
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CCACHE_FOUND, typename=FILEPATH, valuestr=CCACHE_FOUND-NOTFOUND
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CCOLAMD_INCLUDE_DIR, typename=PATH, valuestr=C:/vcpkg/installed/x64-windows/include/suitesparse
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CCOLAMD_LIBRARY, typename=FILEPATH, valuestr=C:/vcpkg/installed/x64-windows/lib/libccolamd.lib
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CERES_THREADING_MODEL, typename=STRING, valuestr=CXX11_THREADS
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CHOLMOD_INCLUDE_DIR, typename=PATH, valuestr=C:/vcpkg/installed/x64-windows/include/suitesparse
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CHOLMOD_LIBRARY, typename=FILEPATH, valuestr=C:/vcpkg/installed/x64-windows/lib/libcholmod.lib
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_BUILD_TYPE, typename=STRING, valuestr=Release
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CXX_COMPILER, typename=FILEPATH, valuestr=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CXX_FLAGS, typename=STRING, valuestr=/DWIN32 /D_WINDOWS /W3 /GR /EHsc
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CXX_FLAGS_DEBUG, typename=STRING, valuestr=/MDd /Zi /Ob0 /Od /RTC1
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CXX_FLAGS_MINSIZEREL, typename=STRING, valuestr=/MD /O1 /Ob1 /DNDEBUG
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CXX_FLAGS_RELEASE, typename=STRING, valuestr=/MD /O2 /Ob2 /DNDEBUG
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CXX_FLAGS_RELWITHDEBINFO, typename=STRING, valuestr=/MD /Zi /O2 /Ob1 /DNDEBUG
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CXX_STANDARD, typename=STRING, valuestr=11
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CXX_STANDARD_LIBRARIES, typename=STRING, valuestr=kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CXX_STANDARD_REQUIRED, typename=BOOL, valuestr=ON
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_C_COMPILER, typename=FILEPATH, valuestr=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_C_FLAGS, typename=STRING, valuestr=/DWIN32 /D_WINDOWS /W3
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_C_FLAGS_DEBUG, typename=STRING, valuestr=/MDd /Zi /Ob0 /Od /RTC1
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_C_FLAGS_MINSIZEREL, typename=STRING, valuestr=/MD /O1 /Ob1 /DNDEBUG
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_C_FLAGS_RELEASE, typename=STRING, valuestr=/MD /O2 /Ob2 /DNDEBUG
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_C_FLAGS_RELWITHDEBINFO, typename=STRING, valuestr=/MD /Zi /O2 /Ob1 /DNDEBUG
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_C_STANDARD_LIBRARIES, typename=STRING, valuestr=kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
.
.
.
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_INSTALL_SYSCONFDIR, typename=PATH, valuestr=etc
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_LINKER, typename=FILEPATH, valuestr=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/link.exe
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_MAKE_PROGRAM, typename=FILEPATH, valuestr=C:/PROGRA~2/MICROS~2/2019/COMMUN~1/Common7/IDE/COMMON~1/MICROS~1/CMake/Ninja/ninja.exe
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_MODULE_LINKER_FLAGS, typename=STRING, valuestr=/machine:x64
.
.
.
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL, typename=STRING, valuestr=
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_STATIC_LINKER_FLAGS_RELEASE, typename=STRING, valuestr=
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO, typename=STRING, valuestr=
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_TOOLCHAIN_FILE, typename=FILEPATH, valuestr=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_VERBOSE_MAKEFILE, typename=BOOL, valuestr=FALSE
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=COLAMD_INCLUDE_DIR, typename=PATH, valuestr=C:/vcpkg/installed/x64-windows/include/suitesparse
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=COLAMD_LIBRARY, typename=FILEPATH, valuestr=C:/vcpkg/installed/x64-windows/lib/libcolamd.lib
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=COMMON_SANITIZER_COMPILE_OPTIONS, typename=STRING, valuestr=-g -fno-omit-frame-pointer -fno-optimize-sibling-calls
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CUSTOM_BLAS, typename=BOOL, valuestr=ON
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CXSPARSE, typename=BOOL, valuestr=ON
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CXSPARSE_INCLUDE_DIR, typename=PATH, valuestr=C:/vcpkg/installed/x64-windows/include/suitesparse
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CXSPARSE_LIBRARY, typename=FILEPATH, valuestr=C:/vcpkg/installed/x64-windows/lib/libcxsparse.lib
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CXX11_THREADS, typename=BOOL, valuestr=ON
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=Ceres_BINARY_DIR, typename=STATIC, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-ceres-solver-build
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=Ceres_SOURCE_DIR, typename=STATIC, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-ceres-solver-src
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=EIGENSPARSE, typename=BOOL, valuestr=ON
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=EIGEN_INCLUDE_DIR, typename=PATH, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-eigen-src
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=EIGEN_PREFER_EXPORTED_EIGEN_CMAKE_CONFIGURATION, typename=BOOL, valuestr=OFF
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=EXPORT_BUILD_DIR, typename=BOOL, valuestr=OFF
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=FETCHCONTENT_BASE_DIR, typename=PATH, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=FETCHCONTENT_FULLY_DISCONNECTED, typename=BOOL, valuestr=OFF
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=FETCHCONTENT_QUIET, typename=BOOL, valuestr=ON
.
.
.
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=YAML_CPP_SOURCE_DIR, typename=STATIC, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-yaml-cpp-src
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=_VCPKG_CL, typename=FILEPATH, valuestr=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.23.28105/bin/Hostx64/x64/cl.exe
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=ceres_LIB_DEPENDS, typename=STATIC, valuestr=general;C:/vcpkg/installed/x64-windows/lib/libspqr.lib;general;C:/vcpkg/installed/x64-windows/lib/libcholmod.lib;general;C:/vcpkg/installed/x64-windows/lib/libccolamd.lib;general;C:/vcpkg/installed/x64-windows/lib/libcamd.lib;general;C:/vcpkg/installed/x64-windows/lib/libcolamd.lib;general;C:/vcpkg/installed/x64-windows/lib/libamd.lib;optimized;C:/vcpkg/installed/x64-windows/lib/lapack.lib;debug;C:/vcpkg/installed/x64-windows/debug/lib/lapackd.lib;optimized;C:/vcpkg/installed/x64-windows/lib/libf2c.lib;debug;C:/vcpkg/installed/x64-windows/debug/lib/libf2cd.lib;general;C:/vcpkg/installed/x64-windows/lib/openblas.lib;general;C:/vcpkg/installed/x64-windows/lib/openblas.lib;general;C:/vcpkg/installed/x64-windows/lib/suitesparseconfig.lib;general;C:/vcpkg/installed/x64-windows/lib/libcxsparse.lib;optimized;C:/vcpkg/installed/x64-windows/lib/lapack.lib;debug;C:/vcpkg/installed/x64-windows/debug/lib/lapackd.lib;optimized;C:/vcpkg/installed/x64-windows/lib/libf2c.lib;debug;C:/vcpkg/installed/x64-windows/debug/lib/libf2cd.lib;general;C:/vcpkg/installed/x64-windows/lib/openblas.lib;
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=libsensors_BINARY_DIR, typename=STATIC, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-sensors-toolkit-build/libsensors
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=libsensors_SOURCE_DIR, typename=STATIC, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-sensors-toolkit-src/libsensors
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=proj-core-with-yaml-cpp_LIB_DEPENDS, typename=STATIC, valuestr=general;proj-core;
.
.
.
[cache] Read line in cache with name=AMD_INCLUDE_DIR-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=AMD_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=BLAS_WORKS, typename=INTERNAL, valuestr=
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=BLAS_goto2_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=BLAS_mkl_intel_c_dll_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=BLAS_mkl_intel_lp64_dll_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=BLAS_openblas_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=BLAS_openblas_WORKS, typename=INTERNAL, valuestr=1
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CAMD_INCLUDE_DIR-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CAMD_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CCOLAMD_INCLUDE_DIR-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CCOLAMD_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CERES_THREADING_MODEL-STRINGS, typename=INTERNAL, valuestr=CXX11_THREADS;OPENMP;NO_THREADS
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CHECK_CXX_FLAG_Wno_missing_declarations, typename=INTERNAL, valuestr=
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CHOLMOD_INCLUDE_DIR-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CHOLMOD_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_CACHEFILE_DIR, typename=INTERNAL, valuestr=c:/Users/Huang Kai/codes/proj/build
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CACHE_MAJOR_VERSION, typename=INTERNAL, valuestr=3
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CACHE_MINOR_VERSION, typename=INTERNAL, valuestr=15
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CACHE_PATCH_VERSION, typename=INTERNAL, valuestr=19080502
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_COMMAND, typename=INTERNAL, valuestr=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CPACK_COMMAND, typename=INTERNAL, valuestr=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cpack.exe
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CTEST_COMMAND, typename=INTERNAL, valuestr=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/ctest.exe
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_CXX_COMPILER-ADVANCED, typename=INTERNAL, valuestr=1
.
.
.
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_RC_FLAGS_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_RC_FLAGS_RELWITHDEBINFO-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_ROOT, typename=INTERNAL, valuestr=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=CMAKE_SHARED_LINKER_FLAGS-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_SKIP_INSTALL_RPATH-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_SKIP_RPATH-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_STATIC_LINKER_FLAGS-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_TOOLCHAIN_FILE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CMAKE_VERBOSE_MAKEFILE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=COLAMD_INCLUDE_DIR-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=COLAMD_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CXSPARSE_INCLUDE_DIR-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=CXSPARSE_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=EIGEN_INCLUDE_DIR-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=EXPORT_TARGETS, typename=INTERNAL, valuestr=yaml-cpp
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=FIND_PACKAGE_MESSAGE_DETAILS_BLAS, typename=INTERNAL, valuestr=[C:/vcpkg/installed/x64-windows/lib/openblas.lib][v()]
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=FIND_PACKAGE_MESSAGE_DETAILS_CXSparse, typename=INTERNAL, valuestr=[C:/vcpkg/installed/x64-windows/include/suitesparse][C:/vcpkg/installed/x64-windows/lib/libcxsparse.lib][v3.1.9()]
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=FIND_PACKAGE_MESSAGE_DETAILS_Eigen, typename=INTERNAL, valuestr=[C:/Users/Huang Kai/codes/proj/build/_deps/depends-eigen-src][v3.3.7()]
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=FIND_PACKAGE_MESSAGE_DETAILS_OpenCV, typename=INTERNAL, valuestr=[C:/vcpkg/installed/x64-windows][v4.1.1()]
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=FIND_PACKAGE_MESSAGE_DETAILS_SuiteSparse, typename=INTERNAL, valuestr=[TRUE][TRUE][TRUE][TRUE][TRUE][TRUE][TRUE][TRUE][5.4.0][v5.4.0()]
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=FIND_PACKAGE_MESSAGE_DETAILS_Threads, typename=INTERNAL, valuestr=[TRUE][v()]
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=HAVE_UNDERSCORE_PREFIXED_BESSEL_FUNCTIONS, typename=INTERNAL, valuestr=1
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=LAPACK_Accelerate_LIBRARY_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_Accelerate_LIBRARY_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_WORKS, typename=INTERNAL, valuestr=
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=LAPACK_flame_LIBRARY_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_flame_LIBRARY_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_goto2_LIBRARY_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_goto2_LIBRARY_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_lapack_LIBRARY_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_lapack_LIBRARY_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_lapack_WORKS, typename=INTERNAL, valuestr=
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=LAPACK_lapack_libf2c_WORKS, typename=INTERNAL, valuestr=1
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=LAPACK_libf2c_LIBRARY_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_libf2c_LIBRARY_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_mkl_lapack_LIBRARY_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_mkl_lapack_LIBRARY_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_openblas_LIBRARY_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_openblas_LIBRARY_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_openblas_WORKS, typename=INTERNAL, valuestr=
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=LAPACK_vecLib_LIBRARY_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=LAPACK_vecLib_LIBRARY_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=METIS_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=NANOGUI_LIBRARY_DIR, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-nanogui-build
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=NANOVIS_LIBRARY_DIR, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-nanovis-build
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=OpenMP_COMPILE_RESULT_CXX_openmp, typename=INTERNAL, valuestr=TRUE
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=OpenMP_COMPILE_RESULT_C_openmp, typename=INTERNAL, valuestr=TRUE
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=OpenMP_CXX_FLAGS-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=OpenMP_CXX_LIB_NAMES-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=OpenMP_CXX_SPEC_DATE, typename=INTERNAL, valuestr=200203
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=OpenMP_C_FLAGS-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=OpenMP_C_LIB_NAMES-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=OpenMP_C_SPEC_DATE, typename=INTERNAL, valuestr=200203
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=OpenMP_SPECTEST_CXX_, typename=INTERNAL, valuestr=TRUE
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=OpenMP_SPECTEST_C_, typename=INTERNAL, valuestr=TRUE
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=SENSORS_BUILD_IOS_APP, typename=INTERNAL, valuestr=OFF
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=SUITESPARSEQR_INCLUDE_DIR-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=SUITESPARSEQR_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=SUITESPARSE_CONFIG_INCLUDE_DIR-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=SUITESPARSE_CONFIG_LIBRARY-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=TBB_INCLUDE_DIRS-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=TBB_tbb_LIBRARY_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=TBB_tbb_LIBRARY_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=TBB_tbb_preview_LIBRARY_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=TBB_tbb_preview_LIBRARY_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=TBB_tbbmalloc_LIBRARY_DEBUG-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=TBB_tbbmalloc_LIBRARY_RELEASE-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=_GNUInstallDirs_LAST_CMAKE_INSTALL_PREFIX, typename=INTERNAL, valuestr=C:/Program Files (x86)/proj-superbuild
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=_VCPKG_ROOT_DIR, typename=INTERNAL, valuestr=C:/vcpkg
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-ceres-solver-binary-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-ceres-solver-binary-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-ceres-solver-build
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-ceres-solver-source-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-ceres-solver-source-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-ceres-solver-src
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-eigen-source-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-eigen-source-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-eigen-src
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-glfw-binary-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-glfw-binary-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-glfw-build
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-glfw-source-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-glfw-source-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-glfw-src
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-nanogui-binary-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-nanogui-binary-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-nanogui-build
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-nanogui-source-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-nanogui-source-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-nanogui-src
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-nanovis-binary-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-nanovis-binary-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-nanovis-build
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-nanovis-source-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-nanovis-source-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-nanovis-src
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-sensors-toolkit-binary-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-sensors-toolkit-binary-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-sensors-toolkit-build
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-sensors-toolkit-source-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-sensors-toolkit-source-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-sensors-toolkit-src
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-yaml-cpp-binary-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-yaml-cpp-binary-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-yaml-cpp-build
[cache] Constructing a new cache entry from the given line
[cache] Read line in cache with name=depends-yaml-cpp-source-dir-ADVANCED, typename=INTERNAL, valuestr=1
[cache] Skipping *-ADVANCED variable
[cache] Read line in cache with name=depends-yaml-cpp-source-dir, typename=INTERNAL, valuestr=C:/Users/Huang Kai/codes/proj/build/_deps/depends-yaml-cpp-src
[cache] Constructing a new cache entry from the given line
[cache] Parsed 288 cache entries
[cache] Parsed 288 entries from c:\Users\Huang Kai\codes\proj\build\CMakeCache.txt
[cache] Get cache key CMAKE_HOME_DIRECTORY=C:/Users/Huang Kai/codes/proj
[extension] Saving kits to C:\Users\Huang Kai\AppData\Local\CMakeTools\cmake-tools-kits.json
[extension] Saving new kits to C:\Users\Huang Kai\AppData\Local\CMakeTools\cmake-tools-kits.json
[extension] [8867] cmake.scanForKits finished (returned undefined)

Developer Tools Log

Basicly same as the cmake-tools log.

Platform and Versions

  • Operating System: Windows 10
  • CMake Version: 3.15.19080502-MSVC_2 (Installed with VS 2019)
  • VSCode Version: 1.40.1
  • CMake Tools Extension Version: 1.2.2
  • Compiler/Toolchain: Visual Studio 2019 Community, with clang compiler, cmake installed

Other Notes/Information

Clean Windows 10 Business Edition 1909, no MinGW, GCC, Standalone Clang or any other independent compiler.

Git and CMake are installed from Visual Studio.

@Zingam
Copy link
Contributor

Zingam commented Nov 14, 2019

@elegracer Put C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\Llvm into PATH and the extension should find clang-cl.exe. I'll eventually look into this issue later to provide a fix.

@elegracer
Copy link
Author

@Zingam
Putting ...\Llvm does not help detecting clang-cl.exe
Putting ...\Llvm\bin does make the detection but only one more entry shows up with x86 arch, building fails.

@bobbrow
Copy link
Member

bobbrow commented Nov 14, 2019

What does the Kit entry look like? (run the "CMake: Edit User-local CMake Kits" command)

I modified one of the existing Clang for MSVC ones and was able to make it work -- though I did have trouble using anything other than x86.

  {
    "name": "Clang 6.0.0 for MSVC with Visual Studio Enterprise 2019 Release (x86)",
    "visualStudio": "23208765",
    "visualStudioArchitecture": "x86",
    "compilers": {
      "C": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\Llvm\\bin\\clang-cl.exe",
      "CXX": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\Llvm\\bin\\clang-cl.exe"
    }
  },

@Zingam
Copy link
Contributor

Zingam commented Nov 14, 2019

@elegracer Sorry! My mistake: you need to set PATH to the location of the clang executable.

https://docs.microsoft.com/en-us/cpp/build/clang-support-msbuild?view=vs-2019

If you are using the Clang tools that are bundled with Visual Studio, no additional steps are required. For Windows projects, Visual Studio by default invokes Clang in clang-cl mode and links with the Microsoft implementation of the Standard Library. By default, clang-cl.exe is located in C:\Program Files (x86)\Microsoft Visual Studio\2019\Common7\IDE\CommonExtensions\Microsoft\Llvm\bin.

@elegracer
Copy link
Author

@bobbrow Yes, exactly as yours, only x86 can be used, nothing else, but I just want to build it to x64

@elegracer
Copy link
Author

elegracer commented Nov 15, 2019

@Zingam I tried that, but only one entry added, exactly as @bobbrow showed.

I’m just wondering if I can build with different target with clang or cl or whatever is available, just as in CMakeSettings.json on visual studio.

But I don’t know if it’s possible, and how to configure it either

@elegracer
Copy link
Author

elegracer commented Nov 15, 2019

@bobbrow The more detailed trouble I faced was, I installed x64-windows package which my project depends on, e.g. opencv:x64-windows, then the error was

[cmake]   By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
[cmake]   asked CMake to find a package configuration file provided by "OpenCV", but
[cmake]   CMake did not find one.
[cmake] 
[cmake]   Could not find a package configuration file provided by "OpenCV" with any
[cmake]   of the following names:
[cmake] 
[cmake]     OpenCVConfig.cmake
[cmake]     opencv-config.cmake
[cmake] 
[cmake]   Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
[cmake]   "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
[cmake]   provides a separate development package or SDK, be sure it has been
[cmake]   installed.

Even if I modified the "visualStudioArchitecture": "x86" to "visualStudioArchitecture": "x64", or "visualStudioArchitecture": "amd64", building would fail.

@Zingam
Copy link
Contributor

Zingam commented Nov 16, 2019

@elegracer I don't think that your last issue with OpenCV is related to the extension. I assume that you need to tell CMake where to look for packages. Do you use vcpkg?

@Zingam
Copy link
Contributor

Zingam commented Nov 16, 2019

The VS2019 Clang yields:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\Llvm\bin>clang -v
clang version 9.0.0 (tags/RELEASE_900/final)
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\Llvm\bin

C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\Llvm\bin>clang-cl -v
clang version 9.0.0 (tags/RELEASE_900/final)
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\Llvm\bin

This is apparently a 32bit LLVM/Clang.

The 64bit LLVM distribution:

c:\Program Files\LLVM\bin>clang -v
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: c:\Program Files\LLVM\bin

c:\Program Files\LLVM\bin>clang-cl -v
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: c:\Program Files\LLVM\bin

This is the 64-bit LLVM/Clang.

I removed the LLVM distribution and installed the one included in VS2019. I added C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\Llvm\bin to PATH and re-scanned the kits. I selected the new kit (Clang/VS2019).

When I tried to configure the CMake project I got the following output:

[cmake] The C compiler identification is Clang 9.0.0 with MSVC-like command-line
[cmake] The CXX compiler identification is Clang 9.0.0 with MSVC-like command-line
[cmake] Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/Llvm/bin/clang-cl.exe
[cmake] Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/Llvm/bin/clang-cl.exe -- broken
[cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
[cmake] The C compiler
[cmake]
[cmake] "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/Llvm/bin/clang-cl.exe"
[cmake]
[cmake] is not able to compile a simple test program.
[cmake]
[cmake] It fails with the following output:
[cmake]
[cmake] Change Dir: Z:/zHGHz/CMakeTest/CMakeTest/build/CMakeFiles/CMakeTmp
[cmake]
[cmake] Run Build Command(s):C:/Users/Hristo.G.Hristov/qnx700/host/win64/x86_64/usr/bin/make.exe cmTC_c0220/fast && C:/Users/Hristo.G.Hristov/qnx700/host/win64/x86_64/usr/bin/make.exe -f CMakeFiles/cmTC_c0220.dir/build.make CMakeFiles/cmTC_c0220.dir/build
[cmake] make.exe[1]: Entering directory 'Z:/zHGHz/CMakeTest/CMakeTest/build/CMakeFiles/CMakeTmp'
[cmake] Building C object CMakeFiles/cmTC_c0220.dir/testCCompiler.c.obj
[cmake] "C:/Program Files (x86)/Microsoft Visual Studio/2019/Preview/VC/Tools/Llvm/bin/clang-cl.exe" /nologo /FoCMakeFiles/cmTC_c0220.dir/testCCompiler.c.obj /FdCMakeFiles/cmTC_c0220.dir/ -c Z:/zHGHz/CMakeTest/CMakeTest/build/CMakeFiles/CMakeTmp/testCCompiler.c
[cmake] clang-cl: error: no such file or directory: 'C:/Users/Hristo.G.Hristov/qnx700/host/win64/x86_64/nologo'
[cmake] clang-cl: error: no such file or directory: 'C:/Users/Hristo.G.Hristov/qnx700/host/win64/x86_64/FoCMakeFiles/cmTC_c0220.dir/testCCompiler.c.obj'
[cmake] clang-cl: error: no such file or directory: 'C:/Users/Hristo.G.Hristov/qnx700/host/win64/x86_64/FdCMakeFiles/cmTC_c0220.dir/'
[cmake] CMakeFiles/cmTC_c0220.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_c0220.dir/testCCompiler.c.obj' failed
[cmake] make.exe[1]: *** [CMakeFiles/cmTC_c0220.dir/testCCompiler.c.obj] Error 1
[cmake] make.exe[1]: Leaving directory 'Z:/zHGHz/CMakeTest/CMakeTest/build/CMakeFiles/CMakeTmp'
[cmake] Makefile:121: recipe for target 'cmTC_c0220/fast' failed
[cmake] make.exe: *** [cmTC_c0220/fast] Error 2
[cmake]
[cmake]
[cmake]
[cmake]
[cmake]
[cmake] CMake will not be able to correctly generate this project.
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt:6 (project)
[cmake]
[cmake]
[cmake] Configuring incomplete, errors occurred!
[cmake] See also "Z:/zHGHz/CMakeTest/CMakeTest/build/CMakeFiles/CMakeOutput.log".
[cmake] See also "Z:/zHGHz/CMakeTest/CMakeTest/build/CMakeFiles/CMakeError.log".
[cmake] CMake Deprecation Warning:
[cmake] The 'cmake-server(7)' is deprecated. Please port clients to use the
[cmake] 'cmake-file-api(7)' instead.
[cmake]
[cmake]
[cms-driver] Error during CMake configure: [cmake-server] Configuration failed.

Then I deleted the CMake build (cache) directory manually and the configuration and the build succeeded.

@Zingam
Copy link
Contributor

Zingam commented Nov 16, 2019

I don't think that there is a real issue with the bundled Clang.

Just in case I'm attaching the CMake projects for later reference:
Test.zip

@Zingam
Copy link
Contributor

Zingam commented Nov 16, 2019

@bobbrow If we have multiple installation of a compiler and the extension finds them I guess all will get the same name (I need to check the source code if that is really the case). How would we really make the users to differentiate the kits and let them pick a specific installation they may wish? Unlike what VS2019 does in a similar situation, the QuckPick doesn't seem to support multi-line items.
One option specific to Clang on Windows would be to add a prefix/suffix like: (bundled), (GNU CLI), etc. but that is just a temporary, special solution.

@elegracer
Copy link
Author

elegracer commented Nov 16, 2019

@Zingam
Yes I use vcpkg.
You mean the Clang bundled with VS2019 can build with target x86 only?
So in order to be able to build a x64 target, I need to install a standalone LLVM instead?

@Zingam
Copy link
Contributor

Zingam commented Nov 16, 2019

@elegracer What I claim is that the bundled Clang is a 32bit executable. There are two installers here:
http://releases.llvm.org/download.html#9.0.0

I don't really know about the cross-compilation capabilities of Clang but you could read about it here:
https://clang.llvm.org/docs/CrossCompilation.html

At a first glance I think a 32 bit compiler can target 64bit executables too but the extension seems to create kits based on the bit-ness of the compiler only.

So for now you probably need to install the 64bit Clang if you want to compile 64bit targets.

If you play with cmake-tool-kits.json and manage to figure out any working configurations, please let me know. I may look into fixing this too at some point after I finish all other things I'd like to work on with higher priority.

@elegracer
Copy link
Author

@Zingam
Thank you so much!
Maybe I will prefer to install a 64-bit clang first.
Waiting for your good news!

@bobbrow bobbrow added the fixed (release pending) fixed in pre-release and is pending official release label Dec 27, 2019
@bobbrow bobbrow added this to the 1.3.0 milestone Dec 27, 2019
@bobbrow
Copy link
Member

bobbrow commented Dec 27, 2019

The PR for this is committed. Thanks @Zingam !

@bobbrow If we have multiple installation of a compiler and the extension finds them I guess all will get the same name (I need to check the source code if that is really the case).

I believe the bundled clang kits already have differentiated names.
image

Are there other name collisions we should be aware of?

@andreeis
Copy link
Contributor

andreeis commented Feb 4, 2020

Closing since this is fixed in CMake Tools Beta2. Please reactivate if you encounter any other symptoms of this issue.

@andreeis andreeis closed this as completed Feb 4, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature: kits fixed (release pending) fixed in pre-release and is pending official release
Projects
None yet
Development

No branches or pull requests

4 participants