[cfe-dev] Errors encountered during building libc++abi 3.3 svn on Scientific Linux 6.4

Charles Davis cdavis5x at gmail.com
Sun Apr 7 21:48:37 PDT 2013


On Apr 7, 2013, at 10:19 PM, Zack Perry wrote:
> + clang++ -c -g -O3 -fPIC -std=c++0x -stdlib=libc++ -fstrict-aliasing -Wstrict-aliasing=2 -Wsign-conversion -Wshadow -Wconversion -Wunused-variable -Wmissing-field-initializers -Wchar-subscripts -Wmismatched-tags -Wmissing-braces -Wshorten-64-to-32 -Wsign-compare -Wstrict-aliasing=2 -Wstrict-overflow=4 -Wunused-parameter -Wnewline-eof -I../include ../src/cxa_default_handlers.cpp
> In file included from ../src/cxa_default_handlers.cpp:18:
> ../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:35:13: error: unknown type name '_Unwind_Exception'
>            _Unwind_Exception* unwind_exception =
>            ^
> ../src/cxa_default_handlers.cpp:36:34: error: unknown type name '_Unwind_Exception'
>                reinterpret_cast<_Unwind_Exception*>(exception_header + 1) - 1;
>                                 ^
> 4 errors generated.
> 
> Anyone has a hint as to where I should be looking next?
For an "unwind.h" header, other than the one included with Clang. :)

There's a patch floating around for Clang--that I wrote ;)--that fleshes Clang's built-in header out, so that it actually includes such important declarations as "struct _Unwind_Exception". I've attached it here for your convenience. (I wanted to commit it, but nobody's given me the go-ahead yet.)

HTH.

Chip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Headers-unwind.h-Flesh-out.patch
Type: application/octet-stream
Size: 8554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130407/aeb37135/attachment.obj>


More information about the cfe-dev mailing list