Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27256

Desktop kit with LLVM insists on having a Sysroot path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 7.0.0
    • None
    • Windows 10, 64 bits,
      LLVM 14.0, 64 bits.
    • Windows

    Description

      I'm trying to create a Kit on Qt Creator for my installation of the LLVM compiler on Windows.

      It's the LLVM compiler from github, not the one MSVC bundles.

      64 bits Windows, 64 bits LLVM binaries.

      No matter what I do, Qt Creator insists on having a sysroot path on the kit, that is defaulting to my msys2 installation, and that nothing to do with this LLVM install.

      If I leave it empty, save, close the settings and open then again, it's back to the same value.

      See attached screenshot.

      Sanity check: creating a kit with a GCC compiler doesn't create sysroot to be populated:

      And when I try to use the compiler:

      Running C:\ProgramsUser\CMake\bin\cmake.exe -S D:/User/Repos/aether_sdr -B D:/User/Repos/build-aether_sdr-Clang_LLVM_14_0_no_Qt-Debug "-DCMAKE_GENERATOR:STRING=Ninja" "-DCMAKE_BUILD_TYPE:STRING=Debug" "-DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=D:/Programs/Qt/Tools/QtCreator/share/qtcreator/package-manager/auto-setup.cmake" -D "-DCMAKE_C_COMPILER_TARGET:STRING=x86_64-w64-mingw32" "-DCMAKE_CXX_COMPILER_TARGET:STRING=D:\User\Repos\build-aether_sdr-Clang_LLVM_14_0_no_Qt-Debugx86_64-w64-mingw32" "-DCMAKE_C_COMPILER:FILEPATH=D:/Programs/LLVM/bin/clang.exe" "-DCMAKE_CXX_COMPILER:FILEPATH=D:/Programs/LLVM/bin/clang++.exe" in %2.
      CMake Error: -D must be followed with VAR=VALUE.
      CMake Error: Run 'cmake --help' for all supported options.
      CMake process exited with exit code 1.
      
      Elapsed time: 00:00.
      

      Which makes it look like Qt Creator things this is a cross-compiler.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            lordkalma Rui Oliveira
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes