Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.0 Alpha
-
None
-
Arch Linux x86_64
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.