[cfe-dev] Trying to build libcxx/libcxxabi on Linux 64 bit
Shriramana Sharma
samjnaa at gmail.com
Sun Jun 23 22:30:51 PDT 2013
Hello -- so I noticed that the below command seems to expect libc++ to
pre-exist on the system:
> + clang++ -c -g -O3 -fPIC -std=c++11 -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
> ../src/cxa_aux_runtime.cpp:14:10: fatal error: 'typeinfo' file not found
> #include <typeinfo>
> ^
> 1 error generated.
... whereas I am trying to compile libcxxabi *before* libcxx so that I
can build libcxx *based* on libcxxabi so this cyclic dependency is
going nowhere. So I compiled libcxx on libsupcxx without any problems
and installed it and then tried again to compile libcxxabi. Now I get:
clang++ -c -g -O3 -fPIC -std=c++11 -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;
^
Please help. Thank you.
--
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
More information about the cfe-dev
mailing list