Getting a "__cxa_throw_bad_array_new_length" error when attempting to compile

When I try to compile (using cmake -DCMAKE_BUILD_TYPE=release) I get the following error:

lib/ undefined reference to `__cxa_throw_bad_array_new_length’
collect2: error: ld returned 1 exit status

Any ideas on what is causing it, and how it can be fixed?

Hmm, what compiler and standard library are you using?

I've been building LLDB successfully with Clang 3.3, GCC 4.7 and I believe the buildbots also use GCC 4.7.

Sorry for the delay, this email almost slipped through,