[lldb-dev] Building lldb with clang-3.1 and gcc-4.3.4 fails.

Patrik Hägglund H patrik.h.hagglund at ericsson.com
Tue Jun 12 07:07:19 PDT 2012


I downloaded lldb and tried to build it according to http://lldb.llvm.org/build.html (using 'svn update -r 152265' for llvm and clang), but failed. Both with clang-3.1 and gcc-4.3.4 on Linux SLED11.1. Is there any recommended compiler for lldb?

The problem with clang-3.1 is:

llvm[1]: Compiling IntervalMap.cpp for Release+Debug+Asserts build
In file included from /dev/shm/uabpath/master/lib/Support/IntervalMap.cpp:14:
/dev/shm/uabpath/master/include/llvm/ADT/IntervalMap.h:1980:32: error: use 'template' keyword to treat 'newNode' as a dependent template name
    Node[NewNode] = this->map->newNode<NodeT>();
                               ^
                               template
1 error generated.
make[1]: *** [/dev/shm/uabpath/master/build-clang/lib/Support/Release+Debug+Asserts/IntervalMap.o] Error 1
make[1]: Leaving directory `/dev/shm/uabpath/master/build-clang/lib/Support'
make: *** [all] Error 1

The problem with gcc-4.3.4 is (besides a lot of printf format warnings), many errors like:

/usr/include/c++/4.3/tr1/boost_sp_shared_count.h:81: error: cannot use typeid with -fno-rtti

For example:

llvm[3]: Compiling lldb-log.cpp for Debug+Asserts build
In file included from /usr/include/c++/4.3/tr1/memory:66,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/../include/lldb/lldb-forward.h:24,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/../include/lldb/lldb-types.h:14,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/../include/lldb/lldb-defines.h:13,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/../include/lldb/lldb-public.h:13,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/../include/lldb/lldb-private.h:15,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/../include/lldb/lldb-private-log.h:17,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/lldb-log.cpp:10:
/usr/include/c++/4.3/tr1/boost_sp_shared_count.h: In member function 'virtual void* std::tr1::_Sp_counted_base_impl<_Ptr, _Deleter, _Lp>::_M_get_deleter(const std::type_info&)':
/usr/include/c++/4.3/tr1/boost_sp_shared_count.h:81: error: cannot use typeid with -fno-rtti
In file included from /usr/include/c++/4.3/tr1/memory:67,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/../include/lldb/lldb-forward.h:24,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/../include/lldb/lldb-types.h:14,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/../include/lldb/lldb-defines.h:13,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/../include/lldb/lldb-public.h:13,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/../include/lldb/lldb-private.h:15,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/../include/lldb/lldb-private-log.h:17,
                 from /proj/flex_asic/git/llvm.svn/tools/lldb/source/lldb-log.cpp:10:
/usr/include/c++/4.3/tr1_impl/boost_shared_ptr.h: In function '_Del* std::tr1::get_deleter(const std::tr1::__shared_ptr<_Tp1, _Lp>&)':
/usr/include/c++/4.3/tr1_impl/boost_shared_ptr.h:630: error: cannot use typeid with -fno-rtti
make[3]: *** [/dev/shm/uabpath/build-lldb-gcc/tools/lldb/source/Debug+Asserts/lldb-log.o] Error 1

/Patrik Hägglund

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20120612/2424040c/attachment.html>


More information about the lldb-dev mailing list