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

Fletcher, John P j.p.fletcher at aston.ac.uk
Tue Dec 31 06:01:54 PST 2013


If I take out the libc++ from my LDPATH

I get this when I run ./config.  It is compiling conftest.c

/home/fletcher/LLVM/libcxxDec2013/libcxx/lib/libc++.so: undefined reference to `__cxa_rethrow_primary_exception'
/home/fletcher/LLVM/libcxxDec2013/libcxx/lib/libc++.so: undefined reference to `__cxa_current_primary_exception'
/home/fletcher/LLVM/libcxxDec2013/libcxx/lib/libc++.so: undefined reference to `__cxa_increment_exception_refcount'
/home/fletcher/LLVM/libcxxDec2013/libcxx/lib/libc++.so: undefined reference to `__cxa_decrement_exception_refcount'

I am wondering if I should rebuild libc++ with a consistent use of libc++abi rather than libcxxrt.

One of the problems for a someone who is mainly a user is working out exactly how to get these things built.

Thank you for your help.

John

________________________________________
From: "C. Bergström" [cbergstrom at pathscale.com]
Sent: 31 December 2013 13:03
To: Fletcher, John P
Cc: clang-dev Developers
Subject: Re: [cfe-dev] Serious problem building LLDB to go with Clang 3.5 on Ubuntu 12.04

On 12/31/13 07:57 PM, Fletcher, John P wrote:
> Thank you for the quick reply.
>
> My libc++ was built with libcxxrt and I did supply the unwind headers.  When I tried to use it  to build LLDB I had undefined references to libc++abi.
I think you were using the unwind from libc++abi.. and not this -
https://github.com/pathscale/libunwind. Please let me know exactly what
undefined references you hit






More information about the cfe-dev mailing list