<div dir="ltr">(adding list back)<div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 28, 2013 at 4:58 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank" class="cremed">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"><div class="im">> Why? Why is it ever OK to infer anything about the detected GCC installation<br>
> from the distro? If I put my own GCC installation onto a redhat system, it's<br>
> not clear why it's biarch-ness would follow from the distro.<br>
<br>
</div>It would not with that patch. It was checking for the file in the<br>
sysroot.</blockquote><div><br></div><div>Yes, but it is still assuming that any GCC installation within that sysroot is configured the same as all other GCC installations within that sysroot. This seems trivially not always true.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> As for why I think it is needed, it is because I don't see<br>
another way of knowing the difference of a redhat and a ubuntu ARM<br>
installation. In a ubuntu install, it is not biarch and it should<br>
have:<br>
<br>
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/../../../../arm-linux-gnueabi/lib/../lib<br>
<br>
Note the funny looking "lib/../lib".</blockquote><div><br></div><div>Yes, this is due to a lack of a bi-arch suffix for this target architecture.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
 On fedora gcc is built as biarch<br>
and there is not such line.<br></blockquote><div><br></div><div>How on earth do you get a biarch arm toolchain. There isn't (to my knowledge) a non-cross-compiling way to compile for a 32-bit arm platform and a 64-bit arm platform? They have totally different ABIs?</div>
<div><br></div><div>What is the actual layout of the ubuntu vs. fedora toolchains you're trying to use? i typically use find to print this out...</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><br>
> I would much rather this code detect biarch-ness from the manifest<br>
> properties of the installed GCC toolchain rather than hard coding settings<br>
> for one distro or another.<br>
<br>
</div>How?<br>
<br>
In the worst case of a gcc installation built as biarch with only one<br>
arch actually present (fedora arm), the only way to know there is a<br>
difference is the order gcc looks for libraries. There is no 32, 64,<br>
lib32 or lib64 directory.<br></blockquote><div><br></div><div>If there is no 32, 64, lib32, or lib64 directory, it isn't a biarch toolchain by definition. And biarch makes no real sense for arm anyways.</div></div></div>
</div>