[cfe-dev] Errors encountered during building libc++abi 3.3 svn on Scientific Linux 6.4
Zack Perry
zack.perry at sbcglobal.net
Sun Apr 7 21:19:14 PDT 2013
I am trying to build libc++abi (both shared and static) on SL 6.4 (a
RHEL 6.4 clone) so that we can use C++11 in our code on such OSes
without worrying about the oldish libstdc++ (4.4.x) bundled with
RHEL 6.x.
The bare http://libcxxabi.llvm.org/ doesn't tell you how to build it.
But a quick look around the source tree, in the lib subdir there is
buildit shell script. Following the comments in the script, I did:
[zackp at sl1 lib]$ export TRIPLE='x86_64-pc-linux'
[zackp at sl1 lib]$ ./buildit
+ for FILE in '../src/*.cpp'
+ 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/abort_message.cpp
+ for FILE in '../src/*.cpp'
+ 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_aux_runtime.cpp
+ for FILE in '../src/*.cpp'
+ 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?
Regards,
Zack
More information about the cfe-dev
mailing list