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

asm sources can't be compiled when Qt configured with -pch (default)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.1
    • 5.0.1
    • Build tools: qmake
    • None
    • linux ubuntu 12.04, ARM (targetting panda board)
    • 77196b9dc3caa7dda1072a64ed953bf7231b1af3

    Description

      Qt 5 doesn't compile for ARM targets with the default configuration, because the make rule for .S files is the same as for .c files.
      This is normally not a problem, but the precompiled header is not valid for .S files.

      When using gcc, the compilation command looks like this:
      gcc -c -include .pch/release-shared/Qt5Gui .... qdrawhelper_neon_asm.S

      And that results in a compile error as .pch/release-shared/Qt5Gui does not exist.
      The file .pch/release-shared/Qt5Gui.gch does exist but is only valid for c/c++ source files.

      Possibly qmake requires a different section rather than SOURCES to put assembly files.
      Or it can split them out with different CFLAGS used as it does for .c vs .cpp files.

      Workaround:
      configure -no-pch

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            shkearns Shane Kearns
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes