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

CMake Install fails with -debug-and-release and -separate-debug-info

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.2.0 Beta3, 6.3.0 Alpha
    • 6.1.0
    • Build System: CMake
    • None
    • macOS 11.3 (Intel)
      Apple clang version 12.0.5 (clang-1205.0.22.9)
      CMake 3.20.2
      Qt 6.1, relevant build options: -debug-and-release, -force-debug-info, -separate-debug-info
    • macOS
    • 3c148323c08cff1487211c18beda90ae2c6ef508 (qt/qtbase/dev) 5fa7adc2341e080108a7f6b19b49c368cd032655 (qt/qtbase/6.2)

    Description

      Debug tools were excluded from the ALL target for debug_and_release builds as per QTBUG-85411 https://codereview.qt-project.org/c/qt/qtbase/+/309309, which was followed by a fix for CMake Install, https://codereview.qt-project.org/c/qt/qtbase/+/320777.

      When installing the Debug config (cmake --install . --config Debug) on macOS configured with -separate-debug-info, the dSYM files for the excluded tools are failing to install:

      CMake Error at qtbase/src/tools/tracegen/cmake_install.cmake:74 (file):
        file INSTALL cannot find
        "/path/to/build/qtbase/libexec/Debug/tracegen.dSYM": No such
        file or directory.
      Call Stack (most recent call first):
        qtbase/src/cmake_install.cmake:62 (include)
        qtbase/cmake_install.cmake:230 (include)
        cmake_install.cmake:42 (include)
       

      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
              vejmartin Martin Vejdarski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes