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

Dependency cycle in qtbase

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6
    • Build System: CMake
    • None
    • qtbase/dev, CMake 3.25.0, MSVC 2022 (version 17.4.3), CL 19.34, C++20
    • Windows

    Description

      Upon investigating QTBUG-109858 with CMake 3.25.0, I ran into the following error. Disabling the PCH seems to suppresses it,

      ninja: error: dependency cycle: src/corelib/CMakeFiles/Core.dir/CXX.dd -> src/corelib/CMakeFiles/Core.dir/Core_autogen/mocs_compilation.cpp.obj.ddi -> src/corelib/CMakeFiles/Core.dir/cmake_pch.cxx.pch -> src/corelib/CMakeFiles/Core.dir/cmake_pch.cxx.obj -> src/corelib/CMakeFiles/Core.dir/CXX.dd
      

      Here is the config that causes the error:

      cd qtbase
      mkdir build
      cd build
      cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF -DQT_BUILD_TESTS=ON -DQT_BUILD_TESTS_BY_DEFAULT=OFF -DQT_BUILD_MANUAL_TESTS=ON -DFEATURE_cxx20=ON -DFEATURE_developer_build=ON ..
      ninja
      

      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
              mrmsdbdl Amir Masoud Abdol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes