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

qmake tries to create cache file in root directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.15.2, 6.2.0
    • Build tools: qmake
    • None
    • Ubuntu 20.04 LTS
      g++ 9.3.0

      1. Check out qt5 and its submodule qtbase.
        I have d85ff1e93425a0782cc3a34d018a0b1f21d82a2b and a120d11cb5506ef0a5535e790f23d49595fb8857 respectively.
      2. Configure Qt for a developer build.
        My command line:
        /tmp/qt-bisect/build-qt.tmp$ /tmp/qt-bisect/qt5/configure -developer-build -opensource -confirm-license -nomake examples -nomake tests
        
      3. Build Qt.
        cmake --build . --parallel
        
      4. Use this Qt build for building a project:
        qtrob@rob-desktop:/tmp/qt-bisect/build-test.tmp$ /tmp/qt-bisect/build-qt.tmp/qtbase/bin/qmake /tmp/qt-bisect/qt5/qtbase/examples/gui/analogclock/analogclock.pro
        

        qmake will complain about missing permissions:

        Info: creating stash file /.qmake.stash
        /tmp/qt-bisect/qt5/qtbase/mkspecs/features/toolchain.prf:73: Cannot write cache file /.qmake.stash: Permission denied
        Info: creating stash file /.qmake.stash
        /tmp/qt-bisect/qt5/qtbase/mkspecs/features/toolchain.prf:73: Cannot write cache file /.qmake.stash: Permission denied
        Info: creating stash file /.qmake.stash
        /tmp/qt-bisect/qt5/qtbase/mkspecs/features/toolchain.prf:73: Cannot write cache file /.qmake.stash: Permission denied
        Info: creating stash file /.qmake.stash
        /tmp/qt-bisect/qt5/qtbase/mkspecs/features/toolchain.prf:73: Cannot write cache file /.qmake.stash: Permission denied
        Info: creating stash file /.qmake.stash
        /tmp/qt-bisect/qt5/qtbase/mkspecs/features/toolchain.prf:76: Cannot write cache file /.qmake.stash: Permission denied
        Info: creating stash file /.qmake.stash
        /tmp/qt-bisect/qt5/qtbase/mkspecs/features/toolchain.prf:421: Cannot write cache file /.qmake.stash: Permission denied
        Info: creating stash file /.qmake.stash
        /tmp/qt-bisect/qt5/qtbase/mkspecs/features/toolchain.prf:423: Cannot write cache file /.qmake.stash: Permission denied
        

      Trying to write to / seems fundamentally wrong.

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

            qtbuildsystem Qt Build System Team
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes