<div dir="ltr"><br><div>Is there a goal of keeping lldb compatible with building with gcc? I've been building successfully with gcc 4.8.2, but compiling at r212507 just broke with that gcc on a source line that was recently (today) changed. Full log below; key excerpts here:</div>
<div><br></div><div><br></div><div>
/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/source/Interpreter/Args.cpp:693:115: error: no matching function for call to ‘lldb_private::OptionValidator::IsValid(lldb_private::Platform&, lldb_private::ExecutionContext)’ <br>
if (validator && !validator->IsValid(*interpreter.GetPlatform(true), interpreter.GetExecutionContext())) <br><br>/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/include/lldb/lldb-private-types.h:61:22: note: no known conversion for argument 2 from ‘lldb_private::ExecutionContext’ to ‘lldb_private::ExecutionContext&’<br>
<br><br>I'm happy to upgrade to compiling with clang if that's needed; I'm just wanting to confirm policy and call out that the web page instructions may need to be changed.<p class="">(If this is pilot error on my part, sincere apologies for the spam. But at the moment I don't see how it could be pilot error.)<br>
</p><p class="">-- Randy</p></div><div><br></div><div><br></div><div><br></div><div>
<p class=""><span class="">FAILED</span>: /usr/local/google/home/rdsmith/toolchains/bin/g++ -DGTEST_HAS_RTTI=0 -DHAVE_ROUND -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wno-missing-field-initializers -pedantic -Wno-lo<span class="">\</span></p>
<p class="">ng-long -Wno-maybe-uninitialized -Wnon-virtual-dtor -Wno-comment -std=c++11 -ffunction-sections -fdata-sections -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-deprecated-register -fno-exceptions -fno-rtti -fPIC -g -Itools/lldb/source/Interpreter -I/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/s<span class="">\</span></p>
<p class="">ource/Interpreter -I/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/include -Itools/lldb/include -Iinclude -I/usr/local/google/home/rdsmith/Sandboxen/llvm/include -I/usr/include/python2.7 -I/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/../clang/include -Itools/lldb/../clang/include -I/usr/local<span class="">\</span></p>
<p class="">/google/home/rdsmith/Sandboxen/llvm/tools/lldb/source/. -I/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/source/Plugins/Process/Linux -I/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/source/Plugins/Process/POSIX -fno-exceptions -fno-rtti -MMD -MT tools/lldb/source/Interpreter/CMakeFiles/lldb<span class="">\</span></p>
<p class="">Interpreter.dir/Args.cpp.o -MF tools/lldb/source/Interpreter/CMakeFiles/lldbInterpreter.dir/Args.cpp.o.d -o <span class="">tools/lldb/source/Interpreter/CMakeFiles/lldbInterpreter.dir/Args.cpp.o</span> -c /usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/source/Interpreter/Args.cpp </p>
<p class=""><span class="">/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/source/Interpreter/Args.cpp</span>: In member function ‘lldb_private::Error lldb_private::Args::ParseOptions(lldb_private::Options&)’: </p>
<p class=""><span class=""><b>/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/source/Interpreter/Args.cpp</b></span><span class="">:</span><span class="">693</span><span class="">:</span><span class="">115</span><span class="">: </span>error: no matching function for call to ‘lldb_private::OptionValidator::IsValid(lldb_private::Platform&, lldb_private::ExecutionContext)’ </p>
<p class=""> if (validator && !validator->IsValid(*interpreter.GetPlatform(true), interpreter.GetExecutionContext())) </p>
<p class=""> ^ </p>
<p class=""><span class=""><b>/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/source/Interpreter/Args.cpp</b></span><span class="">:</span><span class="">693</span><span class="">:</span><span class="">115</span><span class="">: note</span>: candidate is: </p>
<p class=""><span class="">In file included from </span><span class=""><b>/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/include/lldb/Interpreter/Args.h:22</b></span><span class="">:</span><span class="">0</span><span class="">,</span> </p>
<p class=""><span class=""> from </span><span class=""><b>/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/source/Interpreter/Args.cpp</b></span><span class="">:</span><span class="">17</span><span class="">:</span> </p>
<p class=""><span class=""><b>/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/include/lldb/lldb-private-types.h</b></span><span class="">:</span><span class="">61</span><span class="">:</span><span class="">22</span><span class="">: note</span>: virtual bool lldb_private::OptionValidator::IsValid(lldb_private::Platform&, lldb_private::ExecutionContext&) const </p>
<p class=""> virtual bool IsValid(Platform &platform, ExecutionContext &target) const = 0; </p>
<p class=""> ^ </p>
<p class=""><span class=""><b>/usr/local/google/home/rdsmith/Sandboxen/llvm/tools/lldb/include/lldb/lldb-private-types.h</b></span><span class="">:</span><span class="">61</span><span class="">:</span><span class="">22</span><span class="">: note</span>: no known conversion for argument 2 from ‘lldb_private::ExecutionContext’ to ‘lldb_private::ExecutionContext&’ </p>
</div></div>