[lldb-dev] Fix a build error on linux

Greg Clayton gclayton at apple.com
Mon May 13 11:24:43 PDT 2013


% svn commit
Sending        source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
Sending        source/Plugins/Platform/MacOSX/PlatformDarwinKernel.h
Transmitting file data ..
Committed revision 181717.


This fix should get things building again. We are tracking to correct fix internally.

Greg Clayton

On May 11, 2013, at 11:41 PM, Yao Qi <qiyaoltc at gmail.com> wrote:

> On 05/12/2013 02:12 PM, Yao Qi wrote:
>> However, this patch
>> doesn't unbreak the lldb build on linux, because of another error.
>> I'll describe it in the next mail.
> 
> With the patch in the last mail applied, the build moves on but there is another build failure:
> 
> /home/yao/Source/llvm/llvm/tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp: In constructor ‘DynamicLoaderDarwinKernel::DynamicLoaderDarwinKernel(lldb_private::Process*, lldb::addr_t)’:
> /home/yao/Source/llvm/llvm/tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp:463:59: error: ‘PlatformDarwinKernel’ has not been declared
> /home/yao/Source/llvm/llvm/tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp: In member function ‘bool DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule(lldb_private::Process*)’:
> /home/yao/Source/llvm/llvm/tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp:815:53: error: ‘PlatformDarwinKernel’ has not been declared
> 
> class 'PlatformDarwinKernel' is wrapped by checking macro '__APPLE__' defined or not, but it is used unconditionally in DynamicLoaderDarwinKernel.cpp.  That is the reason why the build failed on linux, but my two-days lldb knowledge isn't enough to fix this problem.
> _______________________________________________
> 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