[lldb-dev] Build issues on OSX Snow Leopard

Peter Ohmann ohmann at cs.wisc.edu
Tue Feb 14 14:39:55 PST 2012


Hello,

I'm having some out-of-the-box trouble building on OSX 10.6 with XCode 3.2.6 
x64.  Originally, the following error appears when compiling nearly every file 
in lldb-core:

---
Cannot use typeid with -fno-rtti
---

This is, of course, true, and is easily fixed by removing the -fno-rtti flag 
from the build settings.  However, even with this fixed, a number of seemingly 
unrelated compilation errors remain.  A smattering of a few examples follows:

--- In Host.mm ---
lldb/source/Host/macosx/Host.mm:1459: error: 'int lldb_private::Host::status' is 
not a static member of 'class lldb_private::Host'

Host.mm:1460: error: 'int lldb_private::Host::wait_pid' is not a static member 
of 'class lldb_private::Host'
---

--- In CommandObjectType.cpp ---
lldb/include/lldb/Core/FormatNavigator.h:250: error: call of overloaded 
'Add_Impl(const lldb_private::ConstString&, const 
std::tr1::shared_ptr<lldb_private::SummaryFormat>&, 
lldb_private::FormatNavigator<lldb_private::ConstString, 
lldb_private::SummaryFormat>::Types<lldb_private::ConstString, 
lldb_private::SummaryFormat>)' is ambiguous
---


Not having much experience with Xcode or, obviously, the particular LLDB 
project, I don't really know where to look for the incorrect build options 
causing these issues.

I should mention that I have been told the project seems to build fine on OSX 
lion (but, of course, that would mean using a newer version of Xcode as well).

I continue my search, but any help is greatly appreciated.

Thank you,
Peter




More information about the lldb-dev mailing list