<div dir="ltr"><div>On Sun, Jul 14, 2013 at 12:35 AM, Silmarieni <span dir="ltr"><<a href="mailto:silmarieni@yahoo.com" target="_blank">silmarieni@yahoo.com</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:'times new roman','new york',times,serif">

<div>Hello,</div><div><br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span>I can't compile lldb on opensuse linux 12 64bit.</span></div>

<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">

<span>I get  many warnings and the error:</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><br><span></span></div>

<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span>llvm[5]: Compiling Host.cpp for Release build<br>/home/cedric/llvmroot/src/llvm/tools/lldb/source/Host/linux/Host.cpp:344:30: error: <br>

      no matching function for call to 'GetModuleSpecifications'<br>    const size_t num_specs = ObjectFile::GetModuleSpecifications (filesp...<br>                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>

/home/cedric/llvmroot/src/llvm/tools/lldb/source/Host/linux/../../../include/lldb/Symbol/ObjectFile.h:183:5: note: <br>      candidate function not viable: requires 4 arguments, but 3 were provided<br>    GetModuleSpecifications (const
 FileSpec &file,<br>    ^<br>/home/cedric/llvmroot/src/llvm/tools/lldb/source/Host/linux/../../../include/lldb/Symbol/ObjectFile.h:189:5: note: <br>      candidate function not viable: requires 6 arguments, but 3 were provided<br>

    GetModuleSpecifications (const lldb_private::FileSpec& file,<br>    ^<br>1 error generated.<br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">

<br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span>(Almost full log available.)</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">

<br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span>The configure I used: </span><br><code>configure --enable-cxx11--enable_optimized --disable_assertions<br>

</code></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><br><span></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">

<span><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span>I could compile the latest clang++, libc++ etc. Only lldb won't compile.<br>

<br>Any ideas?<br></span></div></div></div></blockquote><div><br></div><div>I don't think you're doing anything wrong - it looks like an extra parameter was added to the call and this case was missed.</div><div><br>

</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Index: include/lldb/Symbol/ObjectFile.h<br>===================================================================<br>

--- include/lldb/Symbol/ObjectFile.h    (revision 186210)<br>+++ include/lldb/Symbol/ObjectFile.h    (revision 186211)<br>@@ -182,6 +182,7 @@<br>     static size_t<br>     GetModuleSpecifications (const FileSpec &file,<br>

                              lldb::offset_t file_offset,<br>+                             lldb::offset_t file_size,<br>                              ModuleSpecList &specs);</blockquote><div><br></div><div>Can you try passing in the file size ( filespec.GetByteSize() ) as the 3rd parameter in linux/Host.cpp and see if that this fixes it?<br>

</div></div></div></div>