[lldb-dev] lldb Build Error

dawn at burble.org dawn at burble.org
Thu Apr 19 23:58:15 PDT 2012


I see this a lot.  I've worked around it by adding an include of
lldb/Symbol/ClangNamespaceDecl.h in each file that gets this error.  
For some reason Clang accepts this, but Gcc and MS VC both complain.  

-Dawn
On Thu, Apr 12, 2012 at 05:06:52PM +0530, Mool Chand Tyagi wrote:
> Hello,
> 
> With latest LLDB build, i am getting the below error regarding
> incomplete type in Clang:
> 
> ---
> In file included from
> /home/mtyagi/lldb/llvm_latest/llvm/include/llvm/ADT/StringRef.h:15:
> In file included from
> /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../../../include/c++/4.5/utility:70:
> /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../../../include/c++/4.5/bits/stl_pair.h:77:11:
> error: field has incomplete type
>       'lldb_private::ClangNamespaceDecl'
>       _T2 second;                ///< @c second is a copy of the second object
>           ^
> /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../../../include/c++/4.5/bits/stl_tree.h:383:26:
> note: in instantiation of template class
>       'std::pair<std::tr1::shared_ptr<lldb_private::Module>,
> lldb_private::ClangNamespaceDecl>' requested here
>         get_allocator().destroy(&__p->_M_value_field);
> -- 
> 
> However, the build i tried two weeks back was building successfully.
> 
> thanks,
> Tyagi
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev



More information about the lldb-dev mailing list