<br><br><div class="gmail_quote">On Tue Oct 21 2014 at 2:10:27 PM David Blaikie <<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 21, 2014 at 2:05 PM, Peter Collingbourne <span dir="ltr"><<a href="mailto:peter@pcc.me.uk" target="_blank">peter@pcc.me.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Mon, Oct 20, 2014 at 04:38:07PM -0700, David Blaikie wrote:<br>
> On Mon, Oct 20, 2014 at 4:37 PM, David Blaikie <<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>> wrote:<br>
><br>
> ><br>
> ><br>
> > On Mon, Oct 20, 2014 at 4:14 PM, Peter Collingbourne <<a href="mailto:peter@pcc.me.uk" target="_blank">peter@pcc.me.uk</a>><br>
> > wrote:<br>
> ><br>
> >> How are you invoking the compiler in your build (i.e. what are the values<br>
> >> of config.host_cc and config.host_cxx in $builddir/test/lit.site.cfg)?<br>
> >><br>
> ><br>
> > config.host_cc = "/usr/local/google/home/blaikie/install/bin/clang "<br>
> > config.host_cxx = "/usr/local/google/home/blaikie/install/bin/clang++ "<br>
> ><br>
><br>
> Oh, and those are symlinks:<br>
><br>
> lrwxrwxrwx 1 blaikie eng 9 Sep 18 20:07<br>
> /usr/local/google/home/blaikie/install/bin/clang -> clang-3.4*<br>
> lrwxrwxrwx 1 blaikie eng 5 Oct 10 11:06<br>
> /usr/local/google/home/blaikie/install/bin/clang++ -> clang*<br>
<br>
</span></blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I debugged this off-list with David and we found the source of his problem: the<br>
presence of the -gsplit-dwarf flag in the output of "llvm-config --cppflags"<br>
causes one part of the Go toolchain ("cgo") to blow up, as it does not<br>
understand split DWARF.<br>
<br>
Regardless of whether cgo supports split DWARF, that flag should not appear<br>
in llvm-config's output. I'll see what I can do about removing it.<br></blockquote><div><br>(+echristo as he added the split-dwarf support & might have some opinions on how it should/shouldn't interact with llvm-config --cppflags)<br> </div></div></div></div></blockquote><div><br></div><div>Honestly I didn't think about it much. It should probably get migrated along, because otherwise how would you pass that along?</div><div><br></div><div>That said, stripping it out for now is fine. cgo should probably learn how to deal with .dwo files at some point.</div><div><br></div><div>-eric</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,</blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<span><font color="#888888">--<br>
Peter<br>
</font></span></blockquote></div></div></div></blockquote></div>