Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-105267

Fails to configure QtTools if you have LLVM with ZSTD support

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.3.1
    • Build System: CMake
    • None
    • g++ (Rev3, Built by MSYS2 project) 12.1.0
      cmake version 3.23.2
      clang version 16.0.0 (git@github.com:HazardyKnusperkeks/llvm-project.git 5f4b38ffd776d71465aba3cd395f612916b0a71b) (this is the LLVM Version)
    • Windows

    Description

      LLVM has ZSTD support since d449c600767284486615f3b79601ced15a00af61. And then configuring Qt fails with

      CMake Error at C:/msys64/ucrt64/lib/cmake/zstd/zstdTargets.cmake:37 (message):
        Some (but not all) targets in this export set were already defined.
      
        Targets Defined: zstd::libzstd_static
      
        Targets not yet defined: zstd::libzstd_shared
      
      Call Stack (most recent call first):
        C:/msys64/ucrt64/lib/cmake/zstd/zstdConfig.cmake:1 (include)
        C:/GIT/corporate.git/llvm/lib/cmake/llvm/LLVMConfig.cmake:168 (find_package)
        C:/GIT/corporate.git/llvm/lib/cmake/clang/ClangConfig.cmake:9 (find_package)
        qttools/cmake/FindWrapLibClang.cmake:14 (find_package)
        qtbase/cmake/QtFindPackageHelpers.cmake:130 (find_package)
        qttools/configure.cmake:17 (qt_find_package)
        qtbase/cmake/QtFeature.cmake:573 (include)
        qttools/src/CMakeLists.txt:21 (qt_feature_evaluate_features)
      -- Configuring incomplete, errors occurred!

      If one would switch "_shared" and "_static" in lines 29 and 31 from qtbase/cmake/FindWrapZSTD.cmake the error message is updated accordingly, so I'm fairly certain that it is a Qt bug.

      For me I could work around it when disabling ZSTD in LLVM.

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              hazardy Björn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes