[cfe-dev] Serious problem building LLDB to go with Clang 3.5 on Ubuntu 12.04

"C. Bergström" cbergstrom at pathscale.com
Tue Dec 31 04:43:37 PST 2013


On 12/31/13 07:35 PM, Fletcher, John P wrote:
> I should have added the commands I am running to build LLDB, which is in the LLVM tree in tools.
>
> export CXX=/home/fletcher/LLVM/llvm-3.5.svn/local/bin/clang++
> export CC=/home/fletcher/LLVM/llvm-3.5.svn/local/bin/clang
> export CPPFLAGS="-I/home/fletcher/LLVM/libcxxDec2013/libcxx/include -I/home/fletcher/LLVM/libcxxDec2013/libcxxabi/include -stdlib=libc++"
> export LDFLAGS="-Xlinker -R/home/fletcher/LLVM/libcxxDec2013/libcxx/lib -L/home/fletcher/LLVM/libcxxDec2013/libcxx/lib -lc++ -lc++abi"
> ../llvm/configure --prefix=/home/fletcher/LLVM/llvm-3.5.svn/local --enable-cxx11=yes --enable-optimized --enable-libcpp=yes --enable-targets=x86_64
If you're using libcxxrt you'd also need an unwind fwiw. I also don't 
quite understand why adding -lc++abi.. (That doesn't make 100% sense I 
think.) Skipping other issues I don't think g++-4.6 is supported 
anymore. Why not install 4.8.2 or whatever? I thought there was some big 
discussion on the list about gcc minimums and it was determined that was 
generally available enough.



More information about the cfe-dev mailing list