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

When configuring with debug info, installed libraries shoudn't be stripped

    XMLWordPrintable

Details

    • 09fdddeb3 (dev), 70ee85eff (6.6), 830c4041b (dev), e86dc821d (6.6)

    Description

      In Coin, when testing submodules, the stacktraces from gdb or ASAN do not contain source code lines. I filed COIN-1087 for this, see the stacktrace from testing qtvirtualkeyboard on that ticket.

      It turns out this is because the libraries are stripped when installed, see for example this snippet from a qtbase build:

      agent:2023/09/29 09:22:50 build.go:875: Executing instruction 55 of 86 - ExecuteCommand
      agent:2023/09/29 09:22:50 build.go:428: [cmake -DQT_BUILD_DIR=/home/qt/work/qt/qtbase_build -P /home/qt/work/qt/qtbase_build/libexec/qt-cmake-private-install.cmake] 1h40m0s 20m0s false false
      agent:2023/09/29 09:22:50 build.go:405: -- Installing configuration: 'Debug'
      agent:2023/09/29 09:22:50 build.go:405: '/opt/cmake-3.16.8/bin/cmake' '--install' '/home/qt/work/qt/qtbase_build' '--config' 'Debug' '--strip'
      agent:2023/09/29 09:22:50 build.go:405: -- Installing: /home/qt/work/install/lib/cmake/Qt6BuildInternals/Qt6BuildInternalsConfig.cmake
      [...] 

      This behaviour was introduced 3 years ago in https://codereview.qt-project.org/c/qt/qtbase/+/315625

      CMake: Strip binaries and libraries upon installation

      To avoid big artifact sizes, strip the binaries and libraries upon
      installation. This achieves stripping similar to QTBUG-69767 and
      QTBUG-81301 but arguably in a cleaner CMake way.

      Attachments

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              jimis Dimitrios Apostolou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews