Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1698

Qbs fails on detection of msvc via vswhere

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 1.17.0, 1.19.0, 1.21, 1.22.1
    • Toolchains: Visual C++
    • None
    • Windows

    Description

      Scenario
      Run

      qbs setup-toolchains --detect
      

      Expected result
      Profiles are created for all installed MSVSs

      Current result

      Detecting MSVC toolchains...
        MSVC 2017 (x64) detected in
          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64
        MSVC 2017 (x64_x86) detected in
          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86
        MSVC 2017 (x86_x64) detected in
          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64
        MSVC 2017 (x86) detected in
          C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86
      Detecting build environment...
      Setting up profile 'MSVC2017-x64'.
      Setting up profile 'MSVC2017-x64_x86'.
      Setting up profile 'MSVC2017-x86_x64'.
      Setting up profile 'MSVC2017-x86'.
      Trying to detect clang-cl...
      Profile 'clang-cl-x86_64' created for 'C:\LLVM\6.0\bin'.
      Profile 'clang-cl-x86' created for 'C:\LLVM\6.0\bin'.
      Trying to detect gcc...
      Profile 'x86_64-w64-mingw32-gcc-8_3_0' created for 'C:/Strawberry/c/bin/x86_64-w64-mingw32-gcc-8.3.0.exe'.
      Trying to detect clang...
      Profile 'clang' created for 'C:/LLVM/6.0/bin/clang.exe'.
      Profile 'clang' created for 'C:/LLVM/10.0/bin/clang.exe'.
      Profile 'clang' created for 'C:/LLVM/13.0/bin/clang.exe'.
      Profile 'clang' created for 'C:/LLVM/14.0/bin/clang.exe'.
      Trying to detect IAR toolchains...
      No IAR toolchains found.
      Trying to detect KEIL toolchains...
      No KEIL toolchains found.
      Trying to detect SDCC toolchains...
      No SDCC toolchains found.
      Trying to detect COSMIC toolchains...
      No COSMIC toolchains found.
      Trying to detect DMC toolchains...
      No DMC toolchains found.
      Trying to detect WATCOM toolchains...
      No WATCOM toolchains found.
      WARNING: The vswhere tool produced invalid JSON output: invalid UTF8 string
      WARNING: The vswhere tool produced invalid JSON output: invalid UTF8 string
      

      The output of vswhere.exe -all -legacy -prerelease -format json -utf8 is attached. I think that cyrillic symbols in description fields could break the parsing but the output looks like perfectly valid as an utf8 json.

      Attached product generates the following in powershell (built using community version of Qt 5.6.4 with static runtime, clang-cl 10.0, MSVC 2019 c++ static runtime):

      > .\QBS-1698.exe ..\..\..\vswhere.txt
      3
      > $LastExitCode
      0
      

      Attachments

        1. vswhere.txt
          7 kB
        2. QBS-1698-via-qprocess.zip
          3 kB
        3. QBS-1698.tar
          20 kB

        Issue Links

          Activity

            People

              kandeler Christian Kandeler
              undefbehavior Dmitrii Meshkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: