<div dir="ltr">For the list, Rafael and I spent a bunch of time talking about this in IRC as well, and it took me some time to debug down to the actual root cause. I think I found it and fixed it with the surgical change in r193601. I added back all of the tests from your patch Rafael, but if you think we need further testing here, by all means.<div>
<br></div><div>We're still going to consider *more* directories than GCC would. That's true for almost all of these though. However, as far as I can tell, the added places we search are duplicates, and thus either actually harmless, or unlikely to be problematic ordering changes (looking in /lib after /usr/lib rather than before /usr/lib when we think the actual libraries are in /usr/<triple>/lib).</div>
<div><br></div><div>This problem isn't new or specific to the ubuntu config. I'd love ways to solve it, but historically when I've tried either the complexity sky rocketed or we stopped matching GCC's behavior if you moved the GCC installation to a different install prefix or otherwise changed things in small ways. =/</div>
<div><br></div><div>Anyways, let me know if my patch makes sense and if there is stuff still not working.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 28, 2013 at 7:39 PM, Rafael Ávila de Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">  rebased.<br>
<br>
Hi chandlerc, logan,<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D2045" target="_blank">http://llvm-reviews.chandlerc.com/D2045</a><br>
<br>
CHANGE SINCE LAST DIFF<br>
  <a href="http://llvm-reviews.chandlerc.com/D2045?vs=5214&id=5216#toc" target="_blank">http://llvm-reviews.chandlerc.com/D2045?vs=5214&id=5216#toc</a><br>
<div class="HOEnZb"><div class="h5"><br>
Files:<br>
  lib/Driver/ToolChains.cpp<br>
  lib/Driver/ToolChains.h<br>
  test/Driver/Inputs/fedora_18_tree/etc/redhat-release<br>
  test/Driver/Inputs/x86-64_ubuntu_13.10/etc/debian_version<br>
  test/Driver/Inputs/x86-64_ubuntu_13.10/lib/.keep<br>
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/arm-linux-gnueabi/lib/crt1.o<br>
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/arm-linux-gnueabi/lib/crti.o<br>
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/arm-linux-gnueabi/lib/crtn.o<br>
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/arm-linux-gnueabihf/lib/crt1.o<br>
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/arm-linux-gnueabihf/lib/crti.o<br>
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/arm-linux-gnueabihf/lib/crtn.o<br>
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/crtbegin.o<br>
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/crtend.o<br>
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/crtbegin.o<br>
  test/Driver/Inputs/x86-64_ubuntu_13.10/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/crtend.o<br>
  test/Driver/linux-ld.c<br>
</div></div><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>