[cfe-dev] Error trying to build libc++abi, unknown type: _Unwind_Exception

Dan Eloff dan.eloff at gmail.com
Tue Apr 17 13:36:05 PDT 2012


On linux x64, I cannot build libc++abi, I get the following errors:

../src/cxa_exception.hpp:66:9: error: unknown type name '_Unwind_Exception'
        _Unwind_Exception unwindHeader;
        ^
../src/cxa_exception.hpp:100:9: error: unknown type name '_Unwind_Exception'
        _Unwind_Exception unwindHeader;
        ^
../src/cxa_default_handlers.cpp:33:13: error: use of undeclared identifier
      '_Unwind_Exception'
            _Unwind_Exception* unwind_exception =
            ^
../src/cxa_default_handlers.cpp:33:32: error: use of undeclared identifier
      'unwind_exception'
            _Unwind_Exception* unwind_exception =
                               ^
../src/cxa_default_handlers.cpp:34:34: error: unknown type name
      '_Unwind_Exception'
                reinterpret_cast<_Unwind_Exception*>(exception_header + 1) - 1;
                                 ^
../src/cxa_default_handlers.cpp:36:18: error: use of undeclared identifier
      'unwind_exception'; did you mean 'native_exception'?
                (unwind_exception->exception_class   & ...
                 ^~~~~~~~~~~~~~~~
                 native_exception
../src/cxa_default_handlers.cpp:35:18: note: 'native_exception' declared here
            bool native_exception =
                 ^
../src/cxa_default_handlers.cpp:36:36: error: member reference type 'bool' is
      not a pointer
                (unwind_exception->exception_class   & ...
                 ~~~~~~~~~~~~~~~~  ^
../src/cxa_default_handlers.cpp:41:21: error: use of undeclared identifier
      'unwind_exception'; did you mean 'native_exception'?
                    unwind_exception->exception_class == ...
                    ^~~~~~~~~~~~~~~~
                    native_exception
../src/cxa_default_handlers.cpp:35:18: note: 'native_exception' declared here
            bool native_exception =
                 ^
../src/cxa_default_handlers.cpp:41:39: error: member reference type 'bool' is
      not a pointer
                    unwind_exception->exception_class == ...
                    ~~~~~~~~~~~~~~~~  ^
9 errors generated.



More information about the cfe-dev mailing list