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

Qt 5.2 aplha doesn't compile with Clang 3.3 under Linux

    XMLWordPrintable

Details

    Description

      When compiling the current stable branch with Clang 3.3 under Linux I get the following compile error:

      compiling .../qtdeclarative/src/qml/qml/qqmlengine.cpp
      .../qtdeclarative/src/qml/jsruntime/qv4engine_cxxabi.cpp:73:5: error: unknown type name '_Unwind_Exception'
          _Unwind_Exception unwindHeader;
          ^
      .../qtdeclarative/src/qml/jsruntime/qv4engine_cxxabi.cpp:89:52: error: unknown type name '_Unwind_Exception'
      static void exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception *ex)
                                                         ^
      .../qtdeclarative/src/qml/jsruntime/qv4engine_cxxabi.cpp:100:5: error: unknown type name '_Unwind_Exception'
          _Unwind_Exception *exception = (_Unwind_Exception*)malloc(sizeof(_Unwind_Exception));
          ^
      .../qtdeclarative/src/qml/jsruntime/qv4engine_cxxabi.cpp:100:37: error: use of undeclared identifier '_Unwind_Exception'
          _Unwind_Exception *exception = (_Unwind_Exception*)malloc(sizeof(_Unwind_Exception));
                                          ^
      .../qtdeclarative/src/qml/jsruntime/qv4engine_cxxabi.cpp:100:55: error: expected expression
          _Unwind_Exception *exception = (_Unwind_Exception*)malloc(sizeof(_Unwind_Exception));
                                                            ^
      

      Clang 3.4 works fine.

      Changing the include from <unwind.h>, which includes /usr/lib/clang/3.3/include/unwind.h to #include </usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/include/unwind.h> also works.

      Seems to be a bug in the Clang header.

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            mkrems Marcel Krems
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes