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

Runtime type information required to perform dynamic_cast is not available on aix platform unless code is compiled with -qrtti option

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 4.7.2
    • Fix Version/s: 5.1.0 Beta 1
    • Component/s: Build System
    • Labels:
      None
    • Environment:
      IBM AIX 5.3 and 6.1

      Description

      Assert failed thrown if running an application in debug mode on AIX computer.

      This can be fixed by compiling Qt with the flag "qrtti".

      The reason for this is:
      Runtime type information required to perform dynamic_cast is not available on aix platform unless code is compiled with -qrtti option
      Ref:
      http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8a.doc%2Fcompiler%2Fref%2Fruoptrtt.htm

      Just add following lines to aix mkspecs qmake.conf:
      QMAKE_CXXFLAGS_RTTI_ON = -qrtti
      QMAKE_CXXFLAGS_RTTI_OFF = -qnortti

        Attachments

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

          Activity

            People

            Assignee:
            andysh Andy Shaw
            Reporter:
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes