<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt"><div><span class="yui_3_7_2_49_1375583653660_70" style="font-size: 12pt;">After reading the page: </span><a href="http://lldb.llvm.org/build.html" style="font-size: 12pt;">http://lldb.llvm.org/build.html</a>, <span class="yui_3_7_2_49_1375583653660_70" style="font-size: 12pt;">I have been trying to build </span><span class="yui_3_7_2_49_1375583653660_71" style="font-size: 12pt;">lldb</span><span class="yui_3_7_2_49_1375583653660_72" style="font-size: 12pt;"> with the following two approaches:</span></div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 12pt;"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div class="y_msg_container"><div id="yiv1872809877"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);
font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">(I) using llvm/clang 3.3 together with libc++/libc++abi so the build is free of libstdc++:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">This is what I used to configure the build:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style:
normal;"><br></div><div style="background-color:transparent;"><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">../llvm/configure --prefix=/usr --enable-optimized --disable-assertions --enable-targets=host-only --enable-cxx11=yes --enable-libcpp=yes --with-extra-ld-options="-lc++abi"</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">The resulting Release/bin/lldb crashes even for
simple things like help x-(</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">(II) using the bundled GCC 4.4.7</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">This is what I used to configure the build:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"><font>CC=gcc CXX=g++ CXXFLAGS=-std=c++0x ../llvm/configure --prefix=/usr --enable-optimized --disable-assertions --enable-targets=host-only </font><br></span></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font><div><div><span style="font-family:
'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">$ make DEBUG_SYMBOLS=0 -j 4</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">make[1]: Entering directory `/home/zackp/clang3.3/build/lib/Support'</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">llvm[1]: Compiling APFloat.cpp for Release+Debug build</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">llvm[1]: Compiling APInt.cpp for Release+Debug build</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">llvm[1]: Compiling APSInt.cpp for Release+Debug build</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64,
64);">llvm[1]: Compiling BlockFrequency.cpp for Release+Debug build</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">llvm[1]: Compiling BranchProbability.cpp for Release+Debug build</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/memory:83,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from /home/zackp/clang3.3/llvm/include/llvm/ADT/SmallVector.h:27,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from
/home/zackp/clang3.3/llvm/include/llvm/ADT/ArrayRef.h:14,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from /home/zackp/clang3.3/llvm/include/llvm/ADT/APInt.h:18,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from /home/zackp/clang3.3/llvm/include/llvm/ADT/APSInt.h:18,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from /home/zackp/clang3.3/llvm/lib/Support/APSInt.cpp:15:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64,
64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64,
64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:204: error: cannot use typeid with -fno-rtti</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In constructor ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, _Alloc, _Args&& ...)’:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:861: error: cannot use typeid with -fno-rtti</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">In file included from
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/memory:83,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from /home/zackp/clang3.3/llvm/include/llvm/ADT/SmallVector.h:27,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from /home/zackp/clang3.3/llvm/include/llvm/ADT/ArrayRef.h:14,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from /home/zackp/clang3.3/llvm/include/llvm/ADT/APInt.h:18,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">
from /home/zackp/clang3.3/llvm/lib/Support/APInt.cpp:16:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In function ‘_Del*
std::get_deleter(const std::__shared_ptr<_Tp2, _Lp>&)’:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:1005: error: cannot use typeid with -fno-rtti</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:204: error: cannot use typeid with -fno-rtti</span></div><div><span
style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In constructor ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, _Alloc, _Args&& ...)’:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:861: error: cannot use typeid with -fno-rtti</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In function ‘_Del* std::get_deleter(const std::__shared_ptr<_Tp2, _Lp>&)’:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace,
sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:1005: error: cannot use typeid with -fno-rtti</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/memory:83,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from /home/zackp/clang3.3/llvm/include/llvm/ADT/SmallVector.h:27,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from /home/zackp/clang3.3/llvm/include/llvm/ADT/ArrayRef.h:14,</span></div><div><span style="font-family: 'Courier New', courier,
monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from /home/zackp/clang3.3/llvm/include/llvm/ADT/APInt.h:18,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from /home/zackp/clang3.3/llvm/include/llvm/ADT/APFloat.h:104,</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);"> from /home/zackp/clang3.3/llvm/lib/Support/APFloat.cpp:15:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_deleter<_Ptr, _Deleter,
_Alloc, _Lp>::_M_get_deleter(const std::type_info&)’:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:204: error: cannot use typeid with -fno-rtti</span></div><div><span style="font-family:
'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In constructor ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, _Alloc, _Args&& ...)’:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:861: error: cannot use typeid with -fno-rtti</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In function ‘_Del* std::get_deleter(const std::__shared_ptr<_Tp2, _Lp>&)’:</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255,
64, 64);">/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:1005: error: cannot use typeid with -fno-rtti</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">make[1]: *** [/home/zackp/clang3.3/build/lib/Support/Release+Debug/APSInt.o] Error 1</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">make[1]: *** Waiting for unfinished jobs....</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">make[1]: *** [/home/zackp/clang3.3/build/lib/Support/Release+Debug/APInt.o] Error 1</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">make[1]: *** [/home/zackp/clang3.3/build/lib/Support/Release+Debug/APFloat.o] Error 1</span></div><div><span
style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">make[1]: Leaving directory `/home/zackp/clang3.3/build/lib/Support'</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; color: rgb(255, 64, 64);">make: *** [all] Error 1</span></div></div><div style="font-family: 'times new roman', 'new york', times, serif;"><br></div><div><span style="font-family: 'times new roman', 'new york', times, serif;">As a result, the current llvm/clang based C++11 environment on this test machine doesn't have the </span><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">lldb</span><span style="font-family: 'times new roman', 'new york', times, serif;"> debugger ;-( Although so far I have been able to build even the full Boost libraries 1_54_0 on this host and use the result to link with other <span style="font-style: italic;">running</span>
applications, not having a matching debugger just doesn't instill a good feeling.</span></div><div style="font-family: 'times new roman', 'new york', times, serif;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif;">Any tips are appreciated!</div><div style="font-family: 'times new roman', 'new york', times, serif;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif;">-- Zack</div></font></div></div></div><br></div> </div> </div> </div></body></html>