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

qmake -fast does not mix with subdir.file and .makefile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.0.0
    • Build System
    • None
    • qtbase 10eb62b71b15189f3fc6f97a115743d3d0cf7b24
      Linux
    • 9be3851eb948a2e7a52273b222334e29d82fa437

    Description

      To reproduce:

      1. Make sure you have a clean source tree at qtbase 10eb62b71b15189f3fc6f97a115743d3d0cf7b24 (e.g. git reset --hard 10eb62b71b15189f3fc6f97a115743d3d0cf7b24 && git clean -dqffx)
      2. ./configure -nokia-developer -verbose 2>&1 | tee configure.log
      3. Observe that configure succeeds.
      4. less tests/auto/Makefile
      5. Observe that tests/auto/Makefile only contains subtargets for v8, SUBTARGETS = sub-v8, and contains a Command indicating that the makefile was generated from v8.pro, e.g. # Command: /home/rmcgover/build/qt/qt5/qtbase/bin/qmake -spec ../../mkspecs/linux-g++ -o Makefile v8.pro
        • expected behavior: tests/auto/Makefile was generated from tests/auto/auto.pro and contains one subtarget for each thing mentioned in tests/auto/auto.pro's SUBDIRS
      6. Only if unconvinced: do the build (make), and observe that no errors occurred, but no autotests other than tests/auto/v8 were built.

      Some analysis of the bug:

      I've attached my configure log, notice it says

        for /home/rmcgover/build/qt/qt5/qtbase/tests/auto/v8.pro (linux-g++)
      /home/rmcgover/build/qt/qt5/qtbase/bin/qmake -spec /home/rmcgover/build/qt/qt5/qtbase/mkspecs/linux-g++ -o /home/rmcgover/build/qt/qt5/qtbase/./tests/auto /home/rmcgover/build/qt/qt5/qtbase/tests/auto/v8.pro
       (...)
        skipping /home/rmcgover/build/qt/qt5/qtbase/tests/auto/auto.pro
      

      It skipped running qmake over auto.pro because tests/auto/Makefile already existed from v8.pro . Other incidences of "skipping" in the log are also suspicious.

      Attachments

        1. configure-fast.log
          347 kB
          Rohan McGovern
        For Gerrit Dashboard: QTBUG-21168
        # Subject Branch Project Status CR V

        Activity

          People

            qtbuildsystem Qt Build System Team
            rmcgover Rohan McGovern (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes