__int128 is a GNU keyword which clang 3.1 supports. This usage of it as an identifier will need to be renamed.<br><br><div class="gmail_quote">On Wed, Apr 18, 2012 at 12:29 PM, Dan Eloff <span dir="ltr"><<a href="mailto:dan.eloff@gmail.com">dan.eloff@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is fixed by adding -I /usr/lib/gcc/x86_64-linux-gnu/4.6/include<br>
on my (ubuntu 12.04) machine.<br>
<br>
There's another error related to __mode__(__unwind_word__)  that I<br>
fixed by applying the patch here:<br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=8703" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=8703</a><br>
<br>
Now it gets stuck on:<br>
<br>
../src/cxa_demangle.cpp:5244:1: error: declaration of anonymous class must be a<br>
      definition<br>
class __int128<br>
^<br>
../src/cxa_demangle.cpp:5244:1: warning: declaration does not declare anything<br>
      [-Wmissing-declarations]<br>
class __int128<br>
^~~~~<br>
1 warning and 1 error generated.<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Apr 17, 2012 at 3:36 PM, Dan Eloff <<a href="mailto:dan.eloff@gmail.com">dan.eloff@gmail.com</a>> wrote:<br>
> On linux x64, I cannot build libc++abi, I get the following errors:<br>
><br>
> ../src/cxa_exception.hpp:66:9: error: unknown type name '_Unwind_Exception'<br>
>        _Unwind_Exception unwindHeader;<br>
>        ^<br>
> ../src/cxa_exception.hpp:100:9: error: unknown type name '_Unwind_Exception'<br>
>        _Unwind_Exception unwindHeader;<br>
>        ^<br>
> ../src/cxa_default_handlers.cpp:33:13: error: use of undeclared identifier<br>
>      '_Unwind_Exception'<br>
>            _Unwind_Exception* unwind_exception =<br>
>            ^<br>
> ../src/cxa_default_handlers.cpp:33:32: error: use of undeclared identifier<br>
>      'unwind_exception'<br>
>            _Unwind_Exception* unwind_exception =<br>
>                               ^<br>
> ../src/cxa_default_handlers.cpp:34:34: error: unknown type name<br>
>      '_Unwind_Exception'<br>
>                reinterpret_cast<_Unwind_Exception*>(exception_header + 1) - 1;<br>
>                                 ^<br>
> ../src/cxa_default_handlers.cpp:36:18: error: use of undeclared identifier<br>
>      'unwind_exception'; did you mean 'native_exception'?<br>
>                (unwind_exception->exception_class   & ...<br>
>                 ^~~~~~~~~~~~~~~~<br>
>                 native_exception<br>
> ../src/cxa_default_handlers.cpp:35:18: note: 'native_exception' declared here<br>
>            bool native_exception =<br>
>                 ^<br>
> ../src/cxa_default_handlers.cpp:36:36: error: member reference type 'bool' is<br>
>      not a pointer<br>
>                (unwind_exception->exception_class   & ...<br>
>                 ~~~~~~~~~~~~~~~~  ^<br>
> ../src/cxa_default_handlers.cpp:41:21: error: use of undeclared identifier<br>
>      'unwind_exception'; did you mean 'native_exception'?<br>
>                    unwind_exception->exception_class == ...<br>
>                    ^~~~~~~~~~~~~~~~<br>
>                    native_exception<br>
> ../src/cxa_default_handlers.cpp:35:18: note: 'native_exception' declared here<br>
>            bool native_exception =<br>
>                 ^<br>
> ../src/cxa_default_handlers.cpp:41:39: error: member reference type 'bool' is<br>
>      not a pointer<br>
>                    unwind_exception->exception_class == ...<br>
>                    ~~~~~~~~~~~~~~~~  ^<br>
> 9 errors generated.<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br>