<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 20, 2016 at 11:05 AM, Carsten Mattner <span dir="ltr"><<a href="mailto:carstenmattner@gmail.com" target="_blank">carstenmattner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Tue, Dec 20, 2016 at 5:05 PM, Teresa Johnson <<a href="mailto:tejohnson@google.com">tejohnson@google.com</a>> wrote:<br>
> Hi Carsten,<br>
><br>
> A few responses below, but first, can you get the link command for<br>
> lldb.so.3.9.1? Last time it was the lldb.so build that was using<br>
> ld.bfd with the gold plugin which was exposing this issue.<br>
<br>
</span>Where would I find it in an otherwise already terminated process?<br></blockquote><div><br></div><div>I think you can get this via "ninja -t commands bin/lldb-argdumper" (this will give you a lot of output, all of the compilation commands used to build that target). Or redo the build with -v to be sure.</div><div><br></div><div>Teresa</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
> On Tue, Dec 20, 2016 at 5:49 AM, Carsten Mattner <<a href="mailto:carstenmattner@gmail.com">carstenmattner@gmail.com</a>><br>
<br>
</span><span class="gmail-">> No problem - I assumed no news was good news! Thanks for the<br>
> explicit feedback though!<br>
<br>
</span>Sure, but it's important, and I've had my experience with never<br>
hearing back even after asking for confirmation of success. Same as<br>
drive-by patch drops.<br>
<span class="gmail-"><br>
> > - Should I avoid any and all CFLAGS, CXXFLAGS, CPPFLAGS, LDFLAGS<br>
> > in favor of passing these exclusively as cmake's<br>
> > -Dsomething_something=<FLAGS>? Linux distros usually have an<br>
> > environment with CFLAGS etc. and use that building packages and<br>
> > this didn't interfere in the past in my builds, but I'm open to<br>
> > avoid this by unsetting any such variables first.<br>
><br>
><br>
> The problem I've had in the past setting *FLAGS on the cmake command<br>
> line is that sometimes the configure fails because it uses those<br>
> flags in various configuration checking compiles. So typically I<br>
> hand edit the resulting CMakeCache.txt if I want to pass specific<br>
> options to the build. Note that there are various flavors of e.g.<br>
> LINKER_FLAGS that get passed to different types of links though<br>
> (SHARED vs EXE etc). I haven't tried setting CFLAGS etc env<br>
> variables before kicking off the ninja build to pass args.<br>
<br>
</span>I set the variables before running cmake and I didn't expect for it to<br>
be re-considered when running ninja, but it would of course more<br>
closely mirror make's behavior if it does/dit.<br>
<span class="gmail-"><br>
> > - Is there a configuration in the CI matrix that builds all<br>
> > of LLVM with ThinLTO so that I can be reasonably sure<br>
> > any error is most likely local to my environment or<br>
> > because of operator (silly me) faults?<br>
><br>
><br>
> There is an lld based ThinLTO buildbot. I've been really remiss in<br>
> not setting up a gold based ThinLTO bot...note to self to get that<br>
> done asap! But the existing lld will be head not 3.9.<br>
<br>
</span>Please have it build everything that's buildable in the llvm tree.<br>
<span class="gmail-"><br>
> > I also pass these in LDFLAGS but they're not visible<br>
> > in the error trace below:<br>
> > -Wl,-plugin-opt,-function-<wbr>sections \<br>
> > -Wl,-plugin-opt,-data-sections \<br>
><br>
><br>
> Hmm, looks like LDFLAGS doesn't work for passing to the resulting link line?<br>
> Try setting in the CMakeCache.txt as described above.<br>
<br>
</span>It's a mystery (aka haven't traced/debugged CMake).<br>
<span class="gmail-"><br>
> > Any idea why lldb-argdumper would fail to link reproducably?<br>
><br>
> See suggestion above about looking at lldb.so.3.9.1 link line. Let's<br>
> make sure that looks ok first.<br>
<br>
</span>Thanks.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><span style="font-family:times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top:2px solid rgb(213,15,37)">Teresa Johnson |</td><td nowrap style="border-top:2px solid rgb(51,105,232)"> Software Engineer |</td><td nowrap style="border-top:2px solid rgb(0,153,57)"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top:2px solid rgb(238,178,17)"> 408-460-2413</td></tr></tbody></table></span></div>
</div></div>