[lldb-dev] Fix a build error on linux

Yao Qi qiyaoltc at gmail.com
Sat May 11 23:41:45 PDT 2013


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.



More information about the lldb-dev mailing list