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

[REG v6.0.0-beta3 -> dev] configure tries to use ccache when it is not installed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.2.0
    • 6.0.0 Beta4
    • Build System: CMake
    • None
    • $ lsb_release -d
      Description: openSUSE Leap 15.2
      $ uname -a
      Linux localhost.localdomain 5.3.18-lp152.47-default #1 SMP Thu Oct 15 16:05:25 UTC 2020 (41f7396) x86_64 x86_64 x86_64 GNU/Linux
    • Linux/X11

    Description

      Found when building Qt from CI-approved commit 43291fd110 in the dev branch of qt5.git.

      I do not have ccache installed in my environment.  The old qmake-based configure correctly autodetects the lack of ccache and disables it, while the new cmake-based configure appears to erroneously enable ccache.

      $ rpm -q ccache
      package ccache is not installed
      $ git clone git://code.qt.io/qt/qt5.git
      ...
      $ cd qt5
      $ git checkout v6.0.0-beta3
      $ perl init-repository -f
      ...
      $ ./configure -opensource -confirm-license
      ...
      Build options:
      ...
        Using ccache ........................... no
      ...
      $ git checkout dev
      $ git reflog
      43291fd1 (HEAD -> dev, origin/dev, origin/HEAD) HEAD@{0}: clone: from git://code.qt.io/qt/qt5.git
      $ perl init-repository -f
      ...
      $ ./configure
      ...
      Build options:
      ...
        Using ccache ........................... yes
      ...

      If I try to forcibly enable ccache for the old configure, it correctly refuses:

      $ ./configure -opensource -confirm-license -ccache
      ...
      ERROR: Feature 'ccache' was enabled, but the pre-condition 'tests.ccache' failed.
      

      If I pass }}{{-ccache to the new configure it does not complain, so perhaps configure's test for ccache is now broken.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            macadder Jason McDonald
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes