[lldb-dev] include stdarg.h via va_arg

Dragos Tatulea dragos.tatulea at gmail.com
Mon Jan 9 08:27:16 PST 2012


On Mon, Jan 9, 2012 at 5:59 PM, Mark Peek <mark at peek.org> wrote:
> On 1/9/12 6:57 AM, Dragos Tatulea wrote:
>>
>> On Mon, Jan 9, 2012 at 4:55 PM, Dragos Tatulea<dragos.tatulea at gmail.com>
>>  wrote:
>>>
>>> Self explanatory I guess... Fixes the Linux build for me.
>>>
>> Forgot to put in the compile error msg:
>> /w/llvm/tools/lldb/source/Host/common/Host.cpp:235:1: error: prototype
>> for ‘void lldb_private::Host::SystemLog(lldb_private::Host::SystemLogType,
>> const char*, __va_list_tag*)’ does not match any in class
>> ‘lldb_private::Host’
>>
>> /w/llvm/tools/lldb/source/Host/common/../../../include/lldb/Host/Host.h:130:5:
>> error: candidates are: static void
>> lldb_private::Host::SystemLog(lldb_private::Host::SystemLogType, const
>> char*, int)
>>
>> /w/llvm/tools/lldb/source/Host/common/../../../include/lldb/Host/Host.h:127:5:
>> error:                 static void
>> lldb_private::Host::SystemLog(lldb_private::Host::SystemLogType, const
>> char*, ...)
>
>
> Odd...I'm not seeing this error with a clean Linux build on my system. I'm
> using clang 2.9 to compile everything. What compiler/version are you using?
>
I'm on Ubuntu 11.10 and 10.11 :) with gcc 4.4 & 4.6. Clang is up to
the latest (lldb) rev. One thing though is that both were incremental
builds. That could be an issue.

Thanks,
Dragos




More information about the lldb-dev mailing list