[cfe-dev] Error trying to build libc++abi, unknown type: _Unwind_Exception
Richard Smith
richard at metafoo.co.uk
Wed Apr 18 13:22:40 PDT 2012
__int128 is a GNU keyword which clang 3.1 supports. This usage of it as an
identifier will need to be renamed.
On Wed, Apr 18, 2012 at 12:29 PM, Dan Eloff <dan.eloff at gmail.com> wrote:
> This is fixed by adding -I /usr/lib/gcc/x86_64-linux-gnu/4.6/include
> on my (ubuntu 12.04) machine.
>
> There's another error related to __mode__(__unwind_word__) that I
> fixed by applying the patch here:
> http://llvm.org/bugs/show_bug.cgi?id=8703
>
> Now it gets stuck on:
>
> ../src/cxa_demangle.cpp:5244:1: error: declaration of anonymous class must
> be a
> definition
> class __int128
> ^
> ../src/cxa_demangle.cpp:5244:1: warning: declaration does not declare
> anything
> [-Wmissing-declarations]
> class __int128
> ^~~~~
> 1 warning and 1 error generated.
>
> On Tue, Apr 17, 2012 at 3:36 PM, Dan Eloff <dan.eloff at gmail.com> wrote:
> > 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.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120418/cb0b1b6a/attachment.html>
More information about the cfe-dev
mailing list