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

Build claims to be done when it isn't, unnecessary rebuilds of Core after touching bootstrap source files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • 6.4.0 Beta1
    • 6.2
    • Build System: CMake
    • Ubuntu 20.04 LTS
      clang 10.0.0 from Ubuntu's repositories
      cmake 3.19.2 from Qt Online Installer
    • 743bb66744 (qt/qtbase/dev) 743bb66744 (qt/tqtc-qtbase/dev) fbdd076ae9 (qt/qtbase/dev) fbdd076ae9 (qt/tqtc-qtbase/dev)

    Description

      1. Clone qtbase, configure and build it:
        git clone --depth 1 git://code.qt.io/qt/qtbase.git
        
        cd qtbase
        
        ./configure -platform linux-clang -opensource -confirm-license -nomake examples -nomake tests -prefix $PWD
        
        cmake --build . --parallel && echo success
        

        This will finish and write:

        success
        
      2. Be paranoid. Make sure the build really finished:
        cmake --build . --parallel && echo success
        

        You will see:

        ninja: no work to do.
        success
        

        Nice.

      3. Update the timestamp of a file:
        touch src/corelib/io/qurl.h
        
      4. Rebuild:
        cmake --build . --parallel && echo success
        

        This will build most files again. Sooner or later it will finish and write:

        success
        
      5. Be paranoid. Make sure the build really finished:
        cmake --build . --parallel && echo success
        

        It will start building files again. 53 steps for me.
        Huh?

      Either the build didn't finish properly in step 4 or it's doing pointless rebuilds in step 5. Either step 4 should report a build failure or step 5 shouldn't trigger any rebuilds.

      Attachments

        1. explain1.txt
          1.09 MB
        2. explain2.txt
          153 kB

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes